/* SovereignShield product site v3 - award-bar polish: kinetic type, grain,
   marquees, scroll reveals, magnetic CTAs, custom cursor, signature hero asset.
   Vanilla CSS, respects prefers-reduced-motion. */

:root {
    --bg: #0b1020;
    --bg2: #0e1428;
    --card: rgba(255, 255, 255, 0.045);
    --stroke: rgba(255, 255, 255, 0.09);
    --stroke-bright: rgba(255, 255, 255, 0.17);
    --text: #eef2fa;
    --text-dim: #a8b3c9;
    --text-mute: #6b7791;
    --cyan: #2fd9ec;
    --violet: #8b5cf6;
    --pink: #f472b6;
    --coral: #fb7185;
    --green: #34d399;
    --amber: #fbbf24;
    --grad: linear-gradient(100deg, #2fd9ec, #8b5cf6 55%, #f472b6);
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --disp: "Space Grotesk", "Inter", system-ui, sans-serif;
    --r: 18px;
    --r-lg: 26px;
    --maxw: 1180px;
    --shadow: 0 24px 70px rgba(3, 6, 18, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font: 16.5px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* film grain over everything (inline SVG turbulence) */
body::after {
    content: ""; position: fixed; inset: -50%; z-index: 2000; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.035; animation: grain 9s steps(10) infinite;
}
@keyframes grain {
    0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); }
    40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-2%); }
    80% { transform: translate(3%,3%); }
}
::selection { background: var(--cyan); color: #06222a; }
a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--disp); letter-spacing: -0.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline-text {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(238, 242, 250, 0.85);
}

/* ---------------- custom cursor (fine pointers only) ---------------- */
@media (pointer: fine) {
    .cursor-dot, .cursor-ring {
        position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none;
        border-radius: 50%; transform: translate(-50%, -50%);
    }
    .cursor-dot { width: 7px; height: 7px; background: var(--cyan); }
    .cursor-ring {
        width: 34px; height: 34px; border: 1.5px solid rgba(47, 217, 236, 0.5);
        transition: width 0.2s, height 0.2s, border-color 0.2s;
    }
    body.cursor-hover .cursor-ring { width: 54px; height: 54px; border-color: var(--pink); }
}

/* ---------------- header ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 16, 32, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--stroke);
}
.topbar-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 30px; height: 74px;
}
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--disp); font-weight: 700; font-size: 19px; color: var(--text); }
.logo img { height: 30px; width: auto; }
.logo b { color: var(--cyan); font-weight: 700; }
.topnav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.topnav > a { font-size: 14.5px; font-weight: 500; color: var(--text-dim); position: relative; }
.topnav > a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--grad); transition: width 0.25s ease;
}
.topnav > a:not(.btn):hover { color: var(--text); }
.topnav > a:not(.btn):hover::after { width: 100%; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--disp); font-weight: 600; font-size: 15px;
    border-radius: 999px; padding: 13px 24px; cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    border: 1px solid transparent; white-space: nowrap; will-change: transform;
}
.btn-grad { background: var(--grad); color: #071018; box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35); }
.btn-grad:hover { box-shadow: 0 12px 36px rgba(139, 92, 246, 0.5); }
.btn-ghost { border-color: var(--stroke-bright); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.nav-burger { display: none; margin-left: auto; background: var(--card); border: 1px solid var(--stroke-bright); color: var(--text); border-radius: 10px; font-size: 13px; padding: 9px 13px; cursor: pointer; font-family: var(--disp); font-weight: 600; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.mesh, .mesh2, .mesh3 { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.mesh  { width: 640px; height: 640px; top: -240px; right: -160px; background: radial-gradient(circle, rgba(47,217,236,0.20), transparent 65%); }
.mesh2 { width: 580px; height: 580px; top: 180px; left: -240px; background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 65%); }
.mesh3 { width: 440px; height: 440px; bottom: -180px; right: 18%; background: radial-gradient(circle, rgba(244,114,182,0.12), transparent 65%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 56px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(47, 217, 236, 0.1); border: 1px solid rgba(47, 217, 236, 0.35);
    color: var(--cyan); border-radius: 999px; padding: 7px 15px;
    font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.03; font-weight: 700; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: riseup 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes riseup { to { transform: translateY(0); } }
.hero-sub { margin-top: 24px; font-size: 18px; color: var(--text-dim); max-width: 50ch; }
.hero-sub strong { color: var(--text); }
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.trust-chips { margin-top: 30px; display: flex; gap: 10px 22px; flex-wrap: wrap; }
.trust-chips span { font-size: 13px; color: var(--text-mute); display: inline-flex; align-items: center; gap: 7px; }
.trust-chips span::before { content: "✓"; color: var(--green); font-weight: 700; }

/* signature hero asset: rotating shield rings behind the console */
.hero-stage { position: relative; min-width: 0; }
.rings { position: absolute; inset: -70px; pointer-events: none; }
.rings svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
    position: absolute; z-index: 3; font-family: var(--mono); font-size: 12px; font-weight: 600;
    padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(6px);
    animation: floaty 5.5s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(3,6,18,0.5);
}
.float-chip.blocked { top: -18px; right: 8%; color: #ffe1e1; background: rgba(251,113,133,0.18); border: 1px solid rgba(251,113,133,0.55); }
.float-chip.allowed { bottom: -16px; left: 6%; color: #dcfff0; background: rgba(52,211,153,0.16); border: 1px solid rgba(52,211,153,0.55); animation-delay: 2.6s; }
@keyframes floaty { 50% { transform: translateY(-9px); } }

.console {
    position: relative; z-index: 2; border-radius: var(--r-lg); overflow: hidden;
    background: linear-gradient(160deg, rgba(23,32,58,0.92), rgba(13,18,36,0.96));
    border: 1px solid var(--stroke-bright);
    box-shadow: var(--shadow), 0 0 0 1px rgba(47,217,236,0.06), 0 0 100px rgba(47,217,236,0.08);
}
.console-bar {
    display: flex; align-items: center; gap: 9px; padding: 13px 18px;
    border-bottom: 1px solid var(--stroke); font-family: var(--mono);
    font-size: 12px; color: var(--text-mute);
}
.cdot { width: 11px; height: 11px; border-radius: 50%; }
.cdot.r { background: #ff5f57; } .cdot.y { background: #febc2e; } .cdot.g { background: #28c840; }
.console-bar .addr { margin-left: 10px; }
.console-bar .live-tag { margin-left: auto; color: var(--green); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.console-bar .live-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.console-body {
    padding: 20px 20px 24px; font-family: var(--mono); font-size: 13px;
    line-height: 1.8; min-height: 320px; white-space: pre-wrap; word-break: break-word;
}
.console-body .in { color: var(--text-dim); }
.console-body .in::before { content: "→ "; color: var(--cyan); }
.stamp { display: inline-block; font-weight: 600; letter-spacing: 0.06em; padding: 2px 12px; border-radius: 999px; margin: 3px 0; font-size: 12px; }
.stamp.block { color: #ffe1e1; background: rgba(251, 113, 133, 0.16); border: 1px solid rgba(251,113,133,0.5); }
.stamp.allow { color: #dcfff0; background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52,211,153,0.5); }
.console-body .why { color: var(--text-mute); font-size: 12px; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; animation: pulse 1s infinite; }

/* ---------------- marquee strips ---------------- */
.ticker-strip { border-block: 1px solid var(--stroke); background: rgba(255,255,255,0.02); overflow: hidden; white-space: nowrap; padding: 12px 0; }
.ticker { display: inline-block; font-family: var(--mono); font-size: 12.5px; color: var(--text-mute); animation: tick 55s linear infinite; padding-left: 100%; }
.ticker b { color: var(--coral); font-weight: 600; }
.ticker i { color: var(--text-dim); font-style: normal; }
@keyframes tick { to { transform: translateX(-100%); } }

.mega-marquee { overflow: hidden; white-space: nowrap; padding: 46px 0 40px; border-bottom: 1px solid var(--stroke); }
.mega-marquee .inner { display: inline-block; animation: tick 30s linear infinite; }
.mega-marquee span {
    font-family: var(--disp); font-weight: 700; font-size: clamp(46px, 7vw, 96px);
    letter-spacing: -0.02em; margin-right: 56px; vertical-align: middle;
}
.mega-marquee .solid { color: var(--text); }
.mega-marquee .ghost { color: transparent; -webkit-text-stroke: 1.5px rgba(238,242,250,0.35); }
.mega-marquee .dotsep { color: var(--cyan); font-size: 0.5em; vertical-align: middle; }

/* ---------------- sections + scroll reveal ---------------- */
section.block { padding: 100px 0; position: relative; }
section.block.tint { background: linear-gradient(180deg, rgba(139,92,246,0.05), transparent 70%); }
.sec-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.sec-kicker {
    display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet);
    background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.35);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1.1; }
.sec-head p { margin-top: 16px; color: var(--text-dim); font-size: 17px; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal].vis { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal-stagger].vis > * { opacity: 1; transform: none; }
[data-reveal-stagger].vis > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].vis > *:nth-child(3) { transition-delay: 0.16s; }
[data-reveal-stagger].vis > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].vis > *:nth-child(5) { transition-delay: 0.32s; }
[data-reveal-stagger].vis > *:nth-child(6) { transition-delay: 0.4s; }

/* story cards */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 32px 28px; transition: transform 0.2s ease, border-color 0.2s, background 0.2s; }
.story:hover { transform: translateY(-6px); border-color: var(--stroke-bright); background: rgba(255,255,255,0.06); }
.story .emoji { font-size: 32px; display: block; margin-bottom: 16px; }
.story h3 { font-size: 19px; margin-bottom: 10px; }
.story p { color: var(--text-dim); font-size: 14.5px; }
.story .zing { margin-top: 14px; font-size: 13.5px; color: var(--coral); font-weight: 600; }

/* benefit cards */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 36px 34px; transition: transform 0.2s ease, border-color 0.2s; }
.benefit:hover { transform: translateY(-5px); border-color: var(--stroke-bright); }
.benefit::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: 0.85; }
.benefit h3 { font-size: 21px; margin-bottom: 12px; }
.benefit p { color: var(--text-dim); font-size: 15px; margin-bottom: 10px; }
.benefit .proof { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--text-mute); background: rgba(0,0,0,0.25); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
.benefit .proof .g { color: var(--green); } .benefit .proof .r { color: var(--coral); } .benefit .proof .c { color: var(--text-mute); }

/* compare table */
.compare { border: 1px solid var(--stroke-bright); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.compare-scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; font-size: 14.5px; }
.compare thead th { background: rgba(255,255,255,0.04); font-family: var(--disp); font-size: 14px; border-bottom: 1px solid var(--stroke-bright); }
.compare thead th.us { color: var(--cyan); }
.compare td { border-bottom: 1px solid var(--stroke); color: var(--text-dim); }
.compare tr:last-child td { border-bottom: none; }
.compare td.yes { color: var(--green); font-weight: 600; }
.compare td.no { color: var(--text-mute); }
.compare td:first-child { color: var(--text); font-weight: 500; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.step { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 30px; transition: transform 0.2s ease, border-color 0.2s; }
.step:hover { transform: translateY(-5px); border-color: var(--stroke-bright); }
.step .n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #071018; font-family: var(--disp); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14px; }
.codebox { border-radius: var(--r); border: 1px solid var(--stroke-bright); background: #0a0f1e; font-family: var(--mono); font-size: 13px; line-height: 1.75; padding: 22px 24px; overflow-x: auto; color: var(--text-dim); box-shadow: var(--shadow); }
.codebox .c { color: var(--text-mute); } .codebox .s { color: var(--amber); }
.codebox .k { color: var(--cyan); } .codebox .r { color: var(--coral); } .codebox .g { color: var(--green); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s; }
.price:hover { transform: translateY(-6px); border-color: var(--stroke-bright); }
.price.hot { border-color: rgba(47,217,236,0.55); box-shadow: 0 0 60px rgba(47,217,236,0.12); position: relative; }
.price .flag { position: absolute; top: -13px; left: 24px; background: var(--grad); color: #071018; font-family: var(--disp); font-weight: 700; font-size: 11.5px; letter-spacing: 0.05em; padding: 4px 12px; border-radius: 999px; }
.price .tname { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }
.price .amount { font-family: var(--disp); font-size: 40px; font-weight: 700; margin: 8px 0 2px; }
.price .amount small { font-size: 14px; color: var(--text-mute); font-weight: 500; }
.price .creds { color: var(--cyan); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.price ul { list-style: none; margin: 0 0 22px; flex: 1; }
.price li { font-size: 14px; color: var(--text-dim); padding: 4px 0 4px 24px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-note { text-align: center; color: var(--text-mute); font-size: 13.5px; margin-top: 28px; }

/* trust stats */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r); padding: 26px 22px; text-align: center; transition: transform 0.2s ease; }
.trust:hover { transform: translateY(-4px); }
.trust .big { font-family: var(--disp); font-weight: 700; font-size: 24px; margin-bottom: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust p { font-size: 13.5px; color: var(--text-dim); }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r); padding: 0 24px; margin-bottom: 12px; }
.faq details[open] { border-color: var(--stroke-bright); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--disp); font-weight: 600; font-size: 16px; padding: 19px 0; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--text-dim); font-size: 14.5px; padding: 0 0 20px; }
.faq details p a { font-weight: 600; }

/* final cta */
.cta-banner { position: relative; overflow: hidden; text-align: center; border-radius: var(--r-lg); border: 1px solid var(--stroke-bright); background: linear-gradient(140deg, rgba(47,217,236,0.12), rgba(139,92,246,0.14) 55%, rgba(244,114,182,0.10)); padding: 76px 30px; }
.cta-banner h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; }
.cta-banner p { color: var(--text-dim); margin: 14px auto 30px; max-width: 52ch; font-size: 17px; }

/* footer with statement wordmark */
footer { border-top: 1px solid var(--stroke); padding: 64px 0 44px; background: rgba(255,255,255,0.015); overflow: hidden; }
.foot-grid { display: flex; gap: 48px; flex-wrap: wrap; justify-content: space-between; }
.foot-brand { max-width: 260px; }
.foot-brand .logo { margin-bottom: 12px; }
.foot-brand p { font-size: 13.5px; color: var(--text-mute); }
.foot-col h4 { font-family: var(--disp); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 9px; }
.foot-col a:hover { color: var(--cyan); }
.foot-word {
    margin-top: 56px; font-family: var(--disp); font-weight: 700; text-align: center;
    font-size: clamp(52px, 10.5vw, 150px); line-height: 1; letter-spacing: -0.03em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(238,242,250,0.14);
    user-select: none; white-space: nowrap;
}
.foot-word b { -webkit-text-stroke: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; font-weight: 700; opacity: 0.55; }
.foot-legal { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--stroke); font-size: 12.5px; line-height: 2; color: var(--text-mute); }
.foot-legal b { color: var(--text-dim); }

/* legal / subpage shell */
.page-hero { padding: 76px 0 30px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; }
.page-hero p.lead { margin-top: 14px; color: var(--text-dim); font-size: 17px; max-width: 68ch; }
.prose { max-width: 780px; padding-bottom: 90px; }
.prose h2 { font-size: 24px; margin: 42px 0 12px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-dim); font-size: 15px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose .updated { font-family: var(--mono); font-size: 12.5px; color: var(--text-mute); margin-bottom: 26px; display: block; }

/* responsive */
@media (max-width: 1020px) {
    .story-grid, .steps { grid-template-columns: 1fr 1fr; }
    .price-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .benefit-grid { grid-template-columns: 1fr; }
    .topnav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--stroke-bright); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; }
    .topnav.open { display: flex; }
    .nav-burger { display: block; }
    .rings { inset: -40px; }
}
@media (max-width: 640px) {
    .story-grid, .steps, .price-grid, .trust-grid { grid-template-columns: 1fr; }
    section.block { padding: 72px 0; }
    .hero { padding: 64px 0 56px; }
    .float-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* ---------------- product tour (all API functions) ---------------- */
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tour {
    background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-lg);
    padding: 30px 28px; transition: transform 0.2s ease, border-color 0.2s;
    display: flex; flex-direction: column; gap: 12px;
}
.tour:hover { transform: translateY(-5px); border-color: var(--stroke-bright); }
.tour.wide { grid-column: 1 / -1; background: linear-gradient(140deg, rgba(47,217,236,0.08), rgba(139,92,246,0.09) 60%, rgba(244,114,182,0.06)); border-color: rgba(47,217,236,0.4); }
.tour .ep {
    align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 600;
    color: var(--cyan); background: rgba(47,217,236,0.09); border: 1px solid rgba(47,217,236,0.35);
    border-radius: 8px; padding: 5px 11px;
}
.tour .ep b { color: var(--amber); font-weight: 600; margin-right: 7px; }
.tour h3 { font-size: 20px; }
.tour p { color: var(--text-dim); font-size: 14.5px; }
.tour .mini {
    font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--text-mute);
    background: rgba(0,0,0,0.28); border: 1px solid var(--stroke); border-radius: 12px;
    padding: 12px 14px; overflow-x: auto; white-space: pre; margin-top: auto;
}
.tour .mini .g { color: var(--green); } .tour .mini .r { color: var(--coral); }
.tour .mini .k { color: var(--cyan); } .tour .mini .s { color: var(--amber); } .tour .mini .c { color: var(--text-mute); }
@media (max-width: 900px) { .tour-grid { grid-template-columns: 1fr; } .tour.wide { grid-column: auto; } }

/* ---------------- measured-proof banner ---------------- */
.bench-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px; }
.bench {
    background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-lg);
    padding: 26px 22px; text-align: center; position: relative; overflow: hidden;
}
.bench::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); opacity: 0.8; }
.bench .num { font-family: var(--disp); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bench .what { margin-top: 6px; font-size: 14px; color: var(--text); font-weight: 600; }
.bench .src { margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); }
.legend { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-mute); text-align: right; }
.compare td.pt { color: var(--amber); }
@media (max-width: 1020px) { .bench-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bench-grid { grid-template-columns: 1fr; } }

/* custom SVG icons replacing emoji */
.icon { display: inline-flex; width: 30px; height: 30px; vertical-align: -7px; margin-right: 6px; }
.story .icon { display: block; width: 32px; height: 32px; margin: 0 0 16px; }
.icon svg { width: 100%; height: 100%; }

/* the primary CTA lives in the topbar itself and NEVER collapses into the burger.
   Flex order: logo | nav (desktop) | Start free | burger (mobile). */
.topbar-cta { order: 3; margin-left: auto; }
.topnav { order: 2; }
.nav-burger { order: 4; margin-left: 0; }
@media (min-width: 901px) { .topnav { margin-left: auto; } .topbar-cta { margin-left: 0; } }

/* ---------- legacy-markup adapter (licensing page still uses the old class
   names; map them onto the new design system rather than rewriting its copy) --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section:not(.block):not(.hero) { padding: 56px 0; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-header h2 { font-family: var(--disp); font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.12; }
.section-header p { margin-top: 14px; color: var(--text-dim); font-size: 16px; }
.feature-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .feature-grid, .pricing-grid { grid-template-columns: 1fr; } }
.feature-card, .price-card {
    background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-lg);
    padding: 28px 26px; transition: transform 0.18s ease, border-color 0.18s;
    display: flex; flex-direction: column;
}
.feature-card:hover, .price-card:hover { transform: translateY(-4px); border-color: var(--stroke-bright); }
.price-card.featured { border-color: rgba(47,217,236,0.5); box-shadow: 0 0 40px rgba(47,217,236,0.1); }
.feature-card h3 { font-family: var(--disp); font-size: 18px; margin-bottom: 10px; }
.feature-card p, .price-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 10px; }
.price-tier { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }
.price-amount { font-family: var(--disp); font-size: 36px; font-weight: 700; margin: 8px 0 14px; }
.price-amount span { font-size: 14px; color: var(--text-mute); font-weight: 500; }
.price-features { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.price-features li { font-size: 14px; color: var(--text-dim); padding: 4px 0 4px 24px; position: relative; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.card-note { color: var(--text-mute); font-size: 12.5px; margin-top: 12px; }
.btn-outline, .btn.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--disp); font-weight: 600; font-size: 14px;
    border-radius: 999px; padding: 11px 20px; border: 1px solid var(--stroke-bright);
    color: var(--text); background: rgba(255,255,255,0.03); text-decoration: none;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--disp); font-weight: 600; font-size: 14px; border-radius: 999px;
    padding: 11px 20px; background: var(--grad); color: #071018; text-decoration: none; }
.layer { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--stroke); }
.layer:last-child { border-bottom: none; }
.layer-num { font-family: var(--disp); font-weight: 700; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.layer-tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--cyan); text-transform: uppercase; margin-bottom: 8px; }
.layer-content p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 10px; }
.legal-content h1, .prose h1 { font-family: var(--disp); font-size: clamp(30px, 4vw, 46px); }
.legal-content h2 { font-family: var(--disp); font-size: 22px; margin: 36px 0 12px; }
.legal-content p, .legal-content li { color: var(--text-dim); font-size: 15px; margin-bottom: 12px; }
.legal-content { max-width: 780px; }
.legal-note { border-left: 2px solid var(--cyan); padding: 4px 0 4px 18px; margin: 18px 0; }
