/* ─────────────────────────────────────────────────────────────
   ladderlab.dev — industrial RelayForge palette
   ───────────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:        oklch(0.16 0.012 240);   /* page */
  --bg-2:      oklch(0.21 0.015 245);   /* card */
  --bg-3:      oklch(0.25 0.018 245);   /* elevated */
  --bg-4:      oklch(0.29 0.02 245);    /* hover */
  --rail:      oklch(0.32 0.022 245);   /* divider */
  --rail-2:    oklch(0.4 0.025 245);

  /* ink */
  --ink:       oklch(0.97 0.005 80);
  --ink-2:     oklch(0.82 0.008 80);
  --ink-3:     oklch(0.62 0.01 80);
  --ink-4:     oklch(0.46 0.012 80);

  /* brand */
  --amber:     oklch(0.78 0.14 65);
  --amber-2:   oklch(0.72 0.16 60);
  --amber-3:   oklch(0.55 0.13 55);
  --amber-glow: oklch(0.78 0.14 65 / 0.18);

  /* blueprint */
  --bp:        oklch(0.82 0.1 215);
  --bp-2:      oklch(0.72 0.12 215);
  --bp-3:      oklch(0.5 0.1 220);
  --bp-glow:   oklch(0.82 0.1 215 / 0.16);

  /* status */
  --ok:        oklch(0.78 0.14 155);
  --warn:      oklch(0.78 0.14 85);
  --danger:    oklch(0.66 0.18 25);

  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans:    "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1200px;
  --gutter: 56px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle blueprint grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(0.35 0.02 245 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.35 0.02 245 / 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.shell { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: oklch(0.16 0.012 240 / 0.85);
  border-bottom: 1px solid var(--rail);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-left: 24px;
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-2);
  color: oklch(0.18 0.02 60);
  border-color: var(--amber-2);
  box-shadow: 0 0 0 0 var(--amber-glow), inset 0 1px 0 oklch(1 0 0 / 0.2);
}
.btn-primary:hover {
  background: var(--amber);
  box-shadow: 0 0 0 6px var(--amber-glow), inset 0 1px 0 oklch(1 0 0 / 0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rail-2);
}
.btn-ghost:hover { background: var(--bg-3); color: var(--ink); border-color: var(--rail-2); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: 5px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--amber-glow), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--rail-2);
  border-radius: 99px;
  color: var(--ink-2);
  background: var(--bg-2);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 oklch(0.78 0.14 155 / 0.5);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.78 0.14 155 / 0.5); }
  50%      { box-shadow: 0 0 0 6px oklch(0.78 0.14 155 / 0); }
}

h1.headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
h1.headline em {
  font-style: normal;
  background: linear-gradient(180deg, var(--amber), var(--amber-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 28px; }

.hero-fineprint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}
.hero-fineprint a { color: var(--ink-3); border-bottom: 1px dotted var(--rail-2); }

/* ── Hero IDE mockup container ───────────────────────────── */
.hero-ide-wrap {
  position: relative;
  margin: 56px auto 0;
  max-width: 1180px;
  padding: 0 var(--gutter);
}
.hero-ide {
  position: relative;
  border: 1px solid var(--rail-2);
  border-radius: 10px;
  background: var(--bg-2);
  box-shadow:
    0 0 0 1px oklch(0 0 0 / 0.4),
    0 30px 80px -20px oklch(0 0 0 / 0.6),
    0 0 60px -10px var(--amber-glow);
  overflow: hidden;
}
.hero-ide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 75%, oklch(0.16 0.012 240 / 0.95));
  pointer-events: none;
  opacity: 0;
}

.ide-caption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 640px;
  margin: 18px auto 0;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-4);
  letter-spacing: 0.01em;
  text-align: left;
}
.ide-caption b {
  color: var(--ink-3);
  font-weight: 500;
}
.ide-caption-mark {
  color: var(--amber);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
}

/* ── Trust strip ─────────────────────────────────────────── */
.trust {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--rail);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-group { display: flex; align-items: center; gap: 18px; }
.trust-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.trust-items { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--rail);
  border-radius: 4px;
  color: var(--ink-2);
  background: var(--bg-2);
}
.trust-pill .swatch {
  width: 8px; height: 8px; border-radius: 1px;
}

/* ── Section base ────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--amber);
}
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 22ch;
  text-wrap: balance;
}
.section-deck {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
  margin: 0 0 56px;
}

/* ── How it works ────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  background: var(--bg-2);
  border: 1px solid var(--rail);
  border-radius: 6px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.how-card .step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.how-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.how-card p {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0 0 20px;
  line-height: 1.55;
}
.how-illust {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--rail);
  border-radius: 4px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

/* ── Trainer call-out ────────────────────────────────────── */
.trainer {
  background:
    linear-gradient(135deg, var(--bg-2), oklch(0.18 0.018 245));
  border: 1px solid var(--rail);
  border-radius: 10px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.trainer-text h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.trainer-text p {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 38ch;
}

.lab-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rail);
  border: 1px solid var(--rail);
  border-radius: 6px;
  overflow: hidden;
}
.lab {
  background: var(--bg-2);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .15s;
}
.lab:hover { background: var(--bg-3); }
.lab-num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  width: 22px;
  flex-shrink: 0;
}
.lab-name {
  font-size: 13px;
  color: var(--ink-2);
}
.lab.locked .lab-name { color: var(--ink-4); }
.lab-dot {
  margin-left: auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  opacity: 0.7;
}
.lab.locked .lab-dot { background: var(--rail-2); }

/* ── Pricing ─────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.price-card {
  background: var(--bg-2);
  border: 1px solid var(--rail);
  border-radius: 6px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--amber-3);
  background: linear-gradient(180deg, oklch(0.22 0.025 60), var(--bg-2));
  box-shadow: 0 0 40px -12px var(--amber-glow);
}
.price-card .price-tier {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.price-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.price-card .price-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 24px;
  line-height: 1.5;
  min-height: 40px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}
.price-amount .num {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-amount .per {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.price-alt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  margin-bottom: 24px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--rail);
  padding-top: 18px;
}
.price-card li {
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card li .check {
  flex-shrink: 0;
  margin-top: 6px;
  color: var(--amber);
}
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card .ribbon {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 3px 8px;
  border: 1px solid var(--amber-3);
  border-radius: 99px;
  background: oklch(0.22 0.025 60);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-3);
}
.pricing-note a {
  color: var(--amber);
  border-bottom: 1px dotted var(--amber-3);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rail);
  padding: 64px 0 40px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color .15s;
}
.footer-links a:hover { color: var(--amber); }
.footer-tagline {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 38ch;
  margin: 12px 0 0;
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid var(--rail);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

/* responsive */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .nav-links { display: none; }
  .how-grid { grid-template-columns: 1fr; }
  .trainer { grid-template-columns: 1fr; padding: 32px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
