/* =========================================================================
   TEMP IA — Base: reset, tipografia, layout primitivo
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Fundo global: nebulosa estática por trás de todo o documento */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -5%,  rgba(1, 250, 191, .10), transparent 62%),
    radial-gradient(800px 620px at 92% 12%,  rgba(1, 213, 252, .11), transparent 60%),
    radial-gradient(1000px 700px at 50% 108%, rgba(1, 126, 253, .07), transparent 62%),
    var(--bg);
}

/* Textura de ruído sutil — tira o "plástico" dos gradientes */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video, canvas { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { background: none; border: 0; cursor: pointer; }

code, kbd { font-family: var(--font-mono); font-size: .85em; }

::selection { background: var(--c2); color: #fff; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c1), var(--c2));
  border-radius: 99px;
  border: 3px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--c2), var(--c3)); }

/* ---------- Foco acessível ---------- */
:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: .7rem 1.2rem;
  background: var(--c1);
  color: #04121a;
  font-weight: 700;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top var(--t-base);
}
.skip-link:focus { top: 0; }

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

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

/* ---------- Cabeçalho de seção ---------- */
.sec-head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4.25rem);
  text-align: center;
}
.sec-head--left { max-width: 820px; margin-inline: 0; text-align: left; }

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .85rem .38rem .6rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-2);
}
.sec-tag .ico { width: 13px; height: 13px; color: var(--c1); }

.sec-title {
  font-size: var(--fs-h2);
  margin-bottom: 1.1rem;
  background: linear-gradient(180deg, #fff 25%, #A8B0C2 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-title--left { text-align: left; }

.sec-sub {
  font-size: var(--fs-lead);
  color: var(--txt-2);
  max-width: 62ch;
  margin-inline: auto;
}
.sec-sub--left,
.sec-head--left .sec-sub { margin-inline: 0; }

/* ---------- Ícone utilitário ---------- */
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 0;
}
.ico use { stroke-width: inherit; }

/* ---------- Utilitários ---------- */
.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.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;
}

/* Trava de scroll durante o preloader / menu mobile */
body.is-locked { overflow: hidden; }

/* Cursor de arraste global enquanto a galeria 3D está sendo girada */
body.is-grabbing, body.is-grabbing * { cursor: grabbing !important; }

/* Sem JavaScript: nada de conteúdo escondido */
.no-js .reveal,
.no-js .line > .line__in { opacity: 1 !important; transform: none !important; }
.no-js .preloader { display: none; }
