/* ============================================================
   QUANTM — design system v3
   ============================================================ */
:root {
  --bg: #06080b;
  --bg-2: #0a0e13;
  --panel: #0d1219;
  --panel-2: #111823;
  --line: rgba(148, 180, 210, 0.10);
  --line-bright: rgba(148, 180, 210, 0.22);
  --text: #e8eef4;
  --text-dim: #93a4b5;
  --text-faint: #5c6b7a;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.14);
  --accent-2: #5b8cff;
  --danger: #ff5d5d;
  --warn: #ffc857;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 14px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* aurora backdrop */
body::before {
  content: ""; position: fixed; inset: -20%;
  background:
    radial-gradient(38% 30% at 18% 22%, rgba(0, 229, 160, 0.05), transparent 70%),
    radial-gradient(34% 28% at 82% 70%, rgba(91, 140, 255, 0.06), transparent 70%);
  pointer-events: none; z-index: 0;
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(3%, -3%) rotate(4deg); }
}
main, .footer, .nav { position: relative; z-index: 1; }

::selection { background: var(--accent); color: #04110c; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

.accent { color: var(--accent); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line-bright);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--text-dim);
  background: var(--panel);
}

/* ---------- boot sequence ---------- */
#boot {
  position: fixed; inset: 0; z-index: 700;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-box { width: min(420px, 84vw); font-family: var(--font-mono); }
.boot-logo {
  font-size: 42px; font-weight: 700; color: var(--text); margin-bottom: 22px;
}
.boot-logo span { color: var(--accent); animation: blink 1s steps(1) infinite; }
.boot-lines { min-height: 96px; font-size: 12.5px; color: var(--text-faint); line-height: 2; }
.boot-lines .ok { color: var(--accent); }
.boot-bar {
  height: 3px; background: rgba(148,180,210,0.1); border-radius: 2px;
  margin-top: 18px; overflow: hidden;
}
.boot-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
  transition: width 1.3s cubic-bezier(.2,.65,.3,1);
}

/* ---------- film grain ---------- */
.noise {
  position: fixed; inset: 0; z-index: 350; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 300; background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- section rail ---------- */
.rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 250; display: flex; flex-direction: column; gap: 16px;
}
.rail a {
  display: flex; align-items: center; gap: 10px; flex-direction: row-reverse;
  text-decoration: none;
}
.rail i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-faint); opacity: 0.5; display: block;
  transition: all .3s ease;
}
.rail span {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  opacity: 0; transform: translateX(6px); transition: all .25s ease;
  pointer-events: none;
}
.rail a:hover span { opacity: 1; transform: none; }
.rail a.is-active i {
  background: var(--accent); opacity: 1;
  box-shadow: 0 0 10px var(--accent);
  height: 22px; border-radius: 4px;
}
@media (max-width: 1320px) { .rail { display: none; } }

/* ---------- companion orb ---------- */
#companion {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 150;
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 400;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(0, 229, 160, 0.5);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  background: rgba(0, 229, 160, 0.08);
  border-color: var(--accent);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 8, 11, 0.75);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 20px;
  color: var(--text);
  border: 1px solid var(--line-bright); border-radius: 8px;
  padding: 2px 8px;
  background: var(--panel);
}
.logo-slash { color: var(--accent); }
.logo-text {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.22em;
  font-size: 14px; color: var(--text);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s ease; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cmdk-hint {
  display: flex; gap: 4px; align-items: center;
  background: transparent; border: none; cursor: pointer; padding: 4px;
}
@media (max-width: 860px) {
  .nav-links, .cmdk-hint { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-primary {
  background: var(--accent); color: #04110c;
  box-shadow: 0 0 0 rgba(0, 229, 160, 0);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(0, 229, 160, 0.35); }
.btn-ghost {
  color: var(--text); border-color: var(--line-bright); background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,180,210,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,180,210,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 120px 24px 150px; max-width: 1020px;
  will-change: transform, opacity;
}
/* soft scrim so copy stays readable over the particle field */
.hero-content::before {
  content: ""; position: absolute; inset: 6% -12% 10%;
  background: radial-gradient(ellipse 58% 52% at 50% 46%, rgba(6, 8, 11, 0.68), transparent 74%);
  z-index: -1; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--line-bright); border-radius: 100px;
  padding: 8px 18px; margin-bottom: 34px;
  background: rgba(13, 18, 25, 0.6); backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0,229,160,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,229,160,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0,229,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,229,160,0); }
}
.hero-title {
  font-size: clamp(46px, 7.6vw, 92px);
  font-weight: 700; margin-bottom: 28px;
  text-shadow: 0 2px 30px rgba(6, 8, 11, 0.8);
}
.hero-title .line { display: block; }
.rotator { display: inline-grid; text-align: center; }
.rotator-size { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; }
.rotator-word {
  grid-area: 1 / 1;
  color: var(--accent);
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(0, 229, 160, 0.25);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: #c2cfdb;
  max-width: 680px; margin: 0 auto 40px;
  text-shadow: 0 1px 3px rgba(4, 6, 9, 0.95), 0 2px 24px rgba(4, 6, 9, 0.9);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 56px; text-decoration: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-faint);
}
.scroll-cue-track {
  width: 22px; height: 36px; border: 1px solid var(--line-bright);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue-dot {
  width: 4px; height: 8px; border-radius: 2px; background: var(--accent);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-ticker {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 11, 0.7); backdrop-filter: blur(8px);
  overflow: hidden; padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex; gap: 48px; width: max-content;
  animation: ticker 40s linear infinite;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
}
.ticker-track .up { color: var(--accent); }
.ticker-track .down { color: var(--danger); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- marquee band ---------- */
.marquee-band {
  padding: 34px 0; border-bottom: 1px solid var(--line);
  overflow: hidden; display: grid; gap: 18px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee { overflow: hidden; }
.marquee-inner {
  display: flex; gap: 14px; width: max-content;
  will-change: transform;
}
.m-left  .marquee-inner { animation: marqL 46s linear infinite; }
.m-right .marquee-inner { animation: marqR 52s linear infinite; }
@keyframes marqL { to { transform: translateX(-50%); } }
@keyframes marqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.m-chip {
  font-family: var(--font-mono); font-size: 13px; white-space: nowrap;
  color: var(--text-dim); border: 1px solid var(--line);
  border-radius: 100px; padding: 8px 18px;
  background: var(--panel);
}
.m-chip.hot { color: var(--accent); border-color: rgba(0,229,160,0.3); }

/* ---------- statement (scroll-fill) ---------- */
/* svh: stable vs iOS URL-bar show/hide (classic vh jumps mid-scroll) */
.statement { height: 240svh; position: relative; }
.statement-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 28px;
}
.statement-text {
  max-width: 1020px; text-align: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 4.4vw, 54px); line-height: 1.3;
  letter-spacing: -0.02em;
}
.statement-text .w {
  color: rgba(148, 180, 210, 0.16);
  transition: color .3s ease, text-shadow .3s ease;
}
.statement-text .w.on { color: var(--text); }
.statement-text .w.hot.on {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(0, 229, 160, 0.35);
}

/* ---------- sections ---------- */
.section { padding: 130px 0; position: relative; }
.section-head { margin-bottom: 64px; }
.section-tag {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.08em; display: block; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
@media (max-width: 860px) { .cards-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: border-color .3s ease, transform .3s ease;
  transform-style: preserve-3d;
}
.card:hover { border-color: var(--line-bright); }
.card-glow {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,229,160,0.10), transparent 65%);
  transition: opacity .3s ease;
}
.card:hover .card-glow, .uc-card:hover .card-glow { opacity: 1; }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(0,229,160,0.25);
  margin-bottom: 22px;
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.card-tags li {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-faint); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 100px;
}

/* ---------- metrics ---------- */
.metrics {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,229,160,0.03), transparent);
  padding: 58px 0;
}
.metrics-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
@media (max-width: 760px) { .metrics-row { grid-template-columns: repeat(2, 1fr); } }
.metric-value {
  font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700; color: var(--text); display: block;
}
.metric-label {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- use cases (horizontal scroll) ---------- */
.uc-h { height: 340svh; position: relative; }
.uc-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; gap: 40px;
}
.uc-sticky .section-head { margin-bottom: 0; }
.uc-track {
  display: flex; gap: 22px;
  padding-left: max(28px, calc((100vw - 1180px) / 2 + 28px));
  padding-right: 28px;
  will-change: transform;
}
.uc-card {
  position: relative; overflow: hidden;
  flex: 0 0 min(400px, 82vw);
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; flex-direction: column;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.uc-card:hover {
  border-color: rgba(0,229,160,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.uc-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-mono); font-size: 38px; font-weight: 700;
  color: rgba(148, 180, 210, 0.09);
}
.uc-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.uc-card h3 { font-size: 20px; margin-bottom: 10px; }
.uc-card p { color: var(--text-dim); font-size: 14px; flex: 1; margin-bottom: 22px; }
.uc-metric {
  border-top: 1px solid var(--line); padding-top: 16px;
  display: flex; align-items: baseline; gap: 10px;
}
.uc-metric b {
  font-family: var(--font-display); font-size: 24px; color: var(--accent);
}
.uc-metric span {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}
.uc-card-cta {
  border-color: rgba(0,229,160,0.3);
  background: linear-gradient(160deg, rgba(0,229,160,0.08), var(--bg-2));
}
.uc-card-cta .btn { align-self: flex-start; }
.uc-progress {
  height: 2px; background: rgba(148,180,210,0.1);
  margin: 0 max(28px, calc((100vw - 1180px) / 2 + 28px));
  border-radius: 1px; overflow: hidden;
}
.uc-progress span {
  display: block; height: 100%; width: 0;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
@media (max-width: 900px) {
  .uc-h { height: auto; padding: 110px 0; }
  .uc-sticky { position: static; height: auto; overflow: visible; }
  .uc-sticky .section-head { margin-bottom: 20px; }
  .uc-track {
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 18px; transform: none !important;
  }
  .uc-card { scroll-snap-align: start; }
  .uc-progress { display: none; }
}

/* ---------- lab / demos ---------- */
.lab { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-tabs {
  display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap;
}
.demo-tab {
  font-family: var(--font-mono); font-size: 13.5px;
  color: var(--text-dim); background: var(--panel);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 22px; cursor: pointer;
  transition: all .25s ease;
}
.demo-tab:hover { color: var(--text); border-color: var(--line-bright); }
.demo-tab.is-active {
  color: #04110c; background: var(--accent); border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(0,229,160,0.3);
}
.demo-panel { display: none; }
.demo-panel.is-active { display: block; animation: panelIn .35s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

.terminal, .dash, .chat {
  background: #070a0f;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(0,229,160,0.05);
  font-family: var(--font-mono);
}
.terminal-bar, .dash-bar, .chat-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; } .t-dot.yellow { background: #febc2e; } .t-dot.green { background: #28c840; }
.terminal-title { margin-left: 10px; font-size: 12px; color: var(--text-faint); }
.t-replay {
  margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--text-faint); font-family: var(--font-mono); font-size: 11.5px;
  border-radius: 6px; padding: 4px 10px; cursor: pointer;
  transition: all .2s ease;
}
.t-replay:hover { color: var(--accent); border-color: rgba(0,229,160,0.4); }
.terminal-body {
  padding: 20px; height: 420px; overflow-y: auto;
  font-size: 13px; line-height: 1.75;
}
.terminal-body::-webkit-scrollbar, .chat-body::-webkit-scrollbar, .dash-feed ul::-webkit-scrollbar { width: 6px; }
.terminal-body::-webkit-scrollbar-thumb, .chat-body::-webkit-scrollbar-thumb, .dash-feed ul::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 3px; }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: var(--accent); }
.t-ok { color: var(--accent); }
.t-info { color: var(--accent-2); }
.t-warn { color: var(--warn); }
.t-dim { color: var(--text-faint); }
.t-caret {
  display: inline-block; width: 8px; height: 15px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* dashboard demo */
.dash-live {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--accent);
}
.dash-body { padding: 22px; }
.dash-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px;
}
@media (max-width: 860px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi-label { font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.kpi b { font-family: var(--font-display); font-size: 27px; color: var(--text); font-weight: 700; }
.kpi-delta { font-size: 11.5px; color: var(--text-faint); }
.kpi-delta.up { color: var(--accent); }
.dash-main {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px;
}
@media (max-width: 860px) { .dash-main { grid-template-columns: 1fr; } }
.dash-chart, .dash-feed {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px;
}
.dash-chart-label {
  font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em;
  text-transform: uppercase; display: block; margin-bottom: 10px;
}
#dashChart { width: 100%; height: 210px; display: block; }
.dash-feed ul {
  list-style: none; height: 210px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 7px;
}
.dash-feed li {
  font-size: 11.8px; color: var(--text-dim);
  padding: 7px 10px; border-radius: 7px;
  background: rgba(148,180,210,0.04);
  border-left: 2px solid var(--accent);
  animation: feedIn .35s ease;
}
.dash-feed li.warn { border-left-color: var(--warn); }
.dash-feed li .fe-t { color: var(--text-faint); margin-right: 8px; }
@keyframes feedIn { from { opacity: 0; transform: translateX(-8px); } }

/* chat demo */
.chat-body {
  padding: 24px; height: 420px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-body);
}
.msg { max-width: 78%; padding: 13px 17px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } }
.msg.user {
  align-self: flex-end; background: var(--panel-2);
  border: 1px solid var(--line-bright); color: var(--text);
  border-bottom-right-radius: 4px;
}
.msg.bot {
  align-self: flex-start; background: rgba(0,229,160,0.07);
  border: 1px solid rgba(0,229,160,0.2); color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.bot .msg-who, .msg.user .msg-who {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px;
}
.msg.bot .msg-who { color: var(--accent); }
.msg.user .msg-who { color: var(--text-faint); }
.msg-src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.msg-src span {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--accent-2);
  border: 1px solid rgba(91,140,255,0.3); border-radius: 100px; padding: 2px 9px;
}
.msg.sys {
  align-self: center; background: none; border: 1px dashed var(--line-bright);
  color: var(--text-faint); font-family: var(--font-mono); font-size: 11.5px;
  padding: 7px 14px;
}
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: tp 1.1s infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tp { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }
.chat-note {
  border-top: 1px solid var(--line); padding: 11px 18px;
  font-size: 11.5px; color: var(--text-faint); text-align: center;
}
.lab-footnote {
  margin-top: 30px; text-align: center; color: var(--text-faint); font-size: 13.5px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ---------- ROI calculator ---------- */
.roi-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
@media (max-width: 900px) { .roi-grid { grid-template-columns: 1fr; gap: 40px; } }
.roi-controls { display: flex; flex-direction: column; gap: 34px; }
.roi-field { display: flex; flex-direction: column; gap: 14px; }
.roi-label {
  display: flex; justify-content: space-between; align-items: baseline;
}
.roi-label span {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  letter-spacing: 0.04em;
}
.roi-label b {
  font-family: var(--font-display); font-size: 24px; color: var(--accent); font-weight: 700;
}
input[type="range"] {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 20%), rgba(148,180,210,0.15) var(--fill, 20%));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  border: 4px solid #04110c;
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px rgba(0,229,160,0.5);
  transition: transform .15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 4px solid #04110c;
  box-shadow: 0 0 0 1px var(--accent), 0 0 16px rgba(0,229,160,0.5);
}
.roi-note { font-size: 13px; color: var(--text-faint); }
.roi-output {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  padding: 38px;
  display: flex; flex-direction: column; gap: 22px;
}
.roi-row { display: flex; flex-direction: column; gap: 2px; }
.roi-out-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.roi-out {
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.roi-divider { height: 1px; background: var(--line); }
.roi-out-hero {
  font-size: clamp(40px, 5vw, 56px); color: var(--accent);
  text-shadow: 0 0 40px rgba(0,229,160,0.25);
}
.roi-out-hero small {
  font-size: 18px; color: var(--text-faint); font-weight: 500; margin-left: 6px;
}

/* ---------- process ---------- */
.process-track {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
@media (max-width: 960px) { .process-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-track { grid-template-columns: 1fr; } }
.process-line {
  position: absolute; top: 26px; left: 2%; right: 2%; height: 1px;
  background: var(--line);
}
@media (max-width: 960px) { .process-line { display: none; } }
.process-line span {
  display: block; height: 100%; width: 0;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  transition: width .2s linear;
}
.process-step {
  position: relative; padding-top: 62px;
}
.step-num {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  color: var(--accent);
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(0,229,160,0.3); border-radius: 50%;
  background: var(--bg);
}
.process-step h3 { font-size: 19px; margin-bottom: 10px; }
.process-step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- about + orbit ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 70px; align-items: center;
}
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { color: var(--text-dim); margin-bottom: 20px; }
.about-copy strong, .about-copy em { color: var(--text); }
.about-copy blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px; margin-top: 30px;
  font-family: var(--font-display); font-size: 19px; color: var(--text);
  font-style: italic;
}
.orbit-wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.orbit {
  position: relative; width: min(460px, 86vw); aspect-ratio: 1;
}
.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-weight: 700; font-size: 30px;
  color: var(--text);
  width: 84px; height: 84px; display: grid; place-items: center;
  border: 1px solid rgba(0,229,160,0.4); border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.14), var(--panel) 70%);
  box-shadow: 0 0 50px rgba(0,229,160,0.2);
  z-index: 3;
}
.orbit-ring {
  position: absolute; border: 1px dashed rgba(148,180,210,0.16); border-radius: 50%;
}
.orbit-ring.r1 { inset: 29%; }
.orbit-ring.r2 { inset: 15%; }
.orbit-ring.r3 { inset: 1%; }
.orbit-chip {
  position: absolute; top: 0; left: 0;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap;
  color: var(--text-dim);
  background: var(--panel); border: 1px solid var(--line-bright);
  border-radius: 100px; padding: 5px 12px;
  z-index: 2;
  transition: color .2s ease, border-color .2s ease;
}
.orbit-chip.hot { color: var(--accent); border-color: rgba(0,229,160,0.35); }
.orbit-caption {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
  text-align: center;
}

/* ---------- contact ---------- */
.contact { padding-bottom: 150px; }
.contact-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  background: linear-gradient(150deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  padding: 60px;
  position: relative; overflow: hidden;
}
.contact-panel::before {
  content: ""; position: absolute; top: -140px; right: -140px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,160,0.12), transparent 70%);
  pointer-events: none;
}
@media (max-width: 960px) { .contact-panel { grid-template-columns: 1fr; padding: 40px 28px; } }
.contact-copy h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 18px; }
.contact-copy > p { color: var(--text-dim); margin-bottom: 34px; }
.contact-direct .section-tag { margin-bottom: 8px; color: var(--text-faint); }
.email-link {
  font-family: var(--font-mono); font-size: 18px; color: var(--accent);
  text-decoration: none; border-bottom: 1px dashed rgba(0,229,160,0.4);
  padding-bottom: 2px;
}
.email-link:hover { border-bottom-style: solid; }

.contact-form { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: rgba(6,8,11,0.7);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field select { appearance: none; cursor: pointer; }
.form-note { font-size: 12.5px; color: var(--text-faint); text-align: center; }
.form-note.is-success { color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 0 0 44px; overflow: hidden; }
.footer-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(70px, 15vw, 230px); line-height: 1;
  text-align: center; letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 180, 210, 0.14);
  user-select: none;
  margin: 30px 0 40px;
  transition: -webkit-text-stroke-color .4s ease;
}
.footer-word:hover { -webkit-text-stroke-color: rgba(0, 229, 160, 0.4); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-tag { color: var(--text-faint); font-size: 13.5px; margin-top: 10px; }
.footer-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  color: var(--text-faint); font-size: 13px;
}
.footer-hint { font-size: 12px; }
@media (max-width: 560px) { .footer-meta { align-items: flex-start; } }

/* ---------- command palette ---------- */
.cmdk-overlay[hidden] { display: none; }
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4, 6, 9, 0.7); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 16vh;
}
.cmdk {
  width: min(620px, calc(100vw - 40px));
  background: var(--panel);
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: cmdkIn .18s ease;
}
@keyframes cmdkIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.cmdk-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cmdk-prompt { color: var(--accent); font-family: var(--font-mono); font-size: 18px; }
#cmdkInput {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 16px;
}
.cmdk-list { list-style: none; max-height: 320px; overflow-y: auto; padding: 8px; }
.cmdk-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  color: var(--text-dim); font-size: 14.5px;
}
.cmdk-item .ci-icon { font-family: var(--font-mono); color: var(--accent); width: 20px; text-align: center; }
.cmdk-item.is-active, .cmdk-item:hover { background: var(--accent-dim); color: var(--text); }
.cmdk-empty { padding: 24px; text-align: center; color: var(--text-faint); font-size: 14px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .statement { height: auto; padding: 120px 0; }
  .statement-sticky { position: static; height: auto; }
  .statement-text .w { color: var(--text); }
  .statement-text .w.hot { color: var(--accent); text-shadow: 0 0 30px rgba(0, 229, 160, 0.35); }
  .uc-h { height: auto; padding: 110px 0; }
  .uc-sticky { position: static; height: auto; overflow: visible; }
  .uc-track { overflow-x: auto; transform: none !important; }
  #boot { display: none; }
  .noise { display: none; }
}
