@font-face { font-family: 'Geist'; font-weight: 300; src: url(/fonts/Geist-Light.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Geist'; font-weight: 400; src: url(/fonts/Geist-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Geist'; font-weight: 500; src: url(/fonts/Geist-Medium.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Geist'; font-weight: 600; src: url(/fonts/Geist-SemiBold.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Geist Mono'; font-weight: 400; src: url(/fonts/GeistMono-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Geist Mono'; font-weight: 500; src: url(/fonts/GeistMono-Medium.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'UnifrakturMaguntia'; src: url(/fonts/UnifrakturMaguntia-Book.ttf) format('truetype'); font-display: swap; }

/* Tokens are the same as the phone app and the extension (ext/src/styles/ui.css). */
:root {
  --bg: #0A0B0F;
  --bd: radial-gradient(70% 40% at 10% 6%, rgba(40,58,130,.62), transparent 70%), radial-gradient(60% 36% at 100% 34%, rgba(104,66,158,.5), transparent 70%), radial-gradient(50% 30% at 0% 76%, rgba(60,170,210,.22), transparent 70%), radial-gradient(40% 24% at 94% 98%, rgba(255,170,80,.28), transparent 70%), linear-gradient(180deg, #0B0D17, #0A0B0F);
  --surface: rgba(255,255,255,.08); --surface-2: rgba(255,255,255,.14); --border: rgba(255,255,255,.14); --line: rgba(255,255,255,.08);
  --text: #F5F6FA; --muted: #9AA0B4;
  --accent: #7CC8FF; --success: #5CE0B0; --warning: #FFB547;
  --hi: inset 1px 1px 0 rgba(255,255,255,.28), inset -1px -1px 0 rgba(255,255,255,.04), inset 0 0 24px rgba(255,255,255,.04), 0 14px 30px rgba(0,0,0,.35);
  --blur: blur(28px) saturate(170%);
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #E9ECF3 45%, #C9CED8 100%);
  --pill: linear-gradient(180deg, #FFFFFF 0%, #E9ECF3 50%, #D3D7DF 100%); --pilltx: #0A0B0F;
  --pillsh: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(0,0,0,.15), 0 0 22px rgba(255,255,255,.14), 0 8px 20px rgba(0,0,0,.4);
  --accent-tint: color-mix(in srgb, var(--accent) 14%, transparent);
  --success-tint: color-mix(in srgb, var(--success) 14%, transparent);
  --r-card: 20px; --r-chip: 999px;
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: 160ms cubic-bezier(.2, .7, .3, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #D9DFEA;
  --bd: radial-gradient(70% 40% at 8% 4%, rgba(255,255,255,.95), transparent 70%), radial-gradient(60% 36% at 100% 32%, rgba(165,180,225,.75), transparent 70%), radial-gradient(50% 30% at 0% 76%, rgba(160,212,236,.7), transparent 70%), radial-gradient(40% 24% at 94% 98%, rgba(255,210,160,.7), transparent 70%), linear-gradient(180deg, #E8ECF3, #CBD3E0);
  --surface: rgba(255,255,255,.52); --surface-2: rgba(255,255,255,.75); --border: rgba(255,255,255,.85); --line: rgba(20,28,48,.08);
  --text: #10131A; --muted: #4B5264;
  --accent: #155E9C; --success: #0B7655; --warning: #8A5200;
  --hi: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(110,120,150,.14), 0 10px 26px rgba(60,72,100,.16);
  --chrome: linear-gradient(180deg, #3A4050 0%, #1A1D25 55%, #2E333F 100%);
  --pill: linear-gradient(180deg, #3A3F4B 0%, #1D2028 50%, #14161C 100%); --pilltx: #F5F6FA;
  --pillsh: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 20px rgba(30,40,70,.3);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bd) fixed; color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- nav */
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 55%, transparent); }
nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'UnifrakturMaguntia', serif; font-size: 28px; line-height: 1; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
nav .links { margin-left: auto; display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
nav .links a { text-decoration: none; transition: color var(--ease); }
nav .links a:hover { color: var(--text); }

/* ---- buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-chip); background: var(--pill); color: var(--pilltx); box-shadow: var(--pillsh); font: 600 15px var(--font); text-decoration: none; cursor: pointer; transition: transform var(--ease), filter var(--ease); }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--hi); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--r-chip); font: 500 12px var(--mono); background: var(--accent-tint); color: var(--accent); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.theme { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--hi); cursor: pointer; transition: transform var(--ease); }
.theme:hover { transform: scale(1.08); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; } :root[data-theme="light"] .theme .sun { display: block; } :root[data-theme="light"] .theme .moon { display: none; }
nav .links { align-items: center; }

/* ---- hero */
.hero { padding-block: 96px 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
h1 { margin: 20px 0 20px; font-size: clamp(44px, 6.4vw, 76px); font-weight: 300; letter-spacing: -.045em; line-height: 1.02; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 520px; font-size: 18px; color: var(--muted); margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- the ring */
.ring-wrap { position: relative; display: grid; place-items: center; }
.ring { width: min(100%, 400px); height: auto; overflow: visible; }
.ring .track { fill: none; stroke: var(--line); stroke-width: 14; }
.ring .arc { fill: none; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 0 1000; animation: arc 1.1s cubic-bezier(.3, 1.2, .5, 1) forwards; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent)); }
.ring .arc.b { animation-delay: .35s; } .ring .arc.k { animation-delay: .7s; }
@keyframes arc { to { stroke-dasharray: 190 1000; } }
.ring-wrap .node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--hi); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); font-size: 13px; font-weight: 500; }
.node small { font: 400 11px var(--mono); color: var(--muted); }
.node.p { top: 6%; left: 50%; transform: translateX(-50%); }
.node.b { bottom: 20%; right: 2%; }
.node.k { bottom: 20%; left: 2%; }
.ring-center { position: absolute; text-align: center; }
.ring-center b { display: block; font-size: 44px; font-weight: 300; letter-spacing: -.05em; line-height: 1; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring-center span { font-size: 12px; color: var(--muted); }

/* ---- sections */
section { padding: 72px 0; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h2 { margin: 12px 0 16px; font-size: clamp(30px, 4vw, 44px); font-weight: 300; letter-spacing: -.04em; line-height: 1.1; }
.sub { max-width: 600px; color: var(--muted); margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; box-shadow: var(--hi); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ic { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); }
.card .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { counter-increment: s; padding: 20px 0 0; border-top: 1px solid var(--border); }
.step::before { content: '0' counter(s); display: block; margin-bottom: 12px; font: 500 12px var(--mono); color: var(--accent); }
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---- approval mock */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mock { max-width: 360px; margin: 0 auto; width: 100%; }
.mock .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock .row:last-of-type { border: 0; }
.mock .row span:first-child { color: var(--muted); }
.mock .row span:last-child { font-family: var(--mono); font-size: 13px; text-align: right; }
.mock .amount { font-size: 36px; font-weight: 300; letter-spacing: -.04em; margin: 4px 0 8px; }
.mock .hold { margin-top: 16px; width: 100%; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: var(--r-chip); font-size: 12px; font-weight: 600; background: var(--success-tint); color: var(--success); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 12px; color: var(--muted); }
.list li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--success-tint); box-shadow: inset 0 0 0 5px var(--success-tint), inset 0 0 0 7px color-mix(in srgb, var(--success) 60%, transparent); }
.list b { color: var(--text); font-weight: 500; }

.shot { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 auto; border-radius: 28px; border: 1px solid var(--border); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.2); }
.shots { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.shots .shot { margin: 0; }
:root[data-theme="light"] .shot { box-shadow: 0 24px 50px rgba(60,72,100,.25); }

.diagram { padding: 24px; }
.diagram svg { display: block; width: 100%; height: auto; min-width: 640px; }
.diagram { overflow-x: auto; }
.diagram .box { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.diagram .box.hl { stroke: color-mix(in srgb, var(--accent) 55%, transparent); fill: var(--accent-tint); }
.diagram .box.dash { stroke-dasharray: 6 5; fill: transparent; }
.diagram .ln { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.diagram .ln.acc { stroke: var(--accent); stroke-width: 2.2; }
.diagram .ln.dashln { stroke-dasharray: 5 5; }
.diagram .fill-acc { fill: var(--accent); } .diagram .fill-mut { fill: var(--muted); }
.diagram text { font-family: var(--font); }
.diagram .t1 { font-size: 18px; font-weight: 600; fill: var(--text); }
.diagram .t2 { font-size: 15px; fill: var(--muted); }
.diagram .t3 { font: 500 11px var(--mono); letter-spacing: .06em; fill: var(--muted); }

/* ---- final cta + footer */
.final { text-align: center; }
.final .card { padding: 56px 24px; }
.final h2 { margin-top: 0; }
.final .cta { justify-content: center; }
footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { text-decoration: none; } footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .ring-wrap { max-width: 340px; margin: 0 auto; }
  .grid, .steps { grid-template-columns: 1fr; }
  .split2 { grid-template-columns: 1fr; gap: 32px; }
  nav .links a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ring .arc { animation: none; stroke-dasharray: 190 1000; }
  html { scroll-behavior: auto; }
}
