:root {
  --bg: #05070d;
  --bg-2: #080b14;
  --panel: #0c1019;
  --panel-2: #111623;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #c9d0dd;
  --strong: #f2f4f8;
  --muted: #8892a6;
  --faint: #5d6679;
  --accent: #3d6bff;
  --accent-2: #6f93ff;
  --accent-text: #9bb5ff;
  --up: #12b394;
  --down: #f2495c;
  --heat: linear-gradient(90deg, #0a1a40, #16469a, #3484d6, #96d6f0, #ecedaa, #f7c842, #f38028, #e83028);
  --sans: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', Consolas, monospace;
  --maxw: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(61, 107, 255, 0.45); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 7, 13, 0.82); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--strong); letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); margin-left: 12px; }
.nav-links a:hover { color: var(--strong); }
.nav .spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  font: 500 14.5px var(--sans); cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 30px -8px rgba(61, 107, 255, 0.7); }
.btn-primary:hover { background: #4d78ff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 12px 36px -8px rgba(61, 107, 255, 0.85); }
.btn-ghost { border-color: var(--line-2); color: var(--strong); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; }
.hero-canvas canvas { width: 100%; height: 100%; display: block; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,7,13,0.97) 0%, rgba(5,7,13,0.9) 30%, rgba(5,7,13,0.45) 58%, rgba(5,7,13,0.15) 100%),
    linear-gradient(180deg, rgba(5,7,13,0.6) 0%, rgba(5,7,13,0) 18%, rgba(5,7,13,0) 70%, var(--bg) 100%);
}
.hero-content { position: relative; flex: 1; display: flex; align-items: center; padding: 120px 0 90px; pointer-events: none; }
.hero-content .wrap { width: 100%; }
.hero-content a, .hero-content button { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow .live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 8px; border: 1px solid rgba(18,179,148,0.35); border-radius: 99px; color: #5be0bf; background: rgba(18,179,148,0.08); }
.eyebrow .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(18,179,148,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,179,148,0.55); } 70% { box-shadow: 0 0 0 9px rgba(18,179,148,0); } 100% { box-shadow: 0 0 0 0 rgba(18,179,148,0); } }
.hero h1 {
  margin: 22px 0 22px; max-width: 760px;
  font-size: clamp(44px, 6.6vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; color: var(--strong);
}
.hero h1 .grad { background: linear-gradient(92deg, #a9c1ff 0%, #6f93ff 35%, #f7c842 75%, #f38028 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { max-width: 590px; font-size: clamp(16.5px, 1.45vw, 19px); color: #aeb7c8; margin: 0 0 34px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 28px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; max-width: 520px; }
.hero .note svg { flex: none; width: 16px; height: 16px; color: var(--accent-text); }
.hero-ticker { position: relative; border-top: 1px solid var(--line); background: rgba(5,7,13,0.7); backdrop-filter: blur(8px); }
.hero-ticker .wrap { display: flex; gap: 34px; height: 46px; align-items: center; font: 12.5px var(--mono); color: var(--muted); overflow: hidden; white-space: nowrap; }
.hero-ticker b { color: var(--strong); font-weight: 500; }
.hero-ticker .up { color: var(--up); } .hero-ticker .down { color: var(--down); }

/* ------------------------------------------------------------------ showcase window */
.showcase { position: relative; padding: 40px 0 40px; perspective: 1800px; }
.window {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0a0d14;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6), 0 30px 80px -40px rgba(61,107,255,0.45);
}
.window .bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: #0d111b; border-bottom: 1px solid rgba(255,255,255,0.06); font: 12px var(--sans); color: var(--muted); }
.window .bar .dots { display: flex; gap: 7px; margin-right: 10px; }
.window .bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #262c3a; }
.window .bar .title { flex: 1; text-align: center; margin-right: 70px; }
.showcase .window { transform: rotateX(14deg) scale(0.94); transform-origin: 50% 0; transition: transform 0.1s linear; }
.showcase-glow { position: absolute; left: 10%; right: 10%; top: 20%; height: 60%; background: radial-gradient(closest-side, rgba(61,107,255,0.28), transparent); filter: blur(40px); pointer-events: none; }

/* ------------------------------------------------------------------ stats */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 30px 20px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .v { font: 600 clamp(26px, 2.6vw, 36px) var(--sans); letter-spacing: -0.03em; color: var(--strong); font-variant-numeric: tabular-nums; }
.stat .k { font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 4px; }

/* ------------------------------------------------------------------ sections */
section { position: relative; }
.sec { padding: 130px 0; }
.sec-head { max-width: 780px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { font: 500 12.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); display: flex; align-items: center; gap: 10px; }
.sec-head.center .kicker { justify-content: center; }
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--heat); border-radius: 2px; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 600; color: var(--strong); margin: 18px 0 20px; }
h2 .dim { color: #687389; }
.sec-head p { font-size: 18px; color: #a3adbf; margin: 0; }
h3 { font-size: 21px; letter-spacing: -0.01em; font-weight: 600; color: var(--strong); margin: 0 0 8px; }

/* ------------------------------------------------------------------ layers explainer */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.layer { background: var(--bg-2); padding: 30px 30px 32px; }
.layer .ill { height: 150px; margin: -6px -6px 24px; border-radius: 8px; background: #070a12; border: 1px solid var(--line); overflow: hidden; }
.layer .ill svg { width: 100%; height: 100%; }
.layer .tag { font: 500 11.5px var(--mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.layer p { margin: 0; color: #9da7b9; font-size: 15px; }
.layers-foot { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }
.layers-foot b { color: var(--strong); font-weight: 500; }

/* ------------------------------------------------------------------ demo */
.demo-sec { background: radial-gradient(1200px 600px at 50% 0%, rgba(61,107,255,0.08), transparent 70%); }
.demo-shell { display: grid; grid-template-columns: 1fr 320px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; background: #070a12; box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9), 0 30px 90px -50px rgba(61,107,255,0.5); }
.demo-main { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #0b0f19; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; }
.seg button { font: 500 13px var(--sans); color: var(--muted); background: transparent; border: 0; padding: 7px 13px; cursor: pointer; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--strong); background: rgba(255,255,255,0.04); }
.seg button.on { color: #fff; background: rgba(61,107,255,0.22); }
.seg.small button { font: 500 12px var(--mono); padding: 6px 10px; }
.demo-bar .grow { flex: 1; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); width: 14px; height: 14px; margin: 0; }
.demo-status { font: 12px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.demo-status .pill { padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 11px; letter-spacing: 0.05em; }
.demo-status .pill.live { color: #5be0bf; border-color: rgba(18,179,148,0.4); }
.demo-status .pill.sim { color: #f7c842; border-color: rgba(247,200,66,0.4); }
.demo-canvas { position: relative; height: 620px; }
.demo-canvas canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.demo-hint { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); padding: 7px 12px; border-radius: 6px; background: rgba(8,11,20,0.9); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text); pointer-events: none; transition: opacity 0.3s; white-space: nowrap; }
.demo-canvas.active .demo-hint { opacity: 0; }
.demo-side { padding: 26px 24px; background: #0a0d16; display: flex; flex-direction: column; gap: 18px; font-size: 14.5px; }
.demo-side h3 { font-size: 18px; }
.demo-side p { margin: 0; color: #9da7b9; }
.demo-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.demo-side li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: #a8b1c2; font-size: 14px; line-height: 1.5; }
.demo-side li i { width: 12px; height: 12px; border-radius: 3px; margin-top: 5px; }
.demo-side .scale { height: 8px; border-radius: 4px; background: var(--heat); }
.demo-side .scale-l { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); margin-top: 6px; }
.demo-side .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.demo-caption { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ feature blocks */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .f-media { order: -1; }
.feature + .feature { margin-top: 120px; }
.f-text h2 { font-size: clamp(30px, 3.4vw, 46px); }
.f-text > p { color: #a3adbf; font-size: 17px; margin: 0 0 26px; }
.f-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.f-list li { padding: 14px 0 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: color 0.2s; }
.f-list li .t { display: flex; align-items: center; justify-content: space-between; color: var(--strong); font-weight: 500; font-size: 15.5px; }
.f-list li .t::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(-45deg); transition: transform 0.2s; }
.f-list li .d { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; color: #97a1b4; font-size: 14.5px; }
.f-list li .d > div { overflow: hidden; }
.f-list li.on .d { grid-template-rows: 1fr; }
.f-list li.on .d > div { padding-top: 8px; }
.f-list li.on .t { color: #fff; }
.f-list li.on .t::after { transform: rotate(45deg); border-color: var(--accent-text); }
.f-list li:not(.on) .t { color: #b9c1cf; }
.f-list li:hover .t { color: #fff; }
.f-media { position: relative; min-width: 0; }
.f-media .window { aspect-ratio: 16 / 9.34; }
.f-media .window .stage { position: absolute; inset: 34px 0 0 0; }
.f-media .window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 0.5s ease; cursor: zoom-in; }
.f-media .window img.on { opacity: 1; }
.f-media .cap { margin-top: 14px; font-size: 13.5px; color: var(--muted); min-height: 2.8em; }
.f-media .cap b { color: var(--text); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font: 12px var(--mono); padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: #a8b1c2; }

/* ------------------------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #0c111c, #090c15); overflow: hidden; display: flex; flex-direction: column; }
.card .shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.6s ease; }
.card:hover .shot img { transform: scale(1.03); }
.card .body { padding: 22px 24px 24px; }
.card .body p { margin: 0; font-size: 14.5px; color: #98a2b5; }
.card .label { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }

/* ------------------------------------------------------------------ tech */
.tech { background: var(--bg-2); border-block: 1px solid var(--line); }
.arch { border: 1px solid var(--line); border-radius: 14px; background: #070a12; padding: 30px; overflow-x: auto; }
.arch svg { width: 100%; min-width: 860px; height: auto; display: block; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 18px; }
.tech-grid > div { background: var(--bg-2); padding: 26px 26px 28px; }
.tech-grid h4 { margin: 0 0 8px; font-size: 16px; color: var(--strong); font-weight: 600; }
.tech-grid p { margin: 0; font-size: 14.5px; color: #98a2b5; }
.tech-grid code, .inline-code { font: 12.5px var(--mono); color: var(--accent-text); background: rgba(61,107,255,0.1); padding: 1px 5px; border-radius: 4px; }
.code-card { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.code { border: 1px solid var(--line); border-radius: 14px; background: #070a12; overflow: hidden; }
.code .hd { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.code pre { margin: 0; padding: 18px 18px 20px; font: 13px/1.65 var(--mono); color: #c3cad8; overflow-x: auto; }
.code .k { color: #9b8cff; } .code .s { color: #7ad3b5; } .code .c { color: #5d6679; } .code .n { color: #f7c842; } .code .f { color: #8fb2ff; }

/* ------------------------------------------------------------------ cta */
.final { text-align: center; padding: 150px 0 140px; overflow: hidden; }
.final .logo-big { width: 84px; height: 84px; margin: 0 auto 30px; }
.final h2 { font-size: clamp(42px, 6vw, 80px); }
.final p { color: #a3adbf; font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.final .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final .req { margin-top: 24px; font: 12.5px var(--mono); color: var(--faint); }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 13px; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(3,4,8,0.92); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; flex-direction: column; gap: 16px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0,0,0,0.8); }
.lb .lb-cap { color: var(--text); font-size: 14px; max-width: 900px; text-align: center; }

/* ------------------------------------------------------------------ reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; } .rv.d2 { transition-delay: 0.16s; } .rv.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .showcase .window { transform: none; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .stats .wrap { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-main { border-right: 0; }
  .demo-side { border-top: 1px solid var(--line); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .f-media { order: 0; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .code-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 90px 0; }
  .layers { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); padding: 20px 4px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line) !important; padding-left: 16px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .demo-canvas { height: 460px; }
  .bento { grid-template-columns: 1fr; }
  .c2, .c3, .c4, .c6 { grid-column: auto; }
  .tech-grid { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,7,13,0.75) 0%, rgba(5,7,13,0.85) 60%, var(--bg) 100%); }
  .nav .btn-label { display: none; }
  .window .bar .title { margin-right: 0; }
  .lb { padding: 12px; }
}

.grad-text, .hero h1 .grad { background: linear-gradient(92deg, #a9c1ff 0%, #6f93ff 35%, #f7c842 75%, #f38028 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-canvas::after { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 500px at 75% 45%, transparent, rgba(5,7,13,0.35)); pointer-events: none; }

/* ------------------------------------------------------------------ story (scroll wipe) */
.story { height: 380vh; position: relative; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: 84px 0 22px; gap: 18px; }
.story-head h2 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 54px); }
.story-stage { flex: 1; min-height: 0; width: 100%; }
.story-frame { position: relative; height: 100%; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; background: #0b0e15; box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9), 0 30px 90px -60px rgba(61,107,255,0.5); }
.story-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: ew-resize; touch-action: pan-y; }
.story-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { display: flex; gap: 12px; opacity: 0.35; transition: opacity 0.4s; }
.step.on { opacity: 1; }
.step .n { font: 500 12px var(--mono); color: var(--accent-text); padding-top: 3px; }
.step p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #b4bccb; }
@media (max-width: 760px) {
  .story-steps { grid-template-columns: 1fr; gap: 6px; }
  .step { display: none; }
  .step.on { display: flex; }
  .story-sticky { padding-top: 76px; }
}
.story-sticky > .wrap { width: 100%; }

/* ------------------------------------------------------------------ mini terminal */
.demo-bar { gap: 8px; }
.term-logo { width: 30px; height: 30px; display: grid; place-items: center; border-right: 1px solid var(--line); margin-right: 2px; padding-right: 6px; }
.term-logo svg { width: 22px; height: 22px; }
.layer-btns { display: inline-flex; gap: 4px; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--line); }
.layer-btns button { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px var(--sans); color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.layer-btns button:hover { color: var(--strong); background: rgba(255,255,255,0.04); }
.layer-btns button.on { color: #fff; background: rgba(61,107,255,0.16); border-color: rgba(111,147,255,0.45); }
.layer-btns button:disabled { opacity: 0.35; cursor: default; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-heat { background: linear-gradient(180deg, #e83028, #f7c842 35%, #3484d6 70%, #0a1a40); }
.sw-bub { border-radius: 50%; background: conic-gradient(#16b98f 0 60%, #e8485b 0); }
.sw-cnd { background: linear-gradient(90deg, transparent 4px, #12b394 4px 8px, transparent 8px); border-radius: 0; }
.sw-fp { background: repeating-linear-gradient(180deg, rgba(18,179,148,.8) 0 2px, transparent 2px 3px, rgba(242,73,92,.8) 3px 5px, transparent 5px 6px); }
.demo-side { padding: 0; gap: 0; }
.ticket { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; background: #0b0f19; }
.tk-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.tk-head .mono { color: var(--strong); font-size: 13px; }
.tk-qty { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.tk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-btns button { height: 40px; border-radius: 7px; border: 0; font: 600 14px var(--sans); color: #fff; cursor: pointer; transition: filter 0.15s, transform 0.1s; }
.tk-btns button:active { transform: translateY(1px); }
.tk-btns .buy { background: #0f9f83; } .tk-btns .sell { background: #d93a4e; }
.tk-btns button:hover { filter: brightness(1.12); }
.tk-pos { font-size: 13px; color: #98a2b5; line-height: 1.5; min-height: 40px; }
.tk-pos .row { display: flex; justify-content: space-between; font: 12.5px var(--mono); color: var(--text); }
.tk-pos .pnl { font: 600 20px var(--mono); }
.tk-pos button { margin-top: 8px; width: 100%; height: 32px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--strong); font: 500 13px var(--sans); cursor: pointer; }
.tk-pos button:hover { background: rgba(255,255,255,0.05); }
.presets { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.presets span { width: 100%; font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.presets button { font: 500 12px var(--sans); color: #b9c1cf; background: rgba(255,255,255,0.03); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.presets button:hover, .presets button.on { color: #fff; border-color: rgba(111,147,255,0.6); background: rgba(61,107,255,0.15); }
.explain { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.explain h3 { font-size: 16px; margin: 0; }
.explain p { margin: 0; color: #9da7b9; font-size: 13.5px; }
.explain ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.explain li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; color: #a8b1c2; font-size: 13.5px; line-height: 1.45; }
.explain li i { width: 12px; height: 12px; border-radius: 3px; margin-top: 4px; }
.explain .scale { height: 7px; border-radius: 4px; background: var(--heat); }
.explain .scale-l { display: flex; justify-content: space-between; font: 10.5px var(--mono); color: var(--muted); margin-top: 5px; }
@media (max-width: 760px) { .layer-btns { border-left: 0; padding-left: 0; margin-left: 0; flex-wrap: wrap; } .term-logo { display: none; } }

/* animated punch line */
.punch { min-height: 1.06em; }
.punch .w { display: inline-block; white-space: pre; transition: opacity 0.55s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.6s ease; will-change: transform, opacity, filter; }
.punch .w.out { opacity: 0; transform: translateY(-0.28em); filter: blur(10px); }
.punch .w.pre { opacity: 0; transform: translateY(0.38em); filter: blur(12px); }
.punch .w.acc { background: linear-gradient(92deg, #a9c1ff 0%, #6f93ff 35%, #f7c842 75%, #f38028 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.punch-sub { transition: opacity 0.45s ease, filter 0.45s ease; }
.punch-sub.fade { opacity: 0; filter: blur(4px); }
.seg.views button { display: inline-flex; align-items: center; gap: 7px; }

/* ------------------------------------------------------------------ in development */
.dev { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; border-top: 1px solid var(--line); padding: 120px 0; }
.dev canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dev-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1100px 700px at 28% 50%, rgba(5,7,13,0.94) 0%, rgba(5,7,13,0.72) 45%, rgba(5,7,13,0.35) 100%),
              linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.dev-inner { position: relative; width: 100%; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.dev-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 20px; color: var(--strong); margin-bottom: 26px; }
.dev-brand svg { width: 40px; height: 40px; }
.dev-badge { display: inline-flex; align-items: center; gap: 9px; font: 500 12px var(--mono); letter-spacing: 0.1em; color: #f7c842; border: 1px solid rgba(247,200,66,0.4); background: rgba(247,200,66,0.08); border-radius: 99px; padding: 6px 13px 6px 11px; }
.dev-badge i { width: 7px; height: 7px; border-radius: 50%; background: #f7c842; animation: devpulse 1.8s infinite; }
@keyframes devpulse { 0% { box-shadow: 0 0 0 0 rgba(247,200,66,0.55); } 70% { box-shadow: 0 0 0 9px rgba(247,200,66,0); } 100% { box-shadow: 0 0 0 0 rgba(247,200,66,0); } }
.dev h2 { font-size: clamp(38px, 4.4vw, 66px); line-height: 1.02; margin: 22px 0 22px; }
.dev p { color: #aab3c4; font-size: 18px; max-width: 540px; margin: 0 0 12px; }
.dev .dev-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 32px; }
.dev .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dev .req { margin-top: 26px; font: 12.5px var(--mono); color: var(--faint); }
.dev-term { border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; background: rgba(8,11,19,0.86); backdrop-filter: blur(10px); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9), 0 30px 90px -60px rgba(61,107,255,0.6); }
.dev-term .bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: rgba(13,17,27,0.9); border-bottom: 1px solid rgba(255,255,255,0.06); font: 12px var(--sans); color: var(--muted); }
.dev-term .bar .dots { display: flex; gap: 7px; margin-right: 10px; }
.dev-term .bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #262c3a; }
.dev-term .bar .title { flex: 1; text-align: center; margin-right: 70px; }
.dev-term pre { margin: 0; padding: 22px 22px 24px; min-height: 360px; font: 13.5px/1.9 var(--mono); color: #c3cad8; white-space: pre-wrap; }
.dev-term .p { color: var(--accent-text); }
.dev-term .ok { color: var(--up); }
.dev-term .wip { color: #f7c842; }
.dev-term .todo { color: var(--faint); }
.dev-term .dim { color: var(--muted); }
.dev-term .pbar { display: inline-block; width: 120px; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.08); vertical-align: middle; margin-left: 10px; overflow: hidden; }
.dev-term .pbar b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3484d6, #f7c842); border-radius: 4px; transition: width 2.4s cubic-bezier(.2,.7,.2,1); }
.dev-term .cur { display: inline-block; width: 8px; height: 15px; background: var(--accent-text); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 1080px) { .dev-inner { grid-template-columns: 1fr; gap: 40px; } .dev-shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,7,13,0.82) 20%, rgba(5,7,13,0.82) 80%, var(--bg) 100%); } }
@media (max-width: 760px) { .dev { padding: 90px 0; } .dev-term pre { font-size: 12px; min-height: 0; } .dev-term .bar .title { margin-right: 0; } }

/* language switch */
.lang-sw { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; margin-right: 6px; }
.lang-sw button { font: 500 12px var(--mono); color: var(--muted); background: transparent; border: 0; padding: 6px 9px; cursor: pointer; }
.lang-sw button + button { border-left: 1px solid var(--line); }
.lang-sw button:hover { color: var(--strong); }
.lang-sw button.on { color: #fff; background: rgba(61,107,255,0.22); }
.demo-status .quiet { font: 500 11.5px var(--sans); color: #f7c842; background: rgba(247,200,66,0.08); border: 1px solid rgba(247,200,66,0.35); border-radius: 5px; padding: 3px 8px; cursor: pointer; }
.demo-status .quiet:hover { background: rgba(247,200,66,0.16); }
/* explicit stacking: the hero canvas is a composited layer (it fades on each replay loop) */
.hero-canvas { z-index: 0; }
.hero-shade { z-index: 1; }
.hero-content, .hero-ticker { z-index: 2; }
.dev canvas { z-index: 0; } .dev-shade { z-index: 1; } .dev-inner { z-index: 2; }
/* 5 tech cards: the last one spans the row's remaining width */
@media (min-width: 1081px) { .tech-grid > div:last-child { grid-column: span 2; } }
@media (min-width: 761px) and (max-width: 1080px) { .tech-grid > div:last-child { grid-column: span 2; } }
