/* Shared base: fonts, tokens (dark only), reset, topbar, buttons, footer.
   Plus Jakarta Sans is self-hosted (SIL OFL, see /assets/fonts/OFL-PlusJakartaSans.txt). */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-400.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/PlusJakartaSans-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg-page: #050505;
  --bg-panel: rgba(23, 25, 26, 0.72);
  --bg-panel-hover: rgba(36, 39, 40, 0.86);
  --bg-surface: rgba(0, 0, 0, 0.38);
  --bg-soft: rgba(255, 255, 255, 0.035);
  --brand: #b7ff3c;
  --brand-hover: #c8ff6a;
  --on-brand: #050505;
  --ink: #f5f5f0;
  --on-ink: #050505;
  --body: #c4c6c2;
  --muted: #858b8d;
  --mint-bg: rgba(255, 255, 255, 0.07);
  --mint-text: #f5f5f0;
  --accent-soft: rgba(183, 255, 60, 0.1);
  --accent-line: rgba(183, 255, 60, 0.31);
  --warn-bg: rgba(255, 190, 92, 0.12);
  --warn-text: #ffc978;
  --hairline: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-border-strong: rgba(255, 255, 255, 0.25);
  --dash: rgba(255, 255, 255, 0.14);
  --track: rgba(255, 255, 255, 0.12);
  --meter-exempt: #3a3e40;
  --meter-income: #8f9597;
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 42%, rgba(255, 255, 255, 0) 100%), rgba(23, 25, 26, 0.72);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  --shadow-pop: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 80px -20px rgba(0, 0, 0, 0.95);
  --glow: 0 0 0 1px rgba(183, 255, 60, 0.12), 0 0 70px -24px rgba(183, 255, 60, 0.35);
  --input-border: rgba(255, 255, 255, 0.11);
  --focus: rgba(183, 255, 60, 0.4);
  --ill-green: #b7ff3c;
  --ill-mint: #26292a;
  --ill-paper: #17191a;
  --ill-accent: #5c6264;
  --radius-card: 28px;
  --radius-input: 16px;
  --radius-pill: 999px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: radial-gradient(1100px 520px at 85% -120px, rgba(183, 255, 60, 0.07), transparent 70%), radial-gradient(900px 600px at -10% 30%, rgba(245, 245, 240, 0.035), transparent 70%), var(--bg-page);
  background-attachment: fixed;
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
button, input, select { font-family: inherit; font-size: 16px; color: inherit; }
button { cursor: pointer; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -0.03em; }
::selection { background: var(--brand); color: var(--on-brand); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 700; }
.skip-link:focus { top: 10px; }
.container { width: 100%; max-width: 1450px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.ico { width: 1em; height: 1em; flex: none; }

.ill { display: block; }
.ill img { display: block; width: 100%; height: auto; }

/* Top bar */
.topbar { height: 80px; background: rgba(5, 5, 5, 0.62); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border-bottom: 1px solid var(--hairline); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.02); position: sticky; top: 0; z-index: 40; }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; min-width: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 24px -6px rgba(183, 255, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 25px; letter-spacing: -0.04em; flex: none; }
.brand-name { font-size: 25px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.brand-sep { width: 1px; height: 18px; background: var(--hairline); margin: 0 2px; }
.brand-product { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: 12px; }
.topbar .btn--ghost { min-height: 46px; padding: 0 24px; border-radius: 14px; font-size: 16px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); color: var(--body); text-decoration: none; font-size: 16px; font-weight: 600; transition: background-color 160ms ease, color 160ms ease; }
.nav-link[aria-current="true"] { background: rgba(255, 255, 255, 0.1); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.nav-link:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
@media (max-width: 1020px) { .nav-links { display: none; } }
@media (max-width: 720px) { .brand-sep, .brand-product { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 28px; border-radius: var(--radius-pill); border: 0; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px -12px rgba(183, 255, 60, 0.55); transition: background-color 160ms ease, transform 120ms ease, box-shadow 160ms ease; }
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: scale(0.98); }
.btn--ghost { min-height: 44px; padding: 0 18px; border: 1px solid var(--glass-border-strong); background: rgba(255, 255, 255, 0.05); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: var(--glass-hi); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--outline { border: 1px solid var(--glass-border-strong); background: rgba(255, 255, 255, 0.04); color: var(--ink); box-shadow: var(--glass-hi); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.09); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* Footer */
.site-footer { background: linear-gradient(180deg, rgba(23, 25, 26, 0.55), rgba(5, 5, 5, 0)); border-top: 1px solid var(--hairline); margin-top: 88px; padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.footer-grid h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none; }
.footer-grid li a:hover { color: var(--ink); text-decoration: underline; }
.footer-disclaimer { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 12px; max-width: 46ch; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--dash); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
