/* ============================================
   CSS VARIABLES - Design System
   ============================================ */

:root {
  /* Typography */
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-unit: 8px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Container Widths */
  --container-max: 1200px;
  --container-narrow: 900px;

  /* Breakpoints */
  --bp-xs: 480px;
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-xxl: 1536px;

  /* Colors - Primary Palette */
  --color-primary: #0065B3;
  --color-primary-dark: #004F8A;
  --color-secondary: #FFC72C;
  --color-accent-blue: #CFE3FF;
  --color-accent-purple: #E9D8FF;

  /* Colors - Neutral Palette */
  --black: #0A0A0A;
  --gray-900: #1C1C1C;
  --gray-700: #4A4A4A;
  --gray-500: #7A7A7A;
  --gray-300: #D2D2D2;
  --gray-200: #E6E6E6;
  --gray-100: #F7F7F7;
  --white: #FFFFFF;

  /* Highlight Colors */
  --highlight-yellow: #FFC72C;
  --highlight-yellow-opacity: rgba(255, 199, 44, 0.85);
  --highlight-blue: #CFE3FF;
  --highlight-blue-opacity: rgba(207, 227, 255, 0.85);

  /* State Colors */
  --success: #2EBE66;
  --warning: #FFBE32;
  --error: #D6464B;

  /* Opacity */
  --opacity-90: 0.9;
  --opacity-75: 0.75;
  --opacity-60: 0.6;
  --opacity-40: 0.4;
  --opacity-20: 0.2;
  --opacity-10: 0.1;

  /* Z-Index */
  --z-base: 1;
  --z-content: 10;
  --z-header: 100;
  --z-overlay: 1000;
  --z-modal: 2000;
  --z-critical: 9999;

  /* Transitions */
  --fast: 120ms;
  --medium: 220ms;
  --slow: 400ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--black);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.20;
}

h3 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
}

h4 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.body-large {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.body-regular {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.small-body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

.caption {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.4px;
}

/* ============================================
   LAYOUT & CONTAINERS
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--space-8) 0;
}

/* ============================================
   COUNTDOWN BANNER
   ============================================ */

.countdown-banner {
  background: var(--color-primary);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: calc(var(--z-header) + 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.countdown-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
}

.countdown-text {
  font-weight: 600;
}

.countdown-timer {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  display: flex;
  gap: var(--space-1);
}

.countdown-timer span {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 24px;
  text-align: center;
}

.countdown-link {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
  transition: opacity var(--fast) var(--ease-standard);
}

.countdown-link:hover {
  opacity: var(--opacity-75);
}

.countdown-close {
  position: absolute;
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: opacity var(--fast) var(--ease-standard);
}

.countdown-close:hover {
  opacity: var(--opacity-75);
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: calc(var(--z-header) - 1);
  padding: var(--space-3) 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--fast) var(--ease-standard);
}

.nav-link:hover {
  color: var(--color-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  padding: var(--space-9) 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 101, 179, 0.7) 0%, rgba(0, 79, 138, 0.8) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: var(--white);
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-5);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: var(--space-6);
  font-family: var(--font-sans);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  opacity: var(--opacity-90);
}

.hero-cta {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   HIGHLIGHT BRUSH STROKES
   ============================================ */

.highlight {
  display: inline-block;
  padding: 0 4px;
  border-radius: 4px;
  position: relative;
}

.highlight-yellow {
  background: var(--highlight-yellow-opacity);
}

.highlight-blue {
  background: var(--highlight-blue-opacity);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all var(--medium) var(--ease-standard);
  border-radius: 24px;
}

.btn-primary {
  height: 48px;
  padding: 0 24px;
  background: var(--color-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 101, 179, 0.3);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  height: 44px;
  padding: 0 20px;
  border: 2px solid var(--color-primary);
  border-radius: 24px;
  background: transparent;
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.btn-large {
  height: 56px;
  padding: 0 32px;
  font-size: 18px;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-title {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-7);
  color: var(--gray-700);
}

.mission-section {
  background-color: var(--white);
}

.mission-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ============================================
   CRISIS SECTION
   ============================================ */

.crisis-section {
  background-color: var(--white);
}

.crisis-message {
  text-align: center;
  max-width: 800px;
  margin: var(--space-7) auto 0;
  padding: var(--space-5);
  background: var(--gray-100);
  border-radius: 16px;
}

/* ============================================
   STAT CARDS - URGENT
   ============================================ */

.stat-card-urgent {
  border-left: 4px solid var(--error);
}

.stat-card-urgent .stat-number {
  color: var(--error);
}

/* ============================================
   CENTER IMPACT
   ============================================ */

.center-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.impact-stat {
  text-align: center;
  padding: var(--space-4);
  background: var(--gray-100);
  border-radius: 16px;
}

.impact-stat-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.impact-stat-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ============================================
   CRISIS FUNDING SECTION
   ============================================ */

.crisis-funding-section {
  background-color: var(--gray-100);
}

.crisis-funding-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.crisis-callout {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--white);
  border-radius: 16px;
  border-left: 4px solid var(--color-primary);
  text-align: center;
}

/* ============================================
   ATX15 SECTION
   ============================================ */

.atx15-section {
  background-color: var(--white);
}

.atx15-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.atx15-commitment {
  margin-top: var(--space-5);
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--highlight-blue-opacity) 100%);
  border-radius: 16px;
  text-align: center;
}

.commitment-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--black);
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.stat-card {
  padding: var(--space-4);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ============================================
   IMPACT SECTION
   ============================================ */

.impact-section {
  background-color: var(--white);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.impact-card {
  padding: var(--space-5);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.impact-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--black);
}

/* ============================================
   CENTER INFO SECTION
   ============================================ */

.center-info-section {
  background-color: var(--gray-100);
}

.center-info-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.center-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.fact-item {
  padding: var(--space-4);
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.fact-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--white);
  padding: var(--space-9) 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-text {
  color: var(--white);
  opacity: var(--opacity-90);
  margin-bottom: var(--space-6);
}

.cta-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.cta-goal {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.cta-section .highlight-yellow {
  background: var(--highlight-yellow);
  color: var(--black);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: var(--space-6) 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  opacity: var(--opacity-90);
}

.footer-text-small {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  opacity: var(--opacity-60);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Landscape (768px - 1024px) */
@media (max-width: 1024px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 42px;
  }

  .hero-title {
    font-size: 56px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait (480px - 768px) */
@media (max-width: 768px) {
  :root {
    --space-7: 48px;
    --space-8: 64px;
  }

  section {
    padding: var(--space-7) var(--space-2);
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 28px;
  }

  .countdown-content {
    font-size: 12px;
    gap: var(--space-2);
  }

  .countdown-timer {
    font-size: 14px;
  }

  .countdown-close {
    right: var(--space-2);
  }

  .hero {
    padding: var(--space-8) 0;
    min-height: 500px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .body-large {
    font-size: 18px;
  }

  .body-regular {
    font-size: 16px;
  }

  .nav {
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .nav-link {
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  :root {
    --space-7: 32px;
    --space-8: 48px;
  }

  section {
    padding: var(--space-7) var(--space-3);
  }

  .container {
    padding: 0 var(--space-3);
  }

  .countdown-banner {
    padding: var(--space-2);
  }

  .countdown-content {
    font-size: 11px;
    flex-direction: column;
    gap: var(--space-1);
  }

  .countdown-timer {
    font-size: 12px;
  }

  .countdown-close {
    right: var(--space-2);
    font-size: 20px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 32px;
  }

  .hero {
    min-height: 400px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .body-large {
    font-size: 16px;
  }

  .body-regular {
    font-size: 16px;
  }

  .header-content {
    flex-direction: column;
    gap: var(--space-3);
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
  }

  .stat-number {
    font-size: 36px;
  }

  .cta-section {
    padding: var(--space-7) 0;
  }
}

