/* ============================================================
   SISTEMA SOLAR INTERATIVO — style.css
   Design: Deep Space Neo-Futurism
   Aesthetic: Cosmic dark mode + glassmorphism + 3D CSS planets
   ============================================================ */

/* ──────────────────────────────────────────────
   1. DESIGN TOKENS (CSS VARIABLES)
────────────────────────────────────────────── */
:root {
  /* Palette — Deep Space */
  --color-void:        #03020d;
  --color-deep-space:  #07051a;
  --color-nebula:      #0d0b2a;
  --color-cosmos:      #120f35;

  /* Accents */
  --color-star:        #e8d5ff;
  --color-aurora-blue: #4fc3f7;
  --color-aurora-teal: #26c6da;
  --color-nebula-pink: #ce93d8;
  --color-nebula-purple:#9c27b0;
  --color-gold:        #ffd54f;
  --color-solar:       #ff8f00;

  /* Glassmorphism */
  --glass-bg:          rgba(255,255,255,0.04);
  --glass-bg-hover:    rgba(255,255,255,0.08);
  --glass-border:      rgba(255,255,255,0.10);
  --glass-border-hover:rgba(79,195,247,0.40);
  --glass-blur:        14px;
  --glass-shadow:      0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  --glass-shadow-hover:0 16px 48px rgba(79,195,247,0.15), 0 0 0 1px rgba(79,195,247,0.3);

  /* Typography */
  --font-display:  'Orbitron', monospace;
  --font-body:     'Exo 2', sans-serif;

  /* Spacing rhythm (8px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Transitions */
  --t-fast:   0.2s ease-out;
  --t-base:   0.35s ease-out;
  --t-slow:   0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* Planet colors */
  --mercury-color: #b0b0b0;
  --venus-color:   #e8c97a;
  --earth-color:   #4fc3f7;
  --mars-color:    #ef6c45;
  --jupiter-color: #c8a97a;
  --saturn-color:  #e4c97a;
  --uranus-color:  #7de8e8;
  --neptune-color: #4169e1;
  --sun-color:     #ffa726;
}

/* ──────────────────────────────────────────────
   2. RESET & BASE
────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-void);
  color: var(--color-star);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ──────────────────────────────────────────────
   3. UTILITY CLASSES
────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ──────────────────────────────────────────────
   4. STAR FIELD BACKGROUND
────────────────────────────────────────────── */
.stars-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(76,41,122,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(15,60,120,0.20) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 80%, rgba(90,25,100,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #03020d 0%, #07051a 40%, #0d0b2a 100%);
  pointer-events: none;
}

/* Star dots injected via JS */
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  will-change: opacity;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite alternate ease-in-out;
}

@keyframes twinkle {
  from { opacity: var(--min-opacity, 0.1); transform: scale(1); }
  to   { opacity: var(--max-opacity, 0.9); transform: scale(1.3); }
}

/* Nebula dust layers */
.stars-container::before,
.stars-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: nebulaDrift 20s ease-in-out infinite alternate;
}
.stars-container::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #4a148c, transparent);
  top: -200px; left: -100px;
}
.stars-container::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #006064, transparent);
  bottom: -200px; right: -100px;
  animation-delay: -10s;
}

@keyframes nebulaDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 20px) scale(1.1); }
}

/* ──────────────────────────────────────────────
   5. LAYOUT — MAIN WRAPPER
────────────────────────────────────────────── */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: 80px; /* header height */
}

/* ──────────────────────────────────────────────
   6. HEADER
────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
  background: rgba(3,2,13,0.75);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--t-base), box-shadow var(--t-base);
}

.app-header.scrolled {
  background: rgba(3,2,13,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

/* Logo */
.header-logo .logo-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-star);
  transition: color var(--t-fast);
}

/* Logo image */
.logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  animation: logoOrbit 12s linear infinite;
  filter: drop-shadow(0 0 6px rgba(79,195,247,0.4));
  transition: filter var(--t-base);
}

.header-logo .logo-link:hover .logo-img {
  filter: drop-shadow(0 0 12px rgba(255,167,38,0.6));
}

@keyframes logoOrbit {
  0%   { filter: drop-shadow(0 0 4px rgba(79,195,247,0.5)); }
  33%  { filter: drop-shadow(0 0 8px rgba(156,39,176,0.5)); }
  66%  { filter: drop-shadow(0 0 8px rgba(255,167,38,0.5)); }
  100% { filter: drop-shadow(0 0 4px rgba(79,195,247,0.5)); }
}

/* Legacy rocket icon (fallback) */
.header-logo .logo-link i {
  font-size: 1.25rem;
  color: var(--color-aurora-blue);
  animation: rocketPulse 3s ease-in-out infinite;
}


/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(232,213,255,0.6);
  border: 1px solid transparent;
  transition: all var(--t-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-star);
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.nav-link.active {
  color: var(--color-aurora-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-aurora-blue), transparent);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.btn-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-star);
  font-size: 0.9rem;
  transition: all var(--t-fast);
  position: relative;
  backdrop-filter: blur(8px);
}

.btn-icon:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--color-aurora-blue);
  box-shadow: 0 0 20px rgba(79,195,247,0.2);
  transform: translateY(-1px);
}

/* Badge */
.badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7c4dff, #e040fb);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-void);
  transform: scale(0);
  transition: transform var(--t-fast);
}

.badge.visible { transform: scale(1); }

/* ──────────────────────────────────────────────
   7. BUTTONS
────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-base);
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #1565c0, #4fc3f7);
  color: #fff;
  border-color: rgba(79,195,247,0.3);
  box-shadow: 0 4px 20px rgba(79,195,247,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(79,195,247,0.40), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--color-star);
  border-color: var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-aurora-blue);
  border-color: rgba(79,195,247,0.3);
}

.btn-ghost:hover {
  background: rgba(79,195,247,0.1);
  border-color: var(--color-aurora-blue);
  box-shadow: 0 0 20px rgba(79,195,247,0.2);
}

.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 0.9rem; }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: 0.75rem; }

/* ──────────────────────────────────────────────
   8. HERO SECTION
────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--sp-20) 0;
  position: relative;
  overflow: hidden;
}

/* Radial glow behind hero */
.hero-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79,195,247,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-section > .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  width: 100%;
}

/* Hero acts as full-width flex */
.hero-section {
  display: block;
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

/* We'll do a simple two-column via flex on the inner wrapper */
.hero-section {
  display: flex;
  align-items: center;
  padding-left: var(--sp-16);
  padding-right: 0;
  gap: 0;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  padding-right: var(--sp-10);
  z-index: 2;
  position: relative;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
}

.title-line {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  color: rgba(232,213,255,0.7);
  font-weight: 400;
  letter-spacing: 0.05em;
  animation: fadeSlideUp 0.8s var(--t-slow) both;
}

.title-highlight {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #4fc3f7 0%, #ce93d8 50%, #ffd54f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.8s 0.15s var(--t-slow) both;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(79,195,247,0.3));
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(232,213,255,0.65);
  margin-bottom: var(--sp-8);
  line-height: 1.8;
  animation: fadeSlideUp 0.8s 0.3s var(--t-slow) both;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.45s var(--t-slow) both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────
   9. SOLAR SYSTEM PREVIEW (Hero 3D CSS)
────────────────────────────────────────────── */
.solar-system-preview {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ──────────────────────────────────────────────
   10. SECTION STYLES
────────────────────────────────────────────── */
.stats-section,
.planets-section,
.features-section,
.daily-fact-section,
.comparison-section,
.faq-section {
  position: relative;
  z-index: 1;
  padding: var(--sp-20) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-star);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

.section-title i {
  color: var(--color-aurora-blue);
  font-size: 0.85em;
}

.section-subtitle {
  font-size: 1rem;
  color: rgba(232,213,255,0.5);
}

/* Section dividers — cosmic glow lines */
.stats-section::before,
.features-section::before,
.comparison-section::before {
  content: '';
  display: block;
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-aurora-blue), transparent);
  margin: 0 auto var(--sp-20);
  opacity: 0.5;
}

/* ──────────────────────────────────────────────
   11. STATS SECTION
────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  backdrop-filter: blur(var(--glass-blur));
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,195,247,0.05), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-4px);
}

.stat-card:hover::after { opacity: 1; }

.stat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,195,247,0.15), rgba(206,147,216,0.1));
  border: 1px solid rgba(79,195,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  font-size: 1.4rem;
  color: var(--color-aurora-blue);
  transition: transform var(--t-base);
}

.stat-card:hover .stat-icon { transform: scale(1.1) rotate(5deg); }

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-star);
  line-height: 1;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(232,213,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ──────────────────────────────────────────────
   12. PLANET CARDS
────────────────────────────────────────────── */
.planets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.planet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  backdrop-filter: blur(var(--glass-blur));
  transition: all var(--t-base);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  will-change: transform;
}

.planet-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
}

.planet-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--glow-color, var(--glass-border-hover));
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px var(--glow-color-soft, rgba(79,195,247,0.15));
}

.planet-card:hover::before { opacity: 1; }

/* Planet-specific glow colors */
.planet-card[data-planet="mercury"] { --glow-color: rgba(176,176,176,0.5); --glow-color-soft: rgba(176,176,176,0.15); }
.planet-card[data-planet="venus"]   { --glow-color: rgba(232,201,122,0.5); --glow-color-soft: rgba(232,201,122,0.15); }
.planet-card[data-planet="earth"]   { --glow-color: rgba(79,195,247,0.5);  --glow-color-soft: rgba(79,195,247,0.15); }
.planet-card[data-planet="mars"]    { --glow-color: rgba(239,108,69,0.5);  --glow-color-soft: rgba(239,108,69,0.15); }
.planet-card[data-planet="jupiter"] { --glow-color: rgba(200,169,122,0.5); --glow-color-soft: rgba(200,169,122,0.15); }
.planet-card[data-planet="saturn"]  { --glow-color: rgba(228,201,122,0.5); --glow-color-soft: rgba(228,201,122,0.15); }
.planet-card[data-planet="uranus"]  { --glow-color: rgba(125,232,232,0.5); --glow-color-soft: rgba(125,232,232,0.15); }
.planet-card[data-planet="neptune"] { --glow-color: rgba(65,105,225,0.5);  --glow-color-soft: rgba(65,105,225,0.15); }

/* Featured planet (Earth) */
.planet-card.featured {
  border-color: rgba(79,195,247,0.3);
  background: rgba(79,195,247,0.06);
}

.planet-card.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(79,195,247,0.2), transparent 50%, rgba(206,147,216,0.1));
  z-index: 0;
  pointer-events: none;
}

/* Planet Visual Area */
.planet-visual {
  position: relative;
  width: 90px; height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

/* ──────────────────────────────────────────────
   13. PLANET SPHERES (3D CSS)
────────────────────────────────────────────── */
.planet-sphere {
  width: 70px; height: 70px;
  border-radius: 50%;
  position: relative;
  animation: planetRotate 8s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

@keyframes planetRotate {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

/* Shared sphere highlight */
.planet-sphere::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.35) 0%, transparent 55%);
  z-index: 2;
}

/* Shared sphere shadow */
.planet-sphere::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, rgba(0,0,0,0.6) 0%, transparent 55%);
  z-index: 3;
}

/* ── Mercury ── */
.mercury {
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.1) 0%, transparent 40%),
    linear-gradient(135deg, #9e9e9e 0%, #757575 40%, #616161 70%, #424242 100%);
  box-shadow: 0 0 20px rgba(120,120,120,0.3), inset -6px -6px 20px rgba(0,0,0,0.5);
}

/* ── Venus ── */
.venus {
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.15) 0%, transparent 40%),
    linear-gradient(135deg, #ffe082 0%, #ffca28 30%, #f9a825 60%, #e65100 100%);
  box-shadow: 0 0 25px rgba(255,193,7,0.35), inset -6px -6px 20px rgba(0,0,0,0.4);
}

/* ── Earth ── */
.earth {
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.2) 0%, transparent 40%),
    linear-gradient(135deg, #1565c0 0%, #0288d1 25%, #26a69a 50%, #2e7d32 70%, #0d47a1 100%);
  box-shadow: 0 0 30px rgba(79,195,247,0.4), inset -6px -6px 20px rgba(0,0,0,0.4);
}

/* ── Mars ── */
.mars {
  background:
    radial-gradient(circle at 40% 35%, rgba(255,200,150,0.2) 0%, transparent 40%),
    linear-gradient(135deg, #ef6c45 0%, #d84315 35%, #bf360c 65%, #8d2503 100%);
  box-shadow: 0 0 25px rgba(239,108,69,0.4), inset -6px -6px 20px rgba(0,0,0,0.5);
}

/* ── Jupiter ── */
.jupiter {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(200,120,60,0.4) 0px, rgba(200,120,60,0.4) 4px,
      rgba(180,100,40,0.2) 4px, rgba(180,100,40,0.2) 8px
    ),
    linear-gradient(135deg, #efcb8d 0%, #d4a96a 35%, #c0874d 65%, #a0693a 100%);
  box-shadow: 0 0 30px rgba(200,150,80,0.35), inset -6px -6px 20px rgba(0,0,0,0.4);
}

/* ── Saturn ── */
.saturn {
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(210,160,80,0.3) 0px, rgba(210,160,80,0.3) 5px,
      rgba(190,140,60,0.15) 5px, rgba(190,140,60,0.15) 10px
    ),
    linear-gradient(135deg, #ffe082 0%, #f9a825 35%, #e65100 65%, #bf360c 100%);
  box-shadow: 0 0 30px rgba(228,201,122,0.35), inset -6px -6px 20px rgba(0,0,0,0.4);
}

/* Saturn Rings */
.saturn-rings {
  position: absolute;
  width: 140%;
  height: 30%;
  border-radius: 50%;
  border: 6px solid rgba(228,201,122,0.4);
  border-top: 3px solid rgba(228,201,122,0.6);
  border-bottom: 3px solid rgba(228,201,122,0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(75deg);
  box-shadow:
    0 0 0 3px rgba(228,201,122,0.2),
    0 0 0 6px rgba(228,201,122,0.1);
  pointer-events: none;
  z-index: 1;
}

/* ── Uranus ── */
.uranus {
  background:
    radial-gradient(circle at 40% 35%, rgba(200,255,255,0.2) 0%, transparent 40%),
    linear-gradient(135deg, #80deea 0%, #26c6da 35%, #00838f 65%, #004d40 100%);
  box-shadow: 0 0 25px rgba(125,232,232,0.35), inset -6px -6px 20px rgba(0,0,0,0.4);
}

/* ── Neptune ── */
.neptune {
  background:
    radial-gradient(circle at 40% 35%, rgba(150,200,255,0.2) 0%, transparent 40%),
    linear-gradient(135deg, #5c6bc0 0%, #3949ab 35%, #283593 65%, #1a237e 100%);
  box-shadow: 0 0 25px rgba(65,105,225,0.4), inset -6px -6px 20px rgba(0,0,0,0.5);
}

/* ── Sun (mini for comparison) ── */
.sun-mini {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,200,0.5) 0%, transparent 50%),
    radial-gradient(circle, #fff176 0%, #ffd600 20%, #ff8f00 50%, #e65100 80%, #bf360c 100%);
  box-shadow:
    0 0 30px rgba(255,160,0,0.6),
    0 0 60px rgba(255,120,0,0.3),
    0 0 90px rgba(255,80,0,0.15);
  animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255,160,0,0.6), 0 0 60px rgba(255,120,0,0.3); }
  50%       { box-shadow: 0 0 50px rgba(255,160,0,0.8), 0 0 90px rgba(255,120,0,0.5); }
}

/* Planet hover orbit effect */
.planet-visual::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--t-base);
  animation: orbitSpin 6s linear infinite;
}

.planet-card:hover .planet-visual::after { opacity: 1; }

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Planet Info */
.planet-info { width: 100%; }

.planet-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-star);
  margin-bottom: var(--sp-1);
  letter-spacing: 0.04em;
}

.planet-tagline {
  font-size: 0.78rem;
  color: rgba(232,213,255,0.5);
  margin-bottom: var(--sp-3);
}

.planet-stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.planet-stats span {
  font-size: 0.72rem;
  color: rgba(232,213,255,0.45);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.planet-stats i { color: var(--color-aurora-blue); width: 12px; }

/* Planet Badge */
.planet-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: 3px var(--sp-3);
  border-radius: 20px;
  background: linear-gradient(135deg, #1565c0, #4fc3f7);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Favorite Button */
.btn-favorite {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(232,213,255,0.4);
  font-size: 0.85rem;
  transition: all var(--t-fast);
  z-index: 5;
}

.btn-favorite:hover {
  color: #ef5350;
  background: rgba(239,83,80,0.1);
  border-color: rgba(239,83,80,0.3);
  transform: scale(1.15);
}

.btn-favorite.active {
  color: #ef5350;
  background: rgba(239,83,80,0.15);
  border-color: rgba(239,83,80,0.4);
}

.btn-favorite.active i::before { content: "\f004"; font-weight: 900; }

/* ──────────────────────────────────────────────
   14. FEATURE CARDS
────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: var(--sp-8);
  backdrop-filter: blur(var(--glass-blur));
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  will-change: transform;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-aurora-blue), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79,195,247,0.12), rgba(206,147,216,0.08));
  border: 1px solid rgba(79,195,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-aurora-blue);
  transition: all var(--t-base);
  flex-shrink: 0;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(79,195,247,0.2), rgba(206,147,216,0.15));
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px rgba(79,195,247,0.3);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-star);
  letter-spacing: 0.04em;
}

.feature-description {
  font-size: 0.875rem;
  color: rgba(232,213,255,0.55);
  line-height: 1.7;
  flex: 1;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-aurora-blue);
  letter-spacing: 0.05em;
  transition: gap var(--t-fast);
}

.feature-card:hover .feature-link { gap: var(--sp-3); }

/* ──────────────────────────────────────────────
   15. DAILY FACT SECTION
────────────────────────────────────────────── */
.daily-fact-section {
  padding: var(--sp-12) 0;
}

.daily-fact-card {
  background: linear-gradient(135deg, rgba(79,195,247,0.07), rgba(206,147,216,0.05));
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: 24px;
  padding: var(--sp-10) var(--sp-12);
  backdrop-filter: blur(var(--glass-blur));
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.daily-fact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79,195,247,0.08), transparent 60%);
  pointer-events: none;
}

.fact-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-aurora-blue);
}

.fact-header i {
  font-size: 1.1rem;
  animation: bulbPulse 2s ease-in-out infinite;
}

@keyframes bulbPulse {
  0%, 100% { filter: drop-shadow(0 0 4px var(--color-gold)); color: var(--color-gold); }
  50%       { filter: drop-shadow(0 0 12px var(--color-gold)); color: var(--color-gold); }
}

.fact-content {
  font-size: 1.1rem;
  color: rgba(232,213,255,0.8);
  line-height: 1.9;
  max-width: 600px;
  font-style: italic;
  position: relative;
  z-index: 1;
  transition: opacity var(--t-base);
}

.fact-content.fading { opacity: 0; }

/* ──────────────────────────────────────────────
   16. SIZE COMPARISON
────────────────────────────────────────────── */

/* Wrapper externo — fornece a máscara de fade nas bordas */
.comparison-preview {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(var(--glass-blur));
  overflow: hidden; /* clips o fade mask */
}

/* Scroll container interno */
.comparison-preview .comparison-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* momentum iOS */
  scroll-behavior: smooth;
  padding: var(--sp-10);

  /* Scrollbar estilizada (desktop) */
  scrollbar-width: thin;
  scrollbar-color: rgba(79,195,247,0.3) transparent;
}

.comparison-preview .comparison-scroll::-webkit-scrollbar {
  height: 4px;
}
.comparison-preview .comparison-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.comparison-preview .comparison-scroll::-webkit-scrollbar-thumb {
  background: rgba(79,195,247,0.35);
  border-radius: 4px;
}

/* Fade esquerdo — indica que há conteúdo arrastável */
.comparison-preview::before,
.comparison-preview::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.comparison-preview::before {
  left: 0;
  background: linear-gradient(to right, var(--color-space) 0%, transparent 100%);
  border-radius: 24px 0 0 24px;
  opacity: 0; /* começa invisível, JS pode ativar se necessário */
}

.comparison-preview::after {
  right: 0;
  background: linear-gradient(to left, var(--color-space) 0%, transparent 100%);
  border-radius: 0 24px 24px 0;
}

/* Linha de planetas */
.comparison-planets {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--sp-8);
  min-width: 800px; /* garante scroll em telas estreitas */
  padding: var(--sp-6) var(--sp-4);
}

/* Item individual */
.comparison-planet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  transition: transform var(--t-base);
  cursor: default;
  scroll-snap-align: center; /* snap opcional */
}

.comparison-planet:hover { transform: translateY(-8px) scale(1.1); }

/* Esfera do comparador */
.comparison-planet .planet-sphere {
  width: var(--size);
  height: var(--size);
  min-width: 3px; min-height: 3px;
  animation: none !important;
}

/* Reativa apenas spinSurface nas esferas do comparador */
.comparison-planet .planet-sphere[data-planet]::after {
  animation-name: spinSurface;
}

/* Label */
.comparison-planet span {
  font-size: 0.7rem;
  color: rgba(232,213,255,0.5);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── Indicador de scroll no mobile ── */
.comparison-scroll-hint {
  display: none; /* visível apenas no mobile via responsive */
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0 var(--sp-4);
  font-size: 0.72rem;
  color: rgba(79,195,247,0.55);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.comparison-scroll-hint i {
  animation: swipeHint 1.8s ease-in-out infinite;
}

@keyframes swipeHint {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50%       { transform: translateX(6px); opacity: 1; }
}

/* Nota de rodapé */
.comparison-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
  font-size: 0.85rem;
  color: rgba(232,213,255,0.5);
}

.comparison-note i { color: var(--color-aurora-blue); }


/* ──────────────────────────────────────────────
   17. FAQ SECTION
────────────────────────────────────────────── */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--t-base);
  backdrop-filter: blur(8px);
}

.faq-item:hover { border-color: var(--glass-border-hover); }
.faq-item.open  { border-color: rgba(79,195,247,0.25); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-star);
  text-align: left;
  gap: var(--sp-4);
  transition: color var(--t-fast);
}

.faq-question:hover { color: var(--color-aurora-blue); }

.faq-icon {
  color: var(--color-aurora-blue);
  transition: transform var(--t-base);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  padding: 0 var(--sp-6);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-base);
}

.faq-answer.open {
  max-height: 300px;
  padding-bottom: var(--sp-5);
}

.faq-answer p {
  font-size: 0.9rem;
  color: rgba(232,213,255,0.6);
  line-height: 1.9;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--sp-4);
}

/* ──────────────────────────────────────────────
   18. SEARCH MODAL
────────────────────────────────────────────── */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  background: rgba(3,2,13,0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.search-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.search-modal[hidden] { display: flex !important; }

.search-modal-content {
  width: 100%;
  max-width: 640px;
  background: rgba(10,8,28,0.95);
  border: 1px solid rgba(79,195,247,0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 40px rgba(79,195,247,0.1);
  transform: translateY(-20px) scale(0.97);
  transition: transform var(--t-slow);
}

.search-modal:not([hidden]) .search-modal-content {
  transform: translateY(0) scale(1);
}

.search-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.search-header i { color: var(--color-aurora-blue); font-size: 1rem; }

#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-star);
  caret-color: var(--color-aurora-blue);
}

#search-input::placeholder { color: rgba(232,213,255,0.3); }

.search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: var(--sp-3);
}

.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: rgba(79,195,247,0.3); border-radius: 2px; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 10px;
  transition: background var(--t-fast);
  cursor: pointer;
}

.search-result-item:hover { background: rgba(79,195,247,0.08); }

.search-result-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255,255,255,0.05);
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-star);
}

.search-result-sub {
  font-size: 0.75rem;
  color: rgba(232,213,255,0.4);
}

.search-empty {
  text-align: center;
  padding: var(--sp-10);
  color: rgba(232,213,255,0.4);
  font-size: 0.9rem;
}

.search-empty i { display: block; font-size: 2rem; margin-bottom: var(--sp-3); opacity: 0.4; }

/* ──────────────────────────────────────────────
   19. TOAST NOTIFICATIONS
────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 90px;
  right: var(--sp-6);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 12px;
  background: rgba(10,8,28,0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  font-size: 0.85rem;
  color: var(--color-star);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  min-width: 260px;
  max-width: 360px;
  pointer-events: auto;
  animation: toastIn 0.4s var(--t-slow) both;
}

.toast.removing { animation: toastOut 0.3s ease-in forwards; }

@keyframes toastIn {
  from { transform: translateX(120%) scale(0.9); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to   { transform: translateX(120%) scale(0.9); opacity: 0; }
}

.toast i {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.toast.success i { color: #66bb6a; }
.toast.error i   { color: #ef5350; }
.toast.info i    { color: var(--color-aurora-blue); }

/* ──────────────────────────────────────────────
   20. FOOTER
────────────────────────────────────────────── */
.app-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: var(--sp-16) 0 var(--sp-10);
  background: linear-gradient(180deg, transparent, rgba(3,2,13,0.8));
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-star);
  margin-bottom: var(--sp-4);
}

.footer-logo i {
  color: var(--color-aurora-blue);
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(232,213,255,0.4);
  max-width: 240px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: var(--sp-12);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-aurora-blue);
  margin-bottom: var(--sp-1);
}

.footer-column a {
  font-size: 0.875rem;
  color: rgba(232,213,255,0.45);
  transition: color var(--t-fast);
}

.footer-column a:hover { color: var(--color-star); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(232,213,255,0.3);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer-bottom i { color: #ef5350; margin: 0 2px; }
.b20-link { color: var(--color-aurora-blue); transition: color var(--t-fast); }
.b20-link:hover { color: var(--color-star); }
.footer-copyright { opacity: 0.6; }

/* ─── Footer Share Column ─── */
.footer-share {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 200px;
}

.footer-share h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-aurora-blue);
}

.footer-share p {
  font-size: 0.8rem;
  color: rgba(232,213,255,0.4);
  line-height: 1.5;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  color: rgba(232,213,255,0.7);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  font-family: var(--font-body);
  width: 100%;
  text-align: left;
}

.share-btn i { font-size: 0.95rem; flex-shrink: 0; }

.share-btn.whatsapp:hover  { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.3); color: #25d366; }
.share-btn.twitter:hover   { background: rgba(29,161,242,0.12); border-color: rgba(29,161,242,0.3); color: #1da1f2; }
.share-btn.facebook:hover  { background: rgba(24,119,242,0.12); border-color: rgba(24,119,242,0.3); color: #1877f2; }
.share-btn.copy-link:hover { background: rgba(79,195,247,0.12); border-color: rgba(79,195,247,0.3); color: var(--color-aurora-blue); }

.share-btn.whatsapp  i { color: #25d366; }
.share-btn.twitter   i { color: #1da1f2; }
.share-btn.facebook  i { color: #1877f2; }
.share-btn.copy-link i { color: var(--color-aurora-blue); }


/* ──────────────────────────────────────────────
   21. BOTTOM NAVIGATION (mobile base)
────────────────────────────────────────────── */
/* ──────────────────────────────────────────────
   21. BOTTOM NAVIGATION — premium glassmorphism
────────────────────────────────────────────── */
.bottom-nav {
  display: none; /* shown via responsive.css */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  height: 72px;

  /* Glassmorphism com toque de nebulosa */
  background:
    linear-gradient(180deg,
      rgba(10,5,30,0.82) 0%,
      rgba(5,2,18,0.96) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);

  /* Borda superior luminosa */
  border-top: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 -1px 0 rgba(79,195,247,0.18),         /* linha neon sutil */
    0 -8px 32px rgba(0,0,0,0.55),           /* sombra alta */
    inset 0 1px 0 rgba(255,255,255,0.04);   /* reflexo interno */

  justify-content: space-around;
  align-items: center;
  padding: 0 var(--sp-2);
  padding-bottom: env(safe-area-inset-bottom, 0px); /* notch safety */
}

/* Barra neon no topo do nav */
.bottom-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(79,195,247,0.6) 30%,
    rgba(156,39,176,0.5) 70%,
    transparent);
  animation: navBarGlow 4s ease-in-out infinite;
}

@keyframes navBarGlow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ── Item base ── */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--sp-1) var(--sp-2);
  border-radius: 16px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232,213,255,0.38);
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  flex: 1;
  position: relative;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Ícone base */
.nav-item i {
  font-size: 1.15rem;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease;
  will-change: transform;
}

/* Texto */
.nav-item span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* HOVER — lift + ícone cresce */
.nav-item:hover {
  color: rgba(232,213,255,0.7);
  transform: translateY(-2px);
}

.nav-item:hover i {
  transform: scale(1.15) translateY(-1px);
}

.nav-item:hover span {
  opacity: 0.7;
  transform: translateY(0);
}

/* ACTIVE — glowing pill background + texto visível */
.nav-item.active {
  color: var(--color-aurora-blue);
}

.nav-item.active i {
  color: var(--color-aurora-blue);
  transform: scale(1.2) translateY(-2px);
  filter: drop-shadow(0 0 6px rgba(79,195,247,0.8));
}

.nav-item.active span {
  opacity: 1;
  transform: translateY(0);
  color: var(--color-aurora-blue);
}

/* Pílula iluminada no item ativo */
.nav-item.active::before {
  content: '';
  position: absolute;
  inset: -6px 2px;
  border-radius: 12px;
  background: rgba(79,195,247,0.1);
  border: 1px solid rgba(79,195,247,0.2);
  box-shadow: 0 0 12px rgba(79,195,247,0.15);
  animation: activePillPulse 3s ease-in-out infinite;
}

@keyframes activePillPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(79,195,247,0.12); }
  50%       { box-shadow: 0 0 18px rgba(79,195,247,0.25); }
}

/* Dot indicador abaixo do ícone ativo */
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-aurora-blue);
  box-shadow: 0 0 6px rgba(79,195,247,0.9);
}

/* ── FAB central (Quiz) ── */
.nav-item-fab {
  width: 54px; height: 54px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #1a237e 0%, #1565c0 40%, #4fc3f7 100%);
  color: #fff !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  position: relative;
  margin-top: -16px; /* sobe acima da barra */

  /* Sombra neon */
  box-shadow:
    0 4px 20px rgba(79,195,247,0.45),
    0 0 0 2px rgba(79,195,247,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2);

  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  animation: fabPulse 3s ease-in-out infinite;
}

@keyframes fabPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(79,195,247,0.45), 0 0 0 2px rgba(79,195,247,0.15);
  }
  50% {
    box-shadow: 0 6px 28px rgba(79,195,247,0.65), 0 0 0 5px rgba(79,195,247,0.08);
  }
}

.nav-item-fab::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.25), transparent 60%);
}

.nav-item-fab:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow:
    0 8px 32px rgba(79,195,247,0.6),
    0 0 0 4px rgba(79,195,247,0.2);
  animation: none;
}

.nav-item-fab i {
  font-size: 1.35rem !important;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Remove dot/pill do FAB */
.nav-item-fab::after { display: none !important; }

/* Tap feedback em mobile */
.nav-item:active { transform: scale(0.93); }
.nav-item-fab:active { transform: scale(0.92) translateY(-12px); }


/* ──────────────────────────────────────────────
   22. SCROLL ANIMATIONS (JS adds .animate-in)
────────────────────────────────────────────── */
.stat-card,
.planet-card,
.feature-card,
.faq-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--t-slow), transform 0.6s var(--t-slow);
}

.stat-card.animate-in,
.planet-card.animate-in,
.feature-card.animate-in,
.faq-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ──────────────────────────────────────────────
   23. ACCESSIBILITY — REDUCED MOTION
────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .star { animation: none; opacity: 0.5; }
  .planet-sphere { animation: none; }
}

/* ──────────────────────────────────────────────
   24. CUSTOM SCROLLBAR
────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(3,2,13,0.8); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1565c0, #4fc3f7);
  border-radius: 3px;
}

/* Focus visible outline */
:focus-visible {
  outline: 2px solid var(--color-aurora-blue);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(79,195,247,0.3);
  color: var(--color-star);
}
