/* =============================================================
   HEDGIE — clean product theme (light + dark)
   ============================================================= */
/* palette: ink navy + lime + violet (light) / deep navy + lime + violet (dark) */
:root {
  --bg: #f6f7f2;
  --bg-alt: rgba(236, 240, 228, 0.55);
  --card: rgba(255, 255, 255, 0.82);
  --text: #0c1322;
  --muted: #566070;
  --dim: #8b93a1;
  --line: #e2e6da;
  --line-2: #d3d8ca;
  --dark: #0c1322;
  --on-dark: #f6f7f2;
  --lime: #c6ff3d;
  --lime-rgb: 198, 255, 61;
  --violet: #7c5cff;
  --violet-rgb: 124, 92, 255;
  --up: #15803d;
  --up-bg: #e7f8d4;
  --down: #e5484d;
  --down-bg: #fdeceb;
  --build: #9a5b00;
  --build-bg: #fff4d6;
  --dot: rgba(12, 19, 34, 0.08);
  --shadow: 0 1px 2px rgba(12, 19, 34, 0.05), 0 16px 36px -14px rgba(12, 19, 34, 0.18);
  --glow: rgba(124, 92, 255, 0.16);
  --radius: 12px;
  --max: 1200px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #070b14;
  --bg-alt: rgba(13, 19, 34, 0.5);
  --card: rgba(13, 19, 33, 0.78);
  --text: #e9edf5;
  --muted: #9ba4b4;
  --dim: #5f6879;
  --line: #182133;
  --line-2: #233049;
  --dark: #c6ff3d;
  --on-dark: #0c1322;
  --up: #a3e635;
  --up-bg: rgba(163, 230, 53, 0.12);
  --down: #f87171;
  --down-bg: rgba(248, 113, 113, 0.12);
  --build: #fbbf24;
  --build-bg: rgba(251, 191, 36, 0.12);
  --dot: rgba(198, 255, 61, 0.07);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -14px rgba(0, 0, 0, 0.7);
  --glow: rgba(198, 255, 61, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background 0.2s, color 0.2s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); }
.muted { color: var(--dim); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 .serif, h2 .serif { background: linear-gradient(transparent 62%, rgba(var(--lime-rgb), 0.75) 62%, rgba(var(--lime-rgb), 0.75) 92%, transparent 92%); padding: 0 0.06em; }
[data-theme="dark"] h1 .serif, [data-theme="dark"] h2 .serif { background: none; color: var(--lime); text-shadow: 0 0 32px rgba(var(--lime-rgb), 0.35); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: var(--on-dark); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
body[data-phase="prelaunch"] [data-show="live"],
body[data-phase="live"] [data-show="prelaunch"] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.dots-bg { background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; background-position: -11px -11px; }
.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; font: 500 14px/1 var(--sans); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 0.12s, background 0.15s, border-color 0.15s, opacity 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { box-shadow: 0 0 0 4px rgba(var(--lime-rgb), 0.45), 0 10px 28px -10px rgba(var(--violet-rgb), 0.55); }
[data-theme="dark"] .btn-dark:hover { box-shadow: 0 0 0 4px rgba(var(--lime-rgb), 0.2), 0 10px 32px -8px rgba(var(--lime-rgb), 0.5); }
.btn-line { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--dim); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.arr { transition: transform 0.15s; }
.btn:hover .arr, .link-btn:hover .arr { transform: translateX(3px); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: var(--text); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--bg-alt); }
.link-btn { background: none; border: 0; padding: 0; margin-top: 22px; font: 500 14px var(--sans); color: var(--text); cursor: pointer; display: inline-flex; gap: 6px; }
.mini-btn { font: 500 11px var(--mono); border: 1px solid var(--line-2); background: var(--card); color: var(--text); border-radius: 6px; padding: 4px 8px; cursor: pointer; }

/* ---------------- nav ---------------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1440px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 20px; padding: 0 clamp(16px, 2.4vw, 28px); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
[data-theme="dark"] .brand img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line-2), 0 0 18px rgba(var(--lime-rgb), 0.18); }
.nav-links { display: flex; gap: 26px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-right .btn { margin-left: 8px; }
.burger { display: none; width: 36px; height: 36px; background: none; border: 0; padding: 9px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--text); margin: 5px 0; }

/* ---------------- type ---------------- */
h1, h2 { font-weight: 500; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(44px, 5.8vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.08; }
h2.big { font-size: clamp(40px, 5.4vw, 72px); }
h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 6px; }
.kicker { display: flex; align-items: center; gap: 10px; font: 500 11.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--lime)); }
.center .kicker { justify-content: center; }
.lead { font-size: 17px; color: var(--muted); max-width: 470px; margin: 22px 0 30px; }
.sub { font-size: 16.5px; color: var(--muted); max-width: 560px; margin: 16px 0 0; }
.center .sub { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row.center { justify-content: center; margin-top: 30px; }
/* hero contract bar */
.hero-ca { display: flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 520px; padding: 8px 8px 8px 10px; border: 1px dashed var(--line-2); border-radius: 12px; background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(6px); }
.hca-tag { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 500 11px var(--mono); letter-spacing: .08em; padding: 5px 9px; border-radius: 7px; background: var(--text); color: var(--bg); }
.hca-dot { width: 6px; height: 6px; border-radius: 50%; background: #f5b300; }
.hero-ca code { flex: 1; min-width: 0; font: 12.5px var(--mono); color: var(--muted); overflow-wrap: anywhere; line-height: 1.4; }
.hca-copy { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 500 12px var(--sans, inherit); border: 0; background: var(--lime); color: #0c1322; border-radius: 8px; padding: 7px 11px; cursor: pointer; }
.hero-ca.is-live { border-style: solid; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.hero-ca.is-live code { color: var(--text); font-weight: 500; }
.hero-ca.is-live .hca-dot { background: var(--lime); box-shadow: 0 0 0 0 rgba(var(--lime-rgb), .7); animation: hcaPulse 1.8s infinite; }
.hero-ca.is-live:hover, .hero-ca.is-live:focus-visible { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(var(--violet-rgb), .15); outline: none; }
@keyframes hcaPulse { 70% { box-shadow: 0 0 0 7px rgba(var(--lime-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--lime-rgb), 0); } }
@media (max-width: 560px) { .hero-ca { gap: 8px; } .hero-ca code { font-size: 11.5px; } .hca-copy span { display: none; } }
.checks { list-style: none; padding: 26px 0 0; margin: 30px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 12px; height: 7px; border-left: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(-45deg) translateY(-2px); }
.checks.col { flex-direction: column; border: 0; padding: 0; margin-top: 26px; gap: 10px; font-size: 14.5px; }
.checks.col b { color: var(--text); font-weight: 500; }

/* ---------------- sections ---------------- */
.section { padding: clamp(80px, 11vw, 128px) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); backdrop-filter: blur(2px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

/* hero */
.hero { padding: clamp(56px, 8vw, 100px) 0 clamp(56px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; justify-self: end; }
.flows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow { fill: none; stroke: var(--violet); stroke-width: 1.4; stroke-dasharray: 1.5 5; stroke-linecap: round; opacity: 0.55; animation: flow 1.6s linear infinite; }
.flow.out { animation-direction: reverse; }
.flow.bad { stroke: var(--down); opacity: 0.8; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.node { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); box-shadow: var(--shadow); white-space: nowrap; }
.node i { font-style: normal; font-size: 11px; color: var(--muted); }
.node.bad { color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, var(--line-2)); }
.node.bad i { color: var(--down); }
.acct { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(80%, 360px); background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 14px 6px; }
.acct-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.acct-top span:first-child { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 500; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(var(--violet-rgb), 0.25); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.acct-bal { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 6px; }
.acct-bal b { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chip-up, .chip-down { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 5px; }
.chip-up { color: var(--up); background: var(--up-bg); }
.chip-down { color: var(--down); background: var(--down-bg); }
.acct-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.acct-meta b { color: var(--text); font-weight: 500; }
.bar { height: 4px; background: var(--line); border-radius: 4px; margin: 8px 0 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--lime)); border-radius: 4px; transition: width 0.6s; }
.tx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tx li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; animation: txin 0.5s ease both; }
.tx li:last-child { border-bottom: 0; }
.tx .ti { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 7px; font-size: 11px; color: var(--muted); }
.tx small { display: block; color: var(--dim); font-size: 11px; }
.tx .amt { font: 500 12px var(--mono); }
.tx .amt.up { color: var(--up); }
.tx .amt.down { color: var(--down); }
.tx .amt.blk { font-size: 10px; color: var(--down); border: 1px solid color-mix(in srgb, var(--down) 45%, transparent); padding: 2px 5px; border-radius: 4px; }
@keyframes txin { from { opacity: 0; transform: translateY(-6px); } }

/* grids */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: 48px; overflow: hidden; }
.grid4 .cell { border-left: 1px solid var(--line); }
.grid4 .cell:first-child { border-left: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: 16px; overflow: hidden; }
.grid3 .cell { border-left: 1px solid var(--line); }
.grid3 .cell:first-child { border-left: 0; }
.cell { padding: 22px; }
.cell p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cell-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.cell h3 { display: flex; align-items: center; gap: 10px; }
.cell .tag { margin-bottom: 18px; display: inline-block; }
.cell.small h3 .ico { width: 26px; height: 26px; font-size: 12px; }
.ico { width: 30px; height: 30px; display: inline-grid; place-items: center; flex: none; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; color: var(--muted); background: var(--card); }
.num { font: 11px var(--mono); color: var(--dim); }
.status-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.tag { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); background: var(--card); }
.tag-live { color: #0c1322; background: var(--lime); border-color: transparent; }
.tag-build { color: var(--build); background: var(--build-bg); border-color: transparent; }
.tag-done { color: var(--muted); background: var(--bg-alt); }

/* safety */
.feat { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.feat li { display: flex; gap: 14px; }
.feat b { font-weight: 500; }
.feat p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.req { border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.req-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.req-head .mono { font-size: 11px; font-weight: 400; }
.req-quote { margin: 16px 18px; padding: 12px 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; line-height: 1.6; display: grid; gap: 4px; }
.req-quote .muted { font-size: 10.5px; letter-spacing: 0.08em; }
.req-quote .hot { color: var(--down); }
.req-rows { margin: 0; padding: 0 18px; }
.req-rows div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.req-rows dt { color: var(--muted); }
.req-rows dd { margin: 0; }
.checklist { list-style: none; margin: 0; padding: 6px 18px 10px; }
.checklist li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); animation: txin 0.35s ease both; }
.checklist li:last-child { border-bottom: 0; }
.checklist .r { font: 500 11px var(--mono); }
.checklist .ok { color: var(--up); }
.checklist .bad { color: var(--down); }
.checklist .wait { color: var(--dim); }
.verdict { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: 13.5px; border-top: 1px solid var(--line); min-height: 52px; }
.verdict.blocked { background: var(--down-bg); }
.verdict.passed { background: var(--up-bg); }
.verdict .badge { font: 500 11px var(--mono); padding: 3px 8px; border-radius: 6px; border: 1px solid currentColor; }
.verdict.blocked .badge { color: var(--down); }
.verdict.passed .badge { color: var(--up); }

/* watch & act */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.list-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.lc-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.lc-head .mono { font-size: 11px; letter-spacing: 0.1em; }
.lc-head b { font-weight: 500; font-size: 16px; }
.lc-row { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.lc-row:last-child { border-bottom: 0; }
.lc-row b { font-weight: 500; font-size: 14px; }
.lc-row p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* code */
.code { border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.code-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.code-tabs button { font: 12px var(--mono); padding: 5px 10px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.code-tabs button.on { border-color: var(--line-2); color: var(--text); background: var(--bg-alt); }
.code-tabs .copy-code { margin-left: auto; }
#codeBox { margin: 0; padding: 18px 20px; font-size: 12.5px; line-height: 1.75; overflow-x: auto; min-height: 330px; color: var(--text); }
#codeBox .c { color: var(--dim); }
#codeBox .k { color: var(--violet); }
#codeBox .s { color: var(--up); }
#codeBox .n { color: #2563eb; }
[data-theme="dark"] #codeBox .k { color: #a99bff; }
[data-theme="dark"] #codeBox .n { color: #93c5fd; }

/* network */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: 44px; overflow: hidden; }
.stats > div { padding: 22px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.stats b { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.board { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.brow { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr 1fr 1fr; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.brow:last-child { border-bottom: 0; }
a.brow:hover { background: var(--bg-alt); }
.brow.head { font: 500 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.brow .t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brow .t img, .brow .t .ph { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--line); flex: none; }
.brow .t small { display: block; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .n { font: 13px var(--mono); }
.up { color: var(--up); }
.down { color: var(--down); }
.brow.skel span { height: 12px; background: var(--bg-alt); border-radius: 4px; }

/* token */
.tok { border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.tok-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tok-row:last-child { border-bottom: 0; }
.tok-row > span:first-child { color: var(--muted); }
.tok-row b { font-weight: 500; }
.ca { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ca code { font: 12px var(--mono); color: var(--text); overflow-wrap: anywhere; text-align: right; }

/* final */
.final { padding: clamp(100px, 13vw, 160px) 0; border-top: 1px solid var(--line); }

/* footer */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg-alt); backdrop-filter: blur(6px); padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-brand p { color: var(--muted); font-size: 13.5px; max-width: 300px; margin: 12px 0 10px; }
.foot-grid h4 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin: 4px 0 14px; }
.foot-grid > div:not(.foot-brand) a { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 9px; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.foot-bottom p { margin: 0; max-width: 760px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--dark); color: var(--on-dark); font: 500 13px var(--sans); padding: 10px 16px; border-radius: 8px; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------------- responsive ---------------- */
@media (max-width: 1060px) {
  .nav-links { gap: 18px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid4 .cell:nth-child(3) { border-left: 0; }
  .grid4 .cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .nav-links { position: fixed; top: 60px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(calc(-100% - 70px)); visibility: hidden; transition: transform 0.25s, visibility 0.25s; z-index: -1; }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .burger { display: block; }
  .hero-grid, .split, .two { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .grid3 { grid-template-columns: 1fr; }
  .grid3 .cell { border-left: 0; border-top: 1px solid var(--line); }
  .grid3 .cell:first-child { border-top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; }
  .brow { grid-template-columns: 1.5fr 1fr 0.8fr 1fr; }
  .brow > :nth-child(5) { display: none; }
}
@media (max-width: 560px) {
  .nav-right .btn { display: none !important; }
  .grid4 { grid-template-columns: 1fr; }
  .grid4 .cell { border-left: 0 !important; border-top: 1px solid var(--line); }
  .grid4 .cell:first-child { border-top: 0; }
  .node { font-size: 11px; padding: 4px 8px; }
  .acct { width: 86%; }
  .brow { grid-template-columns: 1.5fr 1fr 0.9fr; padding: 12px 14px; }
  .brow > :nth-child(4) { display: none; }
  .btn { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   3D background + cursor + spotlight
   ============================================================= */
#bg3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
html.bg-ready #bg3d { opacity: 1; }
.bg-tint { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(800px 520px at 85% 0%, rgba(var(--violet-rgb), 0.12), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(var(--lime-rgb), 0.12), transparent 60%); }
main, .nav { position: relative; z-index: 1; }
.nav { z-index: 50; position: sticky; }

/* custom cursor (fine pointers only) */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200; border-radius: 50%; opacity: 0; transition: opacity 0.2s, width 0.25s, height 0.25s, background 0.25s, border-color 0.25s; will-change: transform; }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { opacity: 1; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--text); }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(var(--violet-rgb), 0.7); }
[data-theme="dark"] .cursor-ring { border-color: rgba(var(--lime-rgb), 0.7); }
.cursor-ring.hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(var(--lime-rgb), 0.22); border-color: rgba(var(--lime-rgb), 0.9); }
.cursor-ring.down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.cursor-dot.hide, .cursor-ring.hide { opacity: 0 !important; }

/* spotlight that follows the cursor inside cards */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%); }
.spot:hover::after { opacity: 1; }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--violet-rgb), 0.75), rgba(var(--lime-rgb), 0.55) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before { opacity: 1; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor-dot, .cursor-ring { display: none; } }
