:root {
  --bg: #0a0a0a;
  --panel: rgba(22, 22, 26, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fa;
  --muted: #dbe4eb;
  --green: #39ff14;
  --volt: #39ff14;
  --gold: #ffd84d;
  --deep: #0a0a0a;
  --page: min(1240px, calc(100% - 32px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── ACCESSIBILITY ── */
.skip-nav { position:absolute; top:-100%; left:16px; z-index:9999; padding:10px 20px; background:#39ff14; color:#0a0a0a; font-weight:700; border-radius:0 0 8px 8px; font-size:14px; text-decoration:none; transition:top 0.2s; }
.skip-nav:focus { top:0; }
:focus-visible { outline:2px solid #39ff14; outline-offset:3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline:none; }

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(57, 255, 20, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 216, 77, 0.12), transparent 18%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 60%, #111 100%);
  min-height: 100vh;
}

a { color: inherit; }

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

/* ── LAYOUT GRIDS ── */
.hero,
.content-grid,
.legal-footer {
  display: grid;
  gap: 18px;
}

/* ── FIXED NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
  width: var(--page);
  margin: 0 auto;
}

.brand {
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.brand .dot { color: var(--volt); }

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

/* Buttons */
.btn,
.btn-primary {
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  font: inherit;
}

.btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-primary {
  background: var(--volt);
  color: #0a0a0a;
  border: none;
  font-weight: 700;
}

/* Main offset for fixed nav */
main, .main-content { padding-top: 80px; }

.btn:hover,
.btn-primary:hover,
.panel:hover,
.bullet-card:hover,
.footer-column a:hover {
  transform: translateY(-2px);
}

.hero {
  grid-template-columns: 1.04fr 0.96fr;
  margin-bottom: 18px;
}

.panel,
.bullet-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.panel {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 216, 77, 0.12);
  border: 1px solid rgba(255, 216, 77, 0.26);
  color: var(--gold);
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
}

.hero-list,
.stack-list,
.footer-links {
  display: grid;
  gap: 12px;
}

.hero-list li,
.bullet-card,
.footer-links a {
  list-style: none;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 18px;
}

.hero-list li {
  padding: 14px 16px;
}

.bullet-card {
  padding: 18px;
}

.content-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
}

.section-stack {
  display: grid;
  gap: 16px;
}

.section-copy {
  display: grid;
  gap: 14px;
}

.legal-footer {
  grid-template-columns: 1.1fr 1fr 1fr;
  margin-top: 26px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column strong {
  color: var(--text);
}

.footer-links a {
  padding: 12px 14px;
  text-decoration: none;
}

.meta {
  font-size: 14px;
  color: var(--muted);
}

.callout {
  border-left: 3px solid var(--green);
  padding-left: 14px;
}

/* ── NEW 4-COLUMN FOOTER ── */
.footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 60px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.footer-brand .dot { color: var(--volt); }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .legal-footer {
    grid-template-columns: 1fr;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 760px) {
  .page {
    width: min(100%, calc(100% - 24px));
  }
  /* Nav links and CTA hidden on mobile — mobile-nav.js injects the drawer */
  .nav-links { display: none; }
  .nav-cta .btn-ghost,
  .nav-cta .btn-primary { display: none; }
}
