:root {
  --bg: #03050b;
  --bg2: #070b16;
  --panel: rgba(14, 20, 36, .72);
  --line: rgba(140, 170, 230, .14);
  --line2: rgba(140, 170, 230, .26);
  --ink: #f4f7ff;
  --text: #c2cce0;
  --mute: #8592ab;
  --cyan: #5ce1ff;
  --blue: #4f7bff;
  --violet: #a77bff;
  --mint: #3ef0b0;
  --red: #ff4d6d;
  --amber: #ffb547;
  --grad: linear-gradient(100deg, #5ce1ff 0%, #4f7bff 45%, #a77bff 100%);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -.035em; }
.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* buttons */
.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font: 600 16px var(--body); transition: transform .2s, box-shadow .3s, background .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #04101c; background: var(--grad); box-shadow: 0 10px 40px -8px rgba(79,123,255,.7), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { box-shadow: 0 16px 60px -6px rgba(92,225,255,.75), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line2); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(92,225,255,.06); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; color: #04101c !important; background: var(--grad); }

/* header */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; padding: 0 max(24px, calc((100% - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(3,5,11,.72); backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 20px var(--body); letter-spacing: -.025em; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 500; color: var(--text); }
.nav a:not(.btn):hover { color: var(--ink); }
.menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(255,255,255,.03); cursor: pointer; }
.menu span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* hero */
.hero { position: relative; padding: 128px 0 90px; overflow: hidden; isolation: isolate; }
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow { position: absolute; z-index: -1; width: 1100px; height: 800px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(79,123,255,.32), rgba(167,123,255,.12) 55%, transparent); filter: blur(10px); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 200px; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-inner { text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 8px 16px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(10,16,32,.6); backdrop-filter: blur(8px); font: 500 13px var(--mono); color: var(--text); letter-spacing: .02em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(62,240,176,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62,240,176,0); } 100% { box-shadow: 0 0 0 0 rgba(62,240,176,0); } }
.hero h1 { max-width: 1120px; margin: 0 auto; font-size: clamp(28px, 6.4vw, 88px); line-height: 1; white-space: nowrap; font-weight: 600; letter-spacing: -.05em; }
.hero h1 .grad { display: inline-block; padding-bottom: .08em; background-size: 200% 100%; animation: shimmer 8s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }
.lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); font: 500 13px var(--mono); color: var(--text); }

/* scene */
.scene { position: relative; margin-top: 18px; padding: 22px 26px 26px; border: 1px solid var(--line2); border-radius: 26px; background: linear-gradient(160deg, rgba(16,24,44,.85), rgba(6,10,20,.9)); box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset, 0 0 120px -40px rgba(79,123,255,.5); overflow: hidden; }
.scene::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(120,150,210,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(120,150,210,.06) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%); pointer-events: none; }
.scene-bar { position: relative; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 26px; font: 500 13px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.scene-bar span:first-child { color: var(--mint); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.path { position: relative; display: grid; grid-template-columns: minmax(190px, 1.25fr) 92px minmax(180px, 2fr) 92px minmax(190px, 1.25fr); grid-template-areas: "a g1 t g2 b" ". h h h ."; align-items: center; row-gap: 0; }
.end { padding: 18px; border: 1px solid var(--line2); border-radius: 18px; background: rgba(8,14,28,.9); min-width: 0; }
.end-a { grid-area: a; } .end-b { grid-area: b; }
.end small, .gate small { display: block; font: 500 12px var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.end em { display: block; margin-top: 8px; font: 400 12px var(--mono); font-style: normal; color: var(--mute); }
.msg { display: block; margin-top: 12px; padding: 10px 12px; min-height: 46px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.ok { border-color: rgba(62,240,176,.35); box-shadow: 0 0 24px -8px rgba(62,240,176,.5); }
.msg.flash { animation: flash .8s; }
@keyframes flash { 0% { background: rgba(62,240,176,.25); } 100% { background: rgba(255,255,255,.04); } }
.gate { position: relative; z-index: 2; margin: 0 10px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid rgba(62,240,176,.45); border-radius: 16px; background: #071a1c; color: var(--ink); font: 600 14px var(--display); box-shadow: 0 0 40px -10px rgba(62,240,176,.6); }
.gate i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px var(--mint); margin-bottom: 4px; }
.gate small { font-size: 10.5px; }
.g1 { grid-area: g1; } .g2 { grid-area: g2; }
.tunnel { grid-area: t; position: relative; height: 112px; margin: 0 -10px; display: flex; align-items: center; justify-content: center; }
.tunnel-line { position: absolute; left: 0; right: 0; top: 50%; height: 64px; transform: translateY(-50%); border-block: 1px solid rgba(92,225,255,.5); background: linear-gradient(90deg, rgba(79,123,255,.08), rgba(92,225,255,.2), rgba(167,123,255,.08)); box-shadow: 0 0 50px -10px rgba(92,225,255,.5) inset; overflow: hidden; }
.pkt { position: absolute; top: 50%; left: -60px; width: 46px; height: 6px; margin-top: -3px; border-radius: 6px; background: linear-gradient(90deg, transparent, var(--cyan), #fff); box-shadow: 0 0 16px var(--cyan); animation: travel 2.4s linear infinite; }
.pkt:nth-child(2) { animation-delay: .8s; } .pkt:nth-child(3) { animation-delay: 1.6s; }
@keyframes travel { to { left: 100%; } }
.tunnel-text { position: relative; z-index: 1; text-align: center; padding: 0 12px; min-width: 0; }
.tunnel-text b { display: block; font: 500 12.5px var(--mono); color: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.tunnel-text code { display: block; margin-top: 4px; font-size: 12.5px; color: var(--cyan); white-space: nowrap; overflow: hidden; max-width: 100%; opacity: .85; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: linear-gradient(90deg, rgba(79,123,255,.05), rgba(167,123,255,.06)); }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marq 30s linear infinite; }
.marquee span { font: 600 clamp(36px, 5vw, 64px)/1 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(194,204,224,.45); white-space: nowrap; }
.marquee span.hl { color: var(--ink); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--violet); font-size: 28px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* sections */
.section { position: relative; padding: 140px 0; }
.eyebrow { margin: 0 0 18px; font: 500 13px var(--mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; }
.section h2, .final h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; max-width: 1000px; }
.sub { max-width: 720px; margin: 24px 0 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--text); }
.sub b { color: var(--ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.step { position: relative; padding: 32px 30px 30px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(170deg, rgba(20,28,50,.7), rgba(8,12,24,.6)); overflow: hidden; transition: border-color .35s, transform .35s; display: flex; flex-direction: column; }
.step::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; }
.step:hover { transform: translateY(-6px); }
.step:hover::before { opacity: 1; }
.step-n { font: 500 13px var(--mono); color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.step h3 { margin: 16px 0 12px; font-size: 27px; line-height: 1.15; font-weight: 600; }
.step p { margin: 0; font-size: 16px; color: var(--text); }
.viz { position: relative; margin-top: auto; padding-top: 28px; }
.viz-map { display: grid; gap: 8px; overflow: hidden; }
.viz-map .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 400 13px var(--mono); color: var(--mute); background: rgba(255,255,255,.02); }
.viz-map .row i { width: 7px; height: 7px; border-radius: 50%; background: #3b4a66; }
.viz-map .row:first-child { color: var(--ink); border-color: rgba(92,225,255,.45); background: rgba(92,225,255,.07); }
.viz-map .row:first-child i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.viz-map .row b { margin-left: auto; font-weight: 500; font-size: 11px; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.scan { position: absolute; left: 0; right: 0; top: 28px; height: 40px; background: linear-gradient(transparent, rgba(92,225,255,.18), transparent); animation: scan 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(130px); } }
.viz-approve { display: grid; gap: 8px; }
.rec { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); font: 400 13px var(--mono); }
.rec span { color: var(--mute); }
.rec code { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec b { color: var(--mint); }
.seal { margin-top: 6px; padding: 10px; border-radius: 10px; text-align: center; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #04101c; background: linear-gradient(90deg, var(--mint), var(--cyan)); }
.viz-prove { display: flex; align-items: center; gap: 22px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: rgba(140,170,230,.12); }
.ring-fg { stroke: var(--mint); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; filter: drop-shadow(0 0 6px rgba(62,240,176,.6)); transition: stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1); }
.step.in .ring-fg, .no-js .ring-fg { stroke-dashoffset: 0; }
.ring > span { position: absolute; inset: 0; display: grid; place-content: center; font: 500 16px var(--mono); color: var(--mute); text-align: center; }
.ring > span b { display: block; font: 600 40px/1 var(--display); color: var(--ink); }
.viz-prove small { font: 400 13px var(--mono); color: var(--mute); line-height: 1.6; }

/* proof */
.proof { background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(62,240,176,.07), transparent), radial-gradient(ellipse 50% 60% at 10% 30%, rgba(79,123,255,.08), transparent); }
.proof-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.proof h2 { font-size: clamp(36px, 4.6vw, 64px); }
.facts { margin: 34px 0 30px; padding: 0; list-style: none; display: grid; gap: 18px; }
.facts li { position: relative; padding-left: 30px; font-size: 16.5px; }
.facts li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-content: center; font-size: 11px; color: #04101c; background: var(--mint); }
.facts b { color: var(--ink); }
.link { display: inline-flex; gap: 8px; font-weight: 600; color: var(--cyan); border-bottom: 1px solid rgba(92,225,255,.4); padding-bottom: 2px; }
.link:hover { border-color: var(--cyan); }
.term { border: 1px solid var(--line2); border-radius: 20px; background: #050811; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 100px -40px rgba(62,240,176,.45); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.term-bar i:first-child { background: #ff5f72; } .term-bar i:nth-child(2) { background: #ffbd4a; } .term-bar i:nth-child(3) { background: #3ef0b0; }
.term-bar span { margin-left: auto; font: 400 12px var(--mono); color: var(--mute); }
.term-body { padding: 24px 24px 26px; font-size: 14.5px; }
.term-body p { margin: 0; padding: 7px 0; }
.cmd { color: var(--cyan); }
.line { display: flex; justify-content: space-between; gap: 16px; color: var(--text); }
.line b { color: var(--mint); font-weight: 500; white-space: nowrap; }
.line b::before { content: '✓ '; }
.rule { height: 1px; padding: 0 !important; margin: 10px 0 !important; background: var(--line2); }
.verdict { display: flex; justify-content: space-between; align-items: center; }
.verdict span { color: var(--mute); letter-spacing: .12em; }
.verdict b { padding: 6px 14px; border-radius: 8px; color: #04101c; background: var(--mint); font-weight: 500; box-shadow: 0 0 30px -4px rgba(62,240,176,.7); }
.sig { color: var(--mute); font-size: 13px; }
.js .term [data-step-line] { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; }
.js .term [data-step-line].on { opacity: 1; transform: none; }
.term-note { margin: 0; padding: 12px 24px; border-top: 1px solid var(--line); font: 400 12px var(--mono); color: var(--mute); }

/* numbers */
.numbers { padding: 30px 0 10px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 24px; background: rgba(10,15,30,.6); overflow: hidden; }
.num { padding: 36px 30px; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num b { display: block; white-space: nowrap; font: 600 clamp(30px, 3vw, 44px)/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.num b span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num small { display: block; margin-top: 12px; font-size: 15px; color: var(--mute); }

/* calculator */
.readiness-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.readiness-copy { position: sticky; top: 120px; }
.readiness-copy h2 { font-size: clamp(36px, 4.6vw, 64px); }
.readiness-copy .sub { max-width: 560px; font-size: 17px; }
.readiness-prompt { margin: 26px 0 0; color: var(--cyan); font: 500 13px var(--mono); letter-spacing: .04em; }
.calc { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 0; border: 1px solid var(--line2); border-radius: 20px; background: #050811; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 100px -50px rgba(79,123,255,.5); overflow: hidden; }
.calc::before { content: 'readiness model · interactive'; display: block; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--mute); font: 400 12px var(--mono); }
.calc-inputs { padding: 30px; display: grid; gap: 25px; border-right: 0; border-bottom: 1px solid var(--line); align-content: start; }
.calc-inputs label { display: grid; grid-template-columns: 1fr auto; gap: 14px 12px; align-items: baseline; }
.calc-inputs label span { font-size: 16px; font-weight: 600; color: var(--ink); }
.calc-inputs label em { font-style: normal; font-weight: 400; color: var(--mute); }
.calc-inputs output { font: 500 18px var(--mono); color: var(--cyan); white-space: nowrap; }
.calc-inputs input { grid-column: 1 / -1; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -12px; }
.presets button { padding: 7px 12px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; color: var(--text); font: 500 13px var(--body); cursor: pointer; transition: .2s; }
.presets button:hover, .presets button.on { border-color: var(--cyan); color: var(--ink); background: rgba(92,225,255,.08); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan) var(--p, 50%), rgba(140,170,230,.18) var(--p, 50%)); outline-offset: 6px; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 0 0 6px rgba(79,123,255,.2), 0 4px 14px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.calc-out { padding: 30px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px 28px; align-items: center; }
.calc-out .verdict-big { grid-row: 1 / 3; }
.calc-out .timeline { grid-column: 2; }
.calc-out .calc-cta { grid-column: 2; }
.verdict-big small { display: block; font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }
.verdict-big b { font: 700 clamp(58px, 7vw, 94px)/1 var(--display); letter-spacing: -.06em; color: var(--red); text-shadow: 0 0 60px rgba(255,77,109,.45); transition: color .3s, text-shadow .3s; }
.verdict-big span { margin-left: 10px; font: 600 24px var(--display); color: var(--ink); }
.verdict-big p { margin: 10px 0 0; max-width: 520px; font-size: 16px; }
.verdict-big.safe b { color: var(--mint); text-shadow: 0 0 60px rgba(62,240,176,.45); }
.timeline { position: relative; padding: 30px 0 30px; }
.tl-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; margin-bottom: 14px; font: 400 13px var(--mono); color: var(--mute); }
.tl-track { position: relative; height: 22px; border-radius: 6px; background: rgba(140,170,230,.07); }
.bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: left .35s, width .35s; }
.bar.mig { background: linear-gradient(90deg, rgba(255,181,71,.35), var(--amber)); }
.bar.sec { background: linear-gradient(90deg, rgba(92,225,255,.3), var(--cyan)); }
.bar.exp { background: repeating-linear-gradient(135deg, var(--red) 0 6px, #c22848 6px 12px); box-shadow: 0 0 20px rgba(255,77,109,.6); }
.tl-q { position: absolute; left: 0; top: 20px; bottom: 22px; width: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); transition: left .35s; }
.tl-q span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font: 500 12px var(--mono); color: var(--red); white-space: nowrap; }
.tl-axis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--mute); }
.calc-cta { margin: 0; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(92,225,255,.25); background: rgba(92,225,255,.05); font-size: 15.5px; }
.calc-cta b { color: var(--cyan); }

/* final */
.final { position: relative; padding: 170px 0; text-align: center; overflow: hidden; isolation: isolate; }
.final-glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: 1000px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(79,123,255,.35), rgba(167,123,255,.15) 50%, transparent); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .8; } }
.final h2 { margin: 0 auto; font-size: clamp(44px, 7vw, 100px); }
.final .sub { margin: 26px auto 0; }
.mail { margin: 26px 0 0; font-size: 15px; color: var(--mute); }
.mail a { color: var(--ink); border-bottom: 1px solid var(--line2); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--mute); }
.foot-inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 30px; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a:hover { color: var(--ink); }

/* responsive */
@media (max-width: 1080px) {
  .path { grid-template-columns: 1fr 84px 1.4fr 84px 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .viz { max-width: 520px; }
  .proof-grid { grid-template-columns: 1fr; gap: 50px; }
  .readiness-layout { grid-template-columns: 1fr; gap: 45px; }
  .readiness-copy { position: static; }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .nums { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-inner { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 860px) {
  .menu { display: block; }
  .nav { position: absolute; top: 76px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; border: 1px solid var(--line2); border-radius: 18px; background: rgba(6,10,20,.97); backdrop-filter: blur(18px); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { justify-content: center; margin-top: 6px; }
  .top { background: rgba(3,5,11,.72); backdrop-filter: blur(18px); border-color: var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 108px 0 60px; }
  .hero h1 { font-size: 7.6vw; letter-spacing: -.045em; }
  .btn { height: 52px; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .scene { margin-top: 50px; padding: 18px 14px; border-radius: 20px; }
  .scene-bar { font-size: 11px; }
  .path { grid-template-columns: 74px 1fr 74px; grid-template-areas: "a a a" "g1 t g2" "b b b" "h h h"; row-gap: 14px; }
  .gate { margin: 0; padding: 12px 4px; font-size: 13px; }
  .tunnel { margin: 0 -1px; height: 96px; }
  .tunnel-text b { font-size: 10.5px; letter-spacing: .02em; }
  .kicker { font-size: 12px; }
  .tunnel-text code { font-size: 11px; }
      .section { padding: 96px 0; }
  .steps { margin-top: 44px; }
  .step { padding: 26px 22px; }
  .nums { grid-template-columns: 1fr; }
  .num { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 22px; }
  .num:last-child { border-bottom: 0; }
  .calc-inputs, .calc-out { padding: 26px 20px; }
  .calc-out { grid-template-columns: 1fr; }
  .calc-out .verdict-big, .calc-out .timeline, .calc-out .calc-cta { grid-column: 1; grid-row: auto; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .tl-q { top: 44px; }
  .term-body { padding: 18px 16px; font-size: 13px; }
  .line { flex-direction: column; gap: 0; }
  .final { padding: 110px 0; }
}


/* ---- interactive demonstration ---- */
.demo { margin-top: 48px; scroll-margin-top: 96px; }
.demo-tabs { display: flex; justify-content: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.demo-tabs + .scene-bar { padding-top: 16px; border-top: 1px solid rgba(140,170,230,.16); }
.demo-tabs button { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(10,16,32,.7); color: var(--text); font: 600 15px var(--body); cursor: pointer; transition: .25s; }
.demo-tabs button span { display: grid; place-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(140,170,230,.12); font: 500 13px var(--mono); color: var(--ink); }
.demo-tabs button:hover { border-color: var(--cyan); color: var(--ink); }
.demo-tabs button[aria-selected="true"] { color: var(--ink); border-color: transparent; background: linear-gradient(rgba(10,16,32,.92), rgba(10,16,32,.92)) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 0 30px -8px rgba(92,225,255,.6); }
.demo-tabs button[aria-selected="true"] span { background: var(--grad); color: #04101c; }
.demo-label { color: var(--cyan) !important; }
.demo-label .dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.pill { padding: 5px 12px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #ffd0d8; background: rgba(255,77,109,.14); border: 1px solid rgba(255,77,109,.45); transition: .4s; }
[data-state="protected"] .pill, [data-state="verified"] .pill { color: #c9ffeb; background: rgba(62,240,176,.12); border-color: rgba(62,240,176,.45); }

.delivered { margin: 10px 0 0; font: 600 15px var(--display); color: var(--mint); }
.end em { font-size: 12.5px; }

/* gates */
.gate { transition: opacity .5s, transform .5s, border-color .5s, box-shadow .5s, background .5s; }
.gate > * { transition: opacity .4s; }
[data-state="exposed"] .gate { opacity: .45; transform: scale(.9); border: 1px dashed rgba(140,170,230,.3); background: transparent; box-shadow: none; }
[data-state="exposed"] .gate > * { opacity: 0; }
[data-state="protected"] .gate { animation: gateOn .7s cubic-bezier(.2,.8,.2,1.3); }
@keyframes gateOn { from { transform: scale(.6); opacity: 0; } }

/* channel */
.tunnel-line { transition: border-color .5s, background .5s, box-shadow .5s; }
[data-state="exposed"] .tunnel-line { border-color: rgba(255,181,71,.55); background: linear-gradient(90deg, rgba(255,181,71,.05), rgba(255,120,80,.14), rgba(255,77,109,.06)); box-shadow: 0 0 50px -14px rgba(255,140,80,.5) inset; }
[data-state="exposed"] .pkt { background: linear-gradient(90deg, transparent, var(--amber), #fff); box-shadow: 0 0 16px var(--amber); }
[data-state="exposed"] .tunnel-text code { color: var(--amber); }
.tunnel-text b { font-size: 13px; }
.tunnel-text code { font-size: 12px; opacity: .7; }
.tap { --tap: rgba(255,77,109,.85); position: absolute; left: 50%; top: calc(50% + 32px); width: 2px; height: 46px; margin-left: -1px; background: repeating-linear-gradient(to bottom, var(--tap) 0 5px, transparent 5px 10px); background-size: 2px 10px; animation: tapFlow .5s linear infinite; }
.tap::after { content: ''; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--tap); box-shadow: 0 0 10px var(--tap); animation: tapDrop 1.3s cubic-bezier(.5,0,.8,.6) infinite; }
@keyframes tapFlow { to { background-position: 0 10px; } }
@keyframes tapDrop { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
[data-state="protected"] .tap { --tap: rgba(140,170,230,.6); }
[data-state="verified"] .tap { --tap: rgba(62,240,176,.75); }

/* below panels */
.below { grid-area: h; margin-top: 4px; min-width: 0; }
.capture, .checks { padding: 18px 20px; border-radius: 18px; min-width: 0; }
.capture { border: 1px solid rgba(255,77,109,.45); background: linear-gradient(160deg, rgba(48,10,22,.85), rgba(22,6,14,.9)); box-shadow: 0 0 60px -20px rgba(255,77,109,.6); transition: .5s; }
.cap-head, .checks-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cap-head b, .checks-head b { font: 600 17px var(--display); color: #ff9aab; }
.cap-head span, .checks-head span { font-size: 13px; color: #c99aa5; }
.cap-status { margin: 10px 0 6px; font: 600 clamp(19px, 2vw, 24px)/1.25 var(--display); color: #ffd0d8; letter-spacing: -.02em; }
.cap-line { margin: 0; font-size: 13px; color: #ff9aab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checks { display: none; border: 1px solid rgba(62,240,176,.45); background: linear-gradient(160deg, rgba(8,34,30,.85), rgba(5,16,16,.92)); box-shadow: 0 0 60px -20px rgba(62,240,176,.55); }
[data-state="verified"] .capture { display: none; }
[data-state="verified"] .checks { display: block; }
.checks-head b { color: #c9ffeb; }
.checks-head span { color: #7fbfa8; }
.checks ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 15px; color: var(--text); border-bottom: 1px solid rgba(62,240,176,.1); opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s; }
.checks li.on { opacity: 1; transform: none; }
.checks li b { font: 500 14px var(--mono); color: var(--mint); white-space: nowrap; }
.checks li b::before { content: '✓ '; }
.checks-verdict { display: flex; align-items: center; gap: 12px; margin-top: 14px; opacity: 0; transition: opacity .4s; }
.checks-verdict.on { opacity: 1; }
.checks-verdict span { padding: 6px 14px; border-radius: 8px; background: var(--mint); color: #04101c; font-size: 14px; box-shadow: 0 0 30px -4px rgba(62,240,176,.7); }
.checks-verdict small { font: 400 13px var(--mono); color: #9fd9c4; }

.demo-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-foot p { margin: 0; max-width: 720px; font-size: 16px; color: var(--text); }
.btn-step { flex: none; height: 50px; font-size: 15px; }
.btn-step.pulse-me { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 8px rgba(92,225,255,.12), 0 10px 40px -8px rgba(79,123,255,.7); } }

@media (max-width: 760px) {
  .demo { margin-top: 44px; }
  .demo-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .demo-tabs + .scene-bar { padding-top: 14px; }
  .demo-tabs button { height: auto; min-height: 76px; padding: 10px 6px; flex-direction: column; justify-content: center; gap: 6px; border-radius: 16px; font-size: 12.5px; line-height: 1.25; text-align: center; }
  [data-state="exposed"] .g1, [data-state="exposed"] .g2 { display: none; }
  [data-state="exposed"] .tunnel { grid-column: 1 / -1; }
  .tunnel-text b { font-size: 10.5px; }
  .pill { font-size: 10.5px; padding: 4px 9px; }
  .scene-bar { align-items: center; }
  .tap { height: 0; }
  .demo-foot { flex-direction: column; align-items: stretch; }
  .btn-step { justify-content: center; }
  .checks li { font-size: 14px; }
}


/* ---- demo v3 ---- */
.carrier { position: absolute; top: 50%; left: 0; transform: translate(-100%,-50%); z-index: 2; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: #04101c; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); white-space: nowrap; }
[data-state="exposed"] .carrier { background: var(--amber); box-shadow: 0 0 18px var(--amber); }
.tunnel-text { pointer-events: none; }
.msg.pending { color: var(--mute); border-style: dashed; box-shadow: none; }
.below { display: grid; gap: 14px; }
.cap-new { display: none; border: 1px solid rgba(92,225,255,.4); background: linear-gradient(160deg, rgba(10,30,44,.9), rgba(6,14,24,.92)); box-shadow: 0 0 60px -24px rgba(92,225,255,.6); animation: capIn .6s cubic-bezier(.2,.8,.2,1); }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } }
.cap-new .cap-head b { color: var(--cyan); }
.cap-new .cap-head span { color: var(--mute); }
.cap-new .cap-status { color: var(--ink); }
.cap-new .cap-line { color: #7fb8cc; }
[data-state="protected"] .below { grid-template-columns: 1fr 1fr; }
[data-state="protected"] .cap-new { display: block; }
[data-state="protected"] .cap-status { font-size: clamp(16px, 1.5vw, 19px); }
[data-state="protected"] .cap-old { box-shadow: 0 0 40px -24px rgba(255,77,109,.6); }
.checks li { flex-wrap: wrap; }
.perf-detail { flex-basis: 100%; display: grid; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s ease .2s, opacity .5s ease .2s; }
.checks li.perf.on .perf-detail { max-height: 160px; opacity: 1; padding: 8px 0 4px; }
.perf-row { display: grid; grid-template-columns: 110px 1fr 56px; align-items: center; gap: 12px; font-size: 13.5px; }
.perf-row em { font-style: normal; color: var(--mute); }
.perf-row span { text-align: right; color: var(--ink); font-size: 13px; }
.pbar { position: relative; height: 8px; border-radius: 6px; background: rgba(140,170,230,.1); }
.pbar::after { content: ''; position: absolute; inset: 0 auto 0 0; border-radius: inherit; width: var(--w); transition: width 1s cubic-bezier(.2,.7,.2,1) .4s; }
.pbar.base { --w: 58.6%; } .pbar.prot { --w: 65.7%; } .pbar.lim { --w: 85.7%; }
.pbar.base::after { background: #6b7a96; } .pbar.prot::after { background: var(--mint); box-shadow: 0 0 10px rgba(62,240,176,.6); } .pbar.lim::after { background: rgba(255,181,71,.22); border-right: 3px solid var(--amber); }
.checks li.perf:not(.on) .pbar::after { width: 0; }
.perf-detail small { color: var(--mute); font-size: 11.5px; }
.record { margin-top: 14px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.record.on { opacity: 1; transform: none; }
.record-main { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(62,240,176,.35); border-radius: 12px; background: rgba(62,240,176,.06); }
.record-main b { display: block; color: var(--ink); font: 600 15px var(--display); }
.record-main small { display: block; color: #9fd9c4; font-size: 12px; }
.seal-badge { flex: none; padding: 6px 12px; border-radius: 8px; background: var(--mint); color: #04101c; font-size: 13.5px; font-weight: 500; box-shadow: 0 0 26px -4px rgba(62,240,176,.7); }
.demo-copy p { margin: 0; }
.demo-note { display: block; margin-top: 8px; font-size: 13px; color: var(--mute); }
.demo-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.demo-actions [hidden] { display: none !important; }
.replay { padding: 4px 2px; border: 0; background: none; color: var(--text); font: 500 14px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(194,204,224,.4); }
.replay:hover { color: var(--ink); }
.demo .chips { transition: opacity .6s, transform .6s, visibility .6s; }

/* evidence inspector */
.inspector { border: 1px solid var(--line2); border-radius: 20px; background: #050811; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 100px -40px rgba(62,240,176,.45); overflow: hidden; }
.insp-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.insp-tabs button { flex: none; padding: 10px 14px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--mute); font: 600 14.5px var(--body); cursor: pointer; }
.insp-tabs button span { margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: rgba(62,240,176,.15); color: var(--mint); font: 500 12px var(--mono); }
.insp-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--cyan); }
.insp-panel { padding: 22px 24px; min-height: 330px; }
.kv { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 12px 18px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.kv .ok { color: var(--mint); }
.grp + .grp { margin-top: 14px; }
.grp h4 { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font: 600 15px var(--display); color: var(--ink); }
.grp h4 b { font: 500 13px var(--mono); color: var(--mint); }
.grp ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.grp li { padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(62,240,176,.22); background: rgba(62,240,176,.05); font-size: 13px; color: var(--text); }
.grp li::before { content: '✓ '; color: var(--mint); }
.meas { display: grid; gap: 8px; margin-bottom: 22px; }
.meas-title { margin: 0 0 4px; font: 600 15px var(--display); color: var(--ink); }
.insp-note { margin: 20px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 14px; }

@media (max-width: 760px) {
  [data-state="protected"] .below { grid-template-columns: 1fr; }
  .demo-actions { align-items: stretch; }
  .replay { align-self: center; }
  .perf-row { grid-template-columns: 92px 1fr 48px; font-size: 12.5px; }
  .record-main { flex-direction: column; align-items: flex-start; }
  .insp-panel { padding: 18px 16px; min-height: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}


/* ---- demo v4: minimal ---- */
.demo-foot .statement { margin: 0; max-width: none; font: 600 clamp(24px, 2.8vw, 36px)/1.15 var(--display); letter-spacing: -.03em; color: var(--ink); }
.statement span { color: var(--red); }
[data-state="protected"] .statement span { color: var(--cyan); }
[data-state="verified"] .statement span { color: var(--mint); }
.statement.swap { animation: swapIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } }
.cap-count { margin: 8px 0 4px; }
.cap-count span { font-size: 28px; color: #ffd0d8; }
.cap-new .cap-count span { color: var(--ink); }
.cap-count small { font: 400 13px var(--mono); color: #c99aa5; }
.cap-new .cap-count small { color: var(--mute); }
.tag { padding: 3px 10px; border-radius: 99px; font: 500 12px var(--mono) !important; text-transform: uppercase; letter-spacing: .06em; }
.tag-risk { color: #ffd0d8 !important; background: rgba(255,77,109,.18); }
.tag-safe { color: #c9f4ff !important; background: rgba(92,225,255,.16); }
.verify { display: none; padding: 22px 22px 18px; border-radius: 18px; border: 1px solid rgba(62,240,176,.45); background: linear-gradient(160deg, rgba(8,34,30,.85), rgba(5,16,16,.92)); box-shadow: 0 0 60px -20px rgba(62,240,176,.55); }
[data-state="verified"] .verify { display: block; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ticks li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 8px; border-radius: 14px; background: rgba(62,240,176,.05); font: 600 17px var(--display); color: var(--ink); text-align: center; opacity: .25; transform: scale(.94); transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1.4); }
.ticks li i { display: grid; place-content: center; width: 40px; height: 40px; border-radius: 50%; font-style: normal; font-size: 20px; color: #04101c; background: rgba(62,240,176,.3); transition: background .4s, box-shadow .4s; }
.ticks li.on { opacity: 1; transform: none; }
.ticks li.on i { background: var(--mint); box-shadow: 0 0 24px rgba(62,240,176,.7); }
.verify .record { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.verify .record small { font-size: 12.5px; color: #9fd9c4; }
.demo-links { display: flex; justify-content: flex-end; gap: 18px; }
.learn { margin-top: 18px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); animation: swapIn .4s ease; }
.learn [data-for] { display: none; }
[data-state="exposed"] .learn [data-for="exposed"], [data-state="protected"] .learn [data-for="protected"], [data-state="verified"] .learn [data-for="verified"] { display: block; }
.learn p { margin: 0 0 12px; font-size: 16px; max-width: 860px; }
.learn em { color: var(--ink); }
.learn .chips { justify-content: flex-start; margin: 16px 0 0; }
.learn .demo-note { margin: 14px 0 0; }
.learn-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; max-width: 760px; }
.learn-checks li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.learn-checks li small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--mute); }
.learn-checks b { font: 500 14px var(--mono); color: var(--mint); white-space: nowrap; }
.learn-checks b::before { content: '✓ '; }
.gate span { font-size: 13px; }
@media (max-width: 760px) {
  .ticks li { font-size: 14px; padding: 12px 4px; }
  .ticks li i { width: 34px; height: 34px; font-size: 17px; }
  .verify .record { flex-direction: column; }
  .demo-links { justify-content: center; }
}


/* ---- v5: less repetition, quieter mesh ---- */
.demo-foot .statement { display: none; }
[data-state="protected"] .demo-foot .statement { display: block; }
.demo-foot { justify-content: flex-end; }
[data-state="protected"] .demo-foot { justify-content: space-between; }
.lattice { opacity: .7; -webkit-mask-image: linear-gradient(#000 0, #000 35%, rgba(0,0,0,.25) 60%, transparent 85%); mask-image: linear-gradient(#000 0, #000 35%, rgba(0,0,0,.25) 60%, transparent 85%); }
.demo-tabs button.pulse-me { animation: nudge 2.2s ease-in-out infinite; border-color: rgba(92,225,255,.6); }


/* ---- v6: centred, symmetric simulation ---- */
.scene-bar { justify-content: center; }
.path { align-items: center; }
.end { align-self: stretch; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.end .msg { text-align: center; font-size: 15px; }
.sent, .delivered { margin: 10px 0 0; font: 600 15px var(--display); }
.sent { color: var(--mute); }
.gate { align-self: center; }
.tunnel { align-self: center; }
.below { justify-self: stretch; }
.cap-head { justify-content: center; }
.capture, .verify { text-align: center; }
.cap-line { text-overflow: ellipsis; }
.demo-foot, [data-state="protected"] .demo-foot { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; }
.demo-actions { align-items: center; }
.demo-links { justify-content: center; }
.learn { text-align: left; }

@media (max-width: 1080px) and (min-width: 761px) { .end { padding: 14px 10px; } .end .msg { font-size: 12.5px; padding: 8px 6px; } .msg .mval { font-size: 12.5px; } .msg .mid { font-size: 10.5px; } }

.scene { display: flex; flex-direction: column; }
.scene > .path { flex: 1 0 auto; align-content: start; }
.scene > .demo-foot { margin-top: auto; }
.hero, .demo { overflow-anchor: none; }

/* banking messages: id/kind line + value line, fixed two-line height */
.msg { white-space: normal; height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 10px; }
.msg .mid { font-size: 11.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.msg .mval { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.pending .mval { color: var(--mute); }

@media (max-width: 860px) and (min-width: 761px) { .path { grid-template-columns: 1fr 70px 1.1fr 70px 1fr; } .msg .mval { font-size: 11.5px; } }


/* ---- v7: whole demo fits the first screen on laptops (min-width 761px) ---- */
@media (min-width: 761px) {
  .hero { padding: 104px 0 40px; }
  .hero h1 { font-size: clamp(40px, 4.6vw, 66px); }
  .lede { margin-top: 16px; font-size: 18px; }
  .demo { margin-top: 36px; }
  .demo-tabs button { height: 38px; font-size: 14px; }
  .demo-tabs button span { width: 26px; height: 26px; }
  .scene { margin-top: 12px; padding: 14px 22px 16px; }
  .scene-bar { margin-bottom: 10px; font-size: 11.5px; }
  .end { padding: 12px 14px; }
  .end small { font-size: 11px; }
  .msg { height: 56px; margin-top: 8px; padding: 6px 10px; }
  .msg .mid, .msg .mval { line-height: 1.3; }
  .sent, .delivered { margin-top: 6px; font-size: 14px; }
  .gate { padding: 10px 6px; }
  .tunnel { height: 80px; }
  .tunnel-line { height: 54px; }
  .tap { top: calc(50% + 27px); height: 22px; }
  .below { margin-top: 2px; }
  .capture { padding: 12px 16px; }
  .cap-head b { font-size: 15.5px; }
  .cap-count { margin: 4px 0 2px; }
  .cap-count span { font-size: 22px; }
  .cap-line { font-size: 12.5px; }
  .verify { padding: 14px 16px 12px; }
  .ticks li { padding: 8px 6px; gap: 6px; font-size: 15px; }
  .ticks li i { width: 30px; height: 30px; font-size: 16px; }
  .verify .record { margin-top: 10px; }
  .demo-foot, [data-state="protected"] .demo-foot { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; margin-top: 12px; padding-top: 12px; }
  .demo-foot .statement { font-size: clamp(20px, 2vw, 26px); }
  .demo-actions { flex-direction: row; align-items: center; gap: 18px; }
  .btn-step { height: 44px; }
}

@media (min-width: 761px) and (max-height: 760px) {
  .hero { padding-top: 84px; }
  .hero h1 { font-size: min(4.4vw, 60px); }
  .lede { font-size: 16.5px; margin-top: 6px; }
  .actions { margin-top: 14px; }
  .demo { margin-top: 14px; }
  .scene { margin-top: 10px; }
}
@media (min-width: 761px) and (max-height: 680px) {
  .hero { padding-top: 80px; }
  .lede { display: none; }
  .tunnel { height: 70px; }
}

/* ---- v8: calmer buttons ---- */
.btn-primary { background: linear-gradient(100deg, #6fd9f5, #6b8cf5 55%, #9b85f0); box-shadow: 0 4px 14px -6px rgba(79,123,255,.45), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover { box-shadow: 0 6px 20px -6px rgba(92,225,255,.5), inset 0 1px 0 rgba(255,255,255,.3); transform: translateY(-1px); }
.hero .actions .btn { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-step, .btn-step.btn-primary { height: 40px; padding: 0 18px; font-size: 14.5px; color: var(--ink); background: rgba(92,225,255,.06); border: 1px solid rgba(92,225,255,.45); box-shadow: none; }
.btn-step:hover { background: rgba(92,225,255,.12); border-color: var(--cyan); box-shadow: none; }
.btn-sm { box-shadow: none; }

#how { padding-top: 90px; }

/* ---- siphon icon on the tap ---- */
.siphon { position: absolute; z-index: 3; left: 50%; top: -6px; width: 28px; height: 28px; margin-left: -14px; display: grid; place-content: center; border-radius: 50%; color: #ff8fa3; background: #1d0a14; border: 1.5px solid var(--tap); box-shadow: 0 0 16px -2px var(--tap); animation: siphonPulse 1.3s ease-in-out infinite; }
.siphon svg { width: 15px; height: 15px; display: block; }
@keyframes siphonPulse { 50% { box-shadow: 0 0 22px 2px var(--tap); } }
.tap::after { animation-delay: .2s; }
@keyframes tapDrop { 0% { top: 18px; opacity: 0; } 20% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
[data-state="protected"] .siphon { color: #9fb0cc; background: #0c1222; animation: none; box-shadow: none; }
[data-state="verified"] .siphon { color: var(--mint); background: #061a16; animation: none; box-shadow: none; }
.siphon-mini { display: inline-grid; place-content: center; width: 22px; height: 22px; border-radius: 50%; color: #ff8fa3; background: rgba(255,77,109,.16); }
.siphon-mini svg { width: 13px; height: 13px; }
.cap-head { align-items: center; }
.tap { height: 58px; }
@media (min-width: 761px) { .tap { height: 44px; } }

/* ---- hacker avatar on capture panels ---- */
.hacker { display: inline-grid; place-content: center; width: 32px; height: 32px; border-radius: 50%; color: #ff6b85; background: rgba(255,77,109,.14); border: 1px solid rgba(255,77,109,.45); box-shadow: 0 0 14px -4px rgba(255,77,109,.7); flex: none; }
.hacker svg { width: 21px; height: 21px; display: block; }
.hacker-muted { color: #8091ad; background: rgba(140,170,230,.08); border-color: rgba(140,170,230,.3); box-shadow: none; }
[data-state="exposed"] .cap-old .hacker { animation: hackerGlow 2.6s ease-in-out infinite; }
@keyframes hackerGlow { 50% { box-shadow: 0 0 20px -2px rgba(255,77,109,.9); } }
@media (min-width: 761px) { .hacker { width: 32px; height: 32px; } .hacker svg { width: 22px; height: 22px; } }

/* ---- v9: How it works as one controlled workflow ---- */
#how h2 { font-size: clamp(30px, 3.4vw, 48px); max-width: 900px; }
#how .sub { margin-top: 14px; font-size: 19px; }
.steps { position: relative; margin-top: 52px; }
.step { min-height: 0; opacity: .9; filter: none; transition: opacity .6s, filter .6s, border-color .6s, box-shadow .6s, transform .35s; }
.step.lit { opacity: 1; filter: none; border-color: rgba(92,225,255,.35); box-shadow: 0 0 50px -24px rgba(92,225,255,.55); }
.step-n { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.step-n span { display: grid; place-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); font-size: 12px; transition: background .5s, color .5s, border-color .5s; position: relative; z-index: 2; }
.step.lit .step-n span { background: var(--grad); color: #04101c; border-color: transparent; }
.step h3 { font-size: 24px; margin: 18px 0 8px; }
.step p { font-size: 16px; }
.flow-line { position: absolute; z-index: 1; top: 47px; left: 46px; right: calc((100% - 44px) / 3 - 46px); height: 2px; background: rgba(140,170,230,.14); pointer-events: none; }
.flow-line i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 10px rgba(92,225,255,.6); transition: width 1.8s cubic-bezier(.4,0,.2,1); }
.steps.run .flow-line i { width: 100%; }
.scan { animation-play-state: paused; opacity: 0; }
.step.lit .scan { animation-play-state: running; opacity: 1; }
.rec { grid-template-columns: 92px 1fr auto; font-size: 13px; }
.rec span { color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 13.5px; }
.rec em { font-style: normal; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec b { opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s cubic-bezier(.2,.8,.2,1.6); }
.step.lit .rec b { opacity: 1; transform: none; }
.step.lit .rec:nth-child(2) b { transition-delay: .25s; } .step.lit .rec:nth-child(3) b { transition-delay: .5s; }
.seal { opacity: .7; transition: opacity .5s .75s; }
.step.lit .seal { opacity: 1; }
.step .ring-fg { stroke-dashoffset: 250; }
.step.lit .ring-fg { stroke-dashoffset: 0; }
.viz-prove small { color: var(--text); }
@media (max-width: 1080px) { .flow-line { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .pkt { display: none; }
  .checks li, .checks-verdict, .record, .ticks li { opacity: 1; transform: none; }
  .perf-detail { max-height: none; opacity: 1; }
  .ring-fg { stroke-dashoffset: 0; }
  .step { opacity: 1; filter: none; }
  .step .ring-fg { stroke-dashoffset: 0; }
  .scan { opacity: 1; }
}
