/* ==========================================================================
   REACTR — control-room edition
   One light source: the core. Deep cool graphite, Cherenkov blue, rare heat.
   Type: Hanken Grotesk (display + body) · IBM Plex Mono (instruments)
   ========================================================================== */

:root {
  /* --- tonal graphite (blue-leaning, lit from the core) --- */
  --bg-0:      #05080b;
  --bg:        #070b0f;
  --bg-2:      #0a0f14;
  --surface:   #0c1218;
  --surface-2: #101820;
  --surface-3: #16212b;

  /* --- hairlines --- */
  --line:        rgba(132, 170, 198, 0.08);
  --line-soft:   rgba(132, 170, 198, 0.05);
  --line-2:      rgba(42, 212, 255, 0.16);
  --line-heat:   rgba(255, 122, 46, 0.22);

  /* --- ink (cool instrument off-white) --- */
  --text:      #e9f2f7;
  --text-dim:  #9fb1bd;
  --text-mute: #5e6f7c;
  --text-faint:#3b4853;

  /* --- Cherenkov (the only bright thing, mostly) --- */
  --core:       #2ad4ff;
  --core-bright:#9cefff;
  --core-deep:  #0a86d8;
  --core-soft:  rgba(42, 212, 255, 0.09);
  --core-glow:  rgba(42, 212, 255, 0.40);

  /* --- heat: rare, precious — only for burn / danger --- */
  --heat:      #ff7a2e;
  --heat-bright:#ffb070;
  --heat-soft: rgba(255, 122, 46, 0.09);

  --pos: #3fe0a4;
  --neg: #ff5d6c;

  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --maxw: 1200px;
  --gut: clamp(22px, 5vw, 72px);
  --r: 3px;
  --r-lg: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* ---- the core's light, bled across the whole page (fixed) ---- */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 72% 8%,  rgba(42,212,255,0.14), transparent 70%),
    radial-gradient(50% 45% at 50% 0%,  rgba(42,212,255,0.06), transparent 75%),
    radial-gradient(70% 60% at 8% 120%, rgba(255,122,46,0.035), transparent 70%),
    radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
/* fine film grain — kills banding, adds expense */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--core); color: #021016; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); position: relative; z-index: 2; }

.section { padding-block: clamp(84px, 12vw, 168px); position: relative; z-index: 2; }
.section + .section::before {
  content: ''; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

/* ---- eyebrow: instrument channel label ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--core);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--core); box-shadow: 0 0 10px var(--core);
}

.section-head { max-width: 660px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em;
}
.section-sub { color: var(--text-dim); font-size: 1.05rem; margin-top: 20px; max-width: 54ch; line-height: 1.65; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap; position: relative;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(180deg, #5fe2ff, var(--core) 40%, var(--core-deep));
  color: #02141c; font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 40px -14px var(--core-glow), 0 0 0 1px rgba(42,212,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 18px 50px -14px var(--core-glow), 0 0 0 1px var(--core); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(42,212,255,0.02); }
.btn-ghost:hover { border-color: var(--core); color: var(--core-bright); background: var(--core-soft); transform: translateY(-2px); box-shadow: 0 14px 40px -18px var(--core-glow); }
.btn-sm { padding: 10px 17px; font-size: 0.71rem; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100; height: 68px;
  display: flex; align-items: center;
  background: rgba(5,8,11,0.55); backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .4s, background .4s;
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(5,8,11,0.8); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg, .logo img { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(42,212,255,0.4)); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.01em; }
.logo-text b { color: var(--core); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.04em;
  color: var(--text-dim); text-transform: uppercase; transition: color .25s; position: relative; padding: 4px 0;
}
.nav-link:hover { color: var(--text); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0; background: var(--core); box-shadow: 0 0 8px var(--core-glow); transition: width .3s var(--ease); }
.nav-link:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 18px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute); padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px;
}
.status-pill .led { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 8px var(--pos); animation: blink 2.4s var(--ease) infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hamburger { display: none; color: var(--text); padding: 8px; }
.hamburger svg { width: 24px; height: 24px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding-top: 150px; padding-bottom: 110px; overflow: visible; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 0.71rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--core); margin-bottom: 30px; padding: 8px 15px;
  border: 1px solid var(--line-2); border-radius: 100px; background: var(--core-soft);
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--core); box-shadow: 0 0 12px var(--core); animation: blink 1.8s infinite; }

.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.9rem, 7.4vw, 5.6rem); line-height: 0.93; letter-spacing: -0.045em;
  margin-bottom: 26px;
}
.hero h1 .burn { color: var(--heat); text-shadow: 0 0 50px rgba(255,122,46,0.45); }
.hero-lead { font-size: 1.16rem; color: var(--text-dim); max-width: 46ch; margin-bottom: 38px; line-height: 1.62; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.ca-block {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px 11px 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); font-family: var(--font-mono);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.ca-block .lbl { font-size: 0.6rem; letter-spacing: 0.2em; color: var(--core); text-transform: uppercase; }
.ca-block .addr { font-size: 0.76rem; color: var(--text-dim); word-break: break-all; }
.ca-copy {
  border: 1px solid var(--line-2); color: var(--core); font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 14px; border-radius: 3px;
  transition: .25s; background: transparent;
}
.ca-copy:hover { background: var(--core-soft); border-color: var(--core); color: var(--core-bright); }

/* reactor core visual */
.reactor { position: relative; aspect-ratio: 1; max-width: 500px; margin-inline: auto; width: 100%; }
.reactor canvas { width: 100%; height: 100%; }
.reactor-readout {
  position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  color: var(--text-mute); text-align: center; white-space: nowrap;
  text-transform: uppercase;
}
.reactor-readout b { color: var(--core); }

/* ==========================================================================
   FUEL CYCLE
   ========================================================================== */
.cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .cycle-step, .gauge, .pos-card, .dcard, .panel, .why-card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.035) inset, 0 30px 60px -40px rgba(0,0,0,0.8);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.card::before, .cycle-step::before, .gauge::before, .pos-card::before, .dcard::before, .panel::before, .why-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, transparent, rgba(42,212,255,0.3), transparent); opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover, .cycle-step:hover, .gauge:hover, .pos-card:hover, .dcard:hover, .panel:hover, .why-card:hover {
  transform: translateY(-4px); border-color: var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 40px 70px -42px rgba(0,0,0,0.9), 0 0 50px -28px var(--core-glow);
}
.card:hover::before, .cycle-step:hover::before, .gauge:hover::before, .pos-card:hover::before, .dcard:hover::before, .panel:hover::before, .why-card:hover::before { opacity: 1; }
/* panels in audience don't lift (they're large/static) */
.panel:hover { transform: none; }

.cycle-step { padding: 34px 30px 36px; }
.cycle-step .idx {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--core); letter-spacing: 0.2em;
  display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
}
.cycle-step .idx .ring {
  width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; background: var(--core-soft); box-shadow: 0 0 24px -10px var(--core-glow);
}
.cycle-step .idx .ring svg { width: 17px; height: 17px; }
.cycle-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.cycle-step p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* ==========================================================================
   CORE ARCHITECTURE
   ========================================================================== */
.arch { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.arch-flow { display: flex; flex-direction: column; gap: 14px; }
.flow-node { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); position: relative; overflow: hidden; }
.flow-node.input { border-color: var(--line-heat); background: linear-gradient(180deg, rgba(255,122,46,0.05), var(--surface)); }
.flow-node .tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 8px; }
.flow-node.input .tag { color: var(--heat); }
.flow-node h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.flow-node .pct { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--core); letter-spacing: -0.03em; line-height: 1; }
.flow-conn { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--text-faint); font-family: var(--font-mono); font-size: 0.9rem; height: 8px; }
.flow-conn .pipe { width: 1px; height: 22px; background: linear-gradient(var(--core), transparent); position: relative; overflow: visible; }
.flow-conn .pipe::after {
  content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--core); box-shadow: 0 0 8px var(--core); animation: flow-down 1.6s linear infinite;
}
@keyframes flow-down { 0% { top: -2px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 22px; opacity: 0; } }
.flow-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow-node small { display: block; color: var(--text-dim); font-size: 0.82rem; margin-top: 8px; font-family: var(--font-body); line-height: 1.5; }
.arch-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; margin-bottom: 18px; letter-spacing: -0.025em; }
.arch-copy p { color: var(--text-dim); margin-bottom: 18px; line-height: 1.65; }
.arch-copy ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.arch-copy li { display: flex; gap: 13px; color: var(--text-dim); font-size: 0.96rem; line-height: 1.55; }
.arch-copy li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 9px; background: var(--core); box-shadow: 0 0 8px var(--core-glow); }

/* ==========================================================================
   TELEMETRY
   ========================================================================== */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gauge { padding: 30px 26px; overflow: hidden; }
.gauge .g-lbl { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.gauge .g-val { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -0.03em; }
.gauge .g-val .pre { color: var(--text-dim); font-weight: 600; }
.gauge.heat .g-val { color: var(--heat); }
.gauge.up .g-val { color: var(--pos); }
.gauge .g-sub { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-faint); margin-top: 12px; letter-spacing: 0.03em; }

/* ==========================================================================
   REACTOR LOG
   ========================================================================== */
.log-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 14px; margin-bottom: 44px; }
.pos-card { padding: 20px 22px; }
.pos-card .pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pos-card .pc-sym { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.badge { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.badge.long { color: var(--pos); background: rgba(63,224,164,0.1); }
.badge.short { color: var(--heat); background: var(--heat-soft); }
.pos-card .pc-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); padding: 4px 0; }
.pos-card .pc-row b { color: var(--text); font-weight: 500; }
.pnl-pos { color: var(--pos); } .pnl-neg { color: var(--neg); }

.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
table.log { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.8rem; }
table.log th { text-align: left; padding: 15px 20px; background: rgba(255,255,255,0.012); color: var(--text-mute); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.64rem; }
table.log td { padding: 13px 20px; border-top: 1px solid var(--line-soft); color: var(--text-dim); }
table.log tr:hover td { background: rgba(42,212,255,0.025); }
.t-pos { color: var(--pos); } .t-neg { color: var(--neg); } .t-link { color: var(--core); }
.t-link:hover { color: var(--core-bright); }

/* ==========================================================================
   ACTIVE REACTIONS
   ========================================================================== */
.dash-controls { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.input, select.input {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--text); font-family: var(--font-mono); font-size: 0.84rem; padding: 13px 16px; transition: border-color .25s, box-shadow .25s;
}
.input:focus { outline: none; border-color: var(--core); box-shadow: 0 0 0 3px var(--core-soft); }
.input::placeholder { color: var(--text-mute); }
#dash-search { flex: 1; min-width: 200px; }
select.input { cursor: pointer; }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(282px,1fr)); gap: 14px; }
.dcard { padding: 22px; cursor: pointer; }
.dcard .dc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.dcard .dc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.dcard .dc-link { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-faint); margin-top: 3px; }
.dcard .dc-stat { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.78rem; padding: 5px 0; color: var(--text-dim); }
.dcard .dc-stat b { color: var(--text); font-weight: 500; }
.dot-status { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.dot-active { background: var(--pos); box-shadow: 0 0 9px var(--pos); }
.dot-pending { background: var(--heat); box-shadow: 0 0 9px var(--heat); }
.demo-badge { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; color: var(--heat); border: 1px solid var(--line-heat); padding: 3px 9px; border-radius: 3px; text-transform: uppercase; }

/* ==========================================================================
   LAUNCH WIZARD
   ========================================================================== */
.wizard { max-width: 740px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 50px 90px -50px rgba(0,0,0,0.9); }
.wiz-progress { height: 2px; background: var(--surface-3); }
.wiz-bar { height: 100%; width: 25%; background: linear-gradient(90deg, var(--core-deep), var(--core)); box-shadow: 0 0 14px var(--core-glow); transition: width .45s var(--ease); }
.wiz-dots { display: flex; gap: 10px; padding: 22px 30px 0; flex-wrap: wrap; }
.wiz-dot { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); display: flex; align-items: center; gap: 7px; }
.wiz-dot .n { width: 19px; height: 19px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 0.58rem; transition: .3s; }
.wiz-dot.active { color: var(--core); } .wiz-dot.active .n { border-color: var(--core); color: var(--core); box-shadow: 0 0 16px -4px var(--core-glow); }
.wiz-dot.done .n { background: var(--core); color: #02141c; border-color: var(--core); }
.wiz-body { padding: 32px 34px 36px; }
.wiz-panel { display: none; } .wiz-panel.active { display: block; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-panel h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; margin-bottom: 9px; letter-spacing: -0.025em; }
.wiz-panel .hint { color: var(--text-dim); font-size: 0.93rem; margin-bottom: 24px; }

.tok-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px,1fr)); gap: 10px; max-height: 322px; overflow-y: auto; padding-right: 6px; }
.tok-grid::-webkit-scrollbar { width: 6px; } .tok-grid::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.tok { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 15px; background: var(--bg-2); transition: .3s var(--ease); text-align: left; }
.tok:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tok.sel { border-color: var(--core); background: var(--core-soft); box-shadow: 0 0 0 1px var(--core), 0 0 30px -12px var(--core-glow); }
.tok .sym { font-family: var(--font-display); font-weight: 700; font-size: 0.96rem; }
.tok .nm { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-mute); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tok .lev { font-family: var(--font-mono); font-size: 0.58rem; color: var(--core); margin-top: 8px; letter-spacing: 0.04em; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.seg button { padding: 17px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--text-dim); font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; transition: .3s var(--ease); }
.seg button.on { background: linear-gradient(180deg, var(--core), var(--core-deep)); color: #02141c; font-weight: 600; border-color: var(--core); box-shadow: 0 0 26px -10px var(--core-glow); }
.seg button:disabled { opacity: 0.35; }
.seg button small { display: block; font-size: 0.56rem; margin-top: 4px; opacity: 0.7; }

.lev-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 22px; }
.lev { padding: 13px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--text-dim); font-family: var(--font-mono); font-size: 0.8rem; transition: .25s var(--ease); }
.lev:not([disabled]):hover { border-color: var(--line-2); color: var(--text); }
.lev.on { background: var(--core-soft); border-color: var(--core); color: var(--core-bright); box-shadow: 0 0 0 1px var(--core); }
.sel-readout { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-mute); letter-spacing: 0.02em; }
.sel-readout b { color: var(--core); }

.field { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); font-family: var(--font-mono); font-size: 0.9rem; padding: 15px 17px; transition: border-color .25s, box-shadow .25s; }
.field:focus { outline: none; border-color: var(--core); box-shadow: 0 0 0 3px var(--core-soft); }

.setup-step { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.setup-step:last-child { border-bottom: 0; }
.setup-step .sn { flex: none; width: 26px; height: 26px; border-radius: 5px; background: var(--core-soft); color: var(--core); font-family: var(--font-mono); font-size: 0.72rem; display: grid; place-items: center; border: 1px solid var(--line-2); }
.setup-step .st { color: var(--text-dim); font-size: 0.93rem; line-height: 1.55; }
.setup-step .st b { color: var(--text); font-weight: 600; }
.wallet-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.wallet-row code { flex: 1; min-width: 180px; background: var(--bg); border: 1px solid var(--line); padding: 10px 13px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); word-break: break-all; }

.verify-term { min-height: 142px; background: #04070a; border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.85; margin: 20px 0; box-shadow: 0 0 0 1px rgba(42,212,255,0.05) inset; }
.verify-term .vline { white-space: pre-wrap; }
.wiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }

/* ==========================================================================
   AUDIENCE / WHY / FAQ / RISK
   ========================================================================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 38px; }
.panel .p-eyebrow { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--core); margin-bottom: 16px; }
.panel.heat .p-eyebrow { color: var(--heat); }
.panel h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; margin-bottom: 22px; letter-spacing: -0.025em; }
.panel ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.panel li { display: flex; gap: 13px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.5; }
.panel li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; background: var(--core); box-shadow: 0 0 8px var(--core-glow); }
.panel.heat li::before { background: var(--heat); box-shadow: 0 0 8px rgba(255,122,46,0.5); }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-card { padding: 34px; }
.why-card .wc-tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; color: var(--core); margin-bottom: 16px; display: block; }
.why-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.why-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

.faq-list { max-width: 840px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; color: var(--text); text-align: left; padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; transition: color .2s; }
.faq-q:hover { color: var(--core-bright); }
.faq-q .ic { flex: none; width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; color: var(--core); transition: transform .35s var(--ease), background .25s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--core-soft); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { color: var(--text-dim); padding-bottom: 26px; font-size: 0.97rem; line-height: 1.65; max-width: 70ch; }

.risk { border: 1px solid var(--line-heat); border-radius: var(--r-lg); padding: clamp(30px, 4vw, 48px); background: linear-gradient(160deg, var(--heat-soft), transparent 60%); position: relative; overflow: hidden; }
.risk::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,122,46,0.4), transparent); }
.risk .r-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--heat); text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.risk h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; margin-bottom: 16px; letter-spacing: -0.025em; }
.risk p { color: var(--text-dim); max-width: 72ch; line-height: 1.65; }

/* ==========================================================================
   FOOTER + TICKER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding-block: 64px 40px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer .logo { margin-bottom: 18px; }
.footer .f-desc { color: var(--text-dim); font-size: 0.92rem; max-width: 36ch; margin-bottom: 20px; line-height: 1.6; }
.footer .f-col h5 { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.footer .f-col a { display: block; color: var(--text-dim); font-size: 0.92rem; padding: 6px 0; transition: color .2s, padding-left .25s var(--ease); }
.footer .f-col a:hover { color: var(--core); padding-left: 5px; }
.f-wallet { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); flex-wrap: wrap; }
.f-wallet a { color: var(--core); word-break: break-all; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-faint); letter-spacing: 0.04em; }

.ticker { position: fixed; bottom: 0; inset-inline: 0; z-index: 90; height: 36px; background: rgba(4,7,10,0.82); backdrop-filter: blur(12px); border-top: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: scroll-x 44s linear infinite; padding-left: 100%; font-family: var(--font-mono); font-size: 0.72rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-100%); } }
.tk { display: inline-flex; gap: 8px; align-items: center; }
.tk .s { color: var(--text-mute); letter-spacing: 0.06em; }
.tk .p { color: var(--text-dim); }
.tk .up { color: var(--pos); } .tk .dn { color: var(--neg); }
body { padding-bottom: 36px; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(3,5,7,0.72); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fade .25s; }
.modal { width: 100%; max-width: 520px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9), 0 0 60px -30px var(--core-glow); }
.modal-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em; }
.modal-close { color: var(--text-mute); font-size: 1.5rem; line-height: 1; transition: color .2s; }
.modal-close:hover { color: var(--text); }
.modal-banner { padding: 15px 28px; font-family: var(--font-mono); font-size: 0.8rem; display: flex; gap: 10px; align-items: center; letter-spacing: 0.04em; }
.modal-banner.long { background: rgba(63,224,164,0.08); color: var(--pos); }
.modal-banner.short { background: var(--heat-soft); color: var(--heat); }
.modal-body { padding: 24px 28px 30px; }
.m-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.84rem; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.m-row:last-child { border-bottom: 0; }
.m-row .k { color: var(--text-mute); } .m-row .v { color: var(--text); }
.m-row .v.pos { color: var(--pos); } .m-row .v.neg { color: var(--neg); }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast-wrap { position: fixed; bottom: 54px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line-2); border-left: 2px solid var(--core); border-radius: var(--r); padding: 14px 19px; font-family: var(--font-mono); font-size: 0.79rem; color: var(--text); box-shadow: 0 20px 50px -16px rgba(0,0,0,0.85); animation: toast-in .3s var(--ease); max-width: 320px; }
.toast.heat { border-left-color: var(--heat); }
.toast.bad { border-left-color: var(--neg); }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .reactor { max-width: 380px; order: -1; }
  .arch { grid-template-columns: 1fr; }
  .gauges { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .header-right .btn, .status-pill { display: none; }
  .hamburger { display: block; }
  .cycle, .two-col, .why-grid { grid-template-columns: 1fr; }
  .lev-grid { grid-template-columns: repeat(3,1fr); }
  .tok-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .mobile-nav.open { display: flex; }
}
.mobile-nav { display: none; position: fixed; top: 68px; inset-inline: 0; z-index: 99; background: rgba(7,11,15,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line-2); flex-direction: column; padding: 14px var(--gut) 24px; }
.mobile-nav a { padding: 15px 0; font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-dim); border-bottom: 1px solid var(--line-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.mobile-nav .btn { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--core); outline-offset: 3px; border-radius: 2px; }
