* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
  color: #1f2933;
  background: #f9fafb;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a5f, #2d8659);
  box-shadow: 0 5px 15px rgba(30, 58, 95, 0.3);
}

.brand-text-primary {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0d2b4d;
  letter-spacing: 0.02em;
}

.brand-text-secondary {
  font-size: 0.75rem;
  color: #6b7280;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: #6b7280;
}

nav a {
  transition: color 0.2s;
  cursor: pointer;
}

nav a:hover {
  color: #1e3a5f;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0d2b4d;
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* keep current decorative gradients on top, put the photo underneath */
  background-image:
    radial-gradient(circle at 20% 50%, rgba(45, 134, 89, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(244, 196, 48, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(13,43,77,0.60) 0%, rgba(30,58,95,0.60) 100%),
    url('images/sd_pic.jpg');
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.5) 0%, rgba(45, 134, 89, 0.3) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 0 40px;
  text-align: left;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
  color: #f4c430;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  line-height: 1.6;
}

.fade-up {
  opacity: 0;
  transform: translateY(50px);
}

/* Map Section */
.map-section {
  height: 600vh;
  position: relative;
  background: #000;
}

#map {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 1;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

/* All panels are fixed to the viewport while the section scrolls */
.map-panel {
  position: fixed;
  bottom: 12vh;
  left: 8%;
  max-width: 480px;
  color: white;
  z-index: 50;
  background: rgba(13, 43, 77, 0.24);
  backdrop-filter: blur(12px);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid rgba(244, 196, 48, 0.25);
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
  pointer-events: none;
  /* Hidden by default — JS shows/hides via GSAP */
}

.map-panel h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #f4c430;
}

.map-panel p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* Stat panel styles */
.map-stat-panel {
  text-align: center;
  padding: 44px 48px;
}

.stat-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  line-height: 1;
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: #f4c430;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stat-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* Sections */
.section {
  padding: 80px 40px;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.section-heading {
  margin-bottom: 40px;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.3;
}

.section-body {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 800px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.pill-card {
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(45, 134, 89, 0.05));
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pill-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: #1e3a5f;
  margin-bottom: 12px;
}

.pill-text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.7;
}

/* Charts Section */
.charts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.chart-wrapper {
  background: white;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 20px;
}

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.metric-card {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(45, 134, 89, 0.05));
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e3a5f 0%, #2d8659 50%, #f4c430 100%);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.metric-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 8px;
  line-height: 1;
}

.metric-label {
  font-size: 1rem;
  font-weight: 600;
  color: #2d8659;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.cost-savings {
  margin-top: 60px;
  text-align: center;
  padding: 48px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.08), rgba(244, 196, 48, 0.08));
  border-radius: 20px;
  border: 2px solid rgba(244, 196, 48, 0.3);
}

.savings-value {
  font-size: 5rem;
  font-weight: 800;
  color: #1e3a5f;
  margin-bottom: 12px;
  line-height: 1;
}

.savings-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d8659;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.savings-description {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Interactive Section */
.interactive-section {
  background: #f9fafb;
}

.interactive-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 40px;
  height: 600px;
}

.controls-panel {
  background: white;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.controls-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 8px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2933;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
  cursor: pointer;
}

.checkbox-item:hover {
  background: rgba(30, 58, 95, 0.05);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #1e3a5f;
}

.checkbox-item span {
  font-size: 0.9rem;
  color: #1f2933;
}

.control-select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: white;
  color: #1f2933;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.control-select:focus {
  outline: none;
  border-color: #1e3a5f;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1e3a5f, #2d8659);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.route-info {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(45, 134, 89, 0.05));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.route-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 16px;
}

.route-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.route-stat:last-child {
  border-bottom: none;
}

.route-stat-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.route-stat-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e3a5f;
}

#interactive-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Conclusion Section */
.conclusion-section {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.03), rgba(45, 134, 89, 0.03));
  text-align: center;
}

.conclusion-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto 40px;
}

.cta-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #1e3a5f, #2d8659);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
}

.btn-secondary {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: #1e3a5f;
  border: 2px solid #1e3a5f;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #1e3a5f;
  color: white;
}

/* Footer */
.footer {
  padding: 30px 40px;
  background: #0d2b4d;
  color: #cbd5f5;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .interactive-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .controls-panel {
    height: auto;
  }
  
  #interactive-map {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
  }

  nav {
    gap: 16px;
    font-size: 0.85rem;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .charts-container {
    grid-template-columns: 1fr;
  }

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

  .map-text {
    left: 5%;
    right: 5%;
    max-width: none;
    padding: 24px;
  }

  .map-text h2 {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 0 20px;
  }

  .savings-value {
    font-size: 3.5rem;
  }

  .savings-label {
    font-size: 1.2rem;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

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

  .btn-cta,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .metric-value {
    font-size: 2.5rem;
  }

  .savings-value {
    font-size: 2.8rem;
  }
}