:root {
  --bg: #0b0e1a; --bg2: #10131f; --surface: rgba(23, 27, 42, 0.7); --surface-solid: #171b2a; --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.14);
  --text: #eef0f7; --text-2: #b6bbcc; --muted: #7d8399;
  --accent: #5b4fd6; --accent-2: #9c93ff; --accent-glow: rgba(124, 112, 255, 0.45);
  --gold: #e0b25a; --gold-glow: rgba(224, 178, 90, 0.4);
  --green: #3ddc97; --green-glow: rgba(61, 220, 151, 0.4);
  --red: #f28b82;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
section { position: relative; max-width: 1180px; margin: 0 auto; padding: 96px 24px; }

/* background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 80%); opacity: .5; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.o1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, #5b4fd6, transparent 65%); }
.o2 { width: 520px; height: 520px; right: -140px; top: 120px; background: radial-gradient(circle, #2a6dd6, transparent 65%); animation-delay: -9s; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.08); } }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; max-width: 1180px; margin: 0 auto; padding: 18px 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.nav nav { margin-left: auto; display: flex; gap: 26px; font-size: .95rem; color: var(--text-2); }
.nav nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.15); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px var(--accent-glow); background: #6c61e6; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.05); }
.btn.small { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
.btn.big { padding: 16px 28px; font-size: 1.08rem; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.kicker { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
.sec-head .sub { color: var(--text-2); margin-top: 14px; font-size: 1.1rem; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 9px; margin-bottom: 26px; background: rgba(255,255,255,.03); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green-glow); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--green-glow); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* hero */
.hero { display: grid; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 60px; min-height: min(calc(100vh - 80px), 760px); }
@media (min-width: 980px) { .hero { grid-template-columns: 1fr 1.05fr; } }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 700; margin-bottom: 22px; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.grad { background: linear-gradient(90deg, #9c93ff, #e0b25a 60%, #3ddc97); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); font-size: 1.15rem; max-width: 34rem; margin-bottom: 30px; animation: rise .8s .1s cubic-bezier(.2,.7,.2,1) both; }
.hero .ctas { animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both; }
.mini { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 20px; color: var(--muted); font-size: .92rem; animation: rise .8s .3s cubic-bezier(.2,.7,.2,1) both; }
.mini b { display: block; color: var(--text); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* animated flow */
.flow { position: relative; height: 400px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,27,42,.9), rgba(16,19,31,.9)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) both; }
.rail { position: absolute; inset: 0; width: 100%; height: 100%; }
.dot { fill: var(--accent-2); }
.node { position: absolute; top: 30%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 120px; text-align: center; }
.node b { font-size: .95rem; margin-top: 10px; }
.node small { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.n-agent { left: 10%; } .n-you { left: 33.3%; } .n-vault { left: 57.1%; } .n-dest { left: 90%; }
.ic { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--line-2); color: var(--accent-2); transition: box-shadow .4s, border-color .4s; }
.ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.usdc { color: var(--green); font-weight: 700; font-size: 1.5rem; font-family: var(--mono); }
.bubble { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px); width: max-content; max-width: 200px; font-size: .8rem; padding: 8px 11px; border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--line-2); color: var(--text-2); opacity: 0; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); }
.bubble em { color: var(--text); font-style: normal; font-weight: 600; }
.b-verify { display: flex; gap: 6px; }
.b-verify span { font-family: var(--mono); font-size: .7rem; padding: 2px 7px; border-radius: 6px; background: rgba(61,220,151,.12); color: var(--green); opacity: 0; }
.b-verify span::before { content: "✓ "; }
.b-paid { color: var(--green); font-weight: 600; }

/* phone */
.phone { width: 84px; height: 150px; border-radius: 18px; background: #0a0c16; border: 2px solid #2a3045; padding: 8px 6px; position: relative; box-shadow: 0 0 0 0 var(--gold-glow); }
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 26px; height: 4px; border-radius: 2px; background: #2a3045; }
.screen { position: absolute; inset: 14px 6px 8px; border-radius: 10px; background: linear-gradient(180deg, #171b2a, #10131f); overflow: hidden; }
.req { position: absolute; inset: 0; padding: 10px 7px; display: flex; flex-direction: column; gap: 2px; text-align: left; opacity: 0; transform: translateY(100%); }
.req span { font-family: var(--mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.req b { font-size: .78rem; margin: 0; line-height: 1.1; }
.req i { font-family: var(--mono); font-style: normal; font-size: .5rem; color: var(--muted); word-break: break-all; }
.finger { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold); opacity: 0; }
.finger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.approved { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; font-size: .68rem; font-weight: 600; color: var(--green); background: #10131f; opacity: 0; }
.approved svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }

/* 9s loop timeline: 0-16% ask travels, 16-40% phone approves, 40-55% travels to vault, 55-72% vault verifies, 72-86% travels to paid, 86-100% paid */
.b-ask { animation: bubble 9s infinite; animation-delay: 0s; }
@keyframes bubble { 0%, 2% { opacity: 0; transform: translate(-50%, 6px); } 5%, 36% { opacity: 1; transform: translate(-50%, 0); } 40%, 100% { opacity: 0; transform: translate(-50%, 6px); } }
.n-you .phone { animation: phoneglow 9s infinite; }
@keyframes phoneglow { 0%, 15% { box-shadow: 0 0 0 0 transparent; border-color: #2a3045; } 18%, 38% { box-shadow: 0 0 40px -6px var(--gold-glow); border-color: var(--gold); } 42%, 100% { box-shadow: 0 0 0 0 transparent; border-color: #2a3045; } }
.req { animation: req 9s infinite; }
@keyframes req { 0%, 15% { opacity: 0; transform: translateY(100%); } 18%, 30% { opacity: 1; transform: none; } 33%, 100% { opacity: 0; transform: none; } }
.finger { animation: finger 9s infinite; }
@keyframes finger { 0%, 17% { opacity: 0; transform: translateX(-50%) scale(.8); } 19%, 26% { opacity: 1; transform: translateX(-50%) scale(1); } 28%, 30% { opacity: 1; transform: translateX(-50%) scale(1.25); box-shadow: 0 0 0 10px transparent; } 33%, 100% { opacity: 0; transform: translateX(-50%) scale(.8); } }
.approved { animation: okshow 9s infinite; }
@keyframes okshow { 0%, 31% { opacity: 0; } 33%, 40% { opacity: 1; } 44%, 100% { opacity: 0; } }
.approved svg { animation: tick 9s infinite; }
@keyframes tick { 0%, 32% { stroke-dashoffset: 30; } 36%, 100% { stroke-dashoffset: 0; } }
.n-vault .ic { animation: vaultglow 9s infinite; }
@keyframes vaultglow { 0%, 54% { box-shadow: none; border-color: var(--line-2); } 57%, 72% { box-shadow: 0 0 44px -6px var(--green-glow); border-color: var(--green); } 76%, 100% { box-shadow: none; border-color: var(--line-2); } }
.b-verify { animation: verify 9s infinite; }
@keyframes verify { 0%, 55% { opacity: 0; transform: translate(-50%, 6px); } 58%, 84% { opacity: 1; transform: translate(-50%, 0); } 88%, 100% { opacity: 0; transform: translate(-50%, 6px); } }
.b-verify span:nth-child(1) { animation: chk 9s infinite; } .b-verify span:nth-child(2) { animation: chk 9s .35s infinite; } .b-verify span:nth-child(3) { animation: chk 9s .7s infinite; }
@keyframes chk { 0%, 58% { opacity: 0; transform: scale(.7); } 61%, 100% { opacity: 1; transform: none; } }
.n-dest .ic { animation: destglow 9s infinite; }
@keyframes destglow { 0%, 85% { box-shadow: none; border-color: var(--line-2); } 88%, 98% { box-shadow: 0 0 44px -6px var(--green-glow); border-color: var(--green); } 100% { box-shadow: none; } }
.b-paid { animation: paid 9s infinite; }
@keyframes paid { 0%, 85% { opacity: 0; transform: translate(-50%, 6px); } 88%, 98% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (max-width: 700px) { .timeline::before { display: none; } }
@media (max-width: 560px) { .flow { height: 320px; } .n-agent { left: 15%; } .n-dest { left: 86%; } .node { width: 90px; } .ic { width: 50px; height: 50px; } .phone { width: 64px; height: 116px; } .bubble { max-width: 140px; font-size: .72rem; } .b-verify span:nth-child(3) { display: none; } }

/* cards */
.cards3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .3s, border-color .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.06), transparent 40%); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.3rem; margin: 18px 0 10px; }
.card p { color: var(--text-2); font-size: 1rem; }
.glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.glyph svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.glyph.purple { background: rgba(124,112,255,.15); color: var(--accent-2); }
.glyph.gold { background: rgba(224,178,90,.15); color: var(--gold); }
.glyph.green { background: rgba(61,220,151,.15); color: var(--green); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.t { font-family: var(--mono); font-size: .72rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.t.ok { color: var(--green); border-color: rgba(61,220,151,.35); background: rgba(61,220,151,.08); }
.t.no { color: var(--red); border-color: rgba(242,139,130,.35); background: rgba(242,139,130,.08); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); position: relative; counter-reset: s; }
.timeline::before { content: ""; position: absolute; left: 24px; right: 24px; top: 22px; height: 1px; background: linear-gradient(90deg, var(--accent-2), var(--gold), var(--green)); opacity: .5; }
.timeline li { position: relative; padding: 0 24px 0 0; }
.timeline .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--accent-2); color: var(--accent-2); font-family: var(--mono); font-weight: 500; margin-bottom: 18px; box-shadow: 0 0 24px -6px var(--accent-glow); }
.timeline li.gold .n { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 24px -6px var(--gold-glow); }
.timeline li.green .n { border-color: var(--green); color: var(--green); box-shadow: 0 0 24px -6px var(--green-glow); }
.timeline h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline p { color: var(--text-2); font-size: .97rem; }

/* even if */
.evenif { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ei { position: relative; display: grid; gap: 6px; padding: 22px 22px 22px 26px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ei::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--green); }
.ei.warn::before { background: var(--gold); }
.ei b { font-size: 1.05rem; }
.ei span { color: var(--text-2); font-size: .95rem; }
.ei i { position: absolute; top: 18px; right: 18px; font-style: normal; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.ei.warn i { color: var(--gold); }

/* agents */
.agents { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .agents { grid-template-columns: 1fr 1.1fr; } }
.agents h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; margin-bottom: 18px; }
.agents-copy > p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 26px; }
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); margin-bottom: 16px; }
.toggle button { font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 16px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s; }
.toggle button.on { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -8px var(--accent-glow); }
.mode-note { color: var(--text-2); font-size: .98rem; min-height: 3.2em; }
.term { border-radius: 16px; background: #090b14; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); overflow: hidden; }
.term .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3045; }
.term .bar span { margin-left: auto; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.term pre { margin: 0; padding: 22px 24px; font-family: var(--mono); font-size: .86rem; line-height: 1.7; color: var(--text); overflow-x: auto; }
.term .c { color: var(--muted); } .term .s { color: var(--gold); } .term .x { color: var(--red); text-decoration: line-through; }

/* proof */
.stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 26px; }
.stats div { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stats b { display: block; font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #fff, #b6bbcc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .95rem; }
.txcard { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 24px 28px; border-radius: var(--r); background: linear-gradient(135deg, rgba(91,79,214,.18), rgba(61,220,151,.1)); border: 1px solid var(--line-2); transition: transform .3s, border-color .3s; }
.txcard:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.txcard .kicker { margin-bottom: 6px; }
.txcard b { display: block; font-size: 1.4rem; font-weight: 600; }
.txcard small { display: block; color: var(--muted); font-family: var(--mono); font-size: .78rem; margin-top: 6px; }
.tx-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tx-r em { font-style: normal; font-weight: 600; margin-left: 8px; color: var(--accent-2); }

/* cta + footer */
.cta { text-align: center; padding-top: 40px; }
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; margin-bottom: 14px; }
.cta p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 30px; }
.cta .ctas { justify-content: center; }
footer { max-width: 1180px; margin: 0 auto; padding: 30px 24px 60px; display: flex; gap: 8px 28px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.cards3 .reveal:nth-child(2), .timeline .reveal:nth-child(2), .evenif .reveal:nth-child(2) { transition-delay: .1s; }
.cards3 .reveal:nth-child(3), .timeline .reveal:nth-child(3), .evenif .reveal:nth-child(3) { transition-delay: .2s; }
.timeline .reveal:nth-child(4), .evenif .reveal:nth-child(4) { transition-delay: .3s; }
.evenif .reveal:nth-child(5) { transition-delay: .4s; } .evenif .reveal:nth-child(6) { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bubble, .req, .approved, .b-verify span { opacity: 1; }
}
