/* =====================================================
   INVADER SPACE STUDIOS — Design System
   Purple/Pink × Black • Neumorphic • Scroll-driven 3D
   ===================================================== */

:root {
  --bg: #05000d;
  --bg-2: #0a0014;
  --bg-3: #14001f;
  --ink: #f4ecff;
  --ink-dim: #b6a3cf;
  --ink-muted: #6e5b8a;

  --accent: #ff1493;
  --accent-2: #b026ff;
  --accent-3: #6b1e9e;
  --accent-glow: #ff3fb8;

  --grad-hot: linear-gradient(135deg, #ff1493 0%, #b026ff 60%, #6b1e9e 100%);
  /* Para texto (background-clip: text): sem stop escuro, mantém legibilidade em fundo preto */
  --grad-hot-text: linear-gradient(135deg, #ff66c4 0%, #ff1493 50%, #c44eff 100%);
  --grad-cool: linear-gradient(135deg, #b026ff 0%, #4a00a0 100%);

  --shadow-neuro:
    8px 8px 24px rgba(0,0,0,0.6),
    -1px -1px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px rgba(176, 38, 255, 0.12);

  --shadow-neuro-strong:
    20px 20px 60px rgba(0,0,0,0.7),
    -2px -2px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(255, 20, 147, 0.18),
    0 0 80px rgba(176, 38, 255, 0.18);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --maxw: 1320px;
  --header-h: 76px;

  --font-sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*, *::before, *::after { -webkit-font-smoothing: antialiased; }

/* Smooth scroll: Lenis quando carrega, nativo como fallback */
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* Subtle starfield noise behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.45;
}

/* ====== LOADER ====== */
.loader {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(176, 38, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(255, 20, 147, 0.14) 0%, transparent 55%),
    var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(.6,0,.4,1), transform 0.8s cubic-bezier(.6,0,.4,1), visibility 0.8s;
  transform-origin: center;
}
/* Animated grid backdrop */
.loader__grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(rgba(176, 38, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 38, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  animation: gridDrift 16s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 60px 60px; }
}

.loader__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
  min-width: min(560px, 90vw);
  padding: 0 24px;
}

.loader__brand {
  display: flex; align-items: center; gap: 24px;
  position: relative;
}
.loader__mark {
  font-size: 28px;
  background: var(--grad-hot-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 20, 147, 0.6));
  animation: markFloat 2.2s ease-in-out infinite;
}
.loader__mark.left { animation-name: markFloatLeft; }
.loader__mark.right { animation-name: markFloatRight; }
@keyframes markFloatLeft {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(-6px); opacity: 0.65; }
}
@keyframes markFloatRight {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(6px); opacity: 0.65; }
}

.loader__name {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
}
.loader__name span {
  background: var(--grad-hot-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 20, 147, 0.45));
}

.loader__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Equalizer bars */
.loader__bars {
  display: flex; gap: 4px;
  height: 48px; align-items: flex-end;
  margin-top: 4px;
}
.loader__bars span {
  width: 4px;
  background: var(--grad-hot);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.5);
  animation: eqBar 1.1s ease-in-out infinite;
}
.loader__bars span:nth-child(1)  { animation-delay: -.10s; }
.loader__bars span:nth-child(2)  { animation-delay: -.35s; }
.loader__bars span:nth-child(3)  { animation-delay: -.50s; }
.loader__bars span:nth-child(4)  { animation-delay: -.15s; }
.loader__bars span:nth-child(5)  { animation-delay: -.65s; }
.loader__bars span:nth-child(6)  { animation-delay: -.40s; }
.loader__bars span:nth-child(7)  { animation-delay: -.05s; }
.loader__bars span:nth-child(8)  { animation-delay: -.80s; }
.loader__bars span:nth-child(9)  { animation-delay: -.25s; }
.loader__bars span:nth-child(10) { animation-delay: -.55s; }
.loader__bars span:nth-child(11) { animation-delay: -.45s; }
.loader__bars span:nth-child(12) { animation-delay: -.70s; }
.loader__bars span:nth-child(13) { animation-delay: -.20s; }
.loader__bars span:nth-child(14) { animation-delay: -.30s; }
.loader__bars span:nth-child(15) { animation-delay: -.60s; }
.loader__bars span:nth-child(16) { animation-delay: -.05s; }
.loader__bars span:nth-child(17) { animation-delay: -.75s; }
.loader__bars span:nth-child(18) { animation-delay: -.35s; }
.loader__bars span:nth-child(19) { animation-delay: -.50s; }
.loader__bars span:nth-child(20) { animation-delay: -.15s; }
@keyframes eqBar {
  0%, 100% { height: 8px; opacity: 0.5; }
  50%      { height: 100%; opacity: 1; }
}

.loader__progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.loader__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-hot);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.7);
  transition: width 0.4s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.loader__progress-fill::after {
  content: "";
  position: absolute; right: 0; top: -3px; bottom: -3px;
  width: 12px;
  background: rgba(255, 255, 255, 0.9);
  filter: blur(4px);
  opacity: 0.8;
}

.loader__meta {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.loader__percent {
  color: var(--accent-glow);
  font-weight: 500;
}

/* Exit animation */
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  filter: blur(8px);
}
.loader.is-flashing::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255, 20, 147, 0.7) 0%, transparent 60%);
  animation: flash 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes flash {
  0%   { opacity: 0; transform: scale(0.6); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scale(2.5); }
}

/* ====== HEADER ====== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 28px;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,0,13,0.85) 0%, rgba(5,0,13,0.5) 100%);
  border-bottom: 1px solid rgba(176, 38, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.header.is-scrolled {
  background: linear-gradient(180deg, rgba(5,0,13,0.95) 0%, rgba(5,0,13,0.85) 100%);
  border-bottom-color: rgba(176, 38, 255, 0.2);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  font-size: 22px; line-height: 1;
  background: var(--grad-hot-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 20, 147, 0.5));
}
.brand__name {
  font-weight: 700; letter-spacing: 0.06em; font-size: 15px;
}
.brand__name span { color: var(--accent); }
.brand__tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-muted); letter-spacing: 0.25em;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 10px; margin-left: 4px;
}
.brand__tag--link {
  text-decoration: none;
  transition: color 0.2s ease, border-left-color 0.2s ease;
}
.brand__tag--link:hover {
  color: var(--ink);
  border-left-color: rgba(255, 20, 147, 0.35);
}

.nav {
  display: flex; gap: 28px;
  margin-left: auto;
  font-size: 14px; font-weight: 500;
}
.nav a {
  color: var(--ink-dim);
  position: relative;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--grad-hot);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.nav a:hover::after { transform: scaleX(1); }

/* Language toggle pill */
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink-dim);
  background: rgba(255,255,255,0.02);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
  margin-left: 6px;
}
.lang-toggle:hover {
  color: var(--ink);
  border-color: rgba(255, 20, 147, 0.5);
  background: rgba(255, 20, 147, 0.08);
  transform: translateY(-1px);
}
.lang-toggle__current { color: var(--accent-glow); font-weight: 600; }
.lang-toggle__sep     { color: var(--ink-muted); }
.lang-toggle__other   { color: var(--ink-muted); }
.lang-toggle:hover .lang-toggle__other { color: var(--ink-dim); }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
  will-change: transform;
  white-space: nowrap;
}
.cta--header {
  background: var(--grad-hot);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 20, 147, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.cta--header:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 32px rgba(255, 20, 147, 0.5); }

.cta--solid {
  background: var(--grad-hot);
  color: #fff;
  padding: 16px 30px; font-size: 15px;
  box-shadow: 0 8px 28px rgba(255, 20, 147, 0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.cta--solid:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255, 20, 147, 0.55); }

.cta--ghost {
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--ink);
  padding: 16px 30px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
}
.cta--ghost:hover { border-color: var(--accent); color: var(--accent-glow); }

.cta--block { width: 100%; justify-content: center; }
.cta--xl { padding: 22px 44px; font-size: 18px; }

.menu-toggle {
  display: none; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 8px;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--ink);
  border-radius: 2px;
}

/* ====== SCROLL STAGE (sticky 3D sections) ======
   Each stage is a tall section that pins on the screen.
   As you scroll inside it, content gets 3D-transformed via CSS vars set by JS.
*/
.scroll-stage {
  position: relative;
  height: 170vh;            /* scroll distance per stage — menor = scroll mais ágil */
  perspective: 1400px;
  perspective-origin: 50% 40%;
  /* Isola layout/style/paint da stage — browser não recalcula o resto da
     página quando algo muda aqui dentro. Ganho perceptível em mobile. */
  contain: layout style paint;
}
.scroll-stage.stage--hero { height: 210vh; }  /* scrub distance for hero video */
.scroll-stage.stage--music { height: 190vh; }

.stage__pin {
  position: sticky; top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  transform-style: preserve-3d;
  /* Mantém cada pin como camada GPU dedicada — evita travadinhas
     na transição entre seções no iOS Safari (sticky + canvas pesado).
     Usamos layout/style containment (não paint) pra não cortar as
     sombras/glows dos cards que extrapolam o bounding box. */
  will-change: transform;
  contain: layout style;
  /* Promove a layer mesmo quando idle (Safari às vezes "esquece" a camada). */
  transform: translateZ(0);
}

.bg-video, .bg-image, .bg-canvas, .bg-frames {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
/* Frame-sequence canvas: comportamento idêntico a .bg-video (cover, z-index 0).
   Brilho reduzido como o bg-video--soft pra combinar com o gradiente da seção. */
.bg-frames { filter: brightness(0.7) saturate(1.15); }
/* Hero canvas: brilho cheio, igual ao vídeo scrub original */
.bg-frames--hero { filter: saturate(1.1) contrast(1.05); }
.bg-video { filter: saturate(1.1) contrast(1.05); }
.bg-video--dim  { filter: brightness(0.45) saturate(1.15); }   /* heavy */
.bg-video--soft { filter: brightness(0.7) saturate(1.15); }    /* medium (sections 04 / 05) */
/* Hero scrub video: NO parallax transform (it would interfere with currentTime scrub feel) */
.bg-video--scrub { will-change: auto; }
.bg-canvas { z-index: 1; opacity: 0.85; }
.bg-image { z-index: 0; filter: blur(2px) saturate(1.2); }

.bg-gradient {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}
.bg-gradient--hero {
  background:
    /* Light left-side darkening — just enough for text contrast */
    linear-gradient(95deg, rgba(5,0,13,0.55) 0%, rgba(5,0,13,0.2) 50%, rgba(5,0,13,0.05) 100%),
    /* Brand-color accent at corners */
    radial-gradient(60% 50% at 100% 100%, rgba(255, 20, 147, 0.25) 0%, transparent 70%),
    radial-gradient(40% 40% at 0% 0%, rgba(176, 38, 255, 0.18) 0%, transparent 65%);
}
.bg-gradient--violet {
  background:
    radial-gradient(60% 80% at 100% 50%, rgba(176, 38, 255, 0.35) 0%, transparent 65%),
    linear-gradient(135deg, rgba(5,0,13,0.5) 0%, rgba(20,0,40,0.4) 100%);
}
.bg-gradient--magenta {
  background:
    radial-gradient(50% 70% at 0% 30%, rgba(255, 20, 147, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, rgba(5,0,13,0.55) 0%, rgba(40,0,30,0.3) 100%);
}
.bg-gradient--deep {
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(176, 38, 255, 0.35) 0%, transparent 70%),
    linear-gradient(180deg, rgba(5,0,13,0.4) 0%, rgba(5,0,13,0.92) 100%);
}
.bg-gradient--cyanpurple {
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(176, 38, 255, 0.4) 0%, transparent 60%),
    radial-gradient(60% 60% at 20% 80%, rgba(255, 20, 147, 0.28) 0%, transparent 60%),
    linear-gradient(135deg, rgba(5,0,13,0.5) 0%, rgba(20,0,40,0.35) 100%);
}

/* Stage content — receives subtle scroll-driven motion (NO opacity fade for readability) */
.stage__content {
  position: relative; z-index: 5;
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 32px 80px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 22px;
  transform-style: preserve-3d;
  --p: 0;
  /* Only subtle scale + tiny lift — never reduce opacity (kills contrast on video) */
  transform: scale(calc(1 - var(--p) * 0.03)) translate3d(0, calc(var(--p) * -3vh), 0);
}

.stage__content--split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}
.stage__content--right {
  align-items: flex-end;
  text-align: right;
  padding-right: 80px;
}
.stage__content--right > * { max-width: 620px; margin-left: auto; }
.stage__content--player {
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + 32px);
  gap: 28px;
}

/* Hero — content always visible & readable. Animation = video scrub + words lighting up */
.stage__content--hero {
  transform: none !important;
  justify-content: center;
}
/* Vignette behind hero text for guaranteed legibility */
.hero-shade {
  position: absolute;
  left: -8%; top: 18%; width: 70%; height: 60%;
  background: radial-gradient(50% 45% at 30% 50%, rgba(5,0,13,0.45) 0%, transparent 75%);
  pointer-events: none;
  filter: blur(28px);
  z-index: -1;
}
/* Title words — DIM by default, LIT (full color) as scroll progresses */
.hero-title { text-shadow: 0 4px 30px rgba(0,0,0,0.55); }
.hero-title .word {
  display: inline-block;
  color: rgba(244, 236, 255, 0.25);              /* dim until lit */
  transition: color 0.45s ease, text-shadow 0.45s ease, filter 0.45s ease;
  filter: blur(0.4px);
}
.hero-title .word.is-lit {
  color: var(--ink);
  filter: blur(0);
}
.hero-title .word.accent {
  -webkit-text-fill-color: transparent;
  /* Estado "apagado": mais legível que antes (era quase invisível em fundos escuros) */
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.35));
  -webkit-background-clip: text; background-clip: text;
}
.hero-title .word.accent.is-lit {
  background: var(--grad-hot-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 20, 147, 0.55));
}
.hero-sub { text-shadow: 0 2px 14px rgba(0,0,0,0.7); }
.eyebrow { text-shadow: none; }

/* Typography */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--accent-glow);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 20, 147, 0.08);
  border: 1px solid rgba(255, 20, 147, 0.22);
  align-self: flex-start;
  width: max-content;
}
.stage__content--right .eyebrow { align-self: flex-end; }

h1, h2 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h1.hero-title {
  font-size: clamp(48px, 8vw, 120px);
  display: flex; flex-wrap: wrap; gap: 0 0.3em;
  max-width: 16ch;
}
h1.hero-title .word { display: inline-block; }
h2 {
  font-size: clamp(40px, 5.5vw, 76px);
  max-width: 18ch;
}
.accent {
  background: var(--grad-hot-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 20, 147, 0.4));
}
.hero-sub, .lead, p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 56ch;
  font-weight: 400;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 8px;
}

.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 48px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
  background: rgba(0,0,0,0.25);
}
.hero-marquee__track {
  display: flex; gap: 36px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.4em;
  color: var(--ink-dim);
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}
.hero-marquee__track span { flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stat grid */
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 12px;
}
.stat {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 18px;
  backdrop-filter: blur(8px);
}
.stat strong {
  display: block;
  font-size: 30px; font-weight: 700;
  background: var(--grad-hot-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat span {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-muted); letter-spacing: 0.16em;
}

/* Neumorphic service card */
.card-neuro {
  background: linear-gradient(145deg, rgba(20,0,40,0.85), rgba(5,0,13,0.95));
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-neuro-strong);
  display: flex; flex-direction: column; gap: 14px;
}
.card-neuro__label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent-glow); letter-spacing: 0.32em;
}
.svc-list { display: flex; flex-direction: column; gap: 8px; }
.svc-list li { list-style: none; }
.svc-row {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.svc-row:hover {
  background: rgba(255, 20, 147, 0.06);
  border-color: rgba(255, 20, 147, 0.22);
  transform: translateX(2px);
}
.svc-row__name { font-weight: 500; min-width: 0; }

/* Planetas minimalistas — tema "Invader Space".
   Círculo + anel (Saturno-like) em outline, cor por tier. */
.svc-planet {
  flex-shrink: 0;
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  line-height: 0;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.svc-planet svg { width: 100%; height: 100%; overflow: visible; }
.svc-row:hover .svc-planet { transform: rotate(15deg); }

.svc-planet--silver {
  color: #dcdcdc;
  filter: drop-shadow(0 0 3px rgba(220, 220, 220, 0.4));
}
.svc-planet--gold {
  /* Champanhe quente, sem aquele amarelo "mostarda" */
  color: #e6b87a;
  filter:
    drop-shadow(0 0 4px rgba(230, 184, 122, 0.55))
    drop-shadow(0 0 10px rgba(196, 142, 60, 0.35));
}
.svc-planet--diamond {
  /* Diamond: azul-gelo com várias camadas de drop-shadow simulando refração */
  color: #c8e8ff;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 6px rgba(160, 220, 255, 0.75))
    drop-shadow(0 0 14px rgba(100, 180, 255, 0.5))
    drop-shadow(0 0 22px rgba(80, 160, 255, 0.25));
}

/* Versão grande pro modal */
.svc-planet--lg { width: 44px; height: 44px; }
.svc-planet--lg.svc-planet--silver {
  filter: drop-shadow(0 0 6px rgba(220, 220, 220, 0.5));
}
.svc-planet--lg.svc-planet--gold {
  filter:
    drop-shadow(0 0 6px rgba(230, 184, 122, 0.6))
    drop-shadow(0 0 16px rgba(196, 142, 60, 0.4));
}
.svc-planet--lg.svc-planet--diamond {
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 1))
    drop-shadow(0 0 10px rgba(160, 220, 255, 0.85))
    drop-shadow(0 0 22px rgba(100, 180, 255, 0.6))
    drop-shadow(0 0 36px rgba(80, 160, 255, 0.3));
}

/* ===== Modal ===== */
.svc-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.svc-modal.is-open { opacity: 1; visibility: visible; }
.svc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 0, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.svc-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(25,0,50,0.95), rgba(10,0,20,0.98));
  border: 1px solid rgba(176, 38, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(176, 38, 255, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex; flex-direction: column; gap: 22px;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
  overscroll-behavior: contain;
}
.svc-modal.is-open .svc-modal__panel { transform: scale(1) translateY(0); }
.svc-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--ink-dim);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.svc-modal__close:hover {
  background: rgba(255, 20, 147, 0.18);
  color: var(--ink);
  transform: rotate(90deg);
}
.svc-modal__header {
  display: flex; flex-direction: column; gap: 12px;
  padding-right: 40px;
}
.svc-modal__header .svc-tag { align-self: flex-start; padding: 5px 11px; font-size: 11px; }
.svc-modal__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.svc-modal__body {
  font-size: 15px; line-height: 1.6;
  color: var(--ink-dim);
  max-width: none;
}
.svc-modal__cta { margin-top: 4px; }

@media (max-width: 520px) {
  .svc-modal { padding: 16px; }
  .svc-modal__panel { padding: 24px; gap: 18px; }
  .svc-modal__header { gap: 10px; }
}

/* Feature list */
.feature-list {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px;
  font-size: 16px; color: var(--ink-dim);
}
.feature-list li {
  padding-left: 24px; position: relative;
}
.feature-list li::before {
  content: "◆"; position: absolute; left: 0; top: 1px;
  color: var(--accent); font-size: 10px;
}
.feature-list li strong { color: var(--ink); font-weight: 600; }

blockquote {
  font-size: clamp(20px, 2.5vw, 30px); font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px;
  max-width: 26ch;
  margin-left: auto;
}

/* Spec grid */
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 16px;
  max-width: 760px;
}
.spec {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(176, 38, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.spec strong {
  display: block;
  font-size: 26px; font-weight: 700;
  color: var(--accent-glow);
  margin-bottom: 4px;
  filter: drop-shadow(0 0 18px rgba(255,20,147,0.4));
}
.spec span {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* ===== MUSIC PLAYER ===== */
.player-head { display: flex; flex-direction: column; gap: 14px; }
.player-head h2 { max-width: 24ch; }
.player-head .eyebrow { align-self: flex-start; }

.player {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(145deg, rgba(20,0,40,0.75), rgba(5,0,13,0.92));
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-neuro-strong);
  backdrop-filter: blur(14px);
}

.player__art {
  position: relative;
  width: 220px; height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.player__art img { width: 100%; height: 100%; object-fit: cover; }
.player__art-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  filter: blur(40px); z-index: -1;
}
.player.is-playing .player__art-glow { opacity: 0.45; animation: glowPulse 2s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.player__playbtn {
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-hot);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(255, 20, 147, 0.55);
  transition: transform 0.2s;
}
.player__playbtn:hover { transform: translateX(-50%) scale(1.08); }
.player__playbtn .ico-pause { display: none; }
.player.is-playing .player__playbtn .ico-play { display: none; }
.player.is-playing .player__playbtn .ico-pause { display: block; }

.player__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.player__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.player__artist {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; color: var(--accent-glow);
  text-transform: uppercase;
}
.player__title {
  font-size: clamp(22px, 2.5vw, 32px); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player__bar {
  position: relative; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  cursor: pointer;
  margin-top: 6px;
}
.player__bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--grad-hot);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 20, 147, 0.5);
}
.player__bar-thumb {
  position: absolute; top: 50%; left: 0%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.25);
  pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
}
.player__bar:hover .player__bar-thumb { opacity: 1; }
.player__times {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-muted); letter-spacing: 0.08em;
}
.player__controls {
  display: flex; align-items: center; gap: 16px;
  margin-top: 8px;
}
.player__controls button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-dim);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.player__controls button:hover { color: var(--ink); background: rgba(255, 20, 147, 0.12); transform: translateY(-2px); }
.player__vol {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  color: var(--ink-muted);
}
.player__vol input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  outline: none;
}
.player__vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.25);
}

/* Tracklist */
.tracklist {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 32vh;
  overflow-y: auto;
  padding-right: 8px;
  /* Quando chega no topo/fim, não chain o scroll pra página — sem essa
     regra, o iOS dá uma "freada" enquanto decide pra onde mandar o scroll. */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.tracklist::-webkit-scrollbar { width: 6px; }
.tracklist::-webkit-scrollbar-track { background: transparent; }
.tracklist::-webkit-scrollbar-thumb { background: rgba(255, 20, 147, 0.25); border-radius: 999px; }

.tracklist li {
  display: grid;
  grid-template-columns: 24px 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-width: 0;
}
.tracklist li:hover {
  background: rgba(255, 20, 147, 0.06);
  border-color: rgba(255, 20, 147, 0.25);
  transform: translateX(3px);
}
.tracklist li.is-active {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.18), rgba(176, 38, 255, 0.12));
  border-color: rgba(255, 20, 147, 0.4);
}
.tracklist li .tl-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-muted);
}
.tracklist li.is-active .tl-num { color: var(--accent-glow); }
.tracklist li .tl-cover {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  background: rgba(255,255,255,0.04);
}
.tracklist li .tl-info { min-width: 0; }
.tracklist li .tl-title {
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tracklist li .tl-artist {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-muted); letter-spacing: 0.1em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tracklist li .tl-dur {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-muted);
}

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative;
  padding: 140px 32px 120px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 20, 147, 0.2) 0%, transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(176, 38, 255, 0.2) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid rgba(255, 20, 147, 0.15);
  border-bottom: 1px solid rgba(176, 38, 255, 0.15);
}
.final-cta__inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.final-cta h2 { text-align: center; }
.final-cta p { text-align: center; max-width: 40ch; }
.final-cta .eyebrow { align-self: center; }
.phone {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2);
  padding: 48px 32px 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: 22px;
  align-items: center;
}
.footer__brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: 0.08em;
}
.footer__socials {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; color: var(--ink-dim);
}
.footer__socials a {
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.footer__socials a:hover { color: var(--accent-glow); }
.footer__copy {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-muted); text-align: center;
  letter-spacing: 0.1em;
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
  transform-origin: center bottom;
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}
[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal]:nth-child(4) { transition-delay: 0.24s; }
[data-reveal]:nth-child(5) { transition-delay: 0.32s; }
[data-reveal]:nth-child(6) { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .lang-toggle { margin-left: auto; }   /* push to right when nav hidden */
  .stage__content--split { grid-template-columns: 1fr; gap: 32px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .stage__content--right { text-align: left; padding-right: 32px; align-items: flex-start; }
  .stage__content--right > * { margin-left: 0; }
  blockquote { margin-left: 0; }
  .tracklist { grid-template-columns: 1fr; max-height: 28vh; }
}

@media (max-width: 768px) {
  .header { padding: 0 16px; gap: 12px; }
  .brand__tag { display: none; }
  .cta--header span { display: none; }
  .cta--header { padding: 12px; }
  .scroll-stage { height: 150vh; }
  .scroll-stage.stage--hero { height: 170vh; }
  .scroll-stage.stage--music { height: 170vh; }
  .stage__content { padding: calc(var(--header-h) + 16px) 18px 36px; gap: 14px; }
  h1.hero-title { font-size: clamp(40px, 11vw, 64px); }
  h2 { font-size: clamp(28px, 7vw, 44px); }
  .hero-sub, .lead, p { font-size: 15px; line-height: 1.5; }
  .player { grid-template-columns: 1fr; padding: 18px; }
  .player__art { width: 100%; height: auto; aspect-ratio: 1; max-width: 280px; margin: 0 auto; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
  .stat { padding: 10px 8px; }
  .stat strong { font-size: 20px; margin-bottom: 2px; }
  .stat span { font-size: 10px; letter-spacing: 0.12em; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-marquee { bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta--xl { font-size: 16px; padding: 18px 32px; }
  /* Card de serviços ainda mais compacto no mobile pra evitar overflow do sticky pin */
  .card-neuro { padding: 18px; gap: 12px; }
  .svc-row { padding: 9px 12px; }
  .svc-planet { width: 24px; height: 24px; }
  .cta--block { padding: 13px 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .stage__content { transform: none !important; opacity: 1 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
