*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Céu diurno — azul-aço amanteigado, paleta Beyond Bits */
  --bg: #e8e8e6;
  --black: #0a0a0a;
  --white: #f5f5f3;
  --copper: #b87333;
  --font-hero: 'Bebas Neue', cursive;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Rajdhani', sans-serif;
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--black);
  overflow-x: hidden;
  transition: background 1.2s ease, color 0.6s ease;
}

/* ══ CÉU — gradiente atmosférico sobre o --bg ══
   O body.background JÁ É a cor do céu via --bg.
   O ::after só adiciona a camada de profundidade/gradiente. */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Modo claro: sem overlay — o --bg já é o fundo */
  background: none;
}

body.dark-mode::after {
  /* Camada de profundidade noturna: brilho estelar suave */
  background:
    radial-gradient(ellipse 60% 50% at 70% 15%, rgba(30,40,120,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(10,15,60,0.35) 0%, transparent 60%);
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.45;
}

/* ══════════════════════════════
   DARK MODE
══════════════════════════════ */
body.dark-mode {
  /* Céu noturno — roxo-espacial, igual ao space-bg */
  --bg: #080818;
  --black: #e8e8e6;
  --white: #07071a;
  --copper: #d4944a;
}

body.dark-mode .hero-gradient {
  background: linear-gradient(
    100deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 88%, transparent) 28%,
    color-mix(in srgb, var(--bg) 25%, transparent) 54%,
    transparent 72%
  );
}

body.dark-mode .hero-sub p {
  color: rgba(232,232,230,0.5);
}

body.dark-mode .data-tag {
  color: rgba(232,232,230,0.55);
  background: rgba(14,14,16,0.75);
}

body.dark-mode .scroll-hint-text {
  color: rgba(232,232,230,0.3);
}
body.dark-mode .scroll-arrow {
  border-right-color: rgba(232,232,230,0.25);
  border-bottom-color: rgba(232,232,230,0.25);
}

body.dark-mode .marquee-section {
  background: #1a1a1e;
  border-top-color: rgba(232,232,230,0.06);
  border-bottom-color: rgba(232,232,230,0.06);
}
body.dark-mode .marquee-item {
  color: rgba(255,255,255,0.08);
}

body.dark-mode .stat-item {
  border-left-color: rgba(232,232,230,0.08);
}
body.dark-mode .stat-label {
  color: rgba(232,232,230,0.35);
}

body.dark-mode .btn-primary {
  background: var(--black);
  color: #0e0e10;
}
body.dark-mode .btn-ghost {
  color: var(--black);
  border-color: rgba(232,232,230,0.2);
}
body.dark-mode .btn-ghost:hover {
  border-color: var(--black);
}

body.dark-mode .progress-bar {
  background: linear-gradient(to right, var(--copper), var(--black));
}

body.dark-mode footer {
  border-top-color: rgba(232,232,230,0.08);
}
body.dark-mode .footer-text {
  color: rgba(232,232,230,0.25);
}

body.dark-mode .circuit-path:nth-child(2) {
  stroke: #555;
}

/* Hero images — crossfade suave ao trocar de tema */
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 48px;
  z-index: 200;
}
.nav-logo {
  font-family: var(--font-hero);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--black);
  opacity: 0;
  animation: fadeDown 0.8s ease 0.3s forwards;
  transition: color 0.6s ease;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  animation: fadeDown 0.8s ease 0.5s forwards;
}
.nav-links {
  display: flex; gap: 28px; list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-decoration: none;
  color: var(--black);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.3s, color 0.6s ease;
}
.nav-links a:hover { opacity: 1; }

/* ── THEME TOGGLE ── */
.theme-toggle {
  width: 34px; height: 34px;
  border: 1px solid rgba(10,10,10,0.15);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--copper);
  transform: scale(1.08);
}
.theme-toggle svg {
  width: 14px; height: 14px;
  color: var(--black);
  position: absolute;
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.6s ease;
}
.icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.dark-mode .theme-toggle {
  border-color: rgba(232,232,230,0.15);
}
body.dark-mode .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
body.dark-mode .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed; left: 0; top: 0;
  height: 2px;
  background: linear-gradient(to right, var(--copper), var(--black));
  z-index: 300; width: 0%;
  transition: width 0.1s linear;
}

/* ══════════════════════
   HERO — altura fixa 100vh
══════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#img1 { opacity: 1; z-index: 1; }
#img2 { opacity: 0; z-index: 2; }

/* Gradiente lateral para texto ficar legível */
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 88%, transparent) 28%,
    color-mix(in srgb, var(--bg) 25%, transparent) 54%,
    transparent 72%
  );
  z-index: 3;
  pointer-events: none;
  transition: background 1.2s ease;
}

/* Circuit SVG */
.circuit-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 4; pointer-events: none;
  opacity: 0.18;
}
.circuit-path {
  fill: none; stroke: var(--copper); stroke-width: 0.6;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: drawLine 2s ease forwards;
  transition: stroke 0.6s ease;
}
.circuit-path:nth-child(1) { animation-delay: 1.2s; }
.circuit-path:nth-child(2) { animation-delay: 1.6s; stroke: #666; }
.circuit-dot {
  fill: var(--copper); opacity: 0;
  animation: fadeIn 0.3s ease forwards, pulse 3s ease infinite 0.3s;
  transition: fill 0.6s ease;
}
.circuit-dot:nth-child(3) { animation-delay: 2s, 2s; }
.circuit-dot:nth-child(4) { animation-delay: 2.3s, 2.3s; }

/* ── HERO TEXT ── */
.hero-content {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 7vw;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  animation: slideUp 0.7s ease 0.7s forwards;
  transition: color 0.6s ease;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--copper);
  transition: background 0.6s ease;
}

.hero-title {
  font-family: var(--font-hero);
  line-height: 0.88;
  color: var(--black);
  transition: color 0.6s ease;
  opacity: 0; /* escondido até a animação de pixels terminar */
}
.hero-title.revealed {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: block;
}
.hero-title .line:nth-child(1) { font-size: clamp(110px, 18vw, 260px); }
.hero-title .line:nth-child(2) { font-size: clamp(110px, 18vw, 260px); }

/* ── PIXEL CANVAS ── */
.title-wrapper {
  position: relative;
}
#pixelCanvas {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-sub {
  margin-top: 28px;
  max-width: 340px;
  opacity: 0;
  animation: slideUp 0.7s ease 1.1s forwards;
}
.hero-sub p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(10,10,10,0.55);
  letter-spacing: 0.03em;
  transition: color 0.6s ease;
}

.hero-cta {
  display: flex; gap: 16px; align-items: center;
  margin-top: 36px;
  opacity: 0;
  animation: slideUp 0.7s ease 1.25s forwards;
  pointer-events: all;
}
.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: var(--black);
  color: var(--white);
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: background 0.6s ease, color 0.6s ease;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--copper);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.btn-primary:hover::after { transform: scaleX(1); }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(10,10,10,0.25);
  cursor: pointer;
  transition: border-color 0.3s, color 0.6s ease;
}
.btn-ghost:hover { border-color: var(--black); }

/* ── DATA TAGS ── */
.data-tags {
  position: absolute;
  right: 4vw; top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex; flex-direction: column; gap: 20px;
}
.data-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(10,10,10,0.45);
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  background: rgba(232,232,230,0.75);
  padding: 6px 12px;
  border-left: 2px solid var(--copper);
  backdrop-filter: blur(4px);
  transition: color 0.6s ease, background 0.6s ease, border-color 0.6s ease;
}
.data-tag:nth-child(1) { animation-delay: 1.4s; }
.data-tag:nth-child(2) { animation-delay: 1.6s; }
.data-tag:nth-child(3) { animation-delay: 1.8s; }

.dot-pulse {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--copper); flex-shrink: 0;
  animation: pulse 2s ease infinite;
  transition: background 0.6s ease;
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0;
  animation: fadeIn 0.6s ease 2s forwards;
}
.scroll-hint-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.3);
  transition: color 0.6s ease;
}
.scroll-arrow {
  width: 14px; height: 14px;
  border-right: 1px solid rgba(10,10,10,0.25);
  border-bottom: 1px solid rgba(10,10,10,0.25);
  transform: rotate(45deg);
  animation: arrowBounce 1.6s ease infinite;
  transition: border-color 0.6s ease;
}

/* ═══════════════════════
   SEÇÕES ABAIXO DO HERO
═══════════════════════ */
.below-hero {
  background: transparent;
  position: relative; z-index: 10;
}

.marquee-section {
  overflow: hidden;
  border-top: 1px solid rgba(10,10,10,0.1);
  border-bottom: 1px solid rgba(10,10,10,0.1);
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 36px 0;
  transition: background 1.2s ease, border-color 0.6s ease;
}
body.dark-mode .marquee-section {
  background: rgba(4,4,12,0.88);
  border-top-color: rgba(232,232,230,0.06);
  border-bottom-color: rgba(232,232,230,0.06);
}
.marquee-track {
  display: flex;
  animation: marquee 18s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-hero);
  font-size: 1.3rem; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.12);
  padding: 0 40px; white-space: nowrap;
  display: flex; align-items: center; gap: 40px;
  transition: color 0.6s ease;
}
.marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--copper); display: inline-block; transition: background 0.6s ease; }

.stats-section {
  display: grid; grid-template-columns: repeat(4,1fr);
  padding: 100px 7vw; gap: 60px;
  background: rgba(232,232,230,0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 1.2s ease;
}
body.dark-mode .stats-section {
  background: rgba(7,7,26,0.55);
}
.stat-item {
  border-left: 1px solid rgba(10,10,10,0.1);
  padding-left: 28px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.6s ease;
}
.stat-item.visible { opacity: 1; transform: none; }
.stat-num {
  font-family: var(--font-hero); font-size: 3.5rem;
  color: var(--black); line-height: 1;
  transition: color 0.6s ease;
}
.stat-num sup { font-size: 1.5rem; color: var(--copper); transition: color 0.6s ease; }
.stat-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(10,10,10,0.4); margin-top: 8px;
  transition: color 0.6s ease;
}

/* ═══════════════════════════════════════
   BENEFITS — 3D Cards + Robotic Hand
═══════════════════════════════════════ */
.benefits-section {
  padding: 100px 0 0;
  position: relative;
  overflow: hidden;
}

.benefits-header {
  text-align: center;
  padding: 0 7vw 60px;
}
.benefits-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s ease, transform 0.7s ease, color 0.6s ease;
}
.benefits-section.visible .benefits-eyebrow {
  opacity: 1; transform: none;
}
.line-accent {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--copper);
  transition: background 0.6s ease;
}
.benefits-title {
  font-family: var(--font-hero);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.92;
  color: var(--black);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s, color 0.6s ease;
}
.benefits-section.visible .benefits-title {
  opacity: 1; transform: none;
}

/* ── Hand Stage ── */
.hand-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 5vw;
  min-height: 700px;
}

/* ── Floating Cards Container ── */
.floating-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 10;
  perspective: 1200px;
}

/* ── Card 3D ── */
.card-3d {
  width: 280px;
  perspective: 800px;
  opacity: 0;
  transform: translateY(60px) rotateX(15deg);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

.benefits-section.visible .card-3d {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}
/* After reveal, remove transform transition so JS sphere controls smoothly */
.benefits-section.visible .card-3d.js-controlled {
  transition: opacity 0.6s ease;
}
.benefits-section.visible .card-3d:nth-child(1) {
  transition-delay: 0.2s;
}
.benefits-section.visible .card-3d:nth-child(2) {
  transition-delay: 0.35s;
}
.benefits-section.visible .card-3d:nth-child(3) {
  transition-delay: 0.5s;
}

/* Card center — levemente elevado */
.card-3d--center {
  margin-top: -20px;
}

.card-3d-inner {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: 16px;
  border: 1px solid rgba(10,10,10,0.08);
  background: rgba(232,232,230,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.15s ease-out, box-shadow 0.3s ease,
              background 0.6s ease, border-color 0.6s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.card-3d:hover .card-3d-inner {
  box-shadow:
    0 25px 50px rgba(0,0,0,0.12),
    0 0 80px rgba(184,115,51,0.08);
}

body.dark-mode .card-3d-inner {
  background: rgba(28,28,32,0.7);
  border-color: rgba(232,232,230,0.06);
}
body.dark-mode .card-3d:hover .card-3d-inner {
  box-shadow:
    0 25px 50px rgba(0,0,0,0.4),
    0 0 80px rgba(212,148,74,0.12);
}

/* Glow interno sutil */
.card-glow {
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-3d:hover .card-glow { opacity: 1; }

.card-index {
  font-family: var(--font-hero);
  font-size: 3rem;
  color: rgba(10,10,10,0.04);
  line-height: 1;
  position: absolute;
  top: 16px; right: 24px;
  transition: color 0.6s ease;
}
body.dark-mode .card-index { color: rgba(232,232,230,0.04); }

.card-icon {
  width: 36px; height: 36px;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 100%; height: 100%;
  color: var(--copper);
  transition: color 0.6s ease;
}

.card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 10px;
  transition: color 0.6s ease;
}

.card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(10,10,10,0.5);
  margin-bottom: 24px;
  transition: color 0.6s ease;
}
body.dark-mode .card-desc { color: rgba(232,232,230,0.45); }

.card-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(10,10,10,0.06);
  transition: border-color 0.6s ease;
}
body.dark-mode .card-stat { border-top-color: rgba(232,232,230,0.06); }

.card-stat-num {
  font-family: var(--font-hero);
  font-size: 1.8rem;
  color: var(--copper);
  line-height: 1;
  transition: color 0.6s ease;
}
.card-stat-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.3);
  transition: color 0.6s ease;
}
body.dark-mode .card-stat-label { color: rgba(232,232,230,0.25); }

/* ── Reflexo sob os cards ── */
.cards-reflection {
  width: 70%;
  max-width: 700px;
  height: 120px;
  margin-top: -30px;
  background: radial-gradient(
    ellipse at center,
    rgba(184,115,51,0.1) 0%,
    rgba(184,115,51,0.03) 50%,
    transparent 80%
  );
  filter: blur(30px);
  z-index: 5;
  transition: background 0.6s ease;
}
body.dark-mode .cards-reflection {
  background: radial-gradient(
    ellipse at center,
    rgba(212,148,74,0.15) 0%,
    rgba(212,148,74,0.04) 50%,
    transparent 80%
  );
}

/* ── Esfera 3D Interativa ── */
.sphere-wrapper {
  position: relative;
  z-index: 3;
  margin-top: -40px;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(60px) scale(0.85);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1) 0.5s,
              transform 1s cubic-bezier(0.16,1,0.3,1) 0.5s;
  cursor: grab;
}
.sphere-wrapper:active { cursor: grabbing; }

.benefits-section.visible .sphere-wrapper {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#sphereCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sphere-hint {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.25);
  display: flex; align-items: center; gap: 6px;
  transition: opacity 0.6s ease, color 0.6s ease;
  pointer-events: none;
}
body.dark-mode .sphere-hint { color: rgba(232,232,230,0.2); }
.sphere-hint.hidden { opacity: 0; }
.sphere-hint-icon {
  font-size: 0.8rem;
  display: inline-block;
  animation: hintSpin 3s ease-in-out infinite;
}
@keyframes hintSpin {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

footer {
  padding: 48px 7vw;
  border-top: 1px solid rgba(10,10,10,0.1);
  display: flex; justify-content: space-between; align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.6s ease, background 1.2s ease;
}
.footer-logo {
  font-family: var(--font-hero); font-size: 1.2rem; letter-spacing: 0.15em;
  transition: color 0.6s ease;
}
.footer-text {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.15em; color: rgba(10,10,10,0.3);
  transition: color 0.6s ease;
}

/* ── KEYFRAMES ── */
@keyframes fadeDown   { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideUp    { from{opacity:0;transform:translateY(20px)}  to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn     { from{opacity:0} to{opacity:1} }
@keyframes drawLine   { to{stroke-dashoffset:0} }
@keyframes pulse      { 0%,100%{opacity:0.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.5)} }
@keyframes marquee    { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes arrowBounce{ 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(5px)} }

/* ══════════════════════════════════════════
   SPACE BACKGROUND + EARTH GLOBE
   Fica atrás da benefits-section inteira
══════════════════════════════════════════ */
.benefits-section {
  position: relative;
}

.space-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Sempre espaço profundo — independente do tema */
  background: radial-gradient(ellipse at 60% 40%, #080818 0%, #040410 60%, #020208 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.benefits-section.visible .space-bg {
  opacity: 1;
}

/* Estrelas via box-shadow no pseudo-elemento */
.stars-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.stars-overlay::before,
.stars-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 32%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 52% 5%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 18%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 28%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 12%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 42%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 18% 55%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 33% 68%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 47% 48%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 72%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 58%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 45%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 12% 80%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 28% 88%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 92%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 85%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 95%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 78%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 88%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 8% 96%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 22% 22%, rgba(184,115,51,0.4) 0%, transparent 100%),
    radial-gradient(2px 2px at 68% 38%, rgba(184,115,51,0.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 3% 62%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 22%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 75%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 58% 52%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 82%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 4%, rgba(255,255,255,0.8) 0%, transparent 100%);
  animation: starTwinkle 6s ease-in-out infinite alternate;
}
.stars-overlay::after {
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 45%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 18%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 62% 60%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 35%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 93% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 7% 72%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 55%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 30%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 65%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 83% 15%, rgba(200,180,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 27% 38%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 75%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,0.6) 0%, transparent 100%);
  animation-delay: 3s;
  animation-direction: alternate-reverse;
}
/* Stars só visíveis no dark mode */
body:not(.dark-mode) .stars-overlay::before,
body:not(.dark-mode) .stars-overlay::after {
  display: none;
}

@keyframes starTwinkle {
  0%   { opacity: 0.6; }
  50%  { opacity: 1;   }
  100% { opacity: 0.7; }
}

/* Globo terrestre — posicionado à direita, atrás dos cards */
#earthGlobeViz {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}
#earthGlobeViz canvas {
  border-radius: 50%;
}

/* Nebulosa sutil para dar profundidade */
.space-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Luz solar / nuvens leves no modo claro */
  background:
    radial-gradient(ellipse 50% 30% at 80% 20%, rgba(255,220,160,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 70%, rgba(200,220,240,0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  transition: background 1.2s ease;
}
body.dark-mode .space-bg::after {
  background:
    radial-gradient(ellipse 60% 40% at 75% 50%, rgba(30,10,60,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(10,30,60,0.4) 0%, transparent 70%);
}

/* Garantir que o conteúdo dos cards fique acima do space-bg */
.benefits-section .benefits-header,
.benefits-section .hand-stage {
  position: relative;
  z-index: 2;
}

/* Ajuste de cores dos textos e cards sobre o fundo escuro */
.benefits-section.visible .benefits-eyebrow,
.benefits-section.visible .benefits-title {
  color: #e8e8e6 !important;
}
.benefits-section.visible .line-accent {
  background: #d4944a !important;
}
/* Cards — fundo sólido em ambos os modos */
.benefits-section.visible .card-3d-inner {
  background: rgba(232, 228, 220, 0.92) !important;
  border-color: rgba(10,10,10,0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.benefits-section.visible .card-title,
.benefits-section.visible .card-index {
  color: #0a0a0a !important;
}
.benefits-section.visible .card-desc {
  color: rgba(10,10,10,0.55) !important;
}
.benefits-section.visible .card-stat {
  border-top-color: rgba(10,10,10,0.08) !important;
}
.benefits-section.visible .card-stat-label {
  color: rgba(10,10,10,0.4) !important;
}
body.dark-mode .benefits-section.visible .card-3d-inner {
  background: rgba(14, 14, 28, 0.95) !important;
  border-color: rgba(232,232,230,0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.dark-mode .benefits-section.visible .card-title,
body.dark-mode .benefits-section.visible .card-index {
  color: #e8e8e6 !important;
}
body.dark-mode .benefits-section.visible .card-desc {
  color: rgba(232,232,230,0.55) !important;
}
body.dark-mode .benefits-section.visible .card-stat {
  border-top-color: rgba(232,232,230,0.08) !important;
}
body.dark-mode .benefits-section.visible .card-stat-label {
  color: rgba(232,232,230,0.35) !important;
}
.benefits-section.visible .slider-dot {
  background: rgba(232,232,230,0.25) !important;
}
.benefits-section.visible .slider-dot.active {
  background: #d4944a !important;
}
.benefits-section.visible .slider-drag-hint {
  color: rgba(232,232,230,0.25) !important;
}

/* Mobile: globo menor e centralizado */
@media (max-width: 900px) {
  #earthGlobeViz {
    right: 50%;
    transform: translate(50%, -50%);
    width: 380px;
    height: 380px;
    opacity: 0.35;
  }
}
@media (max-width: 600px) {
  #earthGlobeViz {
    width: 260px;
    height: 260px;
    opacity: 0.22;
    top: 30%;
  }
}

/* Globo terrestre — posicionado à direita, atrás dos cards */
#earthGlobeViz {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  z-index: 2;
  opacity: 0.9;
  pointer-events: none;
}
#earthGlobeViz canvas {
  border-radius: 50%;
}

/* Nebulosa sutil para dar profundidade */
.space-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Luz solar / nuvens leves no modo claro */
  background:
    radial-gradient(ellipse 50% 30% at 80% 20%, rgba(255,220,160,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 70%, rgba(200,220,240,0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
  transition: background 1.2s ease;
}
body.dark-mode .space-bg::after {
  background:
    radial-gradient(ellipse 60% 40% at 75% 50%, rgba(30,10,60,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(10,30,60,0.4) 0%, transparent 70%);
}

/* Garantir que o conteúdo dos cards fique acima do space-bg */
.benefits-section .benefits-header,
.benefits-section .hand-stage {
  position: relative;
  z-index: 2;
}

/* Ajuste de cores dos textos e cards sobre o fundo escuro */
.benefits-section.visible .benefits-eyebrow,
.benefits-section.visible .benefits-title {
  color: #e8e8e6 !important;
}
.benefits-section.visible .line-accent {
  background: #d4944a !important;
}
/* Cards — fundo sólido em ambos os modos */
.benefits-section.visible .card-3d-inner {
  background: rgba(232, 228, 220, 0.92) !important;
  border-color: rgba(10,10,10,0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.benefits-section.visible .card-title,
.benefits-section.visible .card-index {
  color: #0a0a0a !important;
}
.benefits-section.visible .card-desc {
  color: rgba(10,10,10,0.55) !important;
}
.benefits-section.visible .card-stat {
  border-top-color: rgba(10,10,10,0.08) !important;
}
.benefits-section.visible .card-stat-label {
  color: rgba(10,10,10,0.4) !important;
}
body.dark-mode .benefits-section.visible .card-3d-inner {
  background: rgba(14, 14, 28, 0.95) !important;
  border-color: rgba(232,232,230,0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.dark-mode .benefits-section.visible .card-title,
body.dark-mode .benefits-section.visible .card-index {
  color: #e8e8e6 !important;
}
body.dark-mode .benefits-section.visible .card-desc {
  color: rgba(232,232,230,0.55) !important;
}
body.dark-mode .benefits-section.visible .card-stat {
  border-top-color: rgba(232,232,230,0.08) !important;
}
body.dark-mode .benefits-section.visible .card-stat-label {
  color: rgba(232,232,230,0.35) !important;
}
.benefits-section.visible .slider-dot {
  background: rgba(232,232,230,0.25) !important;
}
.benefits-section.visible .slider-dot.active {
  background: #d4944a !important;
}
.benefits-section.visible .slider-drag-hint {
  color: rgba(232,232,230,0.25) !important;
}

/* Mobile: globo menor e centralizado */
@media (max-width: 900px) {
  #earthGlobeViz {
    right: 50%;
    transform: translate(50%, -50%);
    width: 380px;
    height: 380px;
    opacity: 0.35;
  }
}
@media (max-width: 600px) {
  #earthGlobeViz {
    width: 260px;
    height: 260px;
    opacity: 0.22;
    top: 30%;
  }
}

/* ══════════════════════════════════════════
   NUVENS CSS — só aparecem no modo claro
   Posicionadas no body::after (céu fixo)
══════════════════════════════════════════ */