/* ============================================================
   BASE — reset, tipografia, layout primitives
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(73, 121, 255, 0.14), transparent 60%),
    radial-gradient(900px 600px at 12% 30%, rgba(73, 121, 255, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
code { font-family: var(--font-mono); font-size: 0.92em; }
strong, b { font-weight: 600; color: var(--ink); }

::selection { background: rgba(73, 121, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

main { position: relative; z-index: var(--z-content); }
section { position: relative; padding-block: var(--section-pad); }

/* ---------- Cena 3D + moldura ---------- */
#scene {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: var(--z-scene);
  pointer-events: none;
}
/* Véu entre a cena 3D e o conteúdo: o fundo continua vivo,
   mas recua para não competir com o texto */
.scrim {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 100% at 30% 40%, rgba(4, 6, 13, 0.86) 0%, rgba(4, 6, 13, 0.72) 55%, rgba(4, 6, 13, 0.6) 100%);
}
/* mobile: tela pequena tem texto sobre tudo — véu uniforme e forte */
@media (max-width: 640px) {
  .scrim { background: rgba(4, 6, 13, 0.84); }
}
.vignette {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(2, 4, 10, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.35) 0%, transparent 12%, transparent 88%, rgba(2, 4, 10, 0.5) 100%);
}

/* ---------- Tipografia ---------- */
.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 46rem;
  margin-bottom: 1.6rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- Pulse dot ---------- */
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-4);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(73, 121, 255, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(73, 121, 255, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(73, 121, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(73, 121, 255, 0); }
}

.sm-only { display: none; }
@media (max-width: 640px) { .sm-only { display: inline; } }
