:root {
  --bg: #050609;
  --bg-2: #080a11;
  --text: #f4f7fb;
  --soft: rgba(244, 247, 251, 0.74);
  --muted: rgba(244, 247, 251, 0.52);

  --mint: #8dffd9;
  --cyan: #7ee8ff;
  --violet: #a59bff;
  --red: #ff7d8c;
  --amber: #ffce85;

  --grad: linear-gradient(110deg, var(--mint), var(--cyan) 48%, var(--violet));

  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --max: 1180px;
  --radius: 20px;
  --radius-sm: 13px;

  /* pointer spotlight (px) */
  --mx: 50vw;
  --my: 30vh;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, summary { overflow-wrap: anywhere; }

.container { width: min(100% - 40px, var(--max)); margin: 0 auto; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: #05060a; font-weight: 800;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 14px; }

/* ===== ambient background ===== */
.bg {
  position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #0e1422 0%, var(--bg-2) 42%, var(--bg) 72%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  will-change: transform;
}
.blob-a {
  top: -8%; right: -6%; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(126, 232, 255, 0.55), transparent 62%);
  animation: drift-a 26s ease-in-out infinite;
}
.blob-b {
  top: 30%; left: -10%; width: 42vw; height: 42vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(141, 255, 217, 0.4), transparent 62%);
  animation: drift-b 32s ease-in-out infinite;
}
.blob-c {
  bottom: -14%; left: 40%; width: 40vw; height: 40vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(165, 155, 255, 0.42), transparent 62%);
  animation: drift-c 38s ease-in-out infinite;
}
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.noise {
  position: absolute; inset: 0; 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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spotlight {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx) var(--my), rgba(126, 232, 255, 0.11), transparent 60%),
    radial-gradient(280px circle at var(--mx) var(--my), rgba(165, 155, 255, 0.1), transparent 60%);
  transition: background 60ms linear;
}

@keyframes drift-a { 50% { transform: translate3d(-40px, 38px, 0) scale(1.08); } }
@keyframes drift-b { 50% { transform: translate3d(46px, -30px, 0) scale(1.12); } }
@keyframes drift-c { 50% { transform: translate3d(-32px, -28px, 0) scale(1.06); } }

/* ===== glass primitive ===== */
.glass {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--glass-2), var(--glass) 60%);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 28px 70px -28px rgba(0, 0, 0, 0.7);
}
/* refractive hairline border — slow living sheen */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(
    var(--sheen, 150deg),
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.02) 62%,
    rgba(141, 255, 217, 0.28) 86%,
    rgba(126, 232, 255, 0.32)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.9;
  animation: sheen 14s linear infinite;
}
@property --sheen { syntax: "<angle>"; inherits: false; initial-value: 150deg; }
@keyframes sheen { to { --sheen: 510deg; } }

/* per-card cursor glow */
.glow-card { --gx: 50%; --gy: 50%; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
.glow-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0; transition: opacity 300ms var(--ease);
}
@media (hover: hover) {
  .glow-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 40px 90px -34px rgba(0, 0, 0, 0.8); }
  .glow-card:hover::after { opacity: 1; }
}

/* ===== nav ===== */
.nav {
  position: sticky; top: 0; z-index: 40;
  padding: 12px 0;
  background: rgba(6, 8, 13, 0.55);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: background 240ms var(--ease), border-color 240ms var(--ease);
}
.nav.scrolled { background: rgba(6, 8, 13, 0.82); border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.01em; }
.brand-name { font-size: 1.08rem; }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; font-weight: 900; font-size: 1.1rem; color: #04110f;
  background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px -8px rgba(126, 232, 255, 0.55);
}
.brand-mark.sm { width: 32px; height: 32px; font-size: 0.95rem; border-radius: 9px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.button) {
  padding: 9px 13px; border-radius: 10px; color: var(--soft); font-size: 0.92rem; font-weight: 600;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.site-nav > a:not(.button):hover { color: #fff; background: var(--glass); }
.nav-cta { margin-left: 8px; }

.menu-button {
  display: none; place-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass); cursor: pointer;
}
.menu-button span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 220ms var(--ease), opacity 220ms var(--ease); }
.nav.is-open .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .menu-button span:nth-child(2) { opacity: 0; }
.nav.is-open .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== buttons ===== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}
.button svg { transition: transform 200ms var(--ease); }
.button:hover svg { transform: translateX(3px); }
.button:hover, .button:focus-visible { transform: translateY(-2px); outline: none; }
.button:focus-visible { box-shadow: 0 0 0 3px rgba(126, 232, 255, 0.4); }

.button.primary, .nav-cta {
  color: #04110f; background: var(--grad);
  background-size: 160% 160%;
  box-shadow: 0 14px 40px -10px rgba(126, 232, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.button.primary:hover, .nav-cta:hover {
  box-shadow: 0 20px 56px -12px rgba(126, 232, 255, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background-position: 100% 0;
}
.nav-cta { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }

.button.ghost {
  color: var(--text); border-color: var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.button.ghost:hover { background: var(--glass-2); border-color: var(--line); }
.button.full { width: 100%; }

/* ===== typography / shared ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  color: var(--mint); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 4px rgba(141, 255, 217, 0.18); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(141, 255, 217, 0); } }

h1 {
  margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 800;
}
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; }
h3 { margin: 0; font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { margin: 16px 0 0; color: var(--soft); font-size: 1.05rem; }

/* ===== hero ===== */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }

.hero-sub { max-width: 560px; margin: 24px 0 0; color: var(--soft); font-size: clamp(1.02rem, 1.4vw, 1.16rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions.center { justify-content: center; }

.trust-chips {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none;
}
.trust-chips li { display: inline-flex; align-items: center; gap: 9px; color: var(--soft); font-size: 0.92rem; font-weight: 500; }
.check { position: relative; width: 18px; height: 18px; border-radius: 50%; background: rgba(141, 255, 217, 0.16); flex: none; }
.check::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* hero card */
.hero-card { padding: 18px; align-self: stretch; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.card-top strong { color: var(--mint); }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(141, 255, 217, 0.5); animation: live 1.8s ease-out infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(141, 255, 217, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(141, 255, 217, 0); } }

.signal-list { display: grid; gap: 9px; }
.signal-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 13px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}
.signal-item .tag { color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.signal-item strong { font-size: 0.9rem; font-weight: 600; min-width: 0; }
.signal-item em {
  padding: 5px 9px; border-radius: 999px; color: #06110f; background: var(--mint);
  font-size: 0.7rem; font-style: normal; font-weight: 800; white-space: nowrap;
}
.signal-item.risk em { background: var(--red); }
.signal-item.hot { border-color: rgba(141, 255, 217, 0.26); }
.signal-item.risk { border-color: rgba(255, 125, 140, 0.3); }
.signal-item.calm em { background: var(--cyan); }

.assistant-output {
  margin-top: 12px; padding: 15px; border-radius: var(--radius-sm);
  border: 1px solid rgba(126, 232, 255, 0.22);
  background: linear-gradient(160deg, rgba(126, 232, 255, 0.12), rgba(126, 232, 255, 0.03));
}
.assistant-output > span { color: var(--mint); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.assistant-output p { margin: 9px 0 0; color: var(--soft); font-size: 0.92rem; }
.confidence { margin-top: 14px; }
.confidence-label { display: flex; justify-content: space-between; font-size: 0.74rem; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.confidence-label strong { color: var(--mint); }
.confidence-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.confidence-bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--grad); box-shadow: 0 0 16px rgba(141, 255, 217, 0.5); animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { width: 0; } }

/* ===== trust strip ===== */
.strip { padding: 8px 0 clamp(20px, 4vw, 36px); }
.strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.strip-item {
  padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: var(--glass); text-align: center;
}
.strip-item strong { display: block; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.86rem; }

/* ===== fix ===== */
.fix-row { display: grid; gap: 16px; }
.fix-row article { padding: 26px; }
.fix-num { display: inline-block; font-size: 0.85rem; font-weight: 900; color: var(--cyan); letter-spacing: 0.1em; }
.fix-row h3 { margin: 16px 0 0; }
.fix-row p { margin: 12px 0 0; color: var(--soft); font-size: 0.97rem; }

/* ===== DEMOS ===== */
.center-head { margin-left: auto; margin-right: auto; text-align: center; }
.center-head .eyebrow { justify-content: center; width: 100%; }
.center-head p:not(.eyebrow) { margin-left: auto; margin-right: auto; }

.demo-shell {
  padding: clamp(14px, 2.2vw, 22px); overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 40px 120px -40px rgba(126, 232, 255, 0.28),
    0 34px 80px -34px rgba(0, 0, 0, 0.8);
}

/* top bar */
.demo-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft);
}
.demo-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.demo-tab {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 0 17px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--glass); color: var(--soft);
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  transition: color 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.demo-tab .t-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background 200ms var(--ease), box-shadow 200ms var(--ease); }
.demo-tab:hover { color: #fff; border-color: var(--line); }
.demo-tab.active { color: #06110f; background: var(--grad); border-color: transparent; box-shadow: 0 12px 32px -12px rgba(126, 232, 255, 0.6); }
.demo-tab.active .t-dot { background: #06110f; box-shadow: 0 0 0 3px rgba(6, 17, 15, 0.2); }

.demo-bar-right { display: inline-flex; align-items: center; gap: 12px; }
.demo-live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.replay {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: transparent; color: var(--soft);
  font-weight: 700; font-size: 0.84rem; cursor: pointer; transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.replay:hover { color: #fff; border-color: var(--line); background: var(--glass); }
.replay svg { transition: transform 500ms var(--ease); }
.replay:active svg { transform: rotate(-360deg); }

/* pipeline stepper */
.pipeline {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 16px; padding: 0 6px;
}
.pl-track {
  position: absolute; left: 12%; right: 12%; top: 13px; height: 2px; border-radius: 2px;
  background: var(--line-soft); overflow: hidden;
}
.pl-track i { display: block; height: 100%; width: var(--pl, 0%); border-radius: 2px; background: var(--grad); box-shadow: 0 0 12px rgba(141, 255, 217, 0.6); transition: width 600ms var(--ease); }
.pl-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1; }
.pl-ico {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--bg-2);
  display: grid; place-items: center; position: relative;
  transition: border-color 300ms var(--ease), background 300ms var(--ease), box-shadow 300ms var(--ease);
}
.pl-ico::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background 300ms var(--ease), transform 300ms var(--ease); }
.pl-name { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; transition: color 300ms var(--ease); }
.pl-step.active .pl-ico { border-color: var(--mint); background: rgba(141, 255, 217, 0.12); box-shadow: 0 0 0 4px rgba(141, 255, 217, 0.12), 0 0 18px rgba(141, 255, 217, 0.4); }
.pl-step.active .pl-ico::after { background: var(--mint); animation: live 1.6s ease-out infinite; }
.pl-step.active .pl-name { color: #fff; }
.pl-step.done .pl-ico { border-color: transparent; background: var(--grad); box-shadow: 0 8px 22px -10px rgba(126, 232, 255, 0.7); }
.pl-step.done .pl-ico::after { width: 5px; height: 9px; border-radius: 0; background: transparent; border: solid #06110f; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.pl-step.done .pl-name { color: var(--soft); }

.demo-stage {
  display: grid; gap: 16px;
  padding: clamp(14px, 2vw, 20px); border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(126, 232, 255, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.24));
}
.stage-col { min-width: 0; display: flex; flex-direction: column; }
.stage-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.stage-label.assist { color: var(--mint); }
.dotk { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none; box-shadow: 0 0 10px rgba(126, 232, 255, 0.7); }
.dotk.mint { background: var(--mint); box-shadow: 0 0 10px rgba(141, 255, 217, 0.7); }

.msg {
  padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
}
.msg-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  display: grid; place-items: center; font-size: 0.86rem; font-weight: 800; color: #06110f;
  background: var(--grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.msg-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.msg-id strong { font-size: 0.9rem; font-weight: 700; }
.msg-id span { color: var(--cyan); font-size: 0.74rem; font-weight: 700; }
.msg-time { color: var(--muted); font-size: 0.74rem; font-weight: 700; flex: none; }
.msg p { margin: 0; color: var(--text); font-size: 0.96rem; line-height: 1.55; }

.analysis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, 0.05); color: var(--soft);
  opacity: 0; transform: translateY(6px) scale(0.96);
  animation: chip-in 420ms var(--ease) forwards;
}
.chip b { color: #fff; font-weight: 800; }
.chip.danger { border-color: rgba(255, 125, 140, 0.4); background: rgba(255, 125, 140, 0.12); color: #ffd2d8; }
.chip.warn { border-color: rgba(255, 206, 133, 0.4); background: rgba(255, 206, 133, 0.12); color: #ffe6c4; }
.chip.good { border-color: rgba(141, 255, 217, 0.4); background: rgba(141, 255, 217, 0.12); color: #c9fff0; }
@keyframes chip-in { to { opacity: 1; transform: none; } }

.draft { padding: 16px; border-radius: var(--radius-sm); flex: 1; }
.glass-inner {
  border: 1px solid rgba(126, 232, 255, 0.22);
  background: linear-gradient(165deg, rgba(126, 232, 255, 0.11), rgba(141, 255, 217, 0.02));
}
.draft-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.draft-head .status { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(141, 255, 217, 0.7); }
.draft-head .conf { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.draft-body { margin: 0; color: var(--soft); font-size: 0.95rem; line-height: 1.6; min-height: 1.5em; }
.draft-body .caret { display: inline-block; width: 2px; height: 1.05em; vertical-align: -0.18em; margin-left: 1px; background: var(--mint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.decision {
  display: none; align-items: center; gap: 11px; margin-top: 14px;
  padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid rgba(141, 255, 217, 0.3); background: rgba(141, 255, 217, 0.09);
  color: #d6fff2; font-size: 0.88rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.decision.show { display: flex; opacity: 1; transform: none; }
.decision .ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #06110f; font-weight: 900; font-size: 0.8rem; flex: none; box-shadow: 0 6px 18px -6px rgba(126, 232, 255, 0.7); }

.demo-foot { margin: 20px 0 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* ===== build / offer ===== */
.build-grid, .control-grid, .faq-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.why-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.why-list li, .scope-list li { position: relative; padding-left: 26px; color: var(--soft); font-size: 0.97rem; }
.why-list li::before, .scope-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--mint), var(--cyan));
  box-shadow: 0 0 14px rgba(141, 255, 217, 0.55);
}
.scope-card { padding: 28px; align-self: start; }
.price { display: flex; align-items: baseline; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.price span { color: var(--muted); font-size: 0.84rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.price strong { font-size: clamp(2.4rem, 5vw, 3rem); line-height: 1; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scope-list { display: grid; gap: 13px; margin: 0 0 24px; padding: 0; list-style: none; }
.scope-note { margin: 14px 0 0; color: var(--muted); font-size: 0.84rem; text-align: center; }

/* ===== control ===== */
.control-list { display: grid; gap: 14px; }
.control-item { padding: 24px; }
.control-item h3 { color: #fff; }
.control-item p { margin: 11px 0 0; color: var(--soft); font-size: 0.96rem; }

/* ===== faq ===== */
.faq-list { display: grid; gap: 12px; }
details { padding: 0 20px; border-radius: var(--radius-sm); overflow: hidden; }
details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 0; font-weight: 700; font-size: 1.02rem; cursor: pointer; list-style: none;
}
details summary::-webkit-details-marker { display: none; }
.chev { position: relative; width: 13px; height: 13px; flex: none; transition: transform 260ms var(--ease); }
.chev::before, .chev::after { content: ""; position: absolute; top: 5px; width: 8px; height: 2px; border-radius: 2px; background: var(--mint); }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
details[open] .chev { transform: rotate(180deg); }
details p { margin: 0; padding: 0 0 20px; color: var(--soft); font-size: 0.97rem; max-width: 60ch; }

/* ===== final ===== */
.final { padding: clamp(56px, 8vw, 100px) 0; }
.final-card { padding: clamp(36px, 6vw, 64px); text-align: center; }
.final-card .eyebrow { justify-content: center; width: 100%; color: var(--amber); }
.final-card .eyebrow .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 206, 133, 0.2); }
.final-card h2 { max-width: 16ch; margin: 0 auto; font-size: clamp(2.1rem, 5vw, 3.3rem); }
.final-sub { max-width: 52ch; margin: 18px auto 0; color: var(--soft); font-size: 1.06rem; }
.final-card .actions { margin-top: 32px; }

/* ===== footer ===== */
footer { padding: 36px 0; border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.34); }
.footer-row { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.footer-mail { color: var(--text); font-weight: 700; font-size: 0.96rem; }
.footer-mail:hover { color: var(--mint); }

/* ===== floating CTA ===== */
.float-cta {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  z-index: 35; padding: 14px 24px; border-radius: 999px;
  color: #04110f; background: var(--grad); font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 16px 44px -10px rgba(126, 232, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 360ms var(--ease);
}
.float-cta.show { transform: translate(-50%, 0); }
.float-cta:hover { transform: translate(-50%, -3px); }

/* ===== reveal =====
   Progressive enhancement: content is fully visible by default.
   Only when JS is running (html.js) do we hide-then-reveal on scroll,
   so a script failure can never leave the page blank. */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ===== responsive ===== */
@media (min-width: 760px) {
  .strip-grid { grid-template-columns: repeat(4, 1fr); }
  .fix-row { grid-template-columns: repeat(3, 1fr); }
  .demo-stage { grid-template-columns: 1fr 1fr; }
  .demo-tab { font-size: 0.95rem; }
}

@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-card { max-width: 460px; justify-self: end; width: 100%; }
  .build-grid { grid-template-columns: 1fr 0.9fr; align-items: start; }
  .control-grid, .faq-grid { grid-template-columns: 0.82fr 1fr; align-items: start; }
  .control-list { grid-template-columns: 1fr; }
  .float-cta { display: none; }
}

@media (max-width: 759px) {
  .menu-button { display: inline-grid; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); right: 20px; left: 20px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    border: 1px solid var(--line); border-radius: 16px;
    background: rgba(8, 10, 16, 0.96); backdrop-filter: blur(24px);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }
  .nav.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a:not(.button) { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 4px 0 0; min-height: 50px; }
  .actions .button { width: 100%; }
}

/* ===== motion / accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .blob { animation: none; }
}
