/* Debugify AI marketing site. Dark, no external fonts or requests. */

:root {
  /* Debugify app palette: Eclipse (dark) surfaces + brand accents */
  --void: #0d0f12;      /* canvas background */
  --shell: #111114;     /* navbar, sidebar */
  --deep: #18181c;      /* node card surface */
  --code: #090d16;      /* inner code pane */
  --glass: rgb(24 24 28 / 0.6);
  --line: #27272a;      /* node border */
  --text: #fafafa;      /* primary typography */
  --muted: #a1a1aa;     /* secondary text (readable on dark) */
  --dim: #71717a;       /* muted typography */
  --brand: #4f39f6;     /* primary action */
  --violet: #8b7dff;
  --cyan: #9d8cff;      /* glow accent (brand tint) */
  --ok: #10b981;        /* emerald: success */
  --bad: #ff3366;       /* crimson: error */
  --warn: #f59e0b;      /* amber: warning, pending */

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 72rem;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--deep); color: var(--text); padding: 0.5rem 0.75rem; z-index: 60; }
.skip:focus { left: 0.5rem; }

/* Wordmark (matches the app logo) */
.wordmark { font-family: var(--mono); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark sup { font-size: 0.55em; margin-left: 0.1em; color: var(--cyan); }
.wordmark--small { font-size: 0.95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.65rem 1.25rem;
  border-radius: 999px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--glow { background: linear-gradient(120deg, var(--brand), #6d5bff 50%, #10b981); border-color: transparent; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 8px 32px rgb(79 57 246 / 0.45); }
.btn--glow:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14) inset, 0 10px 44px rgb(16 185 129 / 0.45); }
.btn--ghost { background: rgb(255 255 255 / 0.04); border-color: var(--line); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--violet); }
.btn--quiet { background: transparent; color: var(--text); border-color: var(--line); }
.btn--small { min-height: 2.25rem; padding: 0.4rem 0.95rem; font-size: 0.875rem; }
.btn--large { min-height: 3.2rem; padding: 0.85rem 1.75rem; font-size: 1.05rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.linklike:hover { color: var(--text); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgb(13 15 18 / 0.7); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top--float { position: fixed; inset: 0 0 auto 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background 0.3s, border-color 0.3s; }
.top--float.is-scrolled { background: rgb(17 17 20 / 0.82); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.top__nav { display: flex; gap: 1rem; align-items: center; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero__fade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 22% 50%, rgb(13 15 18 / 0.85), transparent 70%),
    linear-gradient(to bottom, rgb(13 15 18 / 0.2), transparent 30%, transparent 70%, var(--void));
}
.hero__content { width: 100%; padding-block: 7rem 6rem; }
@media (max-width: 51rem) { .hero { align-items: start; } .hero__content { padding-block: 5.5rem 0; } }
.hero h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.9rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.98;
  max-width: 13ch;
  background: linear-gradient(180deg, #ffffff 30%, #b8b2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 1.5rem; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 30rem; }
.hero__actions { margin-top: 2.25rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-bottom: 1.5rem; padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgb(255 255 255 / 0.03); backdrop-filter: blur(6px);
  font: 500 0.8rem var(--mono); color: var(--muted);
}
.pill__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* Page-load entrance: the one orchestrated moment */
.hero__content > * { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero__content > :nth-child(2) { animation-delay: 0.08s; }
.hero__content > :nth-child(3) { animation-delay: 0.18s; }
.hero__content > :nth-child(4) { animation-delay: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: 1.5rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 0.45rem; width: 3px; height: 0.5rem; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(0.9rem); opacity: 0; } 100% { opacity: 0; } }

/* Feature panels */
.panels { padding-block: clamp(4rem, 3rem + 5vw, 8rem); position: relative; }
.panels__grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; }
@media (min-width: 48rem) { .panels__grid { grid-template-columns: 1fr 1fr; } }
.panel {
  position: relative; padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgb(79 57 246 / 0.10), rgb(255 255 255 / 0.015) 45%), var(--deep);
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, transparent 40%, rgb(157 140 255 / 0.35), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  border: 1px solid transparent; background-size: 250% 100%; background-position: 100% 0;
  transition: background-position 1.2s ease;
}
.panel.is-in::before { background-position: -50% 0; }
.panel h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 1.5rem; }
.panel p { margin-top: 0.5rem; color: var(--muted); }

.viz { height: 9.5rem; border-radius: 14px; border: 1px solid var(--line); background: rgb(0 0 0 / 0.35); padding: 1rem; font: 0.8rem/1.5 var(--mono); color: var(--muted); position: relative; overflow: hidden; }
.viz::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 3px); }

/* Budget meter */
.viz__head { display: flex; justify-content: space-between; }
.viz__val { color: var(--text); font-variant-numeric: tabular-nums; }
.meter { margin-top: 1.1rem; height: 0.6rem; border-radius: 999px; background: rgb(255 255 255 / 0.06); overflow: hidden; }
.meter__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 16px rgb(157 140 255 / 0.6); }
.viz__stop { margin-top: 1.25rem; color: var(--bad); opacity: 0; display: inline-flex; gap: 0.5rem; align-items: center; }
.viz__stop::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--bad); border-radius: 2px; box-shadow: 0 0 10px var(--bad); }
.is-in .meter__fill { animation: fill 2.2s cubic-bezier(.4,0,.2,1) 0.3s forwards; }
.is-in .viz__stop { animation: show 0.3s 2.5s forwards; }
.is-in .meter__fill { animation-name: fill, alarm; animation-duration: 2.2s, 0.3s; animation-delay: 0.3s, 2.5s; animation-fill-mode: forwards, forwards; }
@keyframes fill { to { width: 100%; } }
@keyframes alarm { to { background: var(--bad); box-shadow: 0 0 18px var(--bad); } }
@keyframes show { to { opacity: 1; } }

/* Trace log */
.trace__row { display: grid; grid-template-columns: 1fr auto 3.5rem; gap: 0.75rem; padding: 0.22rem 0; opacity: 0; transform: translateX(-8px); }
.trace__row span:nth-child(2), .trace__row span:nth-child(3) { text-align: right; color: var(--text); }
.trace__row span:first-child::before { content: "▸ "; color: var(--cyan); }
.trace__row:last-child span:nth-child(2) { color: var(--ok); }
.is-in .trace__row { animation: slide 0.4s ease-out forwards; }
.is-in .trace__row:nth-child(2) { animation-delay: 0.45s; }
.is-in .trace__row:nth-child(3) { animation-delay: 0.9s; }
.is-in .trace__row:nth-child(4) { animation-delay: 1.35s; }
@keyframes slide { to { opacity: 1; transform: none; } }

/* Auto-Healer */
.heal__line { display: flex; gap: 0.6rem; align-items: center; padding: 0.4rem 0; opacity: 0; }
.heal__line::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.heal__line--err::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.heal__line--fix::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.heal__line--ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.heal__line--err { color: var(--bad); }
.heal__line--ok { color: var(--ok); }
.is-in .heal__line { animation: show 0.35s forwards; }
.is-in .heal__line--fix { animation-delay: 0.9s; }
.is-in .heal__line--ok { animation-delay: 1.8s; }

/* Version rollback */
.ver__line { position: relative; display: flex; justify-content: space-between; margin-top: 1.4rem; }
.ver__line::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 50%; height: 2px; background: var(--line); }
.ver__dot { position: relative; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--deep); color: var(--muted); font-size: 0.72rem; }
.ver__dot--bad { border-color: var(--bad); color: var(--bad); }
.ver__msg { margin-top: 1.4rem; color: var(--ok); opacity: 0; }
.is-in .ver__dot--bad { animation: fade-bad 0.4s 1.4s forwards; }
.is-in .ver__dot--target { animation: pick 0.5s 1.2s forwards; }
.is-in .ver__msg { animation: show 0.4s 1.7s forwards; }
@keyframes pick { to { border-color: var(--ok); color: var(--ok); box-shadow: 0 0 16px rgb(16 185 129 / 0.55); } }
@keyframes fade-bad { to { opacity: 0.35; } }

/* Big section headings */
.big-h { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; max-width: 16ch; }

/* Problem section */
.pain { padding-block: clamp(4rem, 3rem + 5vw, 8rem); position: relative; background: radial-gradient(ellipse 70% 60% at 50% 30%, rgb(255 51 102 / 0.07), transparent 70%); }
.pain__grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.pain__card { padding: 1.25rem 1.25rem 1.5rem; border-radius: 20px; border: 1px solid rgb(255 51 102 / 0.18); background: linear-gradient(160deg, rgb(255 51 102 / 0.06), transparent 50%), var(--deep); }
.pain__card h3 { margin-top: 1.4rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.pain__card p { margin-top: 0.45rem; color: var(--muted); }
.pviz { height: 8rem; border-radius: 14px; border: 1px solid rgb(255 51 102 / 0.15); background: rgb(0 0 0 / 0.35); padding: 1rem; font: 0.8rem/1.5 var(--mono); color: var(--muted); display: flex; flex-direction: column; gap: 0.6rem; overflow: hidden; position: relative; }
.pviz__bill { font: 800 2rem/1 var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.is-in .pviz__bill { animation: heat 2.4s forwards; }
@keyframes heat { to { color: var(--bad); text-shadow: 0 0 18px rgb(255 51 102 / 0.6); } }
.pviz__spark { display: flex; align-items: flex-end; gap: 4px; height: 2rem; margin-top: auto; }
.pviz__spark i { flex: 1; height: 8%; border-radius: 2px; background: linear-gradient(to top, rgb(255 51 102 / 0.3), var(--bad)); }
.is-in .pviz__spark i { animation: bar 0.5s ease-out forwards; }
.pviz__spark i:nth-child(1) { --h: 10%; } .pviz__spark i:nth-child(2) { --h: 14%; animation-delay: .15s; }
.pviz__spark i:nth-child(3) { --h: 12%; animation-delay: .3s; } .pviz__spark i:nth-child(4) { --h: 22%; animation-delay: .45s; }
.pviz__spark i:nth-child(5) { --h: 30%; animation-delay: .6s; } .pviz__spark i:nth-child(6) { --h: 48%; animation-delay: .75s; }
.pviz__spark i:nth-child(7) { --h: 76%; animation-delay: .9s; } .pviz__spark i:nth-child(8) { --h: 100%; animation-delay: 1.05s; }
@keyframes bar { to { height: var(--h); } }
.pviz__glitch { color: var(--bad); font-weight: 700; font-size: 0.95rem; position: relative; }
.is-in .pviz__glitch { animation: glitch 3s steps(1) infinite; }
@keyframes glitch { 0%, 86%, 100% { transform: none; text-shadow: none; } 88% { transform: translateX(-2px); text-shadow: 2px 0 var(--cyan); } 90% { transform: translateX(2px); text-shadow: -2px 0 var(--violet); } 92% { transform: none; opacity: 0.4; } 94% { opacity: 1; } }
.pviz__steps { display: flex; gap: 0.4rem; margin-top: auto; }
.pviz__steps i { font-style: normal; flex: 1; text-align: center; padding: 0.35rem 0; border-radius: 6px; border: 1px dashed rgb(255 255 255 / 0.15); }
.is-in .pviz__steps i { animation: blink 1.6s ease-in-out infinite; }
.pviz__steps i:nth-child(2) { animation-delay: .2s; } .pviz__steps i:nth-child(3) { animation-delay: .4s; } .pviz__steps i:nth-child(4) { animation-delay: .6s; } .pviz__steps i:nth-child(5) { animation-delay: .8s; }
.pviz__line { color: var(--text); font-size: 0.95rem; }
.pviz__line mark { background: none; color: var(--text); text-decoration: underline wavy transparent; text-underline-offset: 4px; }
.is-in .pviz__line mark { animation: flag 0.4s 1s forwards; }
@keyframes flag { to { color: var(--bad); text-decoration-color: var(--bad); } }
.pviz__line--dim { color: var(--muted); font-size: 0.8rem; opacity: 0; }
.is-in .pviz__line--dim { animation: show 0.4s 1.5s forwards; }
.pain__turn { margin-top: 3rem; font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(90deg, var(--ok), var(--violet) 60%, var(--warn)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* App demo */
.demo { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); }
.demo__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.25rem; }
.demo__tabs button { position: relative; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.6rem 1rem 0.75rem; border-radius: 12px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.02); color: var(--muted); font: 600 0.95rem var(--sans); cursor: pointer; overflow: hidden; }
.demo__tabs button[aria-selected="true"] { color: var(--text); border-color: rgb(139 125 255 / 0.5); background: rgb(79 57 246 / 0.12); }
.demo__n { width: 1.4rem; height: 1.4rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; font: 700 0.72rem var(--mono); }
.demo__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.demo.is-playing button[aria-selected="true"] .demo__bar { animation: tabbar var(--dur, 6s) linear forwards; }
@keyframes tabbar { to { width: 100%; } }
.demo__caption { margin-top: 1rem; color: var(--muted); min-height: 1.6em; }

.win { margin-top: 1.25rem; border-radius: 18px; border: 1px solid var(--line); background: var(--deep); overflow: hidden; box-shadow: 0 30px 80px rgb(79 57 246 / 0.18); }
.win__chrome { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); font: 0.78rem var(--mono); color: var(--muted); }
.win__chrome i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgb(255 255 255 / 0.12); }
.win__chrome span { margin-left: 0.6rem; }
.win__body { position: relative; padding: clamp(0.75rem, 2vw, 2rem); min-height: clamp(15rem, 30vw, 24rem); display: grid; align-items: center; background-image: radial-gradient(rgb(139 125 255 / 0.14) 1px, transparent 1.2px); background-size: 18px 18px; }
.win__fine { padding: 0.5rem 0.9rem 0.7rem; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--line); }
.flow { width: 100%; max-width: 46rem; height: auto; overflow: visible; justify-self: center; transform-origin: left center; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.fe { fill: none; stroke: rgb(139 125 255 / 0.55); stroke-width: 1.6; stroke-dasharray: 160; stroke-dashoffset: 0; }
.fn rect { fill: #18181c; stroke: rgb(139 125 255 / 0.45); stroke-width: 1.2; transition: stroke 0.3s, fill 0.3s; }
.fn circle { fill: rgb(139 125 255 / 0.7); transition: fill 0.3s; }
.fn text { fill: #fafafa; font: 600 11.5px var(--sans); }

/* Stage 1: build. Steps drop in, then connect. */
.win[data-stage="build"] .fn > * { opacity: 0; animation: pop 0.45s cubic-bezier(.2,.9,.3,1.3) forwards; }
.win[data-stage="build"] .fn-1 > * { animation-delay: 0.1s; } .win[data-stage="build"] .fn-2 > * { animation-delay: 0.4s; }
.win[data-stage="build"] .fn-3 > * { animation-delay: 0.7s; } .win[data-stage="build"] .fn-4 > * { animation-delay: 0.85s; }
.win[data-stage="build"] .fn-5 > * { animation-delay: 1s; } .win[data-stage="build"] .fn-6 > * { animation-delay: 1.3s; }
.win[data-stage="build"] .fe { stroke-dashoffset: 160; animation: draw 0.6s ease-out forwards; }
.win[data-stage="build"] .fe-1 { animation-delay: 1.7s; } .win[data-stage="build"] .fe-2 { animation-delay: 2s; }
.win[data-stage="build"] .fe-3 { animation-delay: 2.1s; } .win[data-stage="build"] .fe-4 { animation-delay: 2.2s; }
.win[data-stage="build"] .fe-5 { animation-delay: 2.6s; } .win[data-stage="build"] .fe-6 { animation-delay: 2.7s; }
.win[data-stage="build"] .fe-7 { animation-delay: 2.8s; }
@keyframes pop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Stage 2: cost preview */
.est { position: absolute; right: clamp(0.75rem, 3vw, 2.5rem); bottom: clamp(0.75rem, 3vw, 2rem); width: min(15rem, 70%); padding: 1rem; border-radius: 14px; border: 1px solid rgb(157 140 255 / 0.35); background: rgb(17 17 20 / 0.92); backdrop-filter: blur(8px); box-shadow: 0 0 40px rgb(157 140 255 / 0.15); font: 0.8rem/1.5 var(--mono); opacity: 0; transform: translateY(16px); pointer-events: none; }
.est__title { font: 700 0.9rem var(--sans); margin-bottom: 0.5rem; }
.est__row { display: flex; justify-content: space-between; color: var(--muted); padding: 0.15rem 0; }
.est__row span:last-child { color: var(--text); }
.est__row--budget { border-top: 1px solid var(--line); margin-top: 0.35rem; padding-top: 0.45rem; }
.est__row--budget span:last-child { color: var(--ok); }
.est__run { margin-top: 0.8rem; text-align: center; padding: 0.45rem; border-radius: 999px; background: linear-gradient(120deg, var(--brand), #8b7dff); color: #fff; font: 600 0.85rem var(--sans); }
.win[data-stage="preview"] .est { animation: est-in 0.5s 0.3s cubic-bezier(.2,.7,.2,1) forwards; }
.win[data-stage="preview"] .flow { transform: translateX(-4%) scale(0.96); }
.win[data-stage="preview"] .est__run { animation: runpulse 1.6s 1.4s ease-in-out infinite; }
@keyframes est-in { to { opacity: 1; transform: none; } }
@keyframes runpulse { 50% { box-shadow: 0 0 0 6px rgb(157 140 255 / 0.18); } }

/* Stage 3: run & inspect */
.win[data-stage="inspect"] .fn rect { animation: done-rect 0.3s forwards; }
.win[data-stage="inspect"] .fn circle { animation: done-dot 0.3s forwards; }
.win[data-stage="inspect"] .fn-1 * { animation-delay: 0.1s; } .win[data-stage="inspect"] .fn-2 * { animation-delay: 0.5s; }
.win[data-stage="inspect"] .fn-3 *, .win[data-stage="inspect"] .fn-4 *, .win[data-stage="inspect"] .fn-5 * { animation-delay: 0.9s; }
.win[data-stage="inspect"] .fn-6 * { animation-delay: 1.3s; }
.win[data-stage="inspect"] .fn--focus rect { animation: done-rect 0.3s 0.9s forwards, focus 0.4s 1.8s forwards; }
.win[data-stage="inspect"] .fe { stroke: rgb(16 185 129 / 0.6); }
.win[data-stage="inspect"] .flow { transform: translateX(-16%) scale(0.78); }
@keyframes done-rect { to { stroke: var(--ok); } }
@keyframes done-dot { to { fill: var(--ok); } }
@keyframes focus { to { stroke: var(--cyan); stroke-width: 2.4; fill: #1c1838; } }
.insp { position: absolute; top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); width: min(19rem, 46%); padding: 1rem; border-radius: 14px; border: 1px solid rgb(157 140 255 / 0.35); background: rgb(17 17 20 / 0.94); backdrop-filter: blur(8px); font-size: 0.85rem; opacity: 0; transform: translateX(24px); pointer-events: none; overflow: hidden; }
.win[data-stage="inspect"] .insp { animation: insp-in 0.5s 2s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes insp-in { to { opacity: 1; transform: none; } }
.insp__title { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.insp__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.insp__k { margin-top: 0.8rem; font: 600 0.72rem var(--mono); color: var(--cyan); }
.insp__v { margin-top: 0.2rem; color: var(--muted); font-size: 0.82rem; }
.insp__v--out { color: var(--text); font-family: var(--mono); font-size: 0.75rem; line-height: 1.6; }
.insp__stats { display: flex; gap: 0.75rem; margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font: 0.72rem var(--mono); color: var(--muted); flex-wrap: wrap; }
@media (max-width: 40rem) {
  .win__body { min-height: 27rem; align-items: start; }
  .win[data-stage="preview"] .flow, .win[data-stage="inspect"] .flow { transform: none; }
  .est, .insp { left: 0.75rem; right: 0.75rem; width: auto; top: auto; bottom: 0.75rem; }
  .insp { top: auto; }
}

/* Template ticker */
.ticker { padding-block: clamp(3rem, 2rem + 4vw, 6rem); border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--void), var(--deep)); }
.ticker h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 750; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.ticker__num { font: 800 1.6em/1 var(--mono); background: linear-gradient(120deg, var(--ok), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticker__track { margin-top: 2.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__row { display: flex; gap: 0.75rem; width: max-content; animation: marquee 48s linear infinite; }
.ticker__track:hover .ticker__row { animation-play-state: paused; }
.ticker__row span { padding: 0.6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 0.025); white-space: nowrap; font-size: 0.95rem; }
.ticker__row span:nth-child(3n+1) { border-color: rgb(157 140 255 / 0.3); }
@keyframes marquee { to { transform: translateX(calc(-50% - 0.375rem)); } }
.ticker__note { margin-top: 2rem; color: var(--muted); font-size: 0.9rem; }

/* Call to action */
.cta { position: relative; overflow: hidden; padding-block: clamp(5rem, 4rem + 6vw, 9rem); text-align: center; isolation: isolate; }
.cta__glow { position: absolute; left: 50%; top: 50%; width: min(60rem, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; background: radial-gradient(circle, rgb(79 57 246 / 0.35), rgb(16 185 129 / 0.10) 40%, transparent 65%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.8; } }
.cta__inner { display: grid; justify-items: center; gap: 1rem; }
.cta h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; }
.cta p { color: var(--muted); }
.cta .btn { margin-top: 0.75rem; }
.cta__fine { font-size: 0.85rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 0.875rem; color: var(--muted); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.foot__inner nav { display: flex; gap: 1.25rem; margin-left: auto; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Consent banner */
.consent { position: fixed; z-index: 50; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin-inline: auto; background: rgb(17 17 20 / 0.92); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: 0 16px 40px rgb(0 0 0 / 0.5); display: grid; gap: 0.85rem; font-size: 0.875rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Legal pages */
.legal { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: 1.9rem; letter-spacing: -0.02em; }
.legal .updated { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.legal h2 { font-size: 1.15rem; margin-top: 2.25rem; }
.legal p, .legal ul { margin-top: 0.75rem; color: var(--muted); }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal strong { color: var(--text); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem var(--gutter); }
.notfound h1 { font-size: 1.9rem; }
.notfound p { color: var(--muted); margin: 0.75rem 0 1.5rem; }
.notfound__gap { height: 2.5rem; }

/* Reduced motion: show the end state of everything */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .meter__fill { width: 100%; background: var(--bad); }
  .viz__stop, .trace__row, .heal__line, .ver__msg, .pviz__line--dim { opacity: 1; transform: none; }
  .pviz__spark i { height: var(--h); }
  .win .fn > *, .win .fe { opacity: 1; stroke-dashoffset: 0; }
  .win[data-stage="preview"] .est, .win[data-stage="inspect"] .insp { opacity: 1; transform: none; }
  .ticker__row { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .ticker__row span:nth-child(n+13) { display: none; }
}

/* ===== v4 additions ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header nav + scroll progress */
.top__nav { display: flex; align-items: center; gap: 1.5rem; }
.top__link { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.top__link:hover { color: var(--text); }
@media (max-width: 46rem) { .top__link { display: none; } }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--ok), var(--violet), var(--warn)); box-shadow: 0 0 12px rgb(16 185 129 / 0.6); }

/* Aurora behind the hero */
.aurora { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; filter: blur(60px) saturate(1.2); opacity: 0.55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 40%; top: -12%; background: radial-gradient(circle, rgb(79 57 246 / 0.9), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; left: 62%; top: 30%; background: radial-gradient(circle, rgb(16 185 129 / 0.5), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 15%; top: 55%; background: radial-gradient(circle, rgb(245 158 11 / 0.22), transparent 65%); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, -14vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(18vw, -8vh) scale(1.2); } }

/* Rotating hero word */
.rot { display: inline-grid; justify-items: start; vertical-align: bottom; overflow: hidden; padding-bottom: 0.08em; transition: width 0.55s cubic-bezier(.2,.7,.2,1); }
.rot__word { white-space: nowrap; width: max-content; }
.rot__word { grid-area: 1 / 1; background: linear-gradient(100deg, var(--ok), var(--violet) 50%, var(--warn)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(70%); filter: blur(8px); transition: opacity 0.55s, transform 0.55s cubic-bezier(.2,.7,.2,1), filter 0.55s; }
.rot__word.is-on { opacity: 1; transform: none; filter: none; }
.rot__word.is-out { opacity: 0; transform: translateY(-70%); filter: blur(8px); }

/* Hero chips */
.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.03); backdrop-filter: blur(6px); font: 0.78rem var(--mono); color: var(--muted); animation: rise 0.9s 0.4s cubic-bezier(.2,.7,.2,1) both; }
.chips li::before { content: "✓ "; color: var(--ok); }

/* Heading word reveal */
[data-split] .w { display: inline-block; opacity: 0; transform: translateY(0.4em); filter: blur(10px); transition: opacity 0.7s, transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.7s; }
[data-split].is-in .w { opacity: 1; transform: none; filter: none; }
.section-sub { margin-top: 0.9rem; color: var(--muted); }

/* Mouse spotlight on cards */
.panel, .pain__card, .trust__item { --mx: 50%; --my: 50%; }
.panel::after, .pain__card::after, .trust__item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(139 125 255 / 0.14), transparent 45%);
}
.pain__card::after { background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 51 102 / 0.12), transparent 45%); }
.panel:hover::after, .pain__card:hover::after, .trust__item:hover::after { opacity: 1; }
.pain__card, .trust__item { position: relative; overflow: hidden; }
.panel, .pain__card, .trust__item { transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.3s; }
.panel:hover, .pain__card:hover, .trust__item:hover { transform: translateY(-4px); }
.panel:hover { border-color: rgb(139 125 255 / 0.4); }

/* Before / after compare */
.compare { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); }
.cmp { position: relative; margin-top: 2rem; height: clamp(18rem, 30vw, 22rem); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; --pos: 50%; user-select: none; touch-action: pan-y; }
.cmp__pane { position: absolute; inset: 0; padding: clamp(1rem, 3vw, 2rem); }
.cmp__pane--before { background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.02) 0 1px, transparent 1px 3px), #090d16; }
.cmp__pane--after { background: radial-gradient(ellipse at 70% 30%, rgb(79 57 246 / 0.22), transparent 60%), var(--deep); clip-path: inset(0 0 0 var(--pos)); }
.cmp__tag { display: inline-block; font: 600 0.75rem var(--mono); color: var(--muted); padding: 0.2rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; }
.cmp__tag--after { color: var(--cyan); border-color: rgb(157 140 255 / 0.4); }
.cmp__pane--after .cmp__tag { position: absolute; right: clamp(1rem, 3vw, 2rem); }
.cmp__log { margin: 1.25rem 0 0; font: 0.85rem/1.9 var(--mono); color: #71717a; white-space: pre-wrap; max-width: 46%; }
.cmp__bad { color: var(--bad); }
.cmp__trace { list-style: none; margin: 2.75rem 0 0 auto; padding: 0; width: min(30rem, 52%); font: 0.82rem var(--mono); }
.cmp__trace li { display: grid; grid-template-columns: 1fr auto auto; gap: 0.9rem; align-items: center; padding: 0.55rem 0.75rem; border-radius: 10px; color: var(--muted); }
.cmp__trace li + li { margin-top: 0.3rem; }
.cmp__trace b { color: var(--text); font: 600 0.85rem var(--sans); display: flex; gap: 0.5rem; align-items: center; }
.cmp__trace b::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
.cmp__trace .ok b::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.cmp__trace .bad { background: rgb(255 51 102 / 0.08); border: 1px solid rgb(255 51 102 / 0.3); }
.cmp__trace .bad b::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.cmp__trace .bad span:last-child { color: var(--bad); }
.cmp__trace .fix b::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.cmp__trace .sum { border-top: 1px solid var(--line); border-radius: 0; margin-top: 0.6rem; padding-top: 0.8rem; }
.cmp__trace .sum span:last-child { color: var(--ok); }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: linear-gradient(var(--cyan), var(--violet)); box-shadow: 0 0 18px rgb(157 140 255 / 0.7); cursor: ew-resize; }
.cmp__handle span { position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; transform: translate(-50%, -50%); border-radius: 50%; background: rgb(17 17 20 / 0.9); border: 1px solid var(--cyan); box-shadow: 0 0 24px rgb(157 140 255 / 0.45); }
.cmp__handle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--cyan); font: 700 1rem var(--mono); letter-spacing: 0.1em; }
.cmp__handle:focus-visible { outline: none; }
.cmp__handle:focus-visible span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.win__fine--plain { border-top: 0; padding-inline: 0; }
@media (max-width: 40rem) {
  .cmp { height: 24rem; }
  .cmp__log { max-width: 100%; font-size: 0.75rem; }
  .cmp__trace { width: 100%; margin-top: 1.5rem; font-size: 0.7rem; }
  .cmp__trace li { grid-template-columns: 1fr auto; gap: 0.15rem 0.6rem; padding: 0.4rem 0.55rem; }
  .cmp__trace li span:last-child { grid-column: 1 / -1; }
  .cmp__pane--after .cmp__tag { position: static; }
  .cmp__pane--after { padding-left: calc(var(--pos) + 1rem); }
  .chips li:nth-child(n+3) { display: none; }
}

/* Numbers strip */
.stats { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgb(79 57 246 / 0.06), rgb(157 140 255 / 0.04)); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.stat { padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) 1rem; display: grid; gap: 0.35rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__n { font: 800 clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--mono); background: linear-gradient(120deg, #fff, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat__l { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 40rem) { .stat { border-left: 0; border-top: 1px solid var(--line); } .stat:first-child { border-top: 0; } }

/* Security */
.trust { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 50% at 80% 0%, rgb(157 140 255 / 0.06), transparent 70%); }
.trust__grid { display: grid; gap: 1rem; margin-top: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.trust__item { padding: 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: var(--deep); opacity: 0; transform: translateY(16px); }
.trust__item.is-in { opacity: 1; transform: none; transition: opacity 0.6s, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.trust__item:nth-child(2).is-in { transition-delay: 0.08s; } .trust__item:nth-child(3).is-in { transition-delay: 0.16s; } .trust__item:nth-child(4).is-in { transition-delay: 0.24s; }
.trust__item svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgb(157 140 255 / 0.5)); }
.trust__item h3 { margin-top: 1.1rem; font-size: 1.1rem; font-weight: 700; }
.trust__item p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }

/* Pain/panel cards also fade up on reveal */
.pain__card, .panel { opacity: 0; transform: translateY(18px); }
.pain__card.is-in, .panel.is-in { opacity: 1; transform: none; transition: opacity 0.7s, transform 0.7s cubic-bezier(.2,.7,.2,1), border-color 0.3s; }
.pain__card.is-in:hover, .panel.is-in:hover, .trust__item.is-in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .aurora i { animation: none !important; }
  [data-split] .w, .pain__card, .panel, .trust__item { opacity: 1 !important; transform: none !important; filter: none !important; }
  .rot__word:not(:first-child) { display: none; }
  .rot__word:first-child { opacity: 1; transform: none; filter: none; }
}
@media (scripting: none) {
  .pain__card, .panel, .trust__item, [data-split] .w { opacity: 1; transform: none; }
}

/* ===== v5 sections ===== */
.fine { margin-top: 0.9rem; font-size: 0.78rem; color: var(--muted); }

/* Two views */
.views { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); }
.views__grid { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 56rem) { .views__grid { grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr); } }
.vcard { border-radius: 20px; padding: 1.4rem; border: 1px solid var(--line); display: flex; flex-direction: column; }
.vcard--before { background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.018) 0 1px, transparent 1px 3px), #090d16; filter: grayscale(0.4); }
.vcard--after { background: radial-gradient(ellipse at 80% 0%, rgb(79 57 246 / 0.25), transparent 60%), var(--deep); border-color: rgb(139 125 255 / 0.35); box-shadow: 0 20px 60px rgb(79 57 246 / 0.18); }
.vcard__head { display: flex; align-items: center; gap: 0.55rem; font: 600 0.85rem var(--mono); color: var(--muted); }
.vcard--after .vcard__head { color: var(--cyan); }
.vcard__dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.vcard__dot--bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.vcard__dot--ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.vcard__log { margin: 1.1rem 0 0; font: 0.85rem/2 var(--mono); color: #71717a; white-space: pre-wrap; flex: 1; }
.vcard__err { color: var(--bad); }
.views__grid.is-in .vcard__err { animation: glitch 2.6s steps(1) infinite; display: inline-block; }
.vcard__verdict { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: 0.95rem; }
.vcard__verdict--ok { color: var(--text); border-top-style: solid; }
.vtrace { list-style: none; margin: 1rem 0 0; padding: 0; flex: 1; }
.vtrace li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.55rem 0.7rem; border-radius: 10px; font: 0.8rem var(--mono); color: var(--muted); opacity: 0; transform: translateX(14px); }
.vtrace li + li { margin-top: 0.3rem; }
.vtrace b { font: 600 0.88rem var(--sans); color: var(--text); display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.vtrace b::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.vtrace .ok b::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.vtrace .bad { background: rgb(255 51 102 / 0.08); border: 1px solid rgb(255 51 102 / 0.35); }
.vtrace .bad span { color: var(--bad); }
.vtrace .bad b::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.vtrace .fix b::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.vtrace .sum { border-top: 1px solid var(--line); border-radius: 0; margin-top: 0.6rem; padding-top: 0.8rem; }
.vtrace .sum span { color: var(--ok); }
.views__grid.is-in .vtrace li { animation: slide 0.45s cubic-bezier(.2,.7,.2,1) forwards; }
.views__grid.is-in .vtrace li:nth-child(1) { animation-delay: 0.9s; } .views__grid.is-in .vtrace li:nth-child(2) { animation-delay: 1.15s; }
.views__grid.is-in .vtrace li:nth-child(3) { animation-delay: 1.4s; } .views__grid.is-in .vtrace li:nth-child(4) { animation-delay: 1.75s; }
.views__grid.is-in .vtrace li:nth-child(5) { animation-delay: 2.05s; }
.views__beam { position: relative; display: grid; place-items: center; min-height: 3rem; }
.views__beam span { position: relative; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgb(157 140 255 / 0.5); background: rgb(17 17 20 / 0.9); box-shadow: 0 0 30px rgb(157 140 255 / 0.35); }
.views__beam span::before { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--cyan); font: 700 1.2rem var(--mono); }
@media (max-width: 55.99rem) { .views__beam span::before { content: "↓"; } }
.views__beam::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(transparent, var(--cyan), transparent); opacity: 0.6; }
@media (min-width: 56rem) { .views__beam::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; background: linear-gradient(90deg, transparent, var(--cyan), transparent); } }
.views__grid.is-in .views__beam span { animation: beam-pulse 2s ease-in-out infinite; }
@keyframes beam-pulse { 50% { box-shadow: 0 0 46px rgb(157 140 255 / 0.65); transform: scale(1.06); } }
@media (max-width: 40rem) { .vtrace li { flex-direction: column; align-items: flex-start; gap: 0.15rem; } }

/* Auto-Healer */
.healer { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); background: radial-gradient(ellipse 50% 60% at 85% 50%, rgb(245 158 11 / 0.06), transparent 70%); }
.healer__grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 62rem) { .healer__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.healer__steps { list-style: none; counter-reset: h; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.65rem; }
.healer__steps li { counter-increment: h; display: flex; gap: 0.75rem; align-items: center; color: var(--muted); }
.healer__steps li::before { content: counter(h); width: 1.6rem; height: 1.6rem; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--warn); color: var(--warn); font: 700 0.75rem var(--mono); }
.hdemo { border-radius: 20px; border: 1px solid var(--line); background: var(--deep); overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / 0.4); }
.hdemo__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); font: 0.78rem var(--mono); color: var(--muted); }
.hdemo__bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgb(255 255 255 / 0.12); }
.hdemo__bar span { margin-left: 0.6rem; }
.hdemo__flow { display: flex; align-items: center; padding: 2rem clamp(0.75rem, 3vw, 1.75rem) 1.25rem; background-image: radial-gradient(rgb(139 125 255 / 0.14) 1px, transparent 1.2px); background-size: 18px 18px; }
.hnode { flex: none; display: flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.8rem; border-radius: 10px; border: 1px solid rgb(139 125 255 / 0.45); background: #18181c; font: 600 0.85rem var(--sans); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.hnode span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgb(139 125 255 / 0.7); transition: background 0.3s, box-shadow 0.3s; }
.hlink { flex: 1; height: 2px; min-width: 1rem; background: rgb(139 125 255 / 0.35); position: relative; overflow: hidden; }
.hlink::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
.hcard { margin: 0 clamp(0.75rem, 3vw, 1.75rem) clamp(0.75rem, 3vw, 1.5rem); padding: 1rem; border-radius: 14px; border: 1px solid rgb(245 158 11 / 0.3); background: rgb(0 0 0 / 0.35); font-size: 0.88rem; min-height: 12.5rem; }
.hcard > * { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.hcard__err { color: var(--bad); font-family: var(--mono); font-size: 0.8rem; }
.hcard__cause { margin-top: 0.75rem; color: var(--muted); }
.hcard__cause b { color: var(--warn); margin-right: 0.35rem; }
.hcard__diff { margin-top: 0.75rem; border-radius: 8px; overflow: hidden; font: 0.8rem/1.9 var(--mono); }
.d-del { padding: 0 0.75rem; background: rgb(255 51 102 / 0.1); color: #ff8fab; }
.d-add { padding: 0 0.75rem; background: rgb(16 185 129 / 0.1); color: #6ee7b7; }
.hcard__actions { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.hbtn { padding: 0.4rem 0.9rem; border-radius: 999px; background: linear-gradient(120deg, var(--brand), #8b7dff); color: #fff; font: 600 0.82rem var(--sans); transition: transform 0.15s, box-shadow 0.3s; }
.hdone { color: var(--ok); font: 0.8rem var(--mono); opacity: 0; transition: opacity 0.35s; }
/* stages */
.hdemo.s1 .hnode--a { border-color: var(--ok); } .hdemo.s1 .hnode--a span { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hdemo.s1 .hnode--a + .hlink::after { animation: zap 0.8s ease-out; }
.hdemo.s2 .hnode--b { border-color: var(--bad); background: #1d0f16; box-shadow: 0 0 22px rgb(255 51 102 / 0.35); animation: shake 0.4s; }
.hdemo.s2 .hnode--b span { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.hdemo.s2 .hcard__err { opacity: 1; transform: none; }
.hdemo.s3 .hcard__cause { opacity: 1; transform: none; }
.hdemo.s4 .hcard__diff, .hdemo.s4 .hcard__actions { opacity: 1; transform: none; }
.hdemo.s5 .hbtn { transform: scale(0.94); box-shadow: 0 0 0 6px rgb(157 140 255 / 0.25); }
.hdemo.s6 .hdone { opacity: 1; }
.hdemo.s6 .hnode--b { border-color: var(--ok); background: #18181c; box-shadow: 0 0 22px rgb(16 185 129 / 0.3); animation: none; }
.hdemo.s6 .hnode--b span, .hdemo.s7 .hnode--c span { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hdemo.s7 .hnode--c { border-color: var(--ok); }
.hdemo.s7 .hlink--2::after { animation: zap 0.8s ease-out; }
@keyframes zap { to { transform: translateX(100%); } }
@keyframes shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
@media (max-width: 30rem) { .hnode { font-size: 0.72rem; padding: 0.45rem 0.55rem; } }

/* Features */
.features { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); }
.fgrid { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.fcard { position: relative; padding: 1.4rem 1.4rem 1.25rem; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgb(79 57 246 / 0.08), transparent 50%), var(--deep); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(16px); --mx: 50%; --my: 50%; }
.fcard.is-in { opacity: 1; transform: none; transition: opacity 0.6s, transform 0.6s cubic-bezier(.2,.7,.2,1), border-color 0.3s; }
.fcard.is-in:hover { transform: translateY(-4px); border-color: rgb(139 125 255 / 0.45); }
.fcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(360px circle at var(--mx) var(--my), rgb(139 125 255 / 0.15), transparent 45%); }
.fcard:hover::after { opacity: 1; }
.fcard svg { width: 2rem; height: 2rem; fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgb(157 140 255 / 0.45)); }
.fcard h3 { margin-top: 1rem; font-size: 1.08rem; font-weight: 700; }
.fcard p { margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; flex: 1; }
.badge { align-self: flex-start; margin-top: 1rem; padding: 0.15rem 0.6rem; border-radius: 999px; font: 600 0.7rem var(--mono); }
.badge--live { color: var(--ok); border: 1px solid rgb(16 185 129 / 0.4); background: rgb(16 185 129 / 0.08); }
.badge--soon { color: var(--warn); border: 1px solid rgb(245 158 11 / 0.4); background: rgb(245 158 11 / 0.08); }
.fcard:has(.badge--soon) svg { stroke: var(--warn); filter: drop-shadow(0 0 8px rgb(245 158 11 / 0.4)); }
.fgrid .fcard:nth-child(4n+2).is-in { transition-delay: 0.06s; } .fgrid .fcard:nth-child(4n+3).is-in { transition-delay: 0.12s; } .fgrid .fcard:nth-child(4n).is-in { transition-delay: 0.18s; }

/* Hub */
.hub { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); overflow: hidden; }
.hub__grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 62rem) { .hub__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hub__legend { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.7rem; color: var(--muted); font-size: 0.92rem; }
.hub__legend li { display: flex; gap: 0.65rem; align-items: baseline; }
.lg { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; transform: translateY(0.05rem); }
.lg--live { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.lg--test { background: transparent; border: 2px solid var(--violet); }
.lg--tool { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.orbit { width: 100%; max-width: 30rem; justify-self: center; overflow: visible; }
.orbit__ring { fill: none; stroke: var(--line); stroke-dasharray: 3 6; }
.orbit__ring { transform-origin: 220px 220px; animation: spin 60s linear infinite; }
.orbit__ring--2 { animation-direction: reverse; animation-duration: 40s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__core circle { fill: #1a1640; stroke: var(--violet); stroke-width: 1.5; filter: drop-shadow(0 0 18px rgb(79 57 246 / 0.8)); }
.orbit__core text { fill: var(--text); font: 800 12px var(--mono); }
.orbit__core .orbit__ai { fill: var(--cyan); font: 600 10px var(--mono); }
.spoke { stroke: rgb(139 125 255 / 0.25); stroke-width: 1.2; }
.spoke--pulse { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 10 200; stroke-linecap: round; animation: spoke 2.6s linear infinite; }
@keyframes spoke { from { stroke-dashoffset: 210; } to { stroke-dashoffset: 0; } }
.sat rect { fill: #18181c; stroke-width: 1.2; }
.sat text { fill: var(--text); font: 600 11px var(--sans); }
.sat--live rect { stroke: var(--ok); filter: drop-shadow(0 0 6px rgb(16 185 129 / 0.5)); }
.sat--test rect { stroke: var(--violet); stroke-dasharray: 3 3; }
.sat--tool rect { stroke: var(--cyan); }

/* Use cases */
.cases { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 50% at 20% 0%, rgb(79 57 246 / 0.08), transparent 70%); }
.cgrid { margin-top: 2.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

.case { opacity: 0; transform: translateY(16px); }
.case.is-in { opacity: 1; transform: none; transition: opacity 0.6s, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.case:nth-child(2).is-in { transition-delay: 0.1s; } .case:nth-child(3).is-in { transition-delay: 0.2s; }
.case__problem { font-size: 1.05rem; color: var(--text); font-style: italic; position: relative; padding-left: 0.9rem; }
.case__problem::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.case.is-in .case__problem { animation: dim 0.4s 1.2s forwards; }
.case.is-in .case__problem::after { animation: strike 0.6s 0.9s forwards; }
@keyframes strike { to { height: 100%; } }
@keyframes dim { to { color: var(--muted); } }
.case__arrow { height: 2.5rem; width: 2px; margin: 1rem 0 1rem 0.4rem; background: linear-gradient(var(--bad), var(--ok)); position: relative; }
.case__arrow::after { content: ""; position: absolute; left: -4px; bottom: -2px; border: 5px solid transparent; border-top-color: var(--ok); }

.case ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.45rem; }
.case li { color: var(--muted); font-size: 0.92rem; padding-left: 1.4rem; position: relative; }
.case li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }

/* Versus table */
.versus { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); }
.vs { margin-top: 2.5rem; border-radius: 20px; border: 1px solid var(--line); overflow-x: auto; background: var(--deep); opacity: 0; transform: translateY(16px); }
.vs.is-in { opacity: 1; transform: none; transition: opacity 0.7s, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.vs table { width: 100%; border-collapse: collapse; min-width: 36rem; }
.vs th, .vs td { padding: 0.95rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }
.vs thead th { font: 600 0.8rem var(--mono); color: var(--muted); }
.vs tbody th { font-weight: 600; }
.vs td { color: var(--muted); }
.vs .vs__us { background: linear-gradient(180deg, rgb(79 57 246 / 0.12), rgb(157 140 255 / 0.05)); color: var(--text); }
.vs thead .vs__us { color: var(--cyan); }
.vs .x, .vs .y { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; margin-right: 0.6rem; font-size: 0.7rem; font-weight: 800; }
.vs .x { color: var(--bad); background: rgb(255 51 102 / 0.12); }
.vs .y { color: var(--ok); background: rgb(16 185 129 / 0.14); box-shadow: 0 0 10px rgb(16 185 129 / 0.35); }
.vs.is-in tbody tr { animation: slide 0.4s cubic-bezier(.2,.7,.2,1) both; }
.vs.is-in tbody tr:nth-child(2) { animation-delay: 0.06s; } .vs.is-in tbody tr:nth-child(3) { animation-delay: 0.12s; } .vs.is-in tbody tr:nth-child(4) { animation-delay: 0.18s; }
.vs.is-in tbody tr:nth-child(5) { animation-delay: 0.24s; } .vs.is-in tbody tr:nth-child(6) { animation-delay: 0.3s; } .vs.is-in tbody tr:nth-child(7) { animation-delay: 0.36s; }
.benefits { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.benefits li { padding-left: 1.75rem; position: relative; color: var(--muted); opacity: 0; transform: translateY(10px); }
.benefits li.is-in { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.5s; }
.benefits li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: radial-gradient(circle, var(--ok) 30%, transparent 70%); box-shadow: 0 0 12px var(--ok); }
.benefits b { color: var(--text); display: block; }

@media (prefers-reduced-motion: reduce) {
  .vtrace li, .fcard, .case, .vs, .benefits li, .hcard > *, .hdone { opacity: 1 !important; transform: none !important; }
}

/* ===== v6 ===== */
/* Slogan: the four words light up in turn */
.slogan { margin-bottom: 1.4rem; font: 700 clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem) var(--mono); letter-spacing: 0.02em; display: flex; flex-wrap: wrap; gap: 0 0.6rem; }
.slogan span { color: rgb(250 250 250 / 0.35); animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both, word-glow 6s ease-in-out infinite; }
.slogan span:nth-child(1) { animation-delay: 0s, 0.6s; }
.slogan span:nth-child(2) { animation-delay: 0.08s, 2s; }
.slogan span:nth-child(3) { animation-delay: 0.16s, 3.4s; }
.slogan span:nth-child(4) { animation-delay: 0.24s, 4.8s; }
@keyframes word-glow { 0%, 30%, 100% { color: rgb(250 250 250 / 0.35); text-shadow: none; } 8%, 20% { color: var(--c, var(--violet)); text-shadow: 0 0 14px var(--c, var(--violet)); } }
.pill--after { margin: 1.75rem 0 0; }
.chips { margin-top: 0.9rem; }
.foot__slogan { font: 700 0.85rem var(--mono); color: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .slogan span { color: var(--cyan); } }

/* Coming next: 4 cards */
.fgrid--4 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.badge--next { color: var(--cyan); border: 1px solid rgb(157 140 255 / 0.45); background: rgb(157 140 255 / 0.08); }
.badge--next::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--cyan); margin-right: 0.4rem; animation: blink 1.6s ease-in-out infinite; }
.fcard:has(.badge--next) svg { stroke: var(--cyan); }

/* Use cases, in the style of the problem and control cards */
.cgrid { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.case { position: relative; padding: 1.25rem 1.25rem 1.5rem; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, rgb(16 185 129 / 0.07), transparent 50%), var(--deep); overflow: hidden; display: flex; flex-direction: column; }
.case h3 { margin-top: 1.4rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.case p { margin-top: 0.45rem; color: var(--muted); flex: 1; }
.case__tpl { align-self: flex-start; margin-top: 1rem; padding: 0.2rem 0.65rem; border-radius: 999px; border: 1px solid rgb(157 140 255 / 0.35); color: var(--cyan); font: 600 0.72rem var(--mono); }
.case__tpl::before { content: "template · "; color: var(--muted); font-weight: 400; }
.cviz { height: 9.5rem; border-radius: 14px; border: 1px solid var(--line); background: rgb(0 0 0 / 0.35); padding: 0.9rem; font: 0.76rem/1.5 var(--mono); color: var(--muted); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.45rem; }
.cviz::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 3px); }
/* support tickets */
.tk { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem; border-radius: 8px; background: rgb(255 255 255 / 0.03); }
.tk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.tag { font-style: normal; flex: none; padding: 0.05rem 0.45rem; border-radius: 999px; font-size: 0.68rem; opacity: 0; transform: scale(0.6); }
.tag--a { color: var(--violet); border: 1px solid rgb(139 125 255 / 0.5); }
.tag--u { color: var(--bad); border: 1px solid rgb(255 51 102 / 0.55); box-shadow: 0 0 10px rgb(255 51 102 / 0.3); }
.tag--b { color: var(--ok); border: 1px solid rgb(16 185 129 / 0.5); }
.case.is-in .tag { animation: tag-pop 0.35s cubic-bezier(.2,.9,.3,1.4) forwards; }
.case.is-in .tk:nth-child(1) .tag { animation-delay: 0.5s; } .case.is-in .tk:nth-child(2) .tag { animation-delay: 1s; } .case.is-in .tk:nth-child(3) .tag { animation-delay: 1.5s; }
@keyframes tag-pop { to { opacity: 1; transform: none; } }
/* meeting table */
.mt { display: grid; grid-template-columns: 1fr 3.6rem 2.4rem; gap: 0.5rem; padding: 0.2rem 0.35rem; opacity: 0; transform: translateX(-8px); }
.mt span:not(:first-child) { color: var(--text); }
.mt--head { opacity: 1; transform: none; color: var(--cyan); border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; }
.mt--head span { color: var(--cyan) !important; }
.mt--ok { display: block; color: var(--ok); margin-top: auto; }
.case.is-in .mt { animation: slide 0.4s ease-out forwards; }
.case.is-in .mt:nth-child(2) { animation-delay: 0.5s; } .case.is-in .mt:nth-child(3) { animation-delay: 0.9s; } .case.is-in .mt:nth-child(4) { animation-delay: 1.5s; }
/* content fan-out */
.src { align-self: flex-start; padding: 0.3rem 0.6rem; border-radius: 8px; border: 1px solid rgb(139 125 255 / 0.5); color: var(--text); }
.outs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.outs em { font-style: normal; padding: 0.25rem 0.55rem; border-radius: 8px; border: 1px solid rgb(157 140 255 / 0.4); color: var(--cyan); opacity: 0; transform: translateY(-10px); }
.case.is-in .outs em { animation: drop 0.4s cubic-bezier(.2,.9,.3,1.3) forwards; }
.case.is-in .outs em:nth-child(1) { animation-delay: 0.5s; } .case.is-in .outs em:nth-child(2) { animation-delay: 0.7s; }
.case.is-in .outs em:nth-child(3) { animation-delay: 0.9s; } .case.is-in .outs em:nth-child(4) { animation-delay: 1.1s; }
@keyframes drop { to { opacity: 1; transform: none; } }
.flag { margin-top: auto; color: var(--warn); opacity: 0; }
.case.is-in .flag { animation: show 0.4s 1.7s forwards; }
@media (prefers-reduced-motion: reduce) { .tag, .mt, .outs em, .flag { opacity: 1 !important; transform: none !important; } }

/* Typewriter hero word */
.type { display: block; width: max-content; min-width: 0 !important; background: linear-gradient(100deg, var(--ok), var(--violet) 50%, var(--warn)); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; padding-right: 0.08em; }
.type::after { content: ""; position: absolute; right: -0.06em; top: 0.12em; bottom: 0.08em; width: 0.07em; border-radius: 2px; background: var(--warn); box-shadow: 0 0 12px var(--warn); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .type::after { display: none; } }

/* Reactive dot grid */
.dotgrid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.hero { background: var(--void); }
.ticker { background: linear-gradient(180deg, transparent, rgb(17 17 20 / 0.6)); }
.cta { background: transparent; }

/* ===== v8: real problems + audience ===== */
.cgrid--6 { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.case__q { font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--text); padding-left: 0.9rem; border-left: 2px solid var(--bad); margin-bottom: 1rem; min-height: 4.4em; }
.case .cviz { height: auto; min-height: 8.5rem; gap: 0.3rem; background: var(--code); }
.ln { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.2rem 0.45rem; border-radius: 6px; color: var(--muted); opacity: 0; transform: translateX(-8px); }
.ln i { font-style: normal; color: var(--text); white-space: nowrap; }
.ln--ok, .ln--ok i { color: var(--ok); }
.ln--bad { color: var(--bad); background: rgb(255 51 102 / 0.08); }
.ln--bad i { color: var(--bad); }
.ln--warn { color: var(--warn); background: rgb(245 158 11 / 0.08); }
.ln--warn i { color: var(--warn); }
.case.is-in .ln { animation: slide 0.4s ease-out forwards; }
.case.is-in .ln:nth-child(2) { animation-delay: 0.45s; } .case.is-in .ln:nth-child(3) { animation-delay: 0.9s; } .case.is-in .ln:nth-child(4) { animation-delay: 1.4s; }
.ln.bar { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; }
.ln.bar b { height: 0.45rem; border-radius: 999px; background: var(--violet); width: 0; box-shadow: 0 0 10px rgb(139 125 255 / 0.6); }
.case.is-in .ln.bar .b1 { animation: grow1 0.8s 0.6s ease-out forwards; }
.case.is-in .ln.bar .b2 { animation: grow2 0.8s 1s ease-out forwards; }
@keyframes grow1 { to { width: 100%; } }
@keyframes grow2 { to { width: 10%; background: var(--ok); box-shadow: 0 0 10px rgb(16 185 129 / 0.6); } }
.case__fix { margin-top: 1rem; color: var(--muted); }
.case__fix b { color: var(--text); }
.case { background: linear-gradient(160deg, rgb(79 57 246 / 0.07), transparent 50%), var(--deep); }
@media (prefers-reduced-motion: reduce) { .ln { opacity: 1 !important; transform: none !important; } .ln.bar .b1 { width: 100%; } .ln.bar .b2 { width: 10%; } }

/* Audience */
.audience { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 50% at 50% 0%, rgb(79 57 246 / 0.12), transparent 70%); }
.path { position: relative; height: 2px; margin: 3rem 0 0; background: var(--line); overflow: hidden; display: none; }
@media (min-width: 62rem) { .path { display: block; } }
.path span { position: absolute; top: 0; left: 0; height: 100%; width: 22%; background: linear-gradient(90deg, transparent, var(--ok), #fafafa, var(--warn), transparent); animation: travel 3.2s linear infinite; }
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(460%); } }
.agrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 1.5rem; }
@media (max-width: 61.99rem) { .agrid { margin-top: 2.5rem; } }
.who { position: relative; padding: 1.75rem 1.4rem 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: var(--deep); opacity: 0; transform: translateY(16px); }
.who.is-in { opacity: 1; transform: none; transition: opacity 0.6s, transform 0.6s cubic-bezier(.2,.7,.2,1), border-color 0.3s; }
.who:nth-child(2).is-in { transition-delay: 0.08s; } .who:nth-child(3).is-in { transition-delay: 0.16s; } .who:nth-child(4).is-in { transition-delay: 0.24s; }
.who.is-in:hover { border-color: rgb(139 125 255 / 0.5); transform: translateY(-4px); }
.who__dot { position: absolute; top: -0.45rem; left: 1.4rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--void), 0 0 14px var(--violet); }
.who h3 { font-size: 1.12rem; font-weight: 700; }
.who p { margin-top: 0.45rem; color: var(--muted); font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .who { opacity: 1 !important; transform: none !important; } }

/* ===== v9: more emerald and amber, hero keeps its aurora ===== */
.hero { background: transparent; }
.slogan span:nth-child(1) { --c: var(--ok); }
.slogan span:nth-child(2) { --c: var(--violet); }
.slogan span:nth-child(3) { --c: var(--warn); }
.slogan span:nth-child(4) { --c: var(--ok); }
.pill__dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.who:nth-child(1) .who__dot { background: var(--ok); box-shadow: 0 0 0 4px var(--void), 0 0 14px var(--ok); }
.who:nth-child(2) .who__dot { background: var(--warn); box-shadow: 0 0 0 4px var(--void), 0 0 14px var(--warn); }
.who:nth-child(4) .who__dot { background: var(--ok); box-shadow: 0 0 0 4px var(--void), 0 0 14px var(--ok); }
.who:nth-child(1).is-in:hover { border-color: rgb(16 185 129 / 0.5); }
.who:nth-child(2).is-in:hover { border-color: rgb(245 158 11 / 0.5); }
.fgrid .fcard:nth-child(1) svg { stroke: var(--ok); filter: drop-shadow(0 0 8px rgb(16 185 129 / 0.5)); }
.fgrid .fcard:nth-child(2) svg { stroke: var(--warn); filter: drop-shadow(0 0 8px rgb(245 158 11 / 0.5)); }
.fgrid .fcard:nth-child(3) svg { stroke: var(--violet); }
.fgrid .fcard:nth-child(4) svg { stroke: var(--ok); filter: drop-shadow(0 0 8px rgb(16 185 129 / 0.5)); }
.fgrid .fcard:nth-child(1) { background: linear-gradient(160deg, rgb(16 185 129 / 0.09), transparent 50%), var(--deep); }
.fgrid .fcard:nth-child(2) { background: linear-gradient(160deg, rgb(245 158 11 / 0.08), transparent 50%), var(--deep); }
.fgrid .fcard:nth-child(4) { background: linear-gradient(160deg, rgb(16 185 129 / 0.09), transparent 50%), var(--deep); }
.case__fix b { color: var(--ok); }
.ticker__row span:nth-child(3n+1) { border-color: rgb(16 185 129 / 0.35); }
.ticker__row span:nth-child(3n+2) { border-color: rgb(245 158 11 / 0.3); }
.demo__bar { background: linear-gradient(90deg, var(--ok), var(--violet), var(--warn)); }
.est { border-color: rgb(16 185 129 / 0.35); box-shadow: 0 0 40px rgb(16 185 129 / 0.12); }
.est__run { background: linear-gradient(120deg, var(--brand), var(--ok)); }
.hbtn { background: linear-gradient(120deg, var(--brand), var(--ok)); }
.wordmark sup { color: var(--ok); }
.foot__slogan { color: var(--ok); }

/* Headline: exactly three lines, and room for descenders like the "g" in Debug */
.hero h1 { font-size: clamp(2.1rem, 1rem + 4.2vw, 4.6rem); max-width: none; line-height: 1.02; }
.h1-line { display: block; white-space: nowrap; }
.type { padding-bottom: 0.14em; margin-bottom: -0.14em; line-height: 1.02; }
.type::after { bottom: 0.2em; }

/* Solid backs on controls so the grid stays behind them */
.btn--ghost, .btn--quiet { background: rgb(24 24 28 / 0.92); }
.demo__tabs button { background: var(--deep); }
.demo__tabs button[aria-selected="true"] { background: #1d1a3a; }
.chips li, .pill, .ticker__row span, .case__tpl { background: var(--deep); }
.scroll-cue { background: var(--deep); }

/* ===== v18: creative icon tiles ===== */
.itile { --ic: var(--violet); --ic2: var(--ok); position: relative; width: 3.4rem; height: 3.4rem; border-radius: 16px; display: grid; place-items: center; isolation: isolate;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--ic) 32%, transparent), transparent 70%), #121217;
  border: 1px solid color-mix(in srgb, var(--ic) 45%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--ic) 22%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.07); }
.itile[data-c="ok"] { --ic: var(--ok); } .itile[data-c="warn"] { --ic: var(--warn); } .itile[data-c="violet"] { --ic: var(--violet); } .itile[data-c="bad"] { --ic: var(--bad); }
.itile[data-c2="ok"] { --ic2: var(--ok); } .itile[data-c2="warn"] { --ic2: var(--warn); } .itile[data-c2="violet"] { --ic2: var(--violet); } .itile[data-c2="bad"] { --ic2: var(--bad); }
/* rotating light around the tile on hover */
.itile::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--ic) 85%, var(--ic2) 95%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: tile-spin 3s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tile-spin { to { --a: 360deg; } }
.fcard:hover .itile::before, .who:hover .itile::before { opacity: 1; }
.ico { width: 2rem; height: 2rem; overflow: visible; fill: none; stroke: var(--ic); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ic) 55%, transparent)); }
.fcard .itile svg, .fgrid .fcard:nth-child(n) svg { stroke: var(--ic); width: 2rem; height: 2rem; }
.ico .soft { fill: color-mix(in srgb, var(--ic) 16%, transparent); }
.ico .acc { stroke: var(--ic2); }
.ico .soft.acc { fill: color-mix(in srgb, var(--ic2) 16%, transparent); }
.ico .dim { stroke: var(--dim); }
.ico .bad { stroke: var(--bad); }
.ico .soft.bad { fill: rgb(255 51 102 / 0.14); }
.ico .spark { fill: var(--ic2); stroke: none; opacity: 0; }
/* draw-in when the card appears */
.ico [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-in .ico [pathLength] { animation: ico-draw 0.9s cubic-bezier(.4,0,.2,1) forwards; }
.is-in .ico [pathLength]:nth-child(2) { animation-delay: 0.1s; } .is-in .ico [pathLength]:nth-child(3) { animation-delay: 0.2s; } .is-in .ico [pathLength]:nth-child(4) { animation-delay: 0.3s; } .is-in .ico [pathLength]:nth-child(n+5) { animation-delay: 0.4s; }
@keyframes ico-draw { to { stroke-dashoffset: 0; } }
/* idle micro-animations (one per icon) */
.is-in .ico--plug .plugL { animation: plug 2.8s 1s ease-in-out infinite; }
@keyframes plug { 0%, 100% { transform: translateX(-2.5px); } 40%, 70% { transform: translateX(1px); } }
.is-in .ico--plug .spark { animation: spark 2.8s 1s ease-in-out infinite; } .is-in .ico--plug .spark--2 { animation-delay: 1.2s; }
@keyframes spark { 0%, 30%, 100% { opacity: 0; transform: scale(0.4); } 45% { opacity: 1; transform: scale(1.3); } 60% { opacity: 0; } }
.ico .spark, .ico .key, .ico .plugL, .ico .leafL, .ico .leafR, .ico .b3 { transform-box: fill-box; transform-origin: center; }
.is-in .ico--key .key { animation: turn 3.2s 1s ease-in-out infinite; transform-origin: 12.5px 15.5px; transform-box: view-box; }
@keyframes turn { 0%, 55%, 100% { transform: rotate(0); } 70%, 85% { transform: rotate(-35deg); } }
.ico .shine { stroke: rgb(255 255 255 / 0.5); stroke-width: 2.5; opacity: 0; filter: blur(0.6px); }
.is-in .ico--key .shine { animation: shine 3.2s 1.4s ease-in-out infinite; }
@keyframes shine { 0%, 100% { opacity: 0; transform: translateX(-6px); } 20% { opacity: 0.6; } 40% { opacity: 0; transform: translateX(14px); } }
.ico .pulse { stroke: #fafafa; stroke-width: 2.2; stroke-dasharray: 0.08 0.92; stroke-dashoffset: 0; opacity: 0.9; filter: drop-shadow(0 0 4px var(--ic2)); }
.is-in .ico .pulse { animation: flowp 2.2s linear infinite; }
@keyframes flowp { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ico--net .dot { fill: var(--ic2); }
.is-in .ico--net .dot { animation: blink 1.6s ease-in-out infinite; }
.ico--resume .run { stroke: var(--ok); stroke-dasharray: 0.25 0.12; }
.is-in .ico--resume .run { animation: run 1.2s 1s linear infinite; stroke-dashoffset: 0; }
@keyframes run { from { stroke-dashoffset: 0.37; } to { stroke-dashoffset: 0; } }
.is-in .ico--sprout .leafL { animation: sway 3.6s 1s ease-in-out infinite; transform-origin: right bottom; }
.is-in .ico--sprout .leafR { animation: sway 3.6s 1.3s ease-in-out infinite reverse; transform-origin: left bottom; }
@keyframes sway { 50% { transform: rotate(-7deg); } }
.is-in .ico--sprout .spark { animation: spark 3s 1.5s ease-in-out infinite; }
.is-in .ico--blocks .b3 { animation: drop 3s 1s cubic-bezier(.3,1.5,.5,1) infinite; }
@keyframes drop { 0%, 15% { transform: translateY(-7px); opacity: 0; } 35%, 85% { transform: none; opacity: 1; } 100% { transform: none; opacity: 1; } }
.ico--code .caret { fill: var(--ic2); stroke: none; }
.is-in .ico--code .caret { animation: caret 1s steps(1) infinite; }
.who .itile { margin-bottom: 1.1rem; }
.fcard .itile { margin-bottom: 0.2rem; }
@media (prefers-reduced-motion: reduce) { .ico [pathLength] { stroke-dashoffset: 0; } .ico .spark, .ico .shine { opacity: 0; } }
.itile { width: 3.75rem; height: 3.75rem; }
.itile .ico, .fcard .itile svg, .fgrid .fcard:nth-child(n) .itile svg { width: 2.5rem; height: 2.5rem; }

/* ===== v19: Debugify Loop, 3D tilt, decode headings ===== */
.loop { padding-block: clamp(4rem, 3rem + 5vw, 8rem); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.loop__grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 62rem) { .loop__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.loop__panel { position: relative; z-index: 2; margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: var(--deep); min-height: 10.5rem; overflow: hidden; }
.loop__panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lc, var(--ok)); box-shadow: 0 0 16px var(--lc, var(--ok)); transition: background 0.4s; }
.loop__kicker { font: 600 0.78rem var(--mono); color: var(--lc, var(--ok)); transition: color 0.4s; }
.loop__panel h3 { margin-top: 0.4rem; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; }
.loop__panel p:last-child { margin-top: 0.5rem; color: var(--muted); }
.loop__panel.swap > * { animation: loop-swap 0.5s cubic-bezier(.2,.7,.2,1); }
@keyframes loop-swap { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.loop__btns { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.loop__btns button { padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--deep); color: var(--muted); font: 600 0.88rem var(--sans); cursor: pointer; transition: color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.loop__btns button[aria-selected="true"] { color: var(--text); border-color: var(--lc, var(--ok)); box-shadow: 0 0 18px color-mix(in srgb, var(--lc, var(--ok)) 35%, transparent); }
.loop__stage { position: relative; z-index: 2; justify-self: center; width: min(100%, 30rem); }
.loop__svg { width: 100%; height: auto; overflow: visible; padding: 0 1.5rem; }
.loop__track { fill: none; stroke: var(--line); stroke-width: 2; }
.loop__ring { fill: none; stroke: url(#lg-ring); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 1; transform: rotate(-90deg); transform-origin: 200px 200px; filter: drop-shadow(0 0 8px rgb(139 125 255 / 0.6)); }
.loop__inner { fill: #141419; stroke: var(--line); }
.loop__ticks line { stroke: rgb(139 125 255 / 0.25); stroke-width: 1; }
.loop__ticks line.major { stroke: rgb(139 125 255 / 0.55); stroke-width: 1.6; }
.loop__ticks { transform-origin: 200px 200px; animation: spin 80s linear infinite; }
.loop__node circle.bg { fill: #141419; stroke: var(--line); stroke-width: 1.5; transition: stroke 0.4s, fill 0.4s; }
.loop__node circle.glow { fill: var(--nc); opacity: 0; transition: opacity 0.4s; filter: blur(10px); }
.loop__node text { fill: var(--muted); font: 700 12px var(--mono); letter-spacing: 0.06em; transition: fill 0.4s; }
.loop__node path { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s; }
.loop__node { cursor: pointer; }
.loop__node.on circle.bg { stroke: var(--nc); fill: color-mix(in srgb, var(--nc) 14%, #141419); }
.loop__node.on circle.glow { opacity: 0.55; }
.loop__node.on text { fill: #fafafa; }
.loop__node.on path { stroke: var(--nc); }
.loop__node.hit circle.bg { animation: node-hit 0.6s ease-out; }
@keyframes node-hit { 0% { stroke-width: 6; } 100% { stroke-width: 1.5; } }
.loop__head { fill: #fafafa; filter: drop-shadow(0 0 6px #fff); }
.loop__halo { fill: var(--lc, #10b981); opacity: 0.35; filter: blur(6px); }
.loop__brand { fill: #fafafa; font: 800 15px var(--mono); }
.loop__stagename { fill: var(--lc, #10b981); font: 700 12px var(--mono); letter-spacing: 0.3em; }
@media (prefers-reduced-motion: reduce) { .loop__ticks { animation: none; } }

/* 3D tilt on cards */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform 0.25s ease-out, border-color 0.3s; }
.tilt .itile, .tilt .viz, .tilt .pviz, .tilt .cviz { transform: translateZ(28px); }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / 0.08), transparent 50%); }
.tilt:hover .tilt-glare { opacity: 1; }

/* Decode effect on headings */
.decode-ch { color: var(--ok); text-shadow: 0 0 10px rgb(16 185 129 / 0.7); font-family: var(--mono); font-weight: 600; }
.tilt.is-in, .tilt.is-in:hover { transition: transform 0.25s ease-out, opacity 0.6s, border-color 0.3s; transition-delay: 0s; }

/* ===== v20: agentic hero console ===== */
.hero__grid2 { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 64rem) { .hero__grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 3rem; } }
.hero__grid2 .hero__text > * { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero .hero__grid2 h1 { font-size: clamp(2.1rem, 1rem + 3.6vw, 4.2rem); }
.agent { position: relative; z-index: 3; border-radius: 20px; border: 1px solid rgb(139 125 255 / 0.3); background: linear-gradient(180deg, rgb(24 24 28 / 0.92), rgb(17 17 20 / 0.94)); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.03) inset, 0 0 60px rgb(79 57 246 / 0.18); overflow: hidden; animation: rise 1s 0.25s cubic-bezier(.2,.7,.2,1) both; font-size: 0.85rem; }
.agent::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / 0.05) 50%, transparent 60%); background-size: 250% 100%; animation: sheen 7s linear infinite; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.agent__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); font: 0.75rem var(--mono); color: var(--dim); }
.agent__bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgb(255 255 255 / 0.12); }
.agent__bar > span:first-of-type { margin-left: 0.5rem; }
.agent__live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.agent__live b { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--dim); }
.agent__live em { font-style: normal; }
.agent[data-s="run"] .agent__live b { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 1s infinite; }
.agent[data-s="heal"] .agent__live b { background: var(--warn); box-shadow: 0 0 8px var(--warn); animation: blink 0.6s infinite; }
.agent[data-s="done"] .agent__live b { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.agent__prompt { display: flex; align-items: center; gap: 0.5rem; margin: 0.8rem 0.9rem 0; padding: 0.55rem 0.55rem 0.55rem 0.8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--code); font: 0.82rem var(--mono); color: var(--text); min-height: 2.6rem; }
.agent__caret { color: var(--ok); }
.agent__cursor { width: 0.5rem; height: 1rem; background: var(--ok); animation: caret 1s steps(1) infinite; margin-left: -0.3rem; }
.agent__run { margin-left: auto; padding: 0.3rem 0.85rem; border-radius: 999px; background: linear-gradient(120deg, var(--brand), var(--ok)); color: #fff; font: 600 0.78rem var(--sans); opacity: 0.4; transition: opacity 0.3s, box-shadow 0.3s, transform 0.15s; }
.agent__run.ready { opacity: 1; box-shadow: 0 0 18px rgb(16 185 129 / 0.5); }
.agent__run.press { transform: scale(0.9); }
.agent__stage { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.6rem; align-items: center; padding: 1rem 0.9rem 0.6rem; min-height: 15rem; }
.agent__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.agent__wires path { fill: none; stroke: rgb(139 125 255 / 0.22); stroke-width: 1.4; }
.agent__wires path.on { stroke: rgb(16 185 129 / 0.75); stroke-dasharray: 4 6; animation: wireflow 0.6s linear infinite; filter: drop-shadow(0 0 4px rgb(16 185 129 / 0.8)); }
.agent__wires path.bad { stroke: rgb(255 51 102 / 0.8); stroke-dasharray: none; filter: drop-shadow(0 0 4px rgb(255 51 102 / 0.8)); }
.agent__wires path.done { stroke: rgb(16 185 129 / 0.45); }
@keyframes wireflow { to { stroke-dashoffset: -10; } }
.agent__wires circle { fill: #fafafa; filter: drop-shadow(0 0 5px #10b981); }
.orb { position: relative; width: 6.5rem; height: 6.5rem; display: grid; place-items: center; }
.orb__core { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8b7dff 35%, #4f39f6 70%); box-shadow: 0 0 30px rgb(79 57 246 / 0.8); transition: box-shadow 0.4s, transform 0.4s; }
.agent[data-s="run"] .orb__core, .agent[data-s="heal"] .orb__core { animation: orbpulse 1.2s ease-in-out infinite; }
@keyframes orbpulse { 50% { transform: scale(1.12); box-shadow: 0 0 50px rgb(16 185 129 / 0.8); } }
.orb__ring { position: absolute; inset: 0.4rem; border-radius: 50%; border: 1.5px dashed rgb(139 125 255 / 0.45); animation: spin 9s linear infinite; }
.orb__ring--2 { inset: 0; border-style: solid; border-color: transparent; border-top-color: var(--ok); border-right-color: rgb(16 185 129 / 0.3); animation-duration: 2.4s; opacity: 0.4; }
.agent[data-s="run"] .orb__ring--2, .agent[data-s="heal"] .orb__ring--2 { opacity: 1; animation-duration: 1s; }
.agent[data-s="heal"] .orb__ring--2 { border-top-color: var(--warn); border-right-color: rgb(245 158 11 / 0.3); }
.orb__label { position: absolute; bottom: -1.3rem; font: 600 0.65rem var(--mono); color: var(--dim); letter-spacing: 0.06em; white-space: nowrap; }
.agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; position: relative; }
.agents li { display: grid; grid-template-columns: 1.9rem 5.2rem 1fr auto; align-items: center; gap: 0.55rem; padding: 0.45rem 0.6rem; border-radius: 12px; border: 1px solid var(--line); background: #141419; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, transform 0.3s; }
.av { position: relative; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: #1d1d24; border: 1px solid var(--line); }
.av svg { width: 1rem; height: 1rem; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.av::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid transparent; }
.nm { font-weight: 650; font-size: 0.82rem; }
.st { font: 0.72rem var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk { font: 0.7rem var(--mono); color: var(--muted); }
.agents li.think { border-color: rgb(139 125 255 / 0.55); box-shadow: 0 0 18px rgb(79 57 246 / 0.25); }
.agents li.think .av::after { border-top-color: var(--violet); border-right-color: var(--violet); animation: spin 0.8s linear infinite; }
.agents li.think .st { color: var(--violet); }
.agents li.ok { border-color: rgb(16 185 129 / 0.45); }
.agents li.ok .av svg { stroke: var(--ok); }
.agents li.ok .st { color: var(--ok); }
.agents li.bad { border-color: rgb(255 51 102 / 0.6); background: #1d1016; box-shadow: 0 0 20px rgb(255 51 102 / 0.25); animation: shake 0.4s; }
.agents li.bad .av svg { stroke: var(--bad); }
.agents li.bad .st { color: var(--bad); }
.heal { position: absolute; right: 0.9rem; bottom: 0.2rem; padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid rgb(245 158 11 / 0.5); background: #1f1810; font: 0.72rem var(--mono); color: var(--warn); box-shadow: 0 0 18px rgb(245 158 11 / 0.25); opacity: 0; transform: translateY(8px) scale(0.95); transition: opacity 0.35s, transform 0.35s; }
.heal b { color: #fafafa; font-family: var(--sans); }
.heal.on { opacity: 1; transform: none; }
.heal.ok { border-color: rgb(16 185 129 / 0.5); color: var(--ok); background: #0f1c17; box-shadow: 0 0 18px rgb(16 185 129 / 0.25); }
.agent__out { display: flex; gap: 0.6rem; margin: 0.9rem 0.9rem 0; padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--code); border: 1px solid var(--line); font: 0.78rem/1.5 var(--mono); color: var(--muted); min-height: 2.4rem; }
.agent__outk { color: var(--dim); }
.agent[data-s="done"] .agent__out { border-color: rgb(16 185 129 / 0.45); color: var(--text); }
.agent__cost { display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.6rem; align-items: center; margin: 0.7rem 0.9rem 0; font: 0.75rem var(--mono); color: var(--dim); }
.agent__meter { height: 0.4rem; border-radius: 999px; background: rgb(255 255 255 / 0.06); overflow: hidden; }
.agent__meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ok), var(--violet)); box-shadow: 0 0 10px rgb(16 185 129 / 0.6); transition: width 0.6s cubic-bezier(.2,.7,.2,1); }
#ag-cost { color: var(--text); font-variant-numeric: tabular-nums; }
.agent__fine { margin: 0.6rem 0.9rem 0.8rem; font-size: 0.68rem; color: var(--dim); }
@media (max-width: 40rem) {
  .agent__stage { grid-template-columns: 1fr; gap: 1.4rem; }
  .orb { justify-self: center; width: 5rem; height: 5rem; }
  .agents li { grid-template-columns: 1.7rem 4.6rem 1fr; }
  .tk { display: none; }
  .heal { position: static; justify-self: start; }
  .agent__budget { display: none; }
}
/* v20 fixes */
.hero .hero__grid2 h1 { font-size: clamp(2rem, 0.9rem + 3vw, 3.75rem); }
.agent__stage { grid-template-rows: 1fr auto; }
.orb { grid-row: 1 / span 2; }
.heal { position: static; grid-column: 2; justify-self: start; }
@media (max-width: 40rem) { .orb { grid-row: auto; } .heal { grid-column: 1; } .agent__wires { display: none; } .agent__stage { min-height: 0; } }

/* ===== swarm hero (preview) ===== */
.swarm-c { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: block; }
.swarm-c.is-fixed { position: fixed; z-index: 0; }
.swarm-fade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 50% 70% at 18% 50%, rgb(13 15 18 / 0.88), transparent 70%); }
#thoughts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.s-thought { position: absolute; font: 0.78rem var(--mono); color: var(--text); padding: 0.3rem 0.6rem; border-radius: 8px; background: rgb(24 24 28 / 0.9); border: 1px solid rgb(139 125 255 / 0.4); box-shadow: 0 0 18px rgb(79 57 246 / 0.3); white-space: nowrap; opacity: 0; transform: translate(-50%, -150%) scale(0.9); transition: opacity 0.4s, transform 0.4s; }
.s-thought.on { opacity: 1; transform: translate(-50%, -175%) scale(1); }
.s-thought b { color: var(--ok); font-weight: 600; }
.s-thought.bad { border-color: rgb(255 51 102 / 0.6); } .s-thought.bad b { color: var(--bad); }
.s-thought.fix { border-color: rgb(245 158 11 / 0.6); } .s-thought.fix b { color: var(--warn); }
.hero .hero__content { position: relative; z-index: 3; }
.hero .hero__content h1 { font-size: clamp(2.3rem, 1rem + 4vw, 4.4rem); }
@media (max-width: 56rem) { .hero .hero__content { padding-bottom: 17rem; } .swarm-fade { background: linear-gradient(180deg, rgb(13 15 18 / 0.85) 55%, transparent 80%); } }
.dotgrid { transition: opacity 0.5s; }
/* preview switcher */
.mode-sw { position: fixed; z-index: 80; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgb(17 17 20 / 0.9); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgb(0 0 0 / 0.5); }
.mode-sw button { border: 0; border-radius: 999px; padding: 0.5rem 0.9rem; background: transparent; color: var(--muted); font: 600 0.82rem var(--sans); cursor: pointer; white-space: nowrap; }
.mode-sw button[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 0 0 18px rgb(79 57 246 / 0.6); }
.mode-note { position: fixed; z-index: 80; left: 50%; bottom: 66px; transform: translateX(-50%); max-width: min(92vw, 40rem); text-align: center; font: 0.75rem var(--mono); color: var(--muted); background: rgb(17 17 20 / 0.85); border: 1px solid var(--line); padding: 0.4rem 0.8rem; border-radius: 10px; }
@media (max-width: 560px) { .mode-sw button { padding: 0.45rem 0.6rem; font-size: 0.72rem; } .mode-note { display: none; } }

/* v21 */
.ticker__row span.t-cat { border-color: rgb(245 158 11 / 0.55); color: var(--warn); font-weight: 600; }
.ticker__row span.t-cat::before { content: "● "; }
.mode-sw, .mode-note { display: none !important; }
/* v22: same aurora look, without a live blur filter (it was forcing a full re-blur every frame) */
.aurora { filter: none; opacity: 0.6; contain: strict; }
.aurora i { mix-blend-mode: normal; will-change: transform; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgb(79 57 246 / 0.75), rgb(79 57 246 / 0.25) 40%, transparent 70%); }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgb(16 185 129 / 0.42), rgb(16 185 129 / 0.12) 40%, transparent 70%); }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgb(245 158 11 / 0.2), rgb(245 158 11 / 0.06) 40%, transparent 70%); }

/* v23: the aurora stays still (big moving layers were costly to repaint) */
.aurora i { animation: none !important; will-change: auto; }
.aurora i:nth-child(1) { transform: translate(-6vw, 5vh) scale(1.08); }
.aurora i:nth-child(2) { transform: translate(-4vw, -7vh) scale(.95); }
.aurora i:nth-child(3) { transform: translate(9vw, -4vh) scale(1.1); }
.cta__glow { filter: none; animation: none; }
