/* Landing page: planet hero, radar, warp tunnel, product mockups, tilt stage. */

/* ---- 1 · hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: max(100svh, 720px); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 28px; padding: 140px 0 120px; }
.hero h1 { max-width: 15ch; font-size: clamp(40px, 6.2vw, 88px); font-weight: 400; }
.hero .lede { text-align: center; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.ctas .btn-primary { box-shadow: 0 0 0 1px #fff inset, 0 0 60px -6px rgba(255, 255, 255, 0.45); }
/* Underline + travelling spark under the closing word, like Jimo's "skyrocket". */
.tail.ul { position: relative; display: inline-block; }
.tail.ul::after { content: ''; position: absolute; left: 0; right: 0.3em; bottom: -0.06em; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(var(--fg-rgb), 0.04)); border-radius: 2px; }
.tail.ul::before { content: ''; position: absolute; bottom: -0.06em; left: 0; width: 70px; height: 2px; margin-bottom: 0; background: radial-gradient(closest-side, #fff, rgba(122, 177, 254, 0.6), transparent); filter: blur(0.5px); animation: spark 4.5s var(--ease) infinite; }
@keyframes spark { 0% { transform: translateX(-20px); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateX(calc(4.6em)); opacity: 0; } }

.planet { position: absolute; z-index: 0; width: min(1500px, 125vw); aspect-ratio: 1; left: calc(100% - 21vw); top: 50%; transform: translateY(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 50%, #030407 0%, #04060b 52%, #0b1222 70%, #2a3a5f 86%, #8aa3d6 96.5%, #e6eeff 99.4%, rgba(230, 238, 255, 0) 100%);
  box-shadow: 0 0 120px 30px rgba(43, 127, 255, 0.10), 0 0 40px 2px rgba(166, 202, 255, 0.35); animation: planet-in 2.4s var(--ease) both; }
.planet i { position: absolute; inset: -2%; border-radius: 50%; background: radial-gradient(circle at 75% 50%, rgba(166, 202, 255, 0.18), transparent 45%); filter: blur(30px); }
@keyframes planet-in { from { opacity: 0; transform: translateY(-50%) translateX(8%); } to { opacity: 1; transform: translateY(-50%); } }
@media (max-width: 760px) { .planet { width: 170vw; left: calc(100% - 16vw); opacity: 0.85; } }

.orbits { position: absolute; z-index: 1; width: min(1100px, 130vw); aspect-ratio: 1; left: 50%; top: 52%; transform: translate(-58%, -50%); pointer-events: none; animation: spin 140s linear infinite; }
.orbits svg { width: 100%; height: 100%; }
.sat { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.55); }
.sat.s1 { left: 13%; top: 31%; } .sat.s2 { left: 7.4%; top: 52%; } .sat.s3 { left: 15.5%; top: 74%; width: 4px; height: 4px; } .sat.s4 { left: 77%; top: 86%; width: 7px; height: 7px; box-shadow: 0 0 24px 8px rgba(255, 255, 255, 0.35); }
@keyframes spin { to { transform: translate(-58%, -50%) rotate(360deg); } }

.scroll-cue { position: absolute; z-index: 2; bottom: 34px; left: 50%; transform: translateX(-50%); width: 24px; height: 40px; border-radius: 14px; border: 1px solid var(--line-2); }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }

/* ---- sticky scroll scenes ------------------------------------------------------- */
.radar, .tunnel { position: relative; height: 230vh; }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 82%, transparent); }
.radar-grid, .tunnel-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-grid { -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.radar-copy { position: relative; z-index: 1; display: grid; gap: 28px; }
.radar h2 { font-size: clamp(40px, 6vw, 84px); max-width: 11ch; }
.scrub .w { display: inline-block; transition: none; will-change: opacity, filter; }
.lanes-row { display: flex; flex-wrap: wrap; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.lanes-row.in { opacity: 1; transform: none; }
.lanes-row .tag { font-size: 12.5px; padding: 7px 11px; border-radius: 999px; }
html:not(.motion) .lanes-row { opacity: 1; transform: none; }

.tunnel-svg path, .tunnel-svg ellipse { fill: none; stroke: rgba(var(--fg-rgb), 0.16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tunnel-svg .core { fill: url(#tunnel-core); stroke: none; }
.tunnel-copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 30px; text-align: center; }
.tunnel h2 { font-size: clamp(38px, 5.4vw, 76px); max-width: 13ch; }
.tunnel .prompt { width: min(760px, 100%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(var(--panel-rgb), 0.85), rgba(var(--panel-rgb), 0.85)); }
.tunnel .prompt input { caret-color: var(--accent-hi); }
.demo-note { margin: -18px 0 0; font-size: 13px; color: var(--text-2); }
.verdict-chip { min-height: 46px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.verdict-chip .vc { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; min-height: 46px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--panel-rgb), 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 15px; color: var(--text-2); animation: chip-in 0.7s var(--ease) both; }
.verdict-chip .vc b { font-weight: 500; }
.verdict-chip .vc.allow b { color: var(--allow); text-shadow: 0 0 16px rgba(61, 220, 151, 0.6); }
.verdict-chip .vc.block b { color: var(--block); text-shadow: 0 0 16px rgba(255, 92, 122, 0.6); }
.verdict-chip .vc code { font-size: 12.5px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(0.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---- 4 · modes --------------------------------------------------------------------- */
.modes-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.modes-head .lede { justify-self: end; max-width: 44ch; color: var(--muted); }
@media (max-width: 860px) { .modes-head { grid-template-columns: 1fr; gap: 20px; } .modes-head .lede { justify-self: start; } }
.modes-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .modes-grid { grid-template-columns: 1fr; } }
.app-frame { margin: 0; border: 1px solid var(--line); border-radius: 28px; padding: 14px; background: linear-gradient(180deg, rgba(var(--fg-rgb), 0.04), rgba(var(--fg-rgb), 0.01)); box-shadow: var(--shadow); }
.app { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 410px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgb(var(--panel-rgb)), rgb(var(--panel-rgb))); overflow: hidden; }
.app-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--text-2); }
.app-brand { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); padding: 4px 8px 14px; }
.app-brand span { margin-left: auto; font: 400 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 5px; }
.app-sec { font-size: 12px; color: var(--faint); padding: 14px 10px 6px; }
.app-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; transition: background 0.35s var(--ease), color 0.35s; }
.app-nav.on { background: rgba(var(--fg-rgb), 0.07); color: var(--text); }
.app-user { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; }
.app-user b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--sans); color: #071331; background: linear-gradient(135deg, #fff, #a6caff); }
.ic { width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 4px; opacity: 0.8; flex: none; }
.ic-trace { border-radius: 50%; }
.ic-pay { border-radius: 3px; height: 11px; }
.ic-q { transform: rotate(45deg); border-radius: 3px; width: 12px; height: 12px; }
.ic-ledger { border-width: 1.5px 1.5px 4px; }
@media (max-width: 640px) { .app { grid-template-columns: 1fr; } .app-side { display: none; } }
.app-main-mock { position: relative; padding: 22px; min-width: 0; }
.panel { position: absolute; inset: 22px; opacity: 0; transform: translateY(12px); filter: blur(6px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); pointer-events: none; }
.panel.on { opacity: 1; transform: none; filter: none; pointer-events: auto; position: relative; inset: auto; }
html:not(.motion) .panel:first-child { opacity: 1; position: relative; inset: auto; transform: none; filter: none; }
.mock-h { display: flex; align-items: center; justify-content: space-between; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 18px; }
.mock-table { display: grid; font-size: 13.5px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mock-table .tr { display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--text-2); align-items: center; }
.mock-table .tr:first-child { border-top: 0; }
.mock-table .th { color: var(--muted); font-size: 12.5px; background: rgba(var(--fg-rgb), 0.02); }
.mock-table em { font-style: normal; }
.mini-graph { width: 100%; height: auto; }
.mini-graph .e { fill: none; stroke: rgba(var(--fg-rgb), 0.2); stroke-width: 1.4; }
.mini-graph .e.hot { stroke: var(--garnet); stroke-width: 2; stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 92, 122, 0.7)); }
@keyframes flow { to { stroke-dashoffset: -24; } }
.mini-graph .n rect { stroke-width: 1.3; }
.mini-graph .n text { font: 500 12.5px var(--sans); fill: var(--text); text-anchor: middle; }
.mini-graph .unt rect { fill: rgba(251, 191, 90, 0.08); stroke: var(--untrusted); }
.mini-graph .bad rect { fill: rgba(255, 92, 122, 0.10); stroke: var(--garnet); stroke-dasharray: 5 4; }
.mini-graph .tru rect { fill: rgba(61, 220, 151, 0.08); stroke: var(--trusted); }
.pay-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(var(--fg-rgb), 0.02); }
.pay-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 16px; color: var(--text-2); }
.pay-top b { color: var(--text); font-weight: 500; }
.mock-rules { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--text-2); }
.mock-rules li { display: flex; gap: 10px; align-items: center; }
.mock-rules li::before { content: '✓'; width: 18px; color: var(--allow); }
.mock-rules li.no::before { content: '✕'; color: var(--block); }
.mock-rules b { font: 500 12px var(--mono); color: var(--muted); width: 26px; }
.pay-verdict { font-size: 40px; letter-spacing: -0.03em; color: var(--block); text-shadow: 0 0 30px rgba(255, 92, 122, 0.4); line-height: 1; }
.pay-verdict small { display: block; margin-top: 8px; font: 500 12px var(--mono); letter-spacing: 0; text-shadow: none; opacity: 0.85; }
.toggles { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tg { display: grid; grid-template-columns: 1fr auto 34px; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.tg:first-child { border-top: 0; }
.tg em { font: 400 12px var(--mono); color: var(--block); font-style: normal; }
.tg.on em { color: var(--allow); }
.sw { width: 32px; height: 18px; border-radius: 999px; background: rgba(var(--fg-rgb), 0.1); position: relative; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #8a93a6; transition: transform 0.3s var(--ease); }
.tg.on .sw { background: var(--accent); box-shadow: 0 0 12px rgba(43, 127, 255, 0.5); }
.tg.on .sw::after { transform: translateX(14px); background: #fff; }
.learned { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--accent-lo); background: var(--accent-wash); border: 1px solid var(--line-accent); }
.learned::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 8px var(--accent-hi); }
.mode-cap { padding: 26px 18px 12px; }
.mode-cap h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; letter-spacing: -0.02em; }
.mode-cap p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }

.chat-col { display: grid; gap: 12px; position: sticky; top: calc(var(--nav-h) + 24px); }
.mode-tabs { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mode-tabs::-webkit-scrollbar { display: none; }
.mode-tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: baseline; gap: 6px; flex: none; height: 34px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: 500 13.5px var(--sans); cursor: pointer; transition: color 0.3s, background 0.3s; }
.mode-tabs button span { font: 300 15px var(--sans); }
.mode-tabs button:hover { color: var(--text-2); }
.mode-tabs button[aria-selected='true'] { color: var(--text); background: rgba(var(--fg-rgb), 0.07); }
.mode-tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transform-origin: left; animation: tab-fill var(--dwell, 5s) linear both; }
.mode-tabs.paused button::after { animation: none; transform: scaleX(1); }
@keyframes tab-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.chat { border: 1px solid var(--line-2); border-radius: 22px; min-height: 420px; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(var(--panel-rgb), 0.9), rgba(var(--panel-rgb), 0.95)); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chat-top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--fg-rgb), 0.12); }
.chat-top span { margin-left: 8px; }
.chat-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px 16px; }
.bubble { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; animation: chip-in 0.6s var(--ease) both; }
.bubble.me { align-self: flex-end; background: rgba(var(--fg-rgb), 0.08); color: var(--text); border-bottom-right-radius: 5px; }
.bubble.ab { align-self: flex-start; border: 1px solid var(--line-2); color: var(--text-2); border-bottom-left-radius: 5px; animation-delay: 0.5s; }
.bubble.ab b { font-weight: 500; }
.bubble.ab .ok { color: var(--allow); }
.bubble.ab .no { color: var(--block); }
.bubble.ab .hi { color: var(--accent-hi); }
.chat-input { margin: 0 12px 12px; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 8px 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--fg-rgb), 0.03); font-size: 13.5px; color: var(--faint); }
.chat-input b { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #a6caff, #2b7fff); box-shadow: 0 0 16px rgba(43, 127, 255, 0.7); }

/* ---- 5 · tilt stage ------------------------------------------------------------------ */
.tilt { position: relative; padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 120px); overflow: hidden; }
.tilt-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(var(--fg-rgb), 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fg-rgb), 0.06) 1px, transparent 1px), radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.4px, transparent 1.6px); background-size: 228px 228px, 228px 228px, 228px 228px; background-position: center center, center center, calc(50% + 114px) calc(50% + 114px); -webkit-mask-image: radial-gradient(60% 60% at 50% 55%, #000 20%, transparent); mask-image: radial-gradient(60% 60% at 50% 55%, #000 20%, transparent); }
.center { text-align: center; margin-inline: auto; }
.tilt h2 { position: relative; z-index: 1; }
.tilt-stage { perspective: 1600px; perspective-origin: 50% 0%; margin-top: 56px; position: relative; z-index: 1; }
.tilt-card { width: min(1120px, calc(100% - 32px)); margin-inline: auto; position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) scale(var(--sc, 1)); transform-origin: 50% 0%; will-change: transform; }
.dash { border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(var(--panel-rgb), 0.94), rgba(var(--panel-rgb), 0.97)); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(var(--fg-rgb), 0.03) inset, 0 -30px 120px -60px rgba(122, 177, 254, 0.35); overflow: hidden; }
.dash-top { display: flex; gap: 7px; padding: 16px 20px; }
.dash-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--fg-rgb), 0.12); }
.dash-body { padding: 8px clamp(18px, 4vw, 44px) 40px; }
.dash-head { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -0.025em; margin-bottom: 26px; }
.dash-head .btns { display: flex; gap: 10px; }
.dash-head .btns b { font: 500 14px var(--sans); letter-spacing: 0; height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), 0.05); }
.dash-head .btns b.hi { background: var(--accent-hi); color: #071331; border-color: transparent; box-shadow: 0 0 24px rgba(122, 177, 254, 0.45); }
:root[data-theme='light'] .dash-head .btns b.hi { color: #fff; box-shadow: none; }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: rgba(var(--fg-rgb), 0.025); }
.dash-stats > div { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.dash-stats > div:first-child { border-left: 0; }
.dash-stats small { display: block; font-size: 12.5px; color: var(--muted); }
.dash-stats strong { display: block; margin-top: 6px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dash-stats .okc { color: var(--allow); }
@media (max-width: 640px) { .dash-stats { grid-template-columns: 1fr 1fr; } .dash-stats > div:nth-child(3) { border-left: 0; } .dash-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }
.dash-list { margin-top: 26px; display: grid; gap: 10px; }
.dl-h { font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dl-h b { font: 500 11.5px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(var(--fg-rgb), 0.08); }
.dash-list > div { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--fg-rgb), 0.025); font-size: 14.5px; color: var(--text-2); min-width: 0; }
.dash-list em { margin-left: auto; font: 400 12.5px var(--mono); color: var(--muted); font-style: normal; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.r { background: var(--block); box-shadow: 0 0 10px var(--block); } .dot.y { background: var(--untrusted); box-shadow: 0 0 10px var(--untrusted); } .dot.g { background: var(--allow); box-shadow: 0 0 10px var(--allow); }
.float-card { position: absolute; right: -14px; top: 46%; width: 300px; border-radius: 16px; background: #f4f6fb; color: #071331; padding: 16px 0 6px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(var(--fg-rgb), 0.06); transform: translateZ(60px); }
.fc-h { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 12px; font-size: 15px; font-weight: 500; }
.fc-h em { font: 500 11.5px var(--sans); font-style: normal; color: #127a4d; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(7, 19, 49, 0.12); border-radius: 999px; padding: 3px 9px; }
.fc-h em::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #1fbf7a; }
.fc-r { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid rgba(7, 19, 49, 0.08); font-size: 13px; color: #47506a; }
.fc-r code { color: #071331; background: rgba(43, 127, 255, 0.10); border-color: rgba(43, 127, 255, 0.18); font-size: 12px; }
@media (max-width: 900px) { .float-card { position: relative; right: auto; top: auto; margin: -40px 16px 0 auto; transform: none; } }

/* ---- 6 · proof strip ------------------------------------------------------------------ */
.proof { padding: 40px 0 20px; }
.proof-card { display: grid; grid-template-columns: 1.6fr 1fr 1fr; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, rgba(var(--fg-rgb), 0.035), rgba(var(--fg-rgb), 0.01)); overflow: hidden; }
.pc-cell { padding: 30px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-width: 0; }
.pc-cell:first-child { border-left: 0; }
.pc-cell p { margin: 0; color: var(--muted); font-size: 15px; }
.pc-cell p strong { color: var(--text); font-weight: 500; }
.pc-cell .big { font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.pc-cell .big small { font-size: 22px; color: var(--muted); letter-spacing: -0.01em; margin-left: 4px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.mq-track { display: flex; gap: 48px; width: max-content; animation: marquee 22s linear infinite; }
.mq-track b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 860px) { .proof-card { grid-template-columns: 1fr 1fr; } .marquee-cell { grid-column: 1 / -1; border-bottom: 1px solid var(--line); } .pc-cell:nth-child(2) { border-left: 0; } }
@media (max-width: 480px) { .proof-card { grid-template-columns: 1fr; } .pc-cell { border-left: 0; } .pc-cell + .pc-cell { border-top: 1px solid var(--line); } }

/* ---- 7 · loop --------------------------------------------------------------------------- */
.loop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.loop-grid .lede { margin-top: 24px; color: var(--muted); }
@media (max-width: 860px) { .loop-grid { grid-template-columns: 1fr; } }
.orbit-diagram { position: relative; width: min(460px, 100%); aspect-ratio: 1; justify-self: center; }
.od-ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: 0 0 80px -20px rgba(43, 127, 255, 0.35) inset; }
.od-ring::before { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed rgba(var(--fg-rgb), 0.1); }
.od-runner { position: absolute; inset: 12%; border-radius: 50%; animation: orbit 9s linear infinite; }
.od-runner i { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.7), 0 0 40px 10px rgba(122, 177, 254, 0.4); }
@keyframes orbit { to { transform: rotate(360deg); } }
.od-node { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--panel-rgb), 0.9); font-size: 14px; white-space: nowrap; }
.od-node b { font: 300 13px var(--sans); color: var(--muted); }
.od-node.n1 { left: 50%; top: 12%; } .od-node.n2 { left: 88%; top: 50%; } .od-node.n3 { left: 50%; top: 88%; } .od-node.n4 { left: 12%; top: 50%; color: var(--allow); border-color: rgba(61, 220, 151, 0.35); }
.od-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 24px rgba(122, 177, 254, 0.45)); }
@media (max-width: 480px) { .od-node { font-size: 12.5px; padding: 6px 10px; } }

/* ---- 8 · x402 ---------------------------------------------------------------------------- */
.x402-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .x402-grid { grid-template-columns: 1fr; } }
.term { border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(var(--panel-rgb), 0.95), rgba(var(--panel-rgb), 0.95)); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.term-top { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 400 12.5px var(--mono); color: var(--muted); }
.term-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--fg-rgb), 0.12); }
.term-top span { margin-left: 8px; }
.term pre { margin: 0; padding: 22px 22px 26px; font: 400 13.5px/1.9 var(--mono); color: var(--text-2); overflow-x: auto; }
.term .m { color: var(--muted); } .term .y { color: var(--untrusted); } .term .g { color: var(--allow); } .term .r { color: var(--block); } .term .c { color: var(--faint); }

/* ---- 9 · finale --------------------------------------------------------------------------- */
.finale { position: relative; min-height: 88vh; display: grid; place-items: center; overflow: hidden; padding: 120px 0 200px; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.horizon { position: absolute; left: 50%; bottom: -1160px; width: 1600px; height: 1600px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 50% 50%, #030407 0%, #04060b 60%, #101a30 78%, #4d6699 92%, #c8d8f7 99.2%, rgba(200, 216, 247, 0) 100%); box-shadow: 0 0 140px 30px rgba(43, 127, 255, 0.16), 0 0 50px 4px rgba(166, 202, 255, 0.4); }
.finale-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 36px; text-align: center; }
.finale h2 { font-size: clamp(44px, 7vw, 100px); max-width: 12ch; }

/* inline SVG ink follows the theme */
.ink { stop-color: rgb(var(--fg-rgb)); }
.rg-solid { stroke: rgba(var(--fg-rgb), 0.14); }
.rg-dash { stroke: rgba(var(--fg-rgb), 0.12); }
.rg-dot { fill: rgb(var(--fg-rgb)); }

/* ---- soft light theme: the planets turn to daylight, glows become ink ---------------- */
:root[data-theme='light'] .planet { background: radial-gradient(circle at 34% 50%, #f7f6f2 0%, #f3f2ee 50%, #e6ebf5 70%, #c4d3f0 88%, #8eaeea 97%, #5f8ae0 99.4%, rgba(95, 138, 224, 0) 100%); box-shadow: 0 0 120px 30px rgba(37, 99, 235, 0.08), 0 0 30px 0 rgba(95, 138, 224, 0.25); }
:root[data-theme='light'] .planet i { background: radial-gradient(circle at 75% 50%, rgba(37, 99, 235, 0.10), transparent 45%); }
:root[data-theme='light'] .horizon { background: radial-gradient(circle at 50% 50%, #f7f6f2 0%, #f3f2ee 60%, #e2e9f6 78%, #b4c8ee 92%, #6f95e2 99.2%, rgba(111, 149, 226, 0) 100%); box-shadow: 0 0 140px 30px rgba(37, 99, 235, 0.10), 0 0 40px 2px rgba(95, 138, 224, 0.3); }
:root[data-theme='light'] .sat, :root[data-theme='light'] .scroll-cue i, :root[data-theme='light'] .od-runner i { background: var(--accent); box-shadow: 0 0 10px 2px rgba(37, 99, 235, 0.35); }
:root[data-theme='light'] .tail.ul::after { background: linear-gradient(90deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.04)); }
:root[data-theme='light'] .tail.ul::before { background: radial-gradient(closest-side, var(--accent), rgba(37, 99, 235, 0.4), transparent); }
:root[data-theme='light'] .ctas .btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 34px -14px rgba(15, 23, 42, 0.6); }
:root[data-theme='light'] .tunnel .prompt { background: rgba(255, 255, 255, 0.86); }
:root[data-theme='light'] .verdict-chip .vc { background: rgba(255, 255, 255, 0.9); }
:root[data-theme='light'] .verdict-chip .vc b { text-shadow: none; }
:root[data-theme='light'] .app-frame, :root[data-theme='light'] .proof-card { background: #fff; }
:root[data-theme='light'] .dash { box-shadow: 0 50px 100px -50px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.04) inset; }
:root[data-theme='light'] .float-card { box-shadow: 0 30px 70px -24px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.08); }
:root[data-theme='light'] .pay-verdict { text-shadow: none; }
:root[data-theme='light'] .od-core { filter: drop-shadow(0 0 18px rgba(37, 99, 235, 0.25)); }
:root[data-theme='light'] .mini-graph .e.hot { filter: none; }
:root[data-theme='light'] .dot { box-shadow: none; }
