/* ============================================================
   ELETRO SOLAR — Base, reset, ambiente, tipografia, utilidades
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-high);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,138,30,.45) transparent; }

/* ============================================================
   AMBIENTE — grade "blueprint" + brilho azul (assinatura própria)
   ============================================================ */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* grade técnica sutil */
.atmos .grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(130% 120% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(130% 120% at 50% 0%, #000 35%, transparent 78%);
}
.atmos .glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.atmos .g1 { width: 58vw; height: 58vw; top: -20vw; left: -12vw; opacity: .42;
  background: radial-gradient(circle, rgba(255,138,30,.55), transparent 62%);
  animation: glowDrift 24s var(--ease) infinite alternate; }
.atmos .g2 { width: 52vw; height: 52vw; bottom: -24vw; right: -16vw; opacity: .30;
  background: radial-gradient(circle, rgba(255,94,46,.5), transparent 64%);
  animation: glowDrift 28s var(--ease) -8s infinite alternate-reverse; }
.atmos .g3 { width: 40vw; height: 40vw; top: 40%; left: 50%; opacity: .18;
  background: radial-gradient(circle, rgba(255,138,30,.5), transparent 66%);
  animation: glowDrift 32s var(--ease) -12s infinite alternate; }
@keyframes glowDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(4vw,3vw) scale(1.14); } }
.atmos .vignette { position: absolute; inset: 0;
  background: radial-gradient(125% 125% at 50% 30%, transparent 52%, rgba(3,6,12,.78) 100%); }

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
.eyebrow, .kicker {
  font-family: var(--font-ui); font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; font-size: clamp(10px, 1vw, 12px);
  color: var(--blue-bright); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before, .kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-ring); }
.eyebrow.no-rule::before, .kicker.no-rule::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
.display { font-family: var(--font-display); font-weight: 800; line-height: 1.0; font-size: clamp(44px, 7.4vw, 104px); letter-spacing: -.03em; }
.title { font-family: var(--font-display); font-weight: 700; line-height: 1.08; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: -.025em; }
.title b, .display b { font-weight: 800; color: #fff; -webkit-text-fill-color: #fff; background: none; }
.lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--text-high); max-width: 48ch; }
.body { font-size: clamp(14.5px, 1.15vw, 16.5px); line-height: 1.75; color: var(--text-mid); max-width: 54ch; }
.text-grad { color: #fff; -webkit-text-fill-color: #fff; background: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { position: relative; z-index: 2; padding-block: var(--section-pad); }
.section__head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section__head .title, .section__head h2 { margin: 16px 0 0; }
.section__head .body { margin: 18px auto 0; }

/* ============================================================
   REVEAL — fade/blur up (assinatura própria, sem clip-wipe)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* hero: destaque sobe com desfoque (CSS, disparado por .is-visible no load) */
  .read { opacity: 0; transform: translateY(26px); filter: blur(10px); }
  .read.is-visible { animation: blurUp var(--rdur, 1s) var(--ease-out) both; animation-delay: var(--rd, 0ms); }
  @keyframes blurUp { 0% { opacity: 0; transform: translateY(26px); filter: blur(10px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
  .read-up { opacity: 0; transform: translateY(22px); }
  .read-up.is-visible { animation: readUp .8s var(--ease-out) both; animation-delay: var(--rd, 0ms); }
  @keyframes readUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  /* blocos animados por GSAP — escondidos só quando o JS está ativo (anti-FOUC) */
  html.js .reveal, html.js .reveal-l, html.js .reveal-r, html.js .reveal-scale { opacity: 0; }
}
/* fallback: movimento reduzido OU GSAP indisponível → mostra tudo */
html.no-anim .reveal, html.no-anim .reveal-l, html.no-anim .reveal-r, html.no-anim .reveal-scale,
html.no-anim .read, html.no-anim .read-up {
  opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.glass { background: var(--glass-bg); border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmos .glow { animation: none !important; }
}
/* leve no mobile: sem glows animados/grade (poupa GPU) */
@media (max-width: 720px) {
  .atmos .glow { animation: none !important; filter: blur(70px); opacity: .24; }
  .atmos .g3 { display: none; }
  .atmos .grid { display: none; }
}
