/* ——— DESIGN TOKENS ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #07243a;
  --navy-mid: #0d3559;
  --navy-light: #1a4f7a;
  --green: #00A86B;
  --green-light: #00c97e;
  --green-muted: rgba(0,168,107,0.12);
  --gold: #c8973a;
  --gold-light: #e8b657;
  --text: #e8f0f8;
  --text-muted: rgba(232,240,248,0.72);
  --text-dim: rgba(232,240,248,0.50);
  --border: rgba(255,255,255,0.08);
  --border-green: rgba(0,168,107,0.25);
  --glass: rgba(255,255,255,0.04);
  --nav-overlay: rgba(7,36,58,0.92);
  --dropdown-overlay: rgba(7,36,58,0.97);
  --panel-overlay: rgba(7,36,58,0.98);
  --modal-backdrop: rgba(7,36,58,0.95);
  --section-alt-bg: rgba(255,255,255,0.018);
  --stats-band-bg: rgba(255,255,255,0.015);
  --card-hover-bg: rgba(255,255,255,0.025);
  --badge-neutral-bg: rgba(255,255,255,0.04);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* ——— LAYOUT ——— */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ——— AMBIENT GLOWS ——— */
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.ambient-1 { width: 600px; height: 600px; top: -200px; right: -100px; background: rgba(0,168,107,0.07); }
.ambient-2 { width: 500px; height: 500px; bottom: 10%; left: -150px; background: rgba(0,100,200,0.06); }
.ambient-3 { width: 300px; height: 300px; top: 40%; right: 5%; background: rgba(200,151,58,0.04); }

/* ——— SECTION DEFAULTS ——— */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--section-alt-bg); }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section-intro { margin-bottom: 64px; }
.section-intro h2 {
  font-family: 'Geist', 'DM Sans', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-intro p { font-size: 1rem; color: var(--text-muted); max-width: 600px; line-height: 1.7; }

/* ——— LIGHT MODE ——— */
@media (prefers-color-scheme: light) {
  :root {
    --navy: #f4f6f8;
    --navy-mid: #e8edf2;
    --navy-light: #d8e1ea;
    --green: #00774d;
    --green-light: #009060;
    --green-muted: rgba(0,119,77,0.1);
    --gold: #a06820;
    --gold-light: #c08030;
    --text: #111820;
    --text-muted: rgba(17,24,32,0.68);
    --text-dim: rgba(17,24,32,0.46);
    --border: rgba(7,36,58,0.10);
    --border-green: rgba(0,119,77,0.28);
    --glass: rgba(7,36,58,0.04);
    --nav-overlay: rgba(244,246,248,0.96);
    --dropdown-overlay: rgba(244,246,248,0.99);
    --panel-overlay: rgba(244,246,248,0.99);
    --modal-backdrop: rgba(216,225,234,0.97);
    --section-alt-bg: rgba(7,36,58,0.030);
    --stats-band-bg: rgba(7,36,58,0.024);
    --card-hover-bg: rgba(7,36,58,0.030);
    --badge-neutral-bg: rgba(7,36,58,0.05);
  }
  body::before { opacity: 0.012; }
  .ambient-1 { background: rgba(0,119,77,0.05); }
  .ambient-2 { background: rgba(0,80,180,0.04); }
  .ambient-3 { background: rgba(160,104,32,0.03); }
}

/* ——— RESPONSIVE TOKENS ——— */
@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 24px; }
  .section { padding: 80px 0; }
  .section-intro { margin-bottom: 48px; }
}

@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-intro { margin-bottom: 40px; }
  .section-intro h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    margin-bottom: 12px;
  }
  .section-intro p { font-size: 0.9rem; }
  .section-label { font-size: 0.65rem; }
  .ambient-1 { width: 400px; height: 400px; top: -150px; right: -80px; }
  .ambient-2 { width: 350px; height: 350px; left: -100px; }
  .ambient-3 { width: 200px; height: 200px; }
}

@media (max-width: 400px) {
  .container, .container-narrow { padding: 0 16px; }
  .section { padding: 50px 0; }
}
