/* ============================================================
   BASE — variables, reset, scrollbar, typography globals
   ============================================================ */

:root {
  --purple:        #7B2FBE;
  --purple-light:  #9B5FDE;
  --purple-dark:   #5A1F9B;
  --teal:          #00C9B1;
  --teal-light:    #00E8CC;
  --charcoal:      #0D0D0F;
  --charcoal-mid:  #141416;
  --charcoal-light:#1C1C20;
  --off-white:     #F5F5F0;
  --gray:          #7A7A8C;
  --border:        rgba(255,255,255,0.07);
}

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

/* Evita CLS em imagens e media sem dimensão explícita */
img, video, canvas, svg {
  display: block;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Evita CLS causado por scrollbar aparecendo/desaparecendo */
  scrollbar-gutter: stable;
  /* Melhora renderização de texto para LCP */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--charcoal);
  color: var(--off-white);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--purple), var(--teal));
  border-radius: 3px;
}

/* ── Gradient text utility ── */
.grad {
  background: linear-gradient(125deg, var(--purple-light) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section layout helpers ── */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .72rem;
  font-family: 'Space Mono', monospace;
  color: var(--teal);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--teal);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-header .section-tag {
  justify-content: center;
}
.section-header .section-tag::before,
.section-header .section-tag::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--teal);
}
.section-header h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}

/* ── Glow divider ── */
.glow-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--purple), var(--teal), transparent);
  box-shadow: 0 0 24px 1px rgba(0,201,177,.25), 0 0 8px 1px rgba(123,47,190,.2);
}

/* ── Reveal animation states (initial) ── */
.reveal       { opacity: 0; transform: translateY(45px); }
.reveal-left  { opacity: 0; transform: translateX(-60px); }
.reveal-right { opacity: 0; transform: translateX(60px); }
.reveal-scale { opacity: 0; transform: scale(.9); }

/* ── Keyframes ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.7); }
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@keyframes marqueeRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
