/* SniffDoc website. Tokens first, then base, layout, components, sections. */
:root {
  --bg: #f7f7ff;
  --surface: #ffffff;
  --soft: #eceeff;
  --text: #13132b;
  --muted: #565a78;
  --line: #dfe1f3;
  --brand: #3d3de8;
  --brand-ink: #ffffff;
  --brand-deep: #14106b;
  --mint: #8ff5c4;
  --cyan: #00c8f0;
  --good: #137a4b;
  --warn: #8a5a00;
  --radius: 22px;
  --shadow: 0 20px 50px -24px rgba(35, 30, 140, .35);
  --hero-1: #4a55f0;
  --hero-2: #2a1fb0;
  --hero-3: #120d55;
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c1c; --surface: #15162c; --soft: #1d1f3c; --text: #ececfa; --muted: #a2a6c6; --line: #2a2c4f;
    --brand: #8c97ff; --brand-ink: #0c0c2a; --good: #7fe0ab; --warn: #f0c36a;
    --shadow: 0 20px 50px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c1c; --surface: #15162c; --soft: #1d1f3c; --text: #ececfa; --muted: #a2a6c6; --line: #2a2c4f;
  --brand: #8c97ff; --brand-ink: #0c0c2a; --good: #7fe0ab; --warn: #f0c36a;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--font); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 780; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
h2 + .lead, h1 + .lead { margin-top: 18px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--cyan), var(--mint)); z-index: 60; }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 36px; height: 36px; }
.logo b { color: var(--brand); font-weight: 800; }
.links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 560; font-size: .97rem; }
.links a:hover, .links a[aria-current="page"] { background: var(--soft); }
.menu-btn { display: none; background: var(--soft); border: 0; width: 44px; height: 44px; border-radius: 12px; color: var(--text); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .links { position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .links.open { display: flex; }
  .links a { padding: 14px; }
  .nav .btn.small { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; background: var(--brand); color: var(--brand-ink); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--brand); }
.btn.small { padding: 10px 18px; font-size: .93rem; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.light { background: #fff; color: #14106b; }
.play { display: inline-flex; align-items: center; gap: 12px; background: #0a0a14; color: #fff; padding: 10px 22px 10px 16px; border-radius: 14px; text-decoration: none; box-shadow: inset 0 0 0 1.5px #5b5d7a; transition: transform .18s, box-shadow .18s; }
.play:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px #a9acd0, 0 16px 30px -14px #000; }
.play svg { width: 28px; height: 28px; flex: none; }
.play small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1.1; }
.play strong { display: block; font-size: 1.18rem; line-height: 1.15; letter-spacing: -.01em; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1100px 600px at 80% -10%, var(--hero-1), transparent 60%), radial-gradient(900px 600px at 0% 110%, #2c1fc0, transparent 55%), linear-gradient(160deg, var(--hero-2), var(--hero-3)); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 70% 40%, #000, transparent 70%); pointer-events: none; }
.hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint), #b9fff0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #d3d6ff; margin: 22px 0 30px; }
.hero .eyebrow { color: var(--mint); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: #c4c8ff; font-size: .93rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--mint); flex: none; }
@media (max-width: 920px) { .hero .grid { grid-template-columns: 1fr; text-align: left; } .hero .stage { order: -1; } }

/* Phone */
.stage { position: relative; display: grid; place-items: center; min-height: 520px; perspective: 1200px; }
.phone { position: relative; width: min(280px, 72vw); aspect-ratio: 600 / 1339; border-radius: 42px; padding: 9px; background: linear-gradient(145deg, #2a2b44, #0b0b16); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 0 0 1.5px #4a4c70; transform-style: preserve-3d; transition: transform .25s ease-out; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.phone .screen img.on { opacity: 1; }
.phone.big { width: min(330px, 78vw); border-radius: 48px; padding: 10px; }
.phone.big .screen { border-radius: 39px; }
.float { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .96); color: #13132b; padding: 10px 16px; border-radius: 16px; font-weight: 650; font-size: .92rem; box-shadow: 0 18px 36px -16px rgba(0, 0, 0, .55); animation: bob 5s ease-in-out infinite; white-space: nowrap; }
.float i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #e8e9ff; color: #3d3de8; font-style: normal; }
.float svg { width: 15px; height: 15px; }
.float.a { top: 8%; left: -2%; }
.float.b { top: 42%; right: -4%; animation-delay: -1.6s; }
.float.c { bottom: 10%; left: 2%; animation-delay: -3.1s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 520px) { .float.a { left: 0; } .float.b { right: 0; } }

/* Trust strip */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 26px; }
.strip li { display: flex; align-items: center; gap: 12px; font-weight: 620; font-size: .95rem; }
.strip svg { width: 22px; height: 22px; color: var(--brand); flex: none; }

/* Live demo */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.searchbox { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 999px; padding: 6px 8px 6px 20px; }
.searchbox svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); padding: 12px 0; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip { border: 1.5px solid var(--line); background: transparent; color: var(--text); padding: 7px 14px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"], .chip.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; min-height: 310px; align-content: start; }
.res { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); animation: pop .35s ease both; }
.res .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; flex: none; }
.res b { display: block; line-height: 1.25; }
.res small { color: var(--muted); }
.res .tag { margin-left: auto; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--brand); white-space: nowrap; }
.res .tag.typo { background: #fff3d6; color: #8a5a00; }
.res .tag.mean { background: #e2f8ec; color: #137a4b; }
.empty { color: var(--muted); padding: 20px 6px; }
.note { font-size: .84rem; color: var(--muted); margin: 14px 4px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }

/* Product tour */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; background: linear-gradient(160deg, var(--hero-2), var(--hero-3)); color: #fff; border-radius: 36px; padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.tour::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(143, 245, 196, .22), transparent 65%); }
.tour .stage { min-height: 0; }
.tour .phone .screen img { transition: opacity .45s ease; }
.hot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 0; background: var(--mint); color: #0a2b1c; font-weight: 800; font-size: .8rem; cursor: pointer; display: grid; place-items: center; z-index: 3; box-shadow: 0 0 0 0 rgba(143, 245, 196, .7); animation: ping 2.2s infinite; }
.hot.active { background: #fff; animation: none; box-shadow: 0 0 0 6px rgba(255, 255, 255, .28); }
@keyframes ping { 70% { box-shadow: 0 0 0 16px rgba(143, 245, 196, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 245, 196, 0); } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tabs button { border: 0; background: rgba(255, 255, 255, .1); color: #e5e7ff; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 650; font-size: .93rem; cursor: pointer; position: relative; overflow: hidden; }
.tabs button[aria-selected="true"] { background: #fff; color: #14106b; }
.tabs button .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); }
.tour h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.tour p.d { color: #d3d6ff; margin: 12px 0 18px; max-width: 52ch; }
.tour ul.pts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.tour ul.pts li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); transition: background .2s, transform .2s; cursor: pointer; }
.tour ul.pts li.active { background: rgba(255, 255, 255, .17); transform: translateX(4px); }
.tour ul.pts .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--mint); color: #0a2b1c; font-weight: 800; font-size: .78rem; display: grid; place-items: center; margin-top: 1px; }
@media (max-width: 900px) { .tour { grid-template-columns: 1fr; } }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--brand); margin-bottom: 18px; }
.card .ic svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 8px 0 0; font-size: .98rem; }
.card.s2 { grid-column: span 2; } .card.s3 { grid-column: span 3; } .card.s4 { grid-column: span 4; }
.card.dark { background: linear-gradient(150deg, var(--hero-2), var(--hero-3)); color: #fff; border-color: transparent; }
.card.dark p { color: #cfd2ff; }
.card.dark .ic { background: rgba(255, 255, 255, .12); color: var(--mint); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } .card.s2, .card.s3, .card.s4 { grid-column: span 1; } .card.s4 { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .card.s4 { grid-column: span 1; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: st; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: st; }
.step::before { content: counter(st); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 8px 0 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Privacy diagram */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.boundary { border: 2px dashed var(--brand); border-radius: 22px; padding: 20px; position: relative; }
.boundary > span { position: absolute; top: -13px; left: 18px; background: var(--surface); padding: 0 10px; color: var(--brand); font-weight: 750; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.pill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill { background: var(--soft); border-radius: 14px; padding: 12px 14px; font-weight: 620; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.pill svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.outside { margin-top: 18px; display: grid; gap: 10px; }
.outside .row { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--muted); }
.outside .row b { color: var(--text); }
.outside .dot { width: 10px; height: 10px; border-radius: 50%; background: #f0b429; flex: none; }
.outside .dot.no { background: #d6455d; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { width: 24px; height: 24px; color: var(--good); flex: none; margin-top: 2px; }
@media (max-width: 900px) { .privacy { grid-template-columns: 1fr; } }

/* Types, compare */
.types { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.type { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 620; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; letter-spacing: .04em; color: var(--muted); background: var(--soft); }
th.us { color: var(--brand); }
td.us { background: color-mix(in srgb, var(--brand) 6%, transparent); font-weight: 620; }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--good); font-weight: 700; } .no { color: var(--muted); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 18px; font-size: 1.05rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; }
.stars { color: #f0b429; letter-spacing: 2px; margin-bottom: 10px; }

/* FAQ */
.faq-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.faq-tools .searchbox { flex: 1 1 320px; background: var(--surface); border: 1px solid var(--line); }
details.q { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; transition: border-color .2s; }
details.q[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
details.q summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 680; position: relative; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
details.q[open] summary::after { content: "\2212"; }
details.q .a { padding: 0 22px 20px; color: var(--muted); }
details.q .a p:last-child { margin-bottom: 0; }
.faq-cat { margin: 40px 0 16px; font-size: 1.3rem; }
.hidden { display: none !important; }

/* CTA + footer */
.cta { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 36px; padding: clamp(44px, 7vw, 88px) 24px; background: radial-gradient(700px 400px at 50% 0, var(--hero-1), transparent 70%), linear-gradient(160deg, var(--hero-2), var(--hero-3)); }
.cta h2 { max-width: 20ch; margin: 0 auto 16px; }
.cta p { color: #d3d6ff; max-width: 50ch; margin: 0 auto 28px; }
.cta .cta-row { justify-content: center; }
footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 56px 0 34px; background: var(--surface); }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.fgrid h4 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fgrid a { color: var(--text); text-decoration: none; }
.fgrid a:hover { color: var(--brand); text-decoration: underline; }
.fgrid p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.fine { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .88rem; }
@media (max-width: 820px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }

/* Inner pages */
.page-hero { background: linear-gradient(160deg, var(--hero-2), var(--hero-3)); color: #fff; padding: clamp(48px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.page-hero .lead { color: #d3d6ff; margin-top: 18px; }
.page-hero .eyebrow { color: var(--mint); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding: clamp(36px, 6vw, 72px) 0; }
.feature-row:nth-child(even) .copy { order: 2; }
.feature-row ul { padding-left: 1.2rem; color: var(--muted); }
.feature-row li { margin: .45rem 0; }
.feature-row .stage { min-height: 0; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row:nth-child(even) .copy { order: 0; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin: 2.2rem 0 .7rem; }
.prose ul { color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .nav, .hero::after, .progress { display: none; } }

/* ===== Backgrounds: ambient layer, aurora, grid, floating documents, bands ===== */
:root {
  --glow-1: rgba(61, 61, 232, .16);
  --glow-2: rgba(0, 200, 240, .13);
  --glow-3: rgba(143, 245, 196, .16);
  --band: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 5%, transparent) 18%, color-mix(in srgb, var(--brand) 5%, transparent) 82%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --glow-1: rgba(98, 108, 255, .22); --glow-2: rgba(0, 200, 240, .13); --glow-3: rgba(143, 245, 196, .09); }
}
:root[data-theme="dark"] { --glow-1: rgba(98, 108, 255, .22); --glow-2: rgba(0, 200, 240, .13); --glow-3: rgba(143, 245, 196, .09); }

body { position: relative; isolation: isolate; }
/* Ambient mesh that follows the page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% 12%, var(--glow-1), transparent 62%),
    radial-gradient(800px 600px at 96% 38%, var(--glow-2), transparent 60%),
    radial-gradient(900px 700px at 40% 100%, var(--glow-3), transparent 62%),
    var(--bg);
}
/* Film grain keeps big gradients from banding and adds depth */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.strip, footer { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(10px); }
.card, .step, .demo-card, .diagram, .tablewrap, details.q, .type {
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(12px);
}
.card.dark { background: linear-gradient(150deg, var(--hero-2), var(--hero-3)); }

/* Aurora blobs inside dark gradient blocks */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; border-radius: inherit; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; will-change: transform; animation: drift 22s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 520px; height: 520px; left: -8%; top: -18%; background: #5a63ff; }
.aurora i:nth-child(2) { width: 460px; height: 460px; right: -6%; top: 6%; background: #00c8f0; opacity: .42; animation-duration: 28s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 420px; height: 420px; left: 32%; bottom: -30%; background: #8ff5c4; opacity: .28; animation-duration: 34s; animation-delay: -15s; }
.aurora i:nth-child(4) { width: 360px; height: 360px; left: 58%; top: -22%; background: #b25cff; opacity: .34; animation-duration: 30s; animation-delay: -4s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(70px, 40px) scale(1.12); } 66% { transform: translate(-50px, 70px) scale(.94); } }
.gridbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 78%); }
.hero::after { display: none; }
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 2; }
.hero, .page-hero { isolation: isolate; }
.hero { padding-bottom: clamp(70px, 9vw, 130px); }

/* Floating paper cards behind the hero phone */
.paper { position: absolute; z-index: 1; width: 150px; padding: 14px 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .5); pointer-events: none; animation: floaty 9s ease-in-out infinite; }
.paper b { display: block; height: 8px; width: 55%; border-radius: 4px; background: rgba(255, 255, 255, .55); margin-bottom: 12px; }
.paper u { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .24); margin-top: 8px; text-decoration: none; }
.paper u:nth-of-type(2) { width: 82%; } .paper u:nth-of-type(3) { width: 66%; }
.paper.p1 { left: 46%; top: 12%; rotate: -9deg; }
.paper.p2 { right: 4%; bottom: 12%; rotate: 8deg; animation-delay: -3s; width: 130px; }
.paper.p3 { left: 3%; bottom: 8%; rotate: 6deg; animation-delay: -6s; width: 120px; opacity: .8; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@media (max-width: 920px) { .paper { display: none; } }

/* Tinted bands and spotlight glows for light sections */
.section { position: relative; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--band); pointer-events: none; }
.band::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; left: 50%; top: 50%; translate: -50% -50%; background: radial-gradient(circle, var(--glow-1), transparent 65%); pointer-events: none; opacity: .8; }

/* Cards: cursor spotlight */
.card, .step { --mx: 50%; --my: 0%; }
.card::before, .step::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%);
}
.card:hover::before, .step:hover::after { opacity: 1; }
.card.dark::before { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(143, 245, 196, .2), transparent 60%); }
.card > *, .step > * { position: relative; z-index: 1; }
.card.dark::after { content: ""; position: absolute; width: 280px; height: 280px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 245, 196, .28), transparent 65%); pointer-events: none; }

/* Tour and CTA get the aurora too */
.tour .aurora i, .cta .aurora i { opacity: .38; }
.tour > *:not(.aurora), .cta > *:not(.aurora) { position: relative; z-index: 1; }
.tour::before { display: none; }
@media (prefers-reduced-motion: reduce) { .aurora i, .paper { animation: none !important; } }
