:root {
  --navy: #0f1e3d;
  --navy-mid: #1a2f5a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --green: #16a34a;
  --green-pale: #f0fdf4;
  --amber: #d97706;
  --red: #dc2626;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow-card: 0 8px 24px rgba(15,30,61,0.12), 0 2px 6px rgba(15,30,61,0.08);
  --radius: 12px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--blue);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--white); text-decoration: none; }

.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a6e 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.home-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.home-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pitches-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}
.pitches-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.pitches-section .section-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.pitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pitch-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  aspect-ratio: 1;
}
.pitch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15,30,61,0.16), 0 4px 8px rgba(15,30,61,0.08);
  text-decoration: none;
}
.pitch-card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.pitch-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.pitch-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.pitch-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.pitch-card-tag {
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 600;
  background: var(--blue-pale);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.pitch-card-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.15s;
}
.pitch-card:hover .pitch-card-arrow { transform: translateX(4px); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

@media (max-width: 640px) {
  .home-hero { padding: 3rem 1.5rem 2.5rem; }
  .pitches-section { padding: 2.5rem 1.5rem; }
  .pitch-grid { grid-template-columns: 1fr; }
  .pitch-card { aspect-ratio: auto; }
}

/* ══════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.theme-toggle svg { display: block; pointer-events: none; }

/* Show moon in light mode, sun in dark mode */
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ══════════════════════════════════════════
   DARK MODE — BASE VARIABLES
══════════════════════════════════════════ */
[data-theme="dark"] {
  --navy: #070d1a;
  --navy-mid: #0d1730;
  --bg: #111827;
  --white: #1f2937;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --blue-pale: rgba(37,99,235,0.2);
  --green-pale: rgba(22,163,74,0.18);
  --amber-pale: rgba(217,119,6,0.18);
  --red-pale: rgba(220,38,38,0.18);
  --purple-pale: rgba(124,58,237,0.2);
  --shadow-card: 0 8px 24px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.4);
}

/* ══════════════════════════════════════════
   DARK MODE — GLOBAL COMPONENT OVERRIDES
══════════════════════════════════════════ */
[data-theme="dark"] .site-header {
  background: #050c18;
  border-bottom-color: #1d4ed8;
}
[data-theme="dark"] .home-hero {
  background: linear-gradient(135deg, #020812 0%, #070d1a 60%, #0c1630 100%);
}
[data-theme="dark"] .pitch-card {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .pitch-card:hover {
  box-shadow: 0 16px 32px rgba(0,0,0,0.6), 0 4px 8px rgba(0,0,0,0.4);
}
[data-theme="dark"] .site-footer {
  background: #050c18;
}
