/* ============================================
   Mars High Speed — Page-specific sections
   (homepage blocks that were previously inline
   in index.html; extracted so they can be
   cached and edited independently)
   ============================================ */

/* --- Hero actions --- */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- About stats --- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

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

.about-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow);
}

.about-stat-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- Service cards --- */
.service-card .card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.service-card:hover .card-image { transform: scale(1.08); }

/* 3D tilt needs the card to NOT clip, so the image
   wrap clips its own corners instead */
.card.tilt {
  overflow: visible;
  transform-style: preserve-3d;
}

.card.tilt .card-image-wrap { overflow: hidden; }

.card-stats {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.cstat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cstat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.cstat-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Vision --- */
.section-vision {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.vision-wrapper {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.vision-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 1.5rem auto 3rem;
  max-width: 700px;
}

.vision-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.vision-pillar {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.vision-pillar:hover {
  border-color: var(--border-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-glow);
}

.pillar-icon { margin-bottom: 0.75rem; }

.vision-pillar h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.vision-pillar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- CTA --- */
.cta-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
}

.cta-box {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px var(--accent-glow);
}

.cta-box h2 { margin-bottom: 0.75rem; }

.cta-box p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.demo-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Mars map --- */
.mars-map-section { background: var(--bg-secondary); }

.mars-map {
  position: relative;
  background: #1a0a00;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.15);
}

.mars-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.city-node { cursor: pointer; }
.city-node:focus { outline: none; }
.city-node:focus-visible .node-core { stroke: #fff; stroke-width: 2; }

.city-tooltip {
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.city-node:hover .city-tooltip { opacity: 1 !important; }

.map-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 107, 53, 0.3);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.active  { background: #ffaa00; box-shadow: 0 0 6px #ffaa00; }
.legend-dot.planned { background: #ff6b35; opacity: 0.7; }
.legend-dot.city    { background: #ff6b35; }

/* --- Header scrolled state --- */
.site-header.scrolled {
  background: rgba(4, 6, 12, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.site-header.scrolled .header-inner { height: 60px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .vision-pillars { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (max-width: 768px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
    gap: 1rem;
  }

  .about-stat-value { font-size: 1.8rem; }

  .vision-pillars { grid-template-columns: 1fr; gap: 1rem; }

  .cta-box { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .about-stat-value { font-size: 1.5rem; }
  .card-stats { gap: 1rem; }
  .cstat-value { font-size: 1.1rem; }
}
