/* DNSalsa — styles.css
   Design source: DNSalsa design export (index.html + DNSalsa Logo.html).
   Single dark look by design: Night canvas, Fire Red > Salsa > Heat flame gradient.
   Layout: centered hero, 2px-gap card grids, alternating Night / Card bands. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/space-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Space Mono's @ is a tiny a-in-a-circle that reads as an 'a' (infoadnsalsa.nl). Only the @ comes from the
   system's monospace font; every other character stays Space Mono. */
@font-face {
  font-family: 'DNSalsa At';
  src: local('SF Mono'), local('SFMono-Regular'), local('Menlo-Regular'), local('Consolas'), local('Cascadia Mono'),
       local('DejaVu Sans Mono'), local('Liberation Mono'), local('Courier New');
  unicode-range: U+0040;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    oklch(48% 0.23 22);   /* Fire Red */
  --orange: oklch(63% 0.22 42);   /* Salsa */
  --heat:   oklch(72% 0.2 55);    /* Heat */
  --bg:     oklch(11% 0.015 22);  /* Night */
  --card:   oklch(15% 0.018 22);
  --card2:  oklch(17% 0.02 22);
  --border: oklch(22% 0.015 22);
  --muted:  oklch(62% 0.012 55);  /* lifted from 50% for AA contrast on Night */
  --warm-white: oklch(96% 0.008 55);
  --on-accent: #fff;

  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DNSalsa At', 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: 48px;
  color-scheme: dark;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--warm-white);
  line-height: 1.6;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); }
.hl { color: var(--orange); }

/* ── WORDMARK ── */
.logo { display: flex; align-items: center; gap: 10px; }
.wm { letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.wm b { font-weight: 700; color: var(--warm-white); }
.wm i { font-weight: 300; font-style: normal; color: var(--orange); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600;
  border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: border-color .2s, background .2s, opacity .2s, transform .15s, box-shadow .2s;
}
.btn-sm { font-size: 14px; padding: 8px 20px; }
.btn-lg { font-size: 16px; padding: 14px 32px; border-radius: 10px; }
.btn-ghost { border: 1px solid var(--border); background: transparent; color: var(--warm-white); }
.btn-ghost:hover { border-color: var(--orange); background: var(--card2); }
.btn-primary {
  border: none; color: var(--on-accent);
  background: linear-gradient(135deg, var(--red), oklch(55% 0.21 36));
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-lg.btn-primary { box-shadow: 0 8px 32px oklch(48% 0.23 22 / 0.4); }
.btn-lg.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px oklch(48% 0.23 22 / 0.55); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  background: oklch(11% 0.015 22 / 0.85);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .wm { font-size: 22px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--warm-white); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* ── HERO ── */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 168px var(--gutter) 112px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; max-width: none;
  background: radial-gradient(ellipse at center, oklch(48% 0.23 22 / 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero > *:not(.hero-glow) { position: relative; }

.hero h1 {
  font-size: clamp(44px, 8vw, 96px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.0;
  max-width: 900px; margin-bottom: 24px; text-wrap: balance;
}
.hero h1 .light { font-weight: 300; }
.hero h1 .accent { color: var(--orange); }
.hero p.lede {
  font-size: clamp(16px, 2vw, 20px); color: var(--muted);
  max-width: 540px; margin-bottom: 40px; line-height: 1.65; text-wrap: pretty;
}
.actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.copy {
  flex-shrink: 0; align-self: center; margin: 0 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 10px; cursor: pointer; transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--warm-white); border-color: var(--orange); }

/* ── SPECS STRIP ── */
.proof {
  padding: 48px var(--gutter); border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.stats { display: flex; gap: 64px; flex-wrap: wrap; justify-content: center; list-style: none; }
.stat { text-align: center; }
.stat .num {
  font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2;
  background: linear-gradient(135deg, var(--orange), var(--heat));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--orange);
}
.stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── SECTIONS ── */
.band { background: var(--bg); }
.band.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section { padding: 100px var(--gutter); max-width: 1200px; margin: 0 auto; }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 16px;
}
.title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  margin-bottom: 16px; max-width: 700px; text-wrap: balance;
}
.sub { font-size: 17px; color: var(--muted); max-width: 540px; line-height: 1.65; margin-bottom: 56px; text-wrap: pretty; }

/* ── FEATURES ── */
.grid { display: grid; gap: 2px; border-radius: 12px; overflow: hidden; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); margin-top: 2px; }
.grid-3 { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.grid-2 { border-top-left-radius: 0; border-top-right-radius: 0; }
.card { background: var(--card); padding: 36px 32px; transition: background .2s; min-width: 0; }
.card:hover { background: var(--card2); }
.icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 20px;
  background: oklch(63% 0.22 42 / 0.12); border: 1px solid oklch(63% 0.22 42 / 0.25);
  display: flex; align-items: center; justify-content: center;
}
.icon svg { width: 20px; height: 20px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3, .step h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.flow-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 64px; }
.flow-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.flow-head span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.flow-head + .steps { margin-top: 32px; }
.card p, .step p { font-size: 14px; color: var(--muted); line-height: 1.65; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; list-style: none; }
.chips li {
  font-family: var(--mono); font-size: 11px; color: var(--warm-white);
  border: 1px solid var(--border); background: var(--bg); border-radius: 6px; padding: 3px 8px;
}

/* ── HOW IT WORKS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; position: relative; list-style: none; }
.steps::before {
  content: ''; position: absolute; top: 28px;
  left: calc(16.666% + 28px); right: calc(16.666% + 28px); height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--border));
}
.step { padding: 0 32px; position: relative; min-width: 0; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 24px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--orange);
  position: relative; z-index: 1;
}
.step:first-child .step-num {
  background: linear-gradient(135deg, var(--red), var(--orange)); color: var(--on-accent); border: none;
  box-shadow: 0 4px 24px oklch(48% 0.23 22 / 0.5);
}
.code {
  margin-top: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.8;
  overflow-x: auto; white-space: pre;
}
.code .k { color: var(--orange); }
.code .v { color: var(--warm-white); }

/* ── FAQ ── */
.faq { margin-top: 48px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 24px 28px; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--warm-white);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background .15s;
}
.faq-q:hover { background: var(--card2); }
.faq-q:focus-visible { outline-offset: -2px; border-radius: 0; }
.faq-q .arrow { color: var(--orange); font-size: 20px; line-height: 1; transition: transform .2s; flex-shrink: 0; }
.faq-q[aria-expanded="true"] .arrow { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > div { overflow: hidden; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 28px 24px; font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 760px; text-wrap: pretty; }
.faq-a code { font-family: var(--mono); font-size: 13px; color: var(--warm-white); }

/* ── CTA ── */
.cta { padding: 100px var(--gutter); text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.cta-glow {
  position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; max-width: none;
  background: radial-gradient(ellipse, oklch(63% 0.22 42 / 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta > *:not(.cta-glow) { position: relative; }
.cta .flame { margin-bottom: 24px; }
.cta h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; text-wrap: balance; }
.cta p { font-size: 18px; color: var(--muted); margin-bottom: 40px; }

/* ── FOOTER ── */
.footer {
  padding: 48px var(--gutter); border-top: 1px solid var(--border);
  /* logo left, links in the middle of the page, copyright right; equal side columns keep the links centred */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.footer > :first-child { justify-self: start; }
.footer-copy { justify-self: end; text-align: right; }
.footer .wm { font-size: 18px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--warm-white); }
.footer-copy { font-size: 12px; color: var(--muted); font-family: var(--mono); }

/* ── PRICING ── */
.pricing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.price-plan.featured { background: linear-gradient(var(--card2), var(--card)) padding-box,
  linear-gradient(120deg, var(--red), var(--orange) 55%, var(--heat)) border-box; border: 1px solid transparent; }
.price-plan h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan-badge { position: absolute; top: -12px; right: 24px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: linear-gradient(120deg, var(--red), var(--orange)); padding: 5px 10px; border-radius: 99px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .amt { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .per { font-size: 14px; color: var(--muted); }
.plan-for { font-size: 15px; color: var(--warm-white); }
.plan-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 4px; }
.plan-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14px; color: oklch(84% 0.01 55); line-height: 1.5; }
.plan-list svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-note { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: auto; }
.price-plan .btn { align-self: flex-start; }
.fit { margin-top: 40px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px; }
.fit h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.fit dl { display: grid; }
.fit dl > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--border); }
.fit dt { font-size: 14px; color: oklch(84% 0.01 55); line-height: 1.5; }
.fit dd { flex: none; }
.pill { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); color: var(--warm-white); white-space: nowrap; }
.pill.hot { border-color: oklch(63% 0.22 42 / 0.5); background: oklch(63% 0.22 42 / 0.14); color: var(--heat); }
.faq-a a { color: var(--heat); text-underline-offset: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .pricing-plans { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .footer > :first-child, .footer-copy { justify-self: center; text-align: center; }
  .footer-links { gap: 12px 22px; }
}
@media (max-width: 560px) {
  .price-plan, .fit { padding: 24px 20px; }
  .fit dl > div { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .hero { padding: 128px var(--gutter) 80px; }
  .section, .cta { padding-block: 64px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .steps { gap: 40px; }
  .steps::before { display: none; }
  .step { padding: 0; }
  .stats { gap: 32px 40px; }
  .faq-q { padding: 20px; }
  .faq-a p { padding: 0 20px 20px; }
}
@media (max-width: 440px) {
  .nav-cta .btn-ghost { display: none; }
  .actions { flex-direction: column; align-self: stretch; }
  .actions .btn { width: 100%; }
}

/* ════════════ MOTION LAYER ════════════
   Focal moment: the hero demo. Provider changes IP, the update call types out,
   the record flips to the new address with a heat flash. Everything else is
   feedback or scroll-linked continuity. Default state is always fully visible. */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --heat-glow: oklch(63% 0.22 42 / 0.28);
}

/* Browser surfaces */
::selection { background: oklch(63% 0.22 42 / 0.35); color: var(--warm-white); }
html { scrollbar-color: var(--border) var(--bg); caret-color: var(--orange); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: oklch(30% 0.02 22); }

/* Press feedback */
.btn:active { transform: translateY(1px) scale(0.98); transition-duration: .08s; }
.copy:active { transform: scale(0.96); }

/* ── HERO DEMO ── */
.demo {
  margin-top: 64px; width: min(680px, 100%);
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  text-align: left; overflow: hidden;
  box-shadow: 0 30px 80px -30px oklch(48% 0.23 22 / 0.45);
}
.demo-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--border);
  background: oklch(13% 0.017 22);
}
.lights { display: flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.demo-title { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo .copy { margin: 0; }

.demo-term {
  padding: 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9;
  color: var(--warm-white); overflow-x: auto; min-height: calc(3 * 1.9em + 36px);
}
.ln { white-space: pre; transition: opacity .25s var(--ease-out), transform .35s var(--ease-out); }
.ln.note { color: var(--muted); }
.ln .p { color: var(--orange); }
.ln.resp { color: var(--muted); }
.ln.resp .hl { color: var(--heat); }
.ln.is-hidden { opacity: 0; transform: translateY(4px); }
.caret {
  display: inline-block; width: 7px; height: 1.1em; vertical-align: -0.2em; margin-left: 2px;
  background: var(--orange); opacity: 0;
}
.demo.is-typing .caret { opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.record {
  display: grid; grid-template-columns: 1.6fr .5fr 1.3fr .5fr;
  border-top: 1px solid var(--border); background: var(--bg);
}
.rc { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; }
.rc + .rc { border-left: 1px solid var(--border); }
.rk { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rv { font-family: var(--mono); font-size: 13px; color: var(--warm-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rc-ip { isolation: isolate; }
.rc-ip::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(120% 140% at 0% 50%, var(--heat-glow), transparent 70%);
}
.rc-ip.is-flash::before { animation: heatflash 1.6s var(--ease-out); }
.rc-ip.is-flash .rv { animation: heattext 1.6s var(--ease-out); }
@keyframes heatflash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes heattext { 0%, 40% { color: var(--heat); } 100% { color: var(--warm-white); } }
.ip .d { display: inline-block; }
.ip .d.roll { animation: roll .32s var(--ease-out); }
@keyframes roll { from { transform: translateY(-55%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }

.demo-cap {
  padding: 8px 16px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}

/* ── UPDATE HISTORY LOG ── */
.log { list-style: none; margin-top: 18px; display: grid; gap: 2px; border-radius: 8px; overflow: hidden; }
.log li {
  display: grid; grid-template-columns: 3.4em 1fr 1fr; align-items: center; gap: 10px;
  background: var(--bg); padding: 8px 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.log time { color: var(--muted); }
.log .from { text-decoration: line-through; text-decoration-color: oklch(48% 0.23 22 / 0.6); overflow: hidden; text-overflow: ellipsis; }
.log .to { color: var(--warm-white); overflow: hidden; text-overflow: ellipsis; }
.log .to::before { content: '\2192'; color: var(--orange); margin-right: 8px; }
.log li.is-new { animation: logIn .6s var(--ease-out); }
.log li.is-new .to { animation: heattext 1.8s var(--ease-out); }
@keyframes logIn { from { clip-path: inset(0 0 100% 0); transform: translateY(-6px); } to { clip-path: inset(0); transform: none; } }

/* ── CARD HEAT GLOW (pointer) ── */
.card { position: relative; isolation: isolate; }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), oklch(63% 0.22 42 / 0.09), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .card:hover::before { opacity: 1; } }
.card:hover .icon { border-color: oklch(63% 0.22 42 / 0.5); background: oklch(63% 0.22 42 / 0.18); }
.icon { transition: border-color .25s, background .25s; }

/* ── NAV ACTIVE SECTION ── */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-links a[aria-current="true"] { color: var(--warm-white); }
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav { transition: background .3s; }
.nav.is-scrolled { background: oklch(11% 0.015 22 / 0.94); }

/* ── STEPS: line fills with scroll ── */
.steps::after {
  content: ''; position: absolute; top: 28px; height: 1px;
  left: calc(16.666% + 28px); right: calc(16.666% + 28px);
  background: linear-gradient(90deg, var(--red), var(--orange), var(--heat));
  transform-origin: left; transform: scaleX(1);
  box-shadow: 0 0 12px oklch(63% 0.22 42 / 0.6);
}
.step-num { transition: border-color .4s, color .4s, box-shadow .4s; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    .steps { view-timeline: --steps block; }
    .steps::after { animation: fill linear both; animation-timeline: --steps; animation-range: entry 60% cover 55%; }
    @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    .step:nth-child(2) .step-num { animation: lit linear both; animation-timeline: --steps; animation-range: cover 30% cover 38%; }
    .step:nth-child(3) .step-num { animation: lit linear both; animation-timeline: --steps; animation-range: cover 50% cover 56%; }
    @keyframes lit { from { border-color: var(--border); } to { border-color: var(--orange); box-shadow: 0 0 0 4px oklch(63% 0.22 42 / 0.12); } }

    /* Section headings settle in as they enter; anything already on screen sits at its end state */
    .section .title, .section .sub, .grid, .faq, .cta h2 {
      animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 80%;
    }
    @keyframes settle { from { opacity: .001; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  }
}

/* ── CTA FLAME: slow flicker, paused off-screen by JS ── */
.cta .flame { transform-origin: 50% 100%; animation: flicker 3.2s ease-in-out infinite; animation-play-state: var(--flame-state, running); filter: drop-shadow(0 10px 30px oklch(48% 0.23 22 / 0.55)); }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  30% { transform: scale(0.98, 1.04) skewX(-1.5deg); }
  55% { transform: scale(1.02, 0.97) skewX(1deg); }
  80% { transform: scale(0.99, 1.02) skewX(-0.5deg); }
}
.hero-glow { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }

@media (max-width: 768px) {
  .demo { margin-top: 48px; }
  .demo-term { font-size: 11.5px; padding: 14px 16px; }
  .record { grid-template-columns: 1fr 1fr; }
  .rc:nth-child(3) { border-left: none; }
  .rc:nth-child(n+3) { border-top: 1px solid var(--border); }
  .log li { grid-template-columns: 2.8em 1fr 1fr; gap: 8px; font-size: 10.5px; }
  .steps::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep state changes legible without movement */
  .rc-ip.is-flash::before { animation: heatflash 1.6s linear !important; }
  .ip .d.roll, .log li.is-new { animation: none !important; }
}

/* ── DOC PAGES (privacy) ── */
.doc { max-width: 760px; margin: 0 auto; padding: 136px var(--gutter) 96px; }
.doc-head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.doc-head h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; text-wrap: balance; }
.doc-head p { color: var(--muted); font-size: 17px; max-width: 60ch; text-wrap: pretty; }
.doc-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.doc .doc-meta li { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }
.doc h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 96px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font-size: 16px; color: oklch(84% 0.01 55); line-height: 1.75; max-width: 68ch; text-wrap: pretty; }
.doc p + p { margin-top: 14px; }
.doc ul.plain { padding-left: 1.1em; display: grid; gap: 6px; margin-top: 10px; }
.doc ul.plain li::marker { color: var(--orange); }
.doc a.inline { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a.inline:hover { color: var(--heat); }
.doc code { font-family: var(--mono); font-size: 14px; color: var(--warm-white); }
.doc p.callout { border-left: 2px solid var(--orange); padding: 4px 0 4px 16px; font-size: 15px; color: var(--muted); }
.data-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; vertical-align: top; }
.data-table th { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; background: var(--card); }
.data-table td { color: oklch(84% 0.01 55); border-top: 1px solid var(--border); line-height: 1.55; }
.data-table td:first-child { color: var(--warm-white); font-weight: 500; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; transition: color .2s, gap .2s; }
.back:hover { color: var(--warm-white); gap: 12px; }
