/* ═══════════════════════════════════════════════════════════
   GENESIS & MOZILLA — Design System
   Warm consulting gravitas meets human soul
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

:root {
  --cream: #FAF8F5;
  --cream-deep: #F3EDE6;
  --white: #FFFFFF;
  --navy: #1A1A2E;
  --navy-soft: #2D2D44;
  --body-text: #5A5A6E;
  --body-light: #8A8A9A;
  --gold: #C5A258;
  --gold-light: #D4B76A;
  --gold-glow: rgba(197, 162, 88, 0.15);
  --genesis-blue: #2563EB;
  --genesis-green: #059669;
  --mozilla-red: #FF4F5E;
  --mozilla-orange: #FF9500;
  --card-bg: #FFFFFF;
  --card-shadow: 0 2px 24px rgba(26,26,46,0.06);
  --card-shadow-hover: 0 12px 48px rgba(26,26,46,0.12);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --divider: linear-gradient(90deg, transparent, var(--gold), transparent);
  --genesis-gradient: linear-gradient(135deg, var(--genesis-blue), var(--genesis-green));
  --mozilla-gradient: linear-gradient(135deg, var(--mozilla-red), var(--mozilla-orange));
  --warm-gradient: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  --dark-gradient: linear-gradient(180deg, var(--navy) 0%, #0F0F1E 100%);
  --section-pad: clamp(4rem, 8vw, 8rem);
  --content-width: 1140px;
  --narrow-width: 800px;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--body-text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── NAVIGATION ─────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 162, 88, 0.15);
  transition: all 0.3s ease;
}

.site-nav.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-brand .genesis {
  background: var(--genesis-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-brand .amp {
  color: var(--gold);
  margin: 0 0.3rem;
}

.nav-brand .mozilla {
  background: var(--mozilla-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gold-glow);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav-mobile-toggle { display: block; }
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; font-weight: 600; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.75rem; }

p { margin-bottom: 1.5rem; }

.lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.8;
  color: var(--navy-soft);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

/* ── SECTIONS ───────────────────────────────────────────── */

section {
  padding: var(--section-pad) 2rem;
}

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--narrow-width);
  margin: 0 auto;
}

.section-dark {
  background: var(--dark-gradient);
  color: rgba(255, 255, 255, 0.85);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .kicker {
  color: var(--gold-light);
}

.section-cream {
  background: var(--warm-gradient);
}

/* ── HERO ───────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--dark-gradient);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 30% 40%, rgba(37, 99, 235, 0.08), transparent),
    radial-gradient(ellipse 600px 500px at 70% 60%, rgba(5, 150, 105, 0.06), transparent),
    radial-gradient(ellipse 400px 400px at 50% 50%, rgba(197, 162, 88, 0.04), transparent);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.15;
}

.hero h1 .highlight-genesis {
  background: var(--genesis-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero h1 .highlight-mozilla {
  background: var(--mozilla-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.hero .subtitle {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero .hero-stat {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero .hero-stat-label {
  font-family: var(--sans);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── DIVIDER ────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--divider);
  margin: 0 auto;
  max-width: 200px;
}

.divider-wide {
  max-width: 400px;
}

/* ── BLOCKQUOTE ─────────────────────────────────────────── */

blockquote {
  position: relative;
  padding: 2rem 0 2rem 0;
  margin: 2.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
  text-align: center;
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--body-light);
  letter-spacing: 0.02em;
}

/* ── CARDS ──────────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card-grid {
  display: grid;
  gap: 2rem;
}

.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--gold-glow);
}

/* ── STAT DISPLAY ───────────────────────────────────────── */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}

.stat-number.gold { color: var(--gold); }

.stat-label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--body-light);
  margin-top: 0.5rem;
}

/* ── ALIGNMENT TABLE ────────────────────────────────────── */

.alignment-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(197, 162, 88, 0.15);
}

.alignment-row:last-child { border-bottom: none; }

.alignment-left {
  text-align: right;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--body-text);
}

.alignment-bridge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alignment-right {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--navy);
  font-weight: 500;
}

@media (max-width: 700px) {
  .alignment-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.75rem;
  }
  .alignment-left { text-align: center; }
  .alignment-bridge { margin: 0 auto; }
}

/* ── BUTTONS ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--genesis-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(197, 162, 88, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── SCROLL ANIMATIONS ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── PARTNER LOGOS ──────────────────────────────────────── */

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
  opacity: 0.5;
}

.partner-strip span {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--body-light);
  text-transform: uppercase;
}

/* ── FOOTER ─────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

/* ── UTILITIES ──────────────────────────────────────────── */

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
