@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --black: #050505;
  --ink: #0b0c0d;
  --surface: #111314;
  --surface-2: #17191b;
  --line: #24272a;
  --line-strong: #33373b;
  --text: #eef1f3;
  --muted: #8b929a;
  --neon: #39ff88;
  --neon-dim: rgba(57, 255, 136, 0.14);
  --neon-glow: 0 0 24px rgba(57, 255, 136, 0.35);
  --danger: #ff6b6b;
  --radius: 16px;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 16px/1.6 "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(5, 5, 5, 0.72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav .brand img { height: 30px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--neon); color: #03140a; box-shadow: var(--neon-glow); }
.btn-primary:hover { box-shadow: 0 0 36px rgba(57, 255, 136, 0.55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

/* Badges */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 14px; background: var(--ink); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: var(--neon-glow); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tag-live { background: var(--neon-dim); color: var(--neon); }
.tag-soon { background: var(--surface-2); color: var(--muted); }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -60px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(57, 255, 136, 0.18), transparent 65%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.03em; margin: 20px 0 20px; }
.hero h1 span { color: var(--neon); text-shadow: 0 0 40px rgba(57, 255, 136, 0.35); }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Cards */
.card { background: linear-gradient(180deg, var(--surface), var(--ink)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-glow { border-color: rgba(57, 255, 136, 0.35); box-shadow: 0 0 0 1px rgba(57, 255, 136, 0.08), 0 30px 80px -30px rgba(57, 255, 136, 0.35); }
.receipt .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.receipt .row:last-child { border-bottom: 0; }
.receipt .row span:first-child { color: var(--muted); }
.receipt .total { font-size: 20px; font-weight: 700; }
.receipt .total span:last-child { color: var(--neon); }
.receipt .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.receipt .addr { font-family: var(--mono); color: var(--muted); font-size: 13px; word-break: break-all; }
.receipt .addr a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.receipt .row small { display: block; font-size: 12px; margin-top: 2px; }
.warn { color: #ffb347; font-size: 14px; }
details.signs { padding: 12px 16px; margin: 12px 0; }
details.signs summary { font-size: 14px; }
details.signs p { font-size: 14px; }
.chain .addr-line { margin: 0; color: var(--muted); font-size: 13px; }
.chain .addr-line a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.chain details.signs { margin: 4px 0 0; }
.fee-parts { margin-top: 24px; }
.fee-parts h3 { margin-top: 0; }

/* Sections */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
.eyebrow { color: var(--neon); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
h2 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 16px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--neon-dim); color: var(--neon); font-weight: 700; margin-bottom: 16px; }
.step h3, .feature h3 { margin: 0 0 8px; font-size: 20px; }
.step p, .feature p { margin: 0; color: var(--muted); }
.feature .icon { color: var(--neon); margin-bottom: 14px; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.calc label { display: block; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.calc .amount-input { display: flex; align-items: center; gap: 10px; background: var(--black); border: 1px solid var(--line-strong); border-radius: 12px; padding: 4px 16px; }
.calc .amount-input input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 32px; font-weight: 700; padding: 10px 0; outline: none; }
.calc .amount-input span { color: var(--muted); font-weight: 700; }
input[type="range"] { width: 100%; margin: 20px 0 8px; accent-color: var(--neon); }
.fine { color: var(--muted); font-size: 14px; }

/* Chains */
.chains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chain { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.chain .tag { align-self: flex-start; }
.chain strong { font-size: 18px; }
.chain .tokens { color: var(--muted); font-size: 14px; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; background: var(--ink); margin-bottom: 12px; }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--neon); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* CTA + footer */
.cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 100%, rgba(57, 255, 136, 0.12), transparent 60%); }
.cta h2 { margin-bottom: 24px; }
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }
.notice { background: var(--neon-dim); border-bottom: 1px solid rgba(57, 255, 136, 0.25); color: var(--text); text-align: center; font-size: 14px; padding: 8px 16px; }

/* App */
.app-main { max-width: 560px; margin: 0 auto; padding: 48px 20px 80px; }
.app-main h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0 0 8px; }
.app-main .lead { color: var(--muted); margin: 0 0 28px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.field select, .field input { width: 100%; background: var(--black); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; font: inherit; outline: none; }
.field input.mono { font-family: var(--mono); font-size: 14px; }
.field select:focus, .field input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-dim); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); margin-top: 16px; }
.status-line { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.status-line.ok { color: var(--neon); }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--neon); animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-main > section + section, .app-main > section + div, .app-main > div + section { margin-top: 16px; }
.open-in { margin-top: 16px; }
.open-in p { margin: 0 0 12px; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-row p { margin: 0; overflow-wrap: anywhere; }
.link-btn { background: none; border: 0; padding: 0; color: var(--neon); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 40px; margin: 0 0 24px; }
.legal h2 { font-size: 24px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.placeholder { color: var(--neon); font-family: var(--mono); }

@media (max-width: 900px) {
  .hero .wrap, .calc, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .chains { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
}
@media (max-width: 480px) {
  .nav .brand img { height: 24px; width: auto; }
  .nav .btn { padding: 9px 16px; font-size: 15px; }
  .chains { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .spinner { transition: none; animation: none; }
}
