:root {
  /* ink / surfaces — dark, faintly blue */
  --bg:        oklch(0.165 0.018 250);
  --bg-2:      oklch(0.205 0.020 252);
  --surface:   oklch(0.235 0.022 252);
  --surface-2: oklch(0.275 0.024 252);
  --line:      oklch(0.34 0.022 252);
  --line-soft: oklch(0.30 0.020 252);

  /* type */
  --fg:        oklch(0.96 0.006 250);
  --fg-muted:  oklch(0.78 0.012 250);
  --fg-dim:    oklch(0.62 0.014 252);

  /* accents — share chroma/lightness, vary hue */
  --blue:      oklch(0.70 0.145 245);
  --blue-deep: oklch(0.55 0.135 250);
  --cyan:      oklch(0.80 0.115 200);
  --amber:     oklch(0.82 0.130 80);

  --blue-glow: oklch(0.70 0.145 245 / 0.18);

  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(0.5 0.02 252 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.5 0.02 252 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--mono); }

/* ───────── shared atoms ───────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--blue);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blue);
  opacity: 0.6;
}

h1, h2, h3 { line-height: 1.07; letter-spacing: -0.02em; font-weight: 800; }

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 18px 0 0; }
.section-head p { color: var(--fg-muted); font-size: 18.5px; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: oklch(0.16 0.02 250);
  box-shadow: 0 0 0 1px var(--blue-deep), 0 14px 34px -14px var(--blue-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--blue-deep), 0 20px 44px -14px var(--blue-glow); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ───────── nav ───────── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(0.165 0.018 250 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
header.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--blue); font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.logo .mark::after { content: "\P"; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--fg-muted); font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ───────── hero ───────── */
.hero { padding: 76px 0 90px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 0; }
.hero h1 .hl { color: var(--blue); position: relative; }
.hero p.lede { color: var(--fg-muted); font-size: clamp(18px, 2vw, 20.5px); margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta .item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .n { font-family: var(--mono); font-size: 23px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.hero-meta .l { font-size: 13px; color: var(--fg-dim); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

/* terminal window */
.term {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 40px 90px -40px oklch(0.1 0.04 250 / 0.9), 0 0 0 1px oklch(0.4 0.02 250 / 0.2) inset;
  overflow: hidden;
  font-family: var(--mono);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-bar .dot:nth-child(1) { background: oklch(0.66 0.16 25); }
.term-bar .dot:nth-child(2) { background: oklch(0.78 0.13 80); }
.term-bar .dot:nth-child(3) { background: oklch(0.74 0.13 145); }
.term-bar .title { margin-left: 10px; font-size: 12.5px; color: var(--fg-dim); }
.term-body { padding: 20px 20px 22px; font-size: 14px; line-height: 1.75; }
.term-body .ln { display: block; white-space: pre-wrap; }
.prompt { color: var(--cyan); }
.kw { color: var(--blue); font-weight: 600; }
.fn { color: var(--amber); }
.str { color: oklch(0.80 0.11 150); }
.num { color: oklch(0.82 0.12 30); }
.com { color: var(--fg-dim); font-style: italic; }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--blue); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-result { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--fg-muted); font-size: 13px; }
.term-result .rrow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; }
.term-result .rrow span:last-child { white-space: nowrap; color: var(--fg-dim); }
.term-result .ok { color: oklch(0.80 0.11 150); }

/* ───────── logos / trust strip ───────── */
.strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 26px 0; }
.strip-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.strip .lbl { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.04em; }
.strip .tools { display: flex; gap: 30px; flex-wrap: wrap; }
.strip .tool { font-family: var(--mono); font-size: 15px; color: var(--fg-muted); font-weight: 500; opacity: 0.85; }
.strip .tool b { color: var(--fg); font-weight: 600; }

/* ───────── who it's for ───────── */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.pain {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 28px 26px; transition: border-color .2s ease, transform .2s ease;
}
.pain:hover { border-color: var(--line); transform: translateY(-3px); }
.pain .tag { font-family: var(--mono); font-size: 12px; color: var(--amber); margin-bottom: 16px; display: block; }
.pain h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.pain p { color: var(--fg-muted); font-size: 15.5px; margin-top: 10px; }
@media (max-width: 820px) { .pain-grid { grid-template-columns: 1fr; } }

/* ───────── curriculum ───────── */
.modules { margin-top: 54px; border-top: 1px solid var(--line-soft); }
.module {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 28px; align-items: start;
  padding: 28px 8px; border-bottom: 1px solid var(--line-soft);
  transition: background .2s ease, padding .2s ease;
  cursor: default;
}
.module:hover { background: oklch(0.21 0.02 252 / 0.5); padding-left: 18px; padding-right: 18px; }
.module .idx { font-family: var(--mono); font-size: 15px; color: var(--blue); font-weight: 600; padding-top: 4px; }
.module .body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.module .body p { color: var(--fg-muted); font-size: 15.5px; margin-top: 8px; max-width: 620px; }
.module .topics { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; color: var(--fg-muted);
  padding: 4px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-soft);
}
.module .dur { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); white-space: nowrap; padding-top: 5px; }
@media (max-width: 760px) {
  .module { grid-template-columns: 40px 1fr; }
  .module .dur { display: none; }
}

/* ───────── outcomes ───────── */
.out-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.out {
  background: var(--bg); padding: 30px 28px;
  transition: background .2s ease;
}
.out:hover { background: var(--surface); }
.out .ck { color: var(--blue); font-family: var(--mono); font-size: 15px; font-weight: 700; }
.out h3 { font-size: 18.5px; font-weight: 700; margin-top: 14px; letter-spacing: -0.01em; }
.out p { color: var(--fg-muted); font-size: 15px; margin-top: 8px; }
@media (max-width: 820px) { .out-grid { grid-template-columns: 1fr; } }

/* ───────── code demo ───────── */
.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; margin-top: 8px; }
.demo-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.demo-tab {
  font-family: var(--mono); font-size: 13px; color: var(--fg-dim);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  background: transparent; transition: all .15s ease;
}
.demo-tab:hover { color: var(--fg-muted); }
.demo-tab.active { color: var(--blue); border-color: var(--line); background: var(--surface); }
.demo-panel { display: none; }
.demo-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ───────── instructor ───────── */
.inst-grid { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; }
.ph {
  border-radius: var(--r); border: 1px solid var(--line);
  aspect-ratio: 1; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, oklch(0.24 0.02 252) 0 10px, oklch(0.21 0.02 252) 10px 20px);
  display: grid; place-items: center;
}
.ph .ph-lbl { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); background: var(--bg); padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line-soft); }
.inst .quote { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.inst .quote .hl { color: var(--blue); }
.inst .by { margin-top: 24px; }
.inst .by .name { font-weight: 700; font-size: 17px; }
.inst .by .role { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); margin-top: 3px; }
@media (max-width: 800px) { .inst-grid { grid-template-columns: 1fr; gap: 32px; } .ph { max-width: 260px; } }

/* ───────── pricing ───────── */
.price-wrap { display: grid; place-items: center; margin-top: 54px; }
.price-card {
  width: 100%; max-width: 520px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; position: relative; overflow: hidden;
  box-shadow: 0 40px 90px -50px oklch(0.1 0.04 250);
}
.price-card::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
}
.price-card .tier { font-family: var(--mono); font-size: 13px; color: var(--blue); letter-spacing: 0.04em; }
.price-card .amount { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; }
.price-card .amount .cur { font-size: 28px; font-weight: 700; color: var(--fg-muted); }
.price-card .amount .val { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; }
.price-card .amount .was { font-family: var(--mono); font-size: 16px; color: var(--fg-dim); text-decoration: line-through; }
.price-card .sub { color: var(--fg-muted); margin-top: 4px; font-size: 15px; }
.price-card ul { list-style: none; margin: 28px 0; display: flex; flex-direction: column; gap: 13px; }
.price-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--fg-muted); }
.price-card li .tick { color: var(--blue); font-family: var(--mono); font-weight: 700; flex: none; }
.price-card li b { color: var(--fg); font-weight: 600; }
.price-card .btn-primary { width: 100%; justify-content: center; padding: 16px; font-size: 17px; }
.price-note { text-align: center; font-size: 13px; color: var(--fg-dim); margin-top: 16px; font-family: var(--mono); }

/* ───────── waitlist ───────── */
.waitlist-wrap { display: grid; place-items: center; margin-top: 54px; }
.waitlist-card {
  width: 100%; max-width: 720px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; position: relative; overflow: hidden;
  box-shadow: 0 40px 90px -50px oklch(0.1 0.04 250);
}
.waitlist-card::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
}
.waitlist-card .tier { font-family: var(--mono); font-size: 13px; color: var(--blue); letter-spacing: 0.04em; }
.waitlist-sub { color: var(--fg-muted); margin-top: 4px; font-size: 15px; }
.waitlist-form { margin-top: 24px; }
.waitlist-field { display: flex; gap: 10px; align-items: flex-start; }
/* crispy wraps each field in .form-group — make it flex-grow so input fills the row */
.waitlist-field .form-group { flex: 1; min-width: 0; margin-bottom: 0; }
.waitlist-field input[type="email"] {
  width: 100%;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px;
  color: var(--fg); font-family: var(--sans); font-size: 15px;
  outline: none; transition: border-color .2s ease;
  /* reset bootstrap */
  box-shadow: none;
}
.waitlist-field input[type="email"]::placeholder { color: var(--fg-dim); }
.waitlist-field input[type="email"]:focus { border-color: var(--blue); box-shadow: none; }
.waitlist-field .invalid-feedback { font-family: var(--mono); font-size: 12.5px; color: oklch(0.72 0.16 30); }
.waitlist-card ul { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 13px; }
.waitlist-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--fg-muted); }
.waitlist-card li .tick { color: var(--blue); font-family: var(--mono); font-weight: 700; flex: none; }
.waitlist-card li b { color: var(--fg); font-weight: 600; }
.waitlist-confirmed { text-align: center; }
.waitlist-check { display: block; font-size: 36px; color: var(--blue); font-family: var(--mono); font-weight: 700; margin-bottom: 16px; }
.waitlist-confirmed h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.waitlist-confirmed p { color: var(--fg-muted); font-size: 16px; margin-top: 12px; }
@media (max-width: 540px) { .waitlist-field { flex-direction: column; } .waitlist-field .form-group { width: 100%; } }

/* ───────── faq ───────── */
.faq-list { margin-top: 46px; border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: color .15s ease;
}
.faq-q:hover { color: var(--blue); }
.faq-q .pm { font-family: var(--mono); color: var(--blue); font-size: 22px; flex: none; transition: transform .25s ease; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 26px; color: var(--fg-muted); font-size: 16px; max-width: 760px; }

/* ───────── final cta ───────── */
.final { text-align: center; padding: 120px 0; position: relative; }
.final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--blue-glow), transparent 70%);
  pointer-events: none;
}
.final h2 { font-size: clamp(34px, 5vw, 56px); position: relative; }
.final p { color: var(--fg-muted); font-size: 19px; margin-top: 20px; position: relative; }
.final .hero-cta { justify-content: center; margin-top: 36px; position: relative; }

/* ───────── footer ───────── */
footer { border-top: 1px solid var(--line-soft); padding: 44px 0; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .logo { font-size: 15px; }
footer .fmeta { font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim); }
footer .flinks { display: flex; gap: 24px; }
footer .flinks a { color: var(--fg-dim); font-size: 14px; transition: color .15s ease; }
footer .flinks a:hover { color: var(--fg); }

/* reveal — pure CSS entrance, always ends visible (no JS dependency) */
@keyframes reveal-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
html.js-reveal .reveal { animation: reveal-rise .65s cubic-bezier(.22,.61,.36,1) both; }
