/* base.css — LÍDER: reset + layout estrutural. Look & feel fica em theme.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { width: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #050208;
  color: #efe9e4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Canvas 3D fixo atrás de tudo */
#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
body.no-webgl #webgl { display: none; }

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  background: #050208;
  transition: opacity .6s ease, visibility .6s ease;
}
#loader.done { opacity: 0; visibility: hidden; }

/* Barra de progresso */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 50;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* Nav dots */
.nav-dots {
  position: fixed;
  right: clamp(0.75rem, 2.5vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Slides */
main#slides { position: relative; z-index: 10; }

.slide {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: clamp(4rem, 8vh, 6rem) clamp(1.25rem, 6vw, 6rem);
}

.slide-inner {
  width: min(1200px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.slide-content {
  max-width: 62ch;
  position: relative;
  text-shadow: 0 1px 14px rgba(5, 2, 8, 0.55);
}
/* Scrim de legibilidade: garante contraste do texto sobre o planeta brilhante */
.slide-content::before {
  content: '';
  position: absolute;
  inset: -2.5rem -3.5rem;
  z-index: -1;
  border-radius: 28px;
  background: radial-gradient(ellipse at 35% 45%,
    rgba(5, 2, 8, 0.62),
    rgba(5, 2, 8, 0.34) 55%,
    transparent 78%);
  pointer-events: none;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  margin-bottom: 1rem;
}

.slide-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.slide-hero .slide-title { font-size: clamp(2.6rem, 9vw, 6.5rem); }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.body-par {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 300;
}

/* Stats */
.slide-aside { display: flex; flex-direction: column; gap: 1rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.stat {
  padding: 1rem 1.1rem;
  border-radius: 14px;
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  display: inline-block;
}
.stat-unit { font-size: 0.85em; margin-left: 0.15rem; }
.stat-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.fact-card {
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Scroll hint */
.scroll-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

/* Responsivo */
@media (max-width: 860px) {
  .slide-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-dots { gap: 0.65rem; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .stat { padding: 0.75rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
