/* ============================================================
   SaathiAI — STEM Explorer | Shared Styles
   Dark space theme, CSS-only animations, glassmorphism
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a1a;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Brand Colors --- */
:root {
  --brand-purple: #7c3aed;
  --brand-blue: #2563eb;
  --brand-amber: #f59e0b;
  --bg-deep: #0a0a1a;
  --bg-card: #111127;
  --bg-card-hover: #181840;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-bg: rgba(17, 17, 39, 0.7);
  --glass-border: rgba(124, 58, 237, 0.15);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
.brand-gradient {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue), var(--brand-amber));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* --- Glass Effects --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}
.glass-card {
  background: rgba(17, 17, 39, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
}

/* --- Navigation (Glassmorphism) --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-icon { font-size: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--brand-purple);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
  border-radius: 2px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}
.mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 32px;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}
.btn-primary-sm { padding: 10px 24px; font-size: 14px; border-radius: 10px; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-purple);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--brand-purple);
}

/* --- Form --- */
.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}
.form-input:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select.form-input option { background: #111127; color: var(--text-primary); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* --- Star Field --- */
.star-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.star-field .star {
  position: absolute;
  border-radius: 50%;
  background: white;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.stat-item {
  padding: 12px 24px;
  border-radius: 12px;
  text-align: center;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.stat-number { font-size: 24px; font-weight: 800; color: #fff; }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* --- Domain Colors --- */
.domain-physics { --domain-color: #2563eb; --domain-bg: rgba(37, 99, 235, 0.08); }
.domain-chemistry { --domain-color: #f59e0b; --domain-bg: rgba(245, 158, 11, 0.08); }
.domain-biology { --domain-color: #10b981; --domain-bg: rgba(16, 185, 129, 0.08); }
.domain-space { --domain-color: #7c3aed; --domain-bg: rgba(124, 58, 237, 0.08); }
.domain-earth { --domain-color: #06b6d4; --domain-bg: rgba(6, 182, 212, 0.08); }
.domain-math { --domain-color: #f472b6; --domain-bg: rgba(244, 114, 182, 0.08); }
.domain-card {
  background: var(--domain-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--domain-color);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.domain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 40px color-mix(in srgb, var(--domain-color) 20%, transparent);
  border-color: var(--domain-color);
}
.domain-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}
.domain-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--domain-color);
}
.domain-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.badge-coming {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--brand-purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.topic-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* --- Animation Scenes (Explore page) --- */
.scene-card {
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.scene-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
}
.scene-viewport {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
}
.scene-info { padding: 24px; }
.scene-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.scene-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* --- Page Header --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 16px; }
.page-header p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* --- Footer --- */
.footer {
  background: #060612;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Typing Cursor --- */
.typing-cursor {
  border-right: 3px solid var(--brand-purple);
  animation: typing-cursor 0.8s step-end infinite;
  padding-right: 2px;
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes typing-cursor {
  0%, 100% { border-color: var(--brand-purple); }
  50% { border-color: transparent; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--r)) rotate(0deg); }
  to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); }
}
@keyframes orbit-3d {
  from { transform: rotate3d(var(--ax), var(--ay), var(--az), 0deg) translateX(var(--r)) rotate3d(var(--ax), var(--ay), var(--az), 0deg); }
  to { transform: rotate3d(var(--ax), var(--ay), var(--az), 360deg) translateX(var(--r)) rotate3d(var(--ax), var(--ay), var(--az), -360deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 28px rgba(124, 58, 237, 0.6); }
}
@keyframes split {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--dx)); }
}
@keyframes helix-rotate {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes pinch {
  0%, 100% { border-radius: 50%; transform: scaleX(1); }
  50% { border-radius: 40%; transform: scaleX(0.5); }
}
@keyframes star-life {
  0% { background: #ffe066; box-shadow: 0 0 20px #ffe066; }
  33% { background: #ff6b35; box-shadow: 0 0 30px #ff6b35; }
  66% { background: #ff3333; box-shadow: 0 0 40px #ff3333; }
  100% { background: #1a0533; box-shadow: 0 0 50px var(--brand-purple); }
}
@keyframes spike-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes accretion {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes cell-divide {
  0% { transform: scaleX(1) translateX(0); opacity: 1; }
  40% { transform: scaleX(0.6) translateX(0); opacity: 1; }
  60% { transform: scaleX(0.4) translateX(0); opacity: 0.8; }
  80% { transform: scaleX(0.8) translateX(var(--dx)); opacity: 1; }
  100% { transform: scaleX(1) translateX(var(--dx)); opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes planet-orbit {
  from { transform: rotate(var(--start, 0deg)) translateX(var(--orbit-r)) rotate(calc(-1 * var(--start, 0deg))); }
  to { transform: rotate(calc(var(--start, 0deg) + 360deg)) translateX(var(--orbit-r)) rotate(calc(-1 * (var(--start, 0deg) + 360deg))); }
}
@keyframes dna-wave {
  0%, 100% { transform: translateZ(var(--tz)) scale(var(--s-min, 0.6)); opacity: 0.5; }
  50% { transform: translateZ(calc(var(--tz) * -1)) scale(var(--s-max, 1.2)); opacity: 1; }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Science Art Backgrounds --- */
.art-atom { background: radial-gradient(circle, #1a0a3e, #0c1630); }
.art-solar { background: linear-gradient(135deg, #0c0a1a, #0f1a3e); }
.art-cell { background: linear-gradient(135deg, #042f1a, #0a3d2a); }
.art-dna { background: linear-gradient(135deg, #0a1a3e, #1a0a3e); }
.art-space { background: radial-gradient(circle at 30% 40%, #1a0533, #0c0a1a); }
.art-earth { background: linear-gradient(135deg, #0a2a3e, #0c1630); }

/* Nucleus */
.nucleus {
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  background: radial-gradient(circle, var(--brand-amber), #ef4444);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.5);
}
.electron-shell {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.electron {
  position: absolute;
  width: 8px; height: 8px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 10px #60a5fa;
  top: calc(50% - 4px);
  left: calc(50% - 4px);
  animation: orbit var(--speed, 3s) linear infinite;
  --r: 40px;
}

/* Sun / Planets */
.sun {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px; height: 40px;
  background: radial-gradient(circle, #ffe066, var(--brand-amber));
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 0 80px rgba(245, 158, 11, 0.2);
}
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.planet {
  position: absolute;
  border-radius: 50%;
  top: calc(50% - var(--planet-size, 6px) / 2);
  left: calc(50% - var(--planet-size, 6px) / 2);
  width: var(--planet-size, 6px);
  height: var(--planet-size, 6px);
  animation: planet-orbit var(--orbit-speed, 8s) linear infinite;
  --orbit-r: var(--orbit-dist, 60px);
}

/* DNA Helix */
.helix-container {
  perspective: 400px;
  width: 80px;
  height: 200px;
  position: relative;
  margin: 0 auto;
}
.helix {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: helix-rotate 8s linear infinite;
}
.helix-strand {
  position: absolute;
  width: 6px;
  height: 100%;
  border-radius: 3px;
}
.helix-strand-left { left: 12px; background: linear-gradient(180deg, #60a5fa 0%, #a78bfa 25%, #60a5fa 50%, #a78bfa 75%, #60a5fa 100%); }
.helix-strand-right { right: 12px; background: linear-gradient(180deg, #f472b6 0%, var(--brand-amber) 25%, #f472b6 50%, var(--brand-amber) 75%, #f472b6 100%); }
.helix-rung {
  position: absolute;
  left: 18px;
  width: 38px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.base-pair-a { background: linear-gradient(90deg, #60a5fa, #f472b6); height: 3px; border-radius: 1px; }
.base-pair-t { background: linear-gradient(90deg, #a78bfa, var(--brand-amber)); height: 3px; border-radius: 1px; }

/* Cell */
.cell-membrane {
  position: absolute;
  top: 50%; left: 50%;
  width: 70%; height: 65%;
  border: 2px solid rgba(52, 211, 153, 0.3);
  border-radius: 45% 55% 50% 50%;
  transform: translate(-50%, -50%);
  background: rgba(16, 185, 129, 0.05);
}
.organelle {
  position: absolute;
  border-radius: 50%;
}

/* --- Utility --- */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.hidden { display: none; }
.inline-block { display: inline-block; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* Grid helpers */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 60px; }
  .page-header { padding: 100px 0 40px; }
  .stats-bar { gap: 8px; }
  .stat-item { padding: 10px 16px; }
  .stat-number { font-size: 20px; }
  .scene-viewport { height: 240px; }
}

/* --- Slider (Explore page) --- */
.speed-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 3px;
  outline: none;
}
.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--brand-purple);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}
.speed-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--brand-purple);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* --- Learn More Toggle --- */
.learn-more-toggle {
  color: var(--brand-purple);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
}
.learn-more-toggle .arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}
.learn-more-toggle.expanded .arrow {
  transform: rotate(180deg);
}
.learn-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.learn-more-content.expanded {
  max-height: 300px;
  margin-top: 12px;
}

/* --- Mission Card (About page) --- */
.mission-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 20px;
  padding: 48px;
}
@media (max-width: 600px) { .mission-card { padding: 24px; } }

/* --- Glow accents --- */
.glow-purple { box-shadow: 0 0 60px rgba(124, 58, 237, 0.15); }
.glow-blue { box-shadow: 0 0 60px rgba(37, 99, 235, 0.15); }
.glow-amber { box-shadow: 0 0 60px rgba(245, 158, 11, 0.15); }
