/* Verity: shared dark system. Page-specific rules live in home.css (home) and pages.css (desk, launch, 404). */
:root {
  --bg: #07080a;
  --bg-2: #0c0e11;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --ink: #ecebe6;
  --ink-2: #a4a6ac;
  --ink-3: #7b7e86;
  /* fees in: warm brass light; costs out: muted ember; glass: cool pale cyan */
  --fee: #e2b45c;
  --fee-2: #f3cf86;
  --fee-dim: rgba(226, 180, 92, 0.14);
  --cost: #e07a5f;
  --cost-dim: rgba(224, 122, 95, 0.14);
  --glass: #a8d2dc;
  --glass-dim: rgba(168, 210, 220, 0.1);
  --ok: #8fd0b0;
  --display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r: 16px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 0;
}
/* ambient: a faint cool light from above, fixed, never repainted on scroll */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 50% -12rem, rgba(168, 210, 220, 0.075), transparent 70%),
    radial-gradient(40rem 30rem at 85% 110%, rgba(226, 180, 92, 0.04), transparent 70%);
}
img, svg { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--fee); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(226, 180, 92, 0.35); color: #fff; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.mono, .num { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.035em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.25; }
h1 em, h2 em { font-style: normal; color: var(--ink-3); }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 0.74rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.lede { color: var(--ink-2); font-size: 1.06rem; max-width: 54ch; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: 0.86rem; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(7, 8, 10, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.05rem/1 var(--display); letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-size: 0.9rem; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--panel-2); }
.nav .btn { margin-left: 8px; min-height: 38px; padding: 0 16px; font-size: 0.88rem; }
@media (max-width: 640px) {
  .nav .nav-x { display: none; }
  .top-in { gap: 10px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: #0a0b0d !important; font: 600 0.94rem/1 var(--body); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 30px -10px rgba(236, 235, 230, 0.35); transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s; }
.btn:hover { background: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 36px -8px rgba(236, 235, 230, 0.45); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--panel); border-color: var(--line-2); color: var(--ink) !important; box-shadow: none; }
.btn.ghost:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.22); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* honest not-live notice */
.notice { border-bottom: 1px solid var(--line); background: rgba(226, 180, 92, 0.06); color: var(--ink-2); font-size: 0.86rem; }
.notice .wrap { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.notice b { color: var(--fee-2); font-weight: 600; }
@media (max-width: 560px) { .notice .nx { display: none; } }
.notice .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fee); margin-top: 7px; box-shadow: 0 0 10px var(--fee); }

/* surfaces */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 60px -40px rgba(0, 0, 0, 0.9); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 0.86rem/1 var(--body); cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.24); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #0a0b0d; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font: 500 0.76rem/1.2 var(--mono); letter-spacing: 0.02em; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.running, .pill.ready { color: var(--ok); border-color: rgba(143, 208, 176, 0.3); }
.pill.running::before { box-shadow: 0 0 8px currentColor; animation: pulse 2s ease-in-out infinite; }
.pill.low_balance, .pill.daily_cap { color: var(--cost); border-color: rgba(224, 122, 95, 0.3); }
.pill.not_minted { color: var(--fee); border-color: rgba(226, 180, 92, 0.3); }
.pill.not_live, .pill.stopped { color: var(--ink-3); }
@keyframes pulse { 50% { opacity: 0.35; } }
code { font: 0.86em var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink-2); }
dl.rows { margin: 0; display: grid; }
dl.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
dl.rows dt { color: var(--ink-3); }
dl.rows dd { margin: 0; font-family: var(--mono); font-feature-settings: "tnum" 1; color: var(--ink); text-align: right; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 28px 22px; color: var(--ink-2); display: grid; gap: 8px; justify-items: start; }
.empty strong { color: var(--ink); font-weight: 600; }
.empty .btn { margin-top: 10px; }

/* sections */
.block { padding: clamp(36px, 4vw, 52px) 0 clamp(52px, 6vw, 84px); position: relative; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 0.86rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.draw path, .draw rect, .draw line { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.6s var(--ease); }
.draw.in path, .draw.in rect, .draw.in line { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw path, .draw rect, .draw line { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
