/* =========================================================
   Network Design Academy — core stylesheet
   Dark "engineering lab" base with warm paper sections.
   Accent: signal orange (Dutch nod + alert/lab signal).
   ========================================================= */

:root {
  --ink: #0A0E17;
  --ink-2: #0E1421;
  --panel: #131A29;
  --panel-2: #192236;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --fg: #E8ECF3;
  --muted: #9AA6BA;
  --dim: #6B7790;

  --paper: #F3F1EC;
  --paper-2: #E8E4DC;
  --paper-text: #0E1320;
  --paper-muted: #4B5568;
  --paper-line: rgba(14, 19, 32, .13);

  --accent: #FF6A13;
  --accent-hover: #FF8440;
  --accent-soft: rgba(255, 106, 19, .12);
  --up: #2FD4B5;
  --warn: #F5B83D;
  --down: #FF4D5E;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }
h4 { font-size: 1.05rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--panel { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--paper { background: var(--paper); color: var(--paper-text); }
.section--paper .lead, .section--paper .muted { color: var(--paper-muted); }
.section--paper .eyebrow { color: #D4520A; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split > *, .grid > *, .scen-grid > *, .scen-detail > *, .days > *, .dash-cols > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.2;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #140700; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--dark { background: var(--paper-text); color: var(--paper); }
.btn--dark:hover { background: #1e2740; }
.section--paper .btn--ghost { border-color: var(--paper-line); color: var(--paper-text); }
.section--paper .btn--ghost:hover { border-color: var(--paper-text); }
.btn--sm { padding: .6em 1em; font-size: .88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }
.link-arrow { color: var(--accent); font-weight: 600; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform .2s; }

/* ---------- Cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px);
  position: relative;
  transition: border-color .25s, transform .25s, background .25s;
}
a.card:hover, .card--hover:hover { border-color: rgba(255, 106, 19, .5); transform: translateY(-2px); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .card-num { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.card .card-foot { margin-top: 22px; }
.section--paper .card { background: #fff; border-color: var(--paper-line); color: var(--paper-text); }
.section--paper .card p { color: var(--paper-muted); }
.card--accent { border-color: rgba(255, 106, 19, .55); background: linear-gradient(180deg, rgba(255,106,19,.08), var(--panel) 60%); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Lists ---------- */
.list-check li { position: relative; padding-left: 1.7em; margin-bottom: .55em; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .9em; height: .5em;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.list-dash li { position: relative; padding-left: 1.3em; margin-bottom: .45em; color: var(--muted); }
.list-dash li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }
.section--paper .list-dash li { color: var(--paper-muted); }

/* ---------- Tags / badges ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .32em .7em; border-radius: 6px;
  border: 1px solid var(--line-strong); color: var(--muted);
  white-space: nowrap;
}
.tag--accent { border-color: rgba(255,106,19,.5); color: var(--accent); background: var(--accent-soft); }
.tag--up { border-color: rgba(47,212,181,.45); color: var(--up); background: rgba(47,212,181,.08); }
.tag--free { border-color: rgba(47,212,181,.45); color: var(--up); }
.diff { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .45em; }
.diff i { display: inline-flex; gap: 2px; }
.diff i b { width: 5px; height: 12px; border-radius: 1px; background: var(--line-strong); }
.diff i b.on { background: var(--accent); }
.section--paper .tag { border-color: var(--paper-line); color: var(--paper-muted); }

/* ---------- Announcement bar ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 9px var(--gutter); font-size: .84rem; text-align: center;
  background: linear-gradient(90deg, #1a0f08, #2a1406 50%, #1a0f08); color: #ffd9c2;
  border-bottom: 1px solid rgba(255,106,19,.35);
}
.announce b { color: #fff; font-weight: 600; }
.announce .go { color: var(--accent); font-weight: 600; white-space: nowrap; }
.announce:hover .go .arrow { transform: translateX(3px); }
.announce .arrow { display: inline-block; transition: transform .2s; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,106,19,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,106,19,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,19,0); } }
.lang { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 8px; padding: .45em .6em; }
.lang:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- Program price tags ---------- */
.prog-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.prog-price .now { font-family: var(--display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
.prog-price .was { color: var(--dim); text-decoration: line-through; font-size: .95rem; }
.prog-price .vat { font-size: .78rem; color: var(--muted); font-family: var(--mono); }
.section--paper .prog-price .now { color: var(--paper-text); }
.cohort-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border: 1px solid rgba(255,106,19,.5); border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, rgba(255,106,19,.12), var(--panel) 55%); }
.cohort-hero > div { padding: clamp(24px, 3.5vw, 44px); min-width: 0; }
.cohort-hero > div + div { border-left: 1px solid var(--line); background: rgba(0,0,0,.18); }
.cohort-date { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 8px 0 14px; }
.countdown-num { font-family: var(--display); font-size: 3.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
@media (max-width: 860px) { .cohort-hero { grid-template-columns: 1fr; } .cohort-hero > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.timeline-v { display: grid; gap: 0; border-left: 2px solid var(--line-strong); margin-left: 6px; }
.timeline-v li { position: relative; padding: 0 0 22px 24px; }
.timeline-v li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); }
.timeline-v .when { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.timeline-v b { display: block; margin: 2px 0; }
.timeline-v span.d { color: var(--muted); font-size: .92rem; }

.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .94rem; }
.compare th, .compare td { padding: 14px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { padding-top: 18px; padding-bottom: 18px; }
.compare td { color: var(--muted); }
.compare td b { color: var(--fg); }
.compare tr:last-child td { border-bottom: 0; }
.founder { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; margin-bottom: 20px; }
.founder .ph { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ffb37a); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.8rem; color: #140700; }
.founder h3 { margin: 0 0 4px; font-size: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 23, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-sub { font-family: var(--mono); font-size: .62rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .55em .85em; border-radius: 8px;
  font-size: .93rem; font-weight: 500; color: var(--muted);
  background: none; border: 0;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link.active { color: var(--fg); }
.nav-link.active { background: rgba(255,255,255,.05); }
.nav-link .chev { width: 10px; height: 10px; opacity: .6; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: -8px;
  min-width: 290px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover .chev { transform: rotate(180deg); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; transition: background .15s; }
.dropdown a:hover { background: rgba(255,255,255,.05); }
.dropdown a strong { display: block; font-size: .93rem; font-weight: 600; }
.dropdown a span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--fg); border-radius: 8px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1120px) {
  .nav, .header-cta .btn--ghost { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--ink); padding: 16px var(--gutter) 40px; overflow-y: auto; gap: 0;
  }
  .site-header.open .nav-link { font-size: 1.1rem; padding: 14px 4px; color: var(--fg); width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-header.open .nav-link.active { background: none; color: var(--accent); }
  .site-header.open .chev { display: none; }
  .site-header.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 4px 0 12px 8px; min-width: 0; }
  .site-header.open .dropdown a span { display: none; }
  .site-header.open .dropdown a strong { font-weight: 500; color: var(--muted); }
}
@media (max-width: 480px) {
  .header-cta .btn--primary { display: none; } .brand-sub { display: none; }
  .header-inner { gap: 10px; } .brand { gap: 8px; } .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: .9rem; }
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 .dot { color: var(--accent); }
.hero .lead { margin-top: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; font-family: var(--mono); font-size: .76rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: .6em; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); }
.hero-visual { position: relative; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.topology { width: 100%; height: auto; }
.topology .link { stroke: rgba(255,255,255,.2); stroke-width: 1.5; fill: none; }
.topology .link.down { stroke: var(--down); stroke-dasharray: 5 5; }
.topology .link.fixed { stroke: var(--up); }
.topology .node rect { fill: var(--panel-2); stroke: rgba(255,255,255,.28); stroke-width: 1.2; }
.topology .node.core rect { stroke: var(--accent); }
.topology .node text { fill: var(--fg); font-family: var(--mono); font-size: 11px; text-anchor: middle; }
.topology .node .sub { fill: var(--dim); font-size: 9px; }
.topology .packet { fill: var(--accent); }
.topology .packet.up { fill: var(--up); }

.terminal {
  background: #070A11; border: 1px solid var(--line-strong); border-radius: 12px;
  font-family: var(--mono); font-size: .8rem; line-height: 1.65;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: .72rem; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3246; }
.terminal-bar span { margin-left: 8px; }
.terminal-bar .timer { margin-left: auto; color: var(--warn); }
.terminal-body { padding: 14px 16px; height: 232px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #C7D0DE; white-space: pre-wrap; word-break: break-word; }
.terminal-body .p { color: var(--accent); }
.terminal-body .ok { color: var(--up); }
.terminal-body .bad { color: var(--down); }
.terminal-body .c { color: var(--dim); }
.cursor { display: inline-block; width: 7px; height: 1em; background: var(--fg); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-visual .terminal { position: relative; margin: -40px 0 0 auto; width: min(92%, 460px); }
@media (max-width: 960px) { .hero-visual .terminal { margin: 16px 0 0; width: 100%; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); max-width: 16ch; }
.crumbs { font-family: var(--mono); font-size: .74rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 22px; }
.crumbs a:hover { color: var(--fg); }
.crumbs span { margin: 0 .5em; }

/* ---------- Problem / statement ---------- */
.statement { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.18; letter-spacing: -.025em; font-weight: 600; max-width: 22ch; }
.statement em { font-style: normal; color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; }
.section--paper .statement em { color: #9aa1ad; }
.need-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--paper-line); }
.need-list li { padding: 18px 0; border-bottom: 1px solid var(--paper-line); display: flex; gap: 16px; align-items: baseline; font-weight: 500; font-size: 1.05rem; }
.need-list li:nth-child(odd) { padding-right: 20px; }
.need-list li b { font-family: var(--mono); font-size: .75rem; color: #D4520A; font-weight: 500; }
@media (max-width: 640px) { .need-list { grid-template-columns: 1fr; } }

/* ---------- Duration ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; }
.ladder button {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); text-align: left; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .2s, background .2s;
  position: relative; overflow: hidden;
}
.ladder button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); background: linear-gradient(180deg, rgba(255,106,19,.18), rgba(255,106,19,.04)); transition: background .2s; }
.ladder button > * { position: relative; z-index: 1; }
.ladder button:hover, .ladder button.active { border-color: var(--accent); }
.ladder button.active::after { background: linear-gradient(180deg, rgba(255,106,19,.38), rgba(255,106,19,.08)); }
.ladder .t { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -.02em; }
.ladder .l { font-family: var(--mono); font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ladder-detail { margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.ladder-detail .big { font-family: var(--mono); color: var(--accent); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.ladder-detail h4 { margin: 4px 0 4px; font-size: 1.15rem; }
.ladder-detail p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .ladder button { height: auto !important; min-height: 84px; }
  .ladder-detail { grid-template-columns: 1fr; }
}

/* ---------- Layers ---------- */
.layers { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: center; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.layer .n { font-family: var(--mono); color: var(--accent); font-size: .8rem; }
.layer h4 { margin: 0; font-size: 1.2rem; letter-spacing: .02em; }
.layer p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.layer:nth-child(2) { margin-left: 4%; }
.layer:nth-child(3) { margin-left: 8%; border-color: rgba(255,106,19,.5); background: linear-gradient(90deg, rgba(255,106,19,.1), var(--panel)); }
@media (max-width: 640px) { .layer { grid-template-columns: 1fr; gap: 6px; } .layer:nth-child(n) { margin-left: 0; } }

/* ---------- Campus visual ---------- */
.campus-visual { position: relative; background: #0B111C; border: 1px solid var(--line); border-radius: 18px; padding: clamp(14px, 2vw, 24px); overflow: hidden; }
.campus-visual .caption { position: absolute; left: 20px; bottom: 16px; font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.floorplan { width: 100%; height: auto; }
.floorplan .wall { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2.5; }
.floorplan .inner { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.floorplan .room-fill { fill: rgba(255,255,255,.02); }
.floorplan .room-fill.hot { fill: rgba(255,106,19,.06); }
.floorplan .label { fill: var(--fg); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.floorplan .sublabel { fill: var(--dim); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.floorplan .desk { fill: var(--panel-2); stroke: rgba(255,255,255,.35); stroke-width: 1; }
.floorplan .screen { fill: var(--accent); opacity: .85; }
.floorplan .rack { fill: #0f1726; stroke: rgba(47,212,181,.6); stroke-width: 1; }
.floorplan .led { fill: var(--up); }
.floorplan .table { fill: var(--panel-2); stroke: rgba(255,255,255,.35); }
.floorplan .wb { stroke: var(--accent); stroke-width: 3; }
.floorplan .dim-line { stroke: var(--dim); stroke-width: .8; }
.floorplan .door { fill: none; stroke: rgba(255,255,255,.3); stroke-dasharray: 3 3; }
@media (prefers-reduced-motion: no-preference) {
  .floorplan .led { animation: led 2.4s infinite; }
  .floorplan .led:nth-of-type(3n) { animation-delay: .7s; }
  .floorplan .led:nth-of-type(4n) { animation-delay: 1.3s; }
}
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- Loop / journey ---------- */
.loop { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative; counter-reset: loop; }
.loop li { position: relative; padding: 0 10px; text-align: center; }
.loop li::before { content: ""; position: absolute; top: 23px; left: 50%; width: 100%; height: 1px; background: var(--paper-line); }
.loop li:last-child::before { display: none; }
.loop .dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: #fff; border: 1px solid var(--paper-line); font-family: var(--mono); font-size: .78rem; position: relative; z-index: 1; color: var(--paper-text); }
.loop li:nth-child(4) .dot, .loop li:nth-child(5) .dot { background: var(--accent); border-color: var(--accent); color: #140700; }
.loop strong { display: block; font-family: var(--display); font-size: 1.08rem; }
.loop span { display: block; font-size: .85rem; color: var(--paper-muted); line-height: 1.45; margin-top: 4px; }
.loop-return { margin-top: 26px; text-align: center; font-family: var(--mono); font-size: .78rem; color: var(--paper-muted); letter-spacing: .06em; }
@media (max-width: 860px) {
  .loop { grid-template-columns: 1fr; gap: 0; }
  .loop li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; text-align: left; padding: 0 0 22px; }
  .loop li::before { top: 46px; left: 23px; width: 1px; height: calc(100% - 46px); }
  .loop .dot { margin: 0; }
}

/* ---------- Methodology steps ---------- */
.method { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.method li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px 22px; }
.method .n { font-family: var(--mono); font-size: .74rem; color: var(--accent); }
.method h4 { margin: 10px 0 6px; font-size: 1.05rem; letter-spacing: .06em; }
.method p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) { .method { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .method { grid-template-columns: 1fr; } }

.method-detail { display: grid; gap: 0; border-top: 1px solid var(--line); }
.method-row { display: grid; grid-template-columns: 90px 220px 1fr 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.method-row .n { font-family: var(--mono); color: var(--accent); font-size: 2rem; font-weight: 500; line-height: 1; }
.method-row h3 { margin: 0; letter-spacing: .06em; }
.method-row h3 small { display: block; font-family: var(--font); font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: .95rem; margin-top: 6px; }
.method-row p { color: var(--muted); margin: 0; }
.method-row .trap { font-size: .92rem; border-left: 2px solid var(--down); padding-left: 14px; color: var(--muted); }
.method-row .trap b { display: block; color: var(--down); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }
@media (max-width: 960px) { .method-row { grid-template-columns: 60px 1fr; } .method-row > p, .method-row > .trap { grid-column: 2; } }

/* ---------- Levels ---------- */
.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.level { border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px 20px; background: var(--panel); position: relative; }
.level .lv { font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .1em; }
.level h4 { margin: 8px 0 6px; font-size: 1.02rem; }
.level p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.level .bar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 16px; overflow: hidden; }
.level .bar i { display: block; height: 100%; background: var(--accent); width: var(--w); }
.level.current { border-color: var(--accent); }
.level.current::after { content: "YOU ARE HERE"; position: absolute; top: -9px; right: 10px; background: var(--accent); color: #140700; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; padding: 2px 6px; border-radius: 4px; }
@media (max-width: 960px) { .levels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .levels { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--display); font-size: 2.8rem; font-weight: 700; letter-spacing: -.03em; margin: 12px 0 2px; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .for { color: var(--muted); font-size: .92rem; min-height: 3em; }
.price-card ul { margin: 22px 0 28px; flex: 1; font-size: .95rem; }
.price-card .ribbon { position: absolute; top: -11px; left: 24px; background: var(--accent); color: #140700; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; padding: 3px 9px; border-radius: 4px; text-transform: uppercase; }
.fine { font-size: .82rem; color: var(--dim); margin-top: 18px; }

/* ---------- Timeline (5-day) ---------- */
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.day { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.day .d { font-family: var(--mono); font-size: .72rem; color: var(--accent); letter-spacing: .1em; }
.day h4 { margin: 10px 0 8px; }
.day p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.day.sim { border-color: rgba(255,106,19,.5); }
.section--paper .day { background: #fff; border-color: var(--paper-line); }
.section--paper .day p { color: var(--paper-muted); }
.days--3 { grid-template-columns: repeat(3, 1fr); }
.days--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .days, .days--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .days--3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .days { grid-template-columns: 1fr; } }

.bda { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bda > div { padding: 28px; border-right: 1px solid var(--line); }
.bda > div:last-child { border-right: 0; }
.bda > div:nth-child(2) { background: linear-gradient(180deg, rgba(255,106,19,.1), transparent); }
.bda .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.bda .v { font-family: var(--display); font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 4px; }
.bda p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .bda { grid-template-columns: 1fr; } .bda > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Readiness bars / dashboard ---------- */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 48px; gap: 14px; align-items: center; font-size: .92rem; }
.bar-row .track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-row .fill { height: 100%; width: 0; border-radius: 4px; background: var(--up); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.bar-row .fill.mid { background: var(--warn); }
.bar-row .fill.low { background: var(--accent); }
.bar-row .val { font-family: var(--mono); text-align: right; font-size: .85rem; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr 44px; } .bar-row .track { grid-column: 1 / -1; grid-row: 2; } }

.dash { display: grid; grid-template-columns: 220px 1fr; min-height: 640px; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; background: var(--ink-2); box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.dash-side { border-right: 1px solid var(--line); padding: 22px 14px; background: #0B101B; }
.dash-side .who { display: flex; gap: 10px; align-items: center; padding: 0 8px 20px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.dash-side .avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ffb37a); display: grid; place-items: center; font-weight: 700; color: #140700; font-size: .8rem; }
.dash-side .who b { font-size: .88rem; display: block; }
.dash-side .who span { font-size: .72rem; color: var(--muted); font-family: var(--mono); }
.dash-side a { display: block; padding: 9px 10px; border-radius: 8px; font-size: .9rem; color: var(--muted); }
.dash-side a.on { background: rgba(255,255,255,.06); color: var(--fg); }
.dash-side .grp { font-family: var(--mono); font-size: .64rem; color: var(--dim); letter-spacing: .12em; padding: 16px 10px 6px; }
.dash-main { padding: 26px; display: grid; gap: 18px; align-content: start; }
.dash-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.dash-top h3 { margin: 0; font-size: 1.5rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi .k { font-family: var(--mono); font-size: .66rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.kpi .v { font-family: var(--display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.kpi .d { font-size: .78rem; color: var(--up); font-family: var(--mono); }
.dash-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.panel h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.reco { border: 1px solid rgba(255,106,19,.5); background: linear-gradient(135deg, rgba(255,106,19,.12), transparent 70%); border-radius: 12px; padding: 20px; }
.reco .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--accent); }
.reco p { margin: 8px 0 14px; font-size: 1.05rem; font-weight: 500; }
.recent li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .88rem; align-items: center; }
.recent li:last-child { border-bottom: 0; }
.recent .t { font-family: var(--mono); color: var(--muted); font-size: .8rem; }
.status { font-family: var(--mono); font-size: .68rem; padding: 2px 7px; border-radius: 4px; }
.status.pass { color: var(--up); background: rgba(47,212,181,.1); }
.status.part { color: var(--warn); background: rgba(245,184,61,.1); }
.status.fail { color: var(--down); background: rgba(255,77,94,.1); }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.heat div { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: .6rem; color: rgba(255,255,255,.75); text-align: center; line-height: 1.1; padding: 2px; }
@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Scenario library ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.filters .lbl { font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; width: 88px; flex-shrink: 0; }
.chip { background: transparent; border: 1px solid var(--line-strong); color: var(--muted); padding: .42em .9em; border-radius: 999px; font-size: .85rem; transition: all .15s; }
.chip:hover { color: var(--fg); border-color: var(--fg); }
.chip.on { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.search { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: .75em 1em; color: var(--fg); font: inherit; font-size: .95rem; }
.lib-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin: 28px 0 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.lib-count { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.scen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .scen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .scen-grid { grid-template-columns: 1fr; } }
.scen { display: flex; flex-direction: column; gap: 14px; }
.scen .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.scen .top .tag { white-space: normal; }
.scen h3 { font-size: 1.14rem; margin: 0; }
.scen p { font-size: .9rem; flex: 1; }
.scen .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.scen .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.scen .dur { color: var(--fg); font-size: .85rem; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* Scenario detail */
.scen-detail { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.scen-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kv div:last-child { border-bottom: 0; }
.kv dt, .kv .k { color: var(--muted); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.kv .v { text-align: right; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.scen-side > * { min-width: 0; }
.kv .diff { flex-wrap: wrap; justify-content: flex-end; }
.req { counter-reset: req; display: grid; gap: 10px; }
.req li { counter-increment: req; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; align-items: start; }
.req li::before { content: "R" counter(req, decimal-leading-zero); font-family: var(--mono); color: var(--accent); font-size: .8rem; padding-top: 2px; }
.req .pts { font-family: var(--mono); font-size: .75rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.versions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.versions div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .82rem; }
.versions b { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; font-weight: 500; }
.versions span { color: var(--muted); }
@media (max-width: 960px) { .scen-detail { grid-template-columns: 1fr; } .scen-side { position: static; } .versions { grid-template-columns: repeat(2, 1fr); } }
.locked { position: relative; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 22px; color: var(--muted); display: flex; gap: 14px; align-items: center; }
.locked svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }

/* ---------- Readiness check ---------- */
.quiz { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(22px, 3vw, 40px); }
.quiz-progress { height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 28px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .35s; }
.quiz-step { display: none; }
.quiz-step.on { display: block; animation: fade .3s ease; }
.quiz-q { font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -.015em; margin-bottom: 22px; line-height: 1.25; }
.quiz-count { font-family: var(--mono); font-size: .74rem; color: var(--dim); letter-spacing: .1em; margin-bottom: 10px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--fg); transition: border-color .15s, background .15s; font-size: .98rem; }
.opt:hover { border-color: var(--line-strong); }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt .k { font-family: var(--mono); font-size: .75rem; color: var(--dim); border: 1px solid var(--line-strong); border-radius: 5px; width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; }
.opt.sel .k { color: var(--accent); border-color: var(--accent); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.quiz-result { display: none; }
.quiz-result.on { display: block; animation: fade .4s ease; }
.result-level { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.03em; margin: 6px 0 10px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Booking stepper ---------- */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 28px; }
.stepper li { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-top: 10px; border-top: 3px solid var(--line); }
.stepper li.on { color: var(--fg); border-color: var(--accent); }
.stepper li.done { color: var(--muted); border-color: rgba(255,106,19,.45); }
.stepper li { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .stepper li span { display: none; } .stepper li { font-size: .58rem; letter-spacing: .02em; } }
.book-step { display: none; }
.book-step.on { display: block; animation: fade .3s ease; }
.pick { display: grid; gap: 10px; }
.pick label { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.pick label:hover { border-color: var(--line-strong); }
.pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.pick b { display: block; font-weight: 600; }
.pick small { color: var(--muted); font-size: .86rem; display: block; margin-top: 2px; }
.pick .side { font-family: var(--mono); font-size: .76rem; color: var(--muted); text-align: right; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .8em 1em; color: var(--fg); font: inherit; font-size: .96rem;
  transition: border-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .err { color: var(--down); font-size: .8rem; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--down); }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); align-items: flex-start; }
.consent input { accent-color: var(--accent); margin-top: 3px; }
.consent.invalid, .consent.invalid a { color: var(--down) !important; }
.section--paper .field input, .section--paper .field select, .section--paper .field textarea { background: #fff; border-color: var(--paper-line); color: var(--paper-text); }
.section--paper .field label, .section--paper .consent { color: var(--paper-muted); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: .85em 1.2em; color: var(--fg); font: inherit; font-size: .95rem; }
.inline-form input:focus { outline: none; border-color: var(--accent); }
.form-success { display: none; padding: 22px; border: 1px solid rgba(47,212,181,.45); background: rgba(47,212,181,.07); border-radius: 12px; }
.form-success.on { display: block; animation: fade .3s ease; }
.form-success b { color: var(--up); display: block; margin-bottom: 4px; }
.form-success p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; max-width: 72ch; }
.section--paper .faq, .section--paper .faq details { border-color: var(--paper-line); }
.section--paper .faq details p { color: var(--paper-muted); }

/* ---------- Misc blocks ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row > div { padding: 26px 20px; border-right: 1px solid var(--line); }
.stat-row > div:last-child { border-right: 0; }
.stat-row .v { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.stat-row .k { font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat-row > div:nth-child(2) { border-right: 0; } .stat-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.quote-block { border-left: 3px solid var(--accent); padding: 6px 0 6px 24px; font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; }

.cta-band { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(40px, 6vw, 80px); background: radial-gradient(ellipse at 85% 0%, rgba(255,106,19,.28), transparent 55%), var(--panel); border: 1px solid var(--line-strong); }
.cta-band h2 { max-width: 18ch; }
.cta-band .lead { margin-bottom: 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: rgba(255,255,255,.02); }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--warn); }

.challenge { background: #070A11; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; }
.challenge-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.challenge-head .timer { color: var(--warn); font-size: .95rem; }
.challenge pre { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: .8rem; line-height: 1.65; color: #C7D0DE; overflow-x: auto; }
.challenge pre .hl { color: var(--accent); }
.challenge pre .c { color: var(--dim); }
.challenge-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.article-card { display: flex; flex-direction: column; gap: 12px; }
.article-card .kind { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.article-card h3 { font-size: 1.15rem; margin: 0; }
.article-card p { font-size: .92rem; flex: 1; }
.article-card .rt { font-family: var(--mono); font-size: .74rem; color: var(--dim); }

.division { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--paper-line); align-items: baseline; }
.division .n { font-family: var(--mono); color: #D4520A; }
.division h3 { margin: 0 0 4px; }
.division p { margin: 0; color: var(--paper-muted); }
@media (max-width: 600px) { .division { grid-template-columns: 50px 1fr; } .division .tag { grid-column: 2; justify-self: start; } }

.phase { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.phase > div { border-top: 3px solid var(--line-strong); padding-top: 14px; }
.phase > div.now { border-color: var(--accent); }
.phase .p { font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .1em; }
.phase h4 { margin: 6px 0 4px; font-size: 1rem; }
.phase p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.45; }
.phase .now .p { color: var(--accent); }
@media (max-width: 900px) { .phase { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

.todo { outline: 1px dashed var(--warn); outline-offset: 4px; border-radius: 4px; }

.ecosystem { width: 100%; height: auto; }
.ecosystem .box { fill: var(--panel); stroke: var(--line-strong); }
.ecosystem .box.hot { stroke: var(--accent); fill: rgba(255,106,19,.08); }
.ecosystem .t { fill: var(--fg); font-family: var(--display); font-weight: 650; font-size: 17px; }
.ecosystem .s { fill: var(--muted); font-family: var(--font); font-size: 12.5px; }
.ecosystem .m { fill: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.ecosystem .wire { stroke: rgba(255,255,255,.25); stroke-width: 1.4; fill: none; }
.ecosystem .wire.hot { stroke: var(--accent); }
.ecosystem .flow { fill: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: #070A11; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h5 { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; font-weight: 500; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--fg); }
.footer-about p { color: var(--muted); margin: 18px 0 20px; max-width: 34ch; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--dim); font-size: .8rem; }
.footer-bottom p { margin: 0; max-width: 80ch; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #140700; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.spacer { height: clamp(24px, 3vw, 40px); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
