/* ============================================================================
   Squain web, brand-matched to the app: dark graphite canvas, volt-lime
   accent (#C6FF4D), Satoshi typeface. Mirrors lib/ui/tokens/app_colors.dart.
   ========================================================================== */

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Canvas + surfaces (dark-first, never pure black) */
  --bg: #0c0c0e;
  --surface: #1c1c20;
  --surface-2: #30303a;
  --hairline: rgba(255, 255, 255, 0.08);

  /* Ink (never pure white) */
  --ink: #edeff2;
  --ink-body: #c4c8d1;
  --ink-muted: #8b8f99;

  /* The one accent: volt-lime */
  --volt: #c6ff4d;
  --volt-soft: #b6f23d;
  --on-volt: #161a0e;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.7);
  --maxw: 700px;
  --tap: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Atmosphere: a soft volt glow up top + a deep vignette, not a flat fill */
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(198, 255, 77, 0.10), transparent 55%),
    radial-gradient(90% 60% at 0% 0%, rgba(63, 182, 201, 0.05), transparent 50%);
  background-attachment: fixed;
  min-height: 100dvh;
}

::selection { background: var(--volt); color: var(--on-volt); }

a { color: var(--volt); text-decoration: none; }
.wrap a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(198, 255, 77, 0.4); }
.wrap a:not(.btn):hover { text-decoration-color: var(--volt); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 20px;
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: block;
  box-shadow: 0 0 0 1px var(--hairline), 0 6px 18px -6px rgba(198, 255, 77, 0.35);
}
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--ink-muted);
  font-size: 15px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px;
  min-height: var(--tap); display: inline-flex; align-items: center;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.nav a.active { color: var(--volt); }

/* ---- Content -------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 80px; }

h1 {
  font-size: clamp(34px, 6vw, 46px);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 800;
  color: var(--ink); margin: 0 0 14px;
}
h1::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 20px;
  background: var(--volt); border-radius: 999px;
  box-shadow: 0 0 24px rgba(198, 255, 77, 0.5);
}
.updated {
  color: var(--ink-muted); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; margin: 22px 0 36px;
}
h2 {
  font-size: 22px; letter-spacing: -0.02em; font-weight: 700;
  color: var(--ink); margin: 40px 0 12px; padding-left: 16px; position: relative;
}
h2::before {
  content: ""; position: absolute; left: 0; top: 0.18em;
  width: 4px; height: 0.82em; background: var(--volt);
  border-radius: 999px;
}
p { margin: 0 0 17px; }
ul { margin: 0 0 17px; padding-left: 4px; list-style: none; }
li { margin: 9px 0; padding-left: 26px; position: relative; }
li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--volt);
  box-shadow: 0 0 10px rgba(198, 255, 77, 0.6);
}
strong { font-weight: 700; color: var(--ink); }

/* ---- Landing hero --------------------------------------------------------- */
.hero { padding: 64px 0 12px; }
.hero h1 { font-size: clamp(40px, 8vw, 60px); }
.hero h1 .accent { color: var(--volt); }
.hero h1::after { display: none; }
.lede {
  font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-body);
  margin: 20px 0 32px; max-width: 32ch; line-height: 1.5;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--volt); color: var(--on-volt); box-shadow: 0 12px 30px -10px rgba(198, 255, 77, 0.5); }
.btn.primary:hover { background: var(--volt-soft); }
.btn.ghost { color: var(--ink); border: 1px solid var(--surface-2); }
.btn.ghost:hover { border-color: var(--ink-muted); background: rgba(255, 255, 255, 0.03); }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 56px; padding: 28px 20px 56px; }
.site-footer .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap;
}
.site-footer .brand { color: var(--ink-muted); font-weight: 700; }
.site-footer .brand .brand-mark { width: 22px; height: 22px; border-radius: 7px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-muted); font-size: 15px; font-weight: 600; }
.foot-links a:hover { color: var(--ink); }
.copyright { color: var(--ink-muted); font-size: 14px; margin-left: auto; }

/* ---- Load reveal (one orchestrated stagger) ------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal:nth-child(1) { animation-delay: 0.04s; }
.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }
.reveal:nth-child(4) { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; animation: none; }
  .btn:active { transform: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 40px 18px 64px; }
  .copyright { margin-left: 0; width: 100%; }
}
