/* ============================================================
   FILOPOW — filopow.xyz landing
   Emerald #34d399 on near-black #010102. Dark only.
   Follows the FILO design system (filo-scan/design/tokens.css).
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --primary:       #34d399;
  --primary-hover: #6ee7b7;
  --primary-focus: #10b981;
  --primary-tint:  rgba(52, 211, 153, 0.12);
  --primary-tint-strong: rgba(52, 211, 153, 0.22);

  --canvas:    #010102;
  --surface-1: #0f1011;
  --surface-2: #141516;
  --surface-3: #18191a;
  --surface-4: #1d1e1f;

  --hairline:        #23252a;
  --hairline-strong: #34343a;

  --ink:        #f7f8f8;
  --ink-muted:  #d0d6e0;
  --ink-subtle: #8a8f98;
  --ink-ter:    #62666d;

  --danger: #f87171;
  --warn:   #fbbf24;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 20px; --r-pill: 9999px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 100ms; --t-base: 160ms; --t-slow: 240ms;

  --maxw: 1120px;
  --header-h: 66px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: 0.92em; }
::selection { background: var(--primary-tint-strong); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #041008; padding: 10px 16px; border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease), color var(--t-base) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #04140c; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-hover); background: var(--primary-tint); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(1, 1, 2, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--hairline); background: rgba(1, 1, 2, 0.88); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.25)); }
.brand-name { font-size: 17px; }
.brand-ticker {
  font-size: 11px; font-weight: 600; color: var(--primary);
  border: 1px solid var(--primary-tint-strong); background: var(--primary-tint);
  padding: 2px 7px; border-radius: var(--r-pill); letter-spacing: 0.02em;
}

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-subtle); font-size: 14.5px; font-weight: 500; transition: color var(--t-base) var(--ease); }
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: 4px; }

.nav-toggle { display: none; }

.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -280px; left: 50%; transform: translateX(-30%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.16) 0%, rgba(52, 211, 153, 0.05) 34%, rgba(52, 211, 153, 0) 62%);
  filter: blur(6px);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
  background: var(--surface-1); border: 1px solid var(--hairline);
  padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title { font-size: clamp(34px, 5.4vw, 60px); }
.hero-title .accent { color: var(--primary); }
.hero-sub {
  margin-top: 22px; max-width: 560px;
  color: var(--ink-muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.62;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-meta { margin-top: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-subtle); font-size: 14px; }
.hero-meta a { color: var(--ink-muted); border-bottom: 1px solid var(--hairline-strong); padding-bottom: 1px; transition: color var(--t-base), border-color var(--t-base); }
.hero-meta a:hover { color: var(--primary); border-color: var(--primary); }
.hero-meta .sep { color: var(--ink-ter); }

.hero-visual { display: flex; justify-content: center; }
.hero-mark {
  width: clamp(220px, 34vw, 360px); height: auto;
  /* transparent PNG → the glow now hugs the eagle silhouette */
  filter: drop-shadow(0 0 42px rgba(52, 211, 153, 0.20)) drop-shadow(0 22px 48px rgba(0, 0, 0, 0.55));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Live price card (Filogator widget) ---------- */
.price-card {
  margin-top: 48px;
  background: linear-gradient(180deg, var(--surface-1), rgba(15,16,17,0.5));
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  padding: 22px 24px 18px;
}
.price-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.price-label { font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint); animation: pulse 2.4s var(--ease) infinite;
}
.price-when { font-family: var(--font-mono); font-size: 13px; color: var(--primary); }
/* Filogator web component — give it room while it hydrates */
.price-card filogator-ticker {
  display: block; min-height: 76px; color: var(--ink-muted);
}
.price-attr { margin-top: 10px; font-size: 12px; }
.price-attr a { color: var(--ink-subtle); transition: color var(--t-base) var(--ease); }
.price-attr a:hover { color: var(--primary); }

/* ---------- Stats strip ---------- */
.stats-strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--surface-1); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { padding: 26px 18px; text-align: center; border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: none; }
.stat-val { display: block; font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); color: var(--ink); letter-spacing: -0.01em; }
.stat-key { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-subtle); letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-1); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.section h2 { font-size: clamp(26px, 3.6vw, 38px); }
.section-lead { margin-top: 16px; color: var(--ink-muted); font-size: clamp(15px, 1.6vw, 17px); }
.section-lead strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards (why) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: 26px 24px; transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.card:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card h3::before {
  content: ""; display: block; width: 30px; height: 3px; border-radius: 3px;
  background: var(--primary); margin-bottom: 16px;
}
.card p { color: var(--ink-subtle); font-size: 15px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-visual { order: 1; }
.split-copy .section-lead { max-width: 520px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-muted); font-size: 15px; }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--primary-tint); border: 1px solid var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.3 4.8-5' fill='none' stroke='%2334d399' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Code card ---------- */
.code-card { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--hairline); background: var(--surface-3); }
.code-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--hairline-strong); }
.code-dot:nth-child(3) { background: var(--primary); }
.code-title { margin-left: 8px; font-size: 12.5px; color: var(--ink-subtle); font-family: var(--font-mono); }
.code-body { margin: 0; padding: 20px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; }
.code-body code { font-size: inherit; }
.c-key { color: var(--ink-subtle); }
.c-str { color: var(--primary); }
.c-com { color: var(--ink-ter); }
.code-foot { padding: 14px 18px; border-top: 1px solid var(--hairline); color: var(--ink-subtle); font-size: 13px; }
.code-foot code { color: var(--ink-muted); background: var(--surface-3); padding: 1px 5px; border-radius: 4px; }

/* ---------- Reward card ---------- */
.reward-card { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 26px 24px; }
.reward-title { font-weight: 700; font-size: 16px; margin-bottom: 22px; }
.reward-phase { margin-bottom: 24px; }
.reward-phase:last-of-type { margin-bottom: 8px; }
.reward-phase-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.reward-phase-head > span:first-child { font-weight: 600; font-size: 14px; }
.reward-phase-sub { font-size: 12px; color: var(--ink-subtle); font-family: var(--font-mono); }
.reward-bar { display: flex; height: 34px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--hairline); }
.reward-bar .seg { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #04140c; }
.seg-node { background: var(--primary); }
.seg-miner { background: var(--primary-focus); color: #f7f8f8; }
.seg-dev { background: var(--surface-4); color: var(--ink-subtle); }
.reward-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--ink-muted); }
.reward-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 11px; height: 11px; border-radius: 3px; }
.lg-node { background: var(--primary); }
.lg-miner { background: var(--primary-focus); }
.lg-dev { background: var(--surface-4); border: 1px solid var(--hairline-strong); }
.reward-note { margin-top: 16px; color: var(--ink-subtle); font-size: 13px; }

/* ---------- Downloads ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.download-card {
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: 26px 24px; transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), background var(--t-base);
}
.download-card:hover { border-color: var(--primary); transform: translateY(-3px); background: var(--surface-3); }
.dl-os { font-weight: 700; font-size: 20px; }
.dl-desc { margin-top: 6px; color: var(--ink-subtle); font-size: 14px; }
.dl-desc code { color: var(--ink-muted); }
.dl-cta { margin-top: 22px; color: var(--primary); font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.download-card .arrow { transition: transform var(--t-base) var(--ease); }
.download-card:hover .arrow { transform: translateX(4px); }
/* Web wallet callout — distinct from the OS download cards */
.web-wallet {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--primary-tint), rgba(15,16,17,0.5));
  border: 1px solid var(--primary-tint-strong); border-radius: var(--r-xl);
  padding: 22px 24px;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), background var(--t-base);
}
.web-wallet:hover { border-color: var(--primary); transform: translateY(-2px); }
.ww-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ww-badge {
  flex-shrink: 0; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #04140c; background: var(--primary); padding: 5px 11px; border-radius: var(--r-pill);
  margin-top: 2px;
}
.ww-title { font-weight: 700; font-size: 17px; color: var(--ink); }
.ww-desc { margin-top: 5px; font-size: 14px; color: var(--ink-muted); }
.ww-host { color: var(--primary); font-family: var(--font-mono); font-size: 13px; }
.ww-cta {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.web-wallet:hover .ww-cta .arrow { transform: translateX(4px); }
.ww-cta .arrow { transition: transform var(--t-base) var(--ease); }

.release-line {
  margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--ink-subtle); font-size: 14px;
}
.release-line a { color: var(--primary); border-bottom: 1px solid var(--primary-tint-strong); }
.release-line a:hover { border-color: var(--primary); }
.tag {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--primary-tint); border: 1px solid var(--primary-tint-strong);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ---------- Specs table ---------- */
.specs-wrap { border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.specs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs-table tr { border-bottom: 1px solid var(--hairline); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr:nth-child(even) { background: var(--surface-1); }
.specs-table th {
  text-align: left; font-weight: 500; color: var(--ink-subtle); padding: 15px 24px;
  width: 38%; vertical-align: top; white-space: nowrap;
}
.specs-table td { padding: 15px 24px; color: var(--ink); }
.specs-table td code { color: var(--primary); word-break: break-all; }
.hashrow td code { font-size: 12.5px; }

/* ---------- Links grid ---------- */
.links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.link-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 20px 20px; transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
a.link-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.link-kind { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.link-host { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-subtle); word-break: break-all; }
.link-card.is-soon { opacity: 0.72; }
.link-card.is-soon .link-host { color: var(--warn); }
.link-logo {
  width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0;
  vertical-align: middle;
}
.link-card.is-exchange:hover { border-color: var(--primary); }
.live {
  font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #04140c; background: var(--primary); padding: 2px 7px; border-radius: var(--r-pill);
}

/* ---------- CTA ---------- */
.cta { padding: 96px 0; position: relative; overflow: hidden; border-top: 1px solid var(--hairline); }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(52, 211, 153, 0.10), transparent 70%);
}
.cta-inner { position: relative; text-align: center; max-width: 660px; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); }
.cta p { margin-top: 16px; color: var(--ink-muted); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--surface-1); padding: 44px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.2)); }
.footer-name { font-weight: 700; }
.footer-name span { color: var(--primary); font-size: 12px; margin-left: 4px; }
.footer-tag { font-size: 13px; color: var(--ink-subtle); }
.footer-icons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r-md);
  color: var(--ink-subtle); border: 1px solid var(--hairline); background: var(--surface-2);
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background var(--t-base), transform var(--t-base);
}
.footer-icons a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-tint); transform: translateY(-2px); }
.footer-icons a svg { width: 18px; height: 18px; display: block; }
.footer-icons a.footer-text-link {
  width: auto; height: 38px; padding: 0 14px; font-size: 14px; font-weight: 500;
  color: var(--ink-muted); font-family: var(--font-mono);
}
.footer-icons a.footer-text-link:hover { color: var(--primary); }
.footer-fine {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-ter); font-size: 12.5px;
}

/* ---------- Reveal animation ----------
   Fail-safe: only hide when JS is active (html.js). No JS / JS error → fully visible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; }
  .hero-mark { width: clamp(180px, 44vw, 260px); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-copy { order: 1; }
  .split.reverse .split-visual { order: 2; }
  .cards-3 { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3n+1) { border-left: none; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--hairline); }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: transparent; border: 1px solid var(--hairline); border-radius: var(--r-md);
    width: 42px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink-muted); border-radius: 2px; transition: transform var(--t-base), opacity var(--t-base); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav {
    display: grid; gap: 4px; padding: 0 24px;
    max-height: 0; overflow: hidden; background: var(--canvas);
    border-bottom: 1px solid transparent;
    transition: max-height var(--t-slow) var(--ease), padding var(--t-slow) var(--ease), border-color var(--t-slow);
  }
  .mobile-nav.open { max-height: 420px; padding: 14px 24px 22px; border-bottom-color: var(--hairline); }
  .mobile-nav a { padding: 12px 4px; color: var(--ink-muted); font-weight: 500; border-bottom: 1px solid var(--hairline); }
  .mobile-nav a.btn { margin-top: 12px; border-bottom: none; color: #04140c; }
  .section { padding: 64px 0; }
  .footer-fine { flex-direction: column; gap: 6px; }
}

@media (max-width: 460px) {
  .wrap { padding: 0 18px; }
  .links-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3n+1) { border-left: 1px solid var(--hairline); }
  .stat:nth-child(2n+1) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark { animation: none; }
}
