/* Vigil design system — Satoshi, cool greys, near-black storytelling panels, mint accent */
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --page: #f4f5f7;
  --card: #ffffff;
  --ink: #1d1f23;
  --ink-2: rgba(33, 40, 48, .74);
  --ink-3: #80868e;
  --line: rgba(29, 31, 35, .09);
  --line-2: rgba(29, 31, 35, .16);
  --night: #17191d;
  --night-2: #202227;
  --night-line: rgba(255, 255, 255, .1);
  --accent: #a8c8ea;
  --accent-hover: #95b9e2;
  --accent-ink: #0f2a45;
  --accent-deep: #3b6e9e;
  --red: #e5484d;
  --r-lg: 32px;
  --r: 24px;
  --r-sm: 16px;
  --shadow: 0 1px 2px rgba(16,18,22,.04), 0 8px 24px rgba(16,18,22,.06);
  --shadow-lg: 0 2px 6px rgba(16,18,22,.05), 0 30px 80px rgba(16,18,22,.14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 500 17px/1.5 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); letter-spacing: 0; font-weight: 400; }
.container { max-width: 1304px; margin: 0 auto; padding: 0 32px; }

/* display type */
.display {
  font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; line-height: .92; margin: 0;
}
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(168, 200, 234,.18); }

/* buttons */
.btn {
  --bg: var(--accent); --fg: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 12px; border: 0;
  background: var(--bg); color: var(--fg); font-size: 15px; font-weight: 700; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), background .25s, box-shadow .4s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(168, 200, 234,.35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn.dark { --bg: var(--ink); --fg: #fff; }
.btn.dark:hover { background: #000; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.link { font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; background: none; border: 0; padding: 0; }
.link:hover { text-decoration-thickness: 2px; }

/* floating island nav */
.nav { position: fixed; top: 16px; left: 16px; right: 16px; z-index: 100; display: flex; justify-content: space-between; pointer-events: none; }
.island {
  pointer-events: auto; display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 10px 0 20px;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-radius: var(--r-sm); box-shadow: 0 1px 2px rgba(16,18,22,.05), 0 10px 30px rgba(16,18,22,.08);
  transition: box-shadow .4s var(--ease), background .3s;
}
.island.right { padding: 0 10px 0 14px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 22px; }
.brand svg { width: 26px; height: 26px; }
.brand b { font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.nav a.item, .nav button.item {
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 9px 14px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; transition: background .2s, color .2s;
}
.nav a.item:hover, .nav button.item:hover { background: var(--page); color: var(--ink); }
.nav .who { font-size: 14px; color: var(--ink-3); padding: 0 6px; }

/* form fields */
.field {
  width: 100%; height: 56px; padding: 0 18px; border-radius: 14px; border: 0;
  background: var(--page); color: var(--ink); font: 500 16px var(--font); letter-spacing: -.01em; outline: none;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .25s, background .25s;
}
.field::placeholder { color: var(--ink-3); }
.field:hover { background: #eef0f3; }
.field:focus { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(29,31,35,.06); }

/* switch */
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 32px; background: #d9dce1; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.ready .switch span { transition: background .3s; }
.ready .switch span::after { transition: transform .45s var(--ease); }
.switch input:checked + span { background: var(--accent-deep); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(59, 110, 158,.25); }

/* coin logo */
.coin { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.coin.sm { width: 22px; height: 22px; }
.coin.lg { width: 56px; height: 56px; }
.stack { display: flex; }
.stack .coin { box-shadow: 0 0 0 2px var(--card); }
.stack .coin + .coin { margin-left: -7px; }

/* footer */
.footer { padding: 80px 0 40px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.footer h5 { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.footer a { display: block; text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 5px 0; }
.footer a:hover { color: var(--ink); }
.footer .fine { font-size: 14px; color: var(--ink-3); max-width: 360px; line-height: 1.55; margin: 14px 0 0; }
.footer .bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--ink-3); }
.wordmark { font-weight: 900; text-transform: uppercase; letter-spacing: -.05em; line-height: .78; font-size: clamp(120px, 30.5vw, 452px); color: #e6e8ec; text-align: center; margin: 56px 0 -12px; user-select: none; }

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav { top: 10px; left: 10px; right: 10px; }
  .island { height: 54px; padding-left: 14px; }
  .nav .hide-m { display: none; }
  .brand { margin-right: 4px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.footer a.brand { display: flex; padding: 0; color: var(--ink); }

/* ---------- mobile + touch */
.show-m { display: none; }
.menu-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--page); cursor: pointer; place-content: center; gap: 6px; padding: 0; margin-left: 2px; }
.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease); }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .show-m { display: grid; }
  .nav { top: max(10px, env(safe-area-inset-top)); }
}
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; background: var(--bg); }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
  .btn:active { transform: scale(.97); }
}
@media (max-width: 360px) {
  .nav .brand b { display: none; }
  .nav .brand { margin-right: 0; }
  .island { padding-left: 12px; }
}
section[id], header[id] { scroll-margin-top: 92px; }

[hidden] { display: none !important; }
