/* VAIXLNS — site design system
   Layout: full-bleed dark ground, 1200px content column, generous vertical rhythm,
   one bold moment per section (hero canvas, ledger mockup), everything else quiet. */
:root {
  --bg: #06080d;
  --bg-2: #0a0e16;
  --surface: #0e131c;
  --surface-2: #131a26;
  --line: rgba(214, 224, 240, 0.09);
  --line-2: rgba(214, 224, 240, 0.16);
  --fg: #e9edf3;
  --fg-2: #b4bccb;
  --muted: #7f8a9c;
  --accent: #d9b55c;        /* brass seal */
  --accent-2: #f1d58a;
  --proof: #62d3db;         /* verification cyan */
  --allow: #5ecf8d;
  --deny: #e5736d;
  --font-display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-s: 8px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--proof); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(217, 181, 92, 0.35); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--fg-2); max-width: 36em; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hl { color: var(--accent-2); }
.hl-proof { color: var(--proof); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem; }
.brand .mark { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 0.93rem; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--fg); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: inline-block; }
  .nav .btn { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--line-2); color: var(--fg); background: rgba(255,255,255,0.03);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(214,224,240,.3); background: rgba(255,255,255,0.06); }
.btn-primary { background: var(--accent); color: #1a1405; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.82rem; color: var(--fg-2); background: rgba(255,255,255,0.02); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217,181,92,.18); }
.badge a { color: var(--accent-2); }
.pill { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--fg-2); text-transform: uppercase; }
.pill.allow { color: var(--allow); border-color: rgba(94,207,141,.4); }
.pill.deny { color: var(--deny); border-color: rgba(229,115,109,.4); }
.pill.proof { color: var(--proof); border-color: rgba(98,211,219,.4); }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.hr { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* reveal-on-scroll: visible at rest, slides in when observed */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.in) { opacity: 1; transform: none; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-2); font-size: 0.97rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer-links a:hover { color: var(--fg); }
@media (max-width: 600px) { .footer-links { margin-left: 0; } }

/* ---------- update banner ---------- */
.update { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.update .ver { font-family: var(--font-mono); color: var(--accent-2); }
.update a.more { margin-left: auto; color: var(--fg-2); }
.update a.more:hover { color: var(--fg); }

/* ---------- code ---------- */
pre { margin: 0; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.55; color: var(--fg-2); overflow-x: auto; }
code { font-family: var(--font-mono); font-size: 0.9em; }
.kbd { font-family: var(--font-mono); font-size: .8rem; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface-2); }
