/* ============================================================
   A&7 · Rota Mágica — Base (reset, tipografia, layout, util)
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  /* overflow-x: clip evita scroll horizontal SEM criar um scroll container
     no body (que quebraria window.scrollY, scrollIntoView e a barra de progresso) */
  overflow-x: clip;
  transition: background .35s ease, color .35s ease;
}
body.menu-open { overflow: hidden; }

button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: rgba(107, 50, 255, .24); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.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;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.section { position: relative; padding: 52px 0; }
.section-tight { padding: 40px 0; }

.dark-section { background: var(--dark, #09080d); color: #fff; }
html[data-theme="dark"] .dark-section { background: linear-gradient(180deg, #0c0b13, #09080d); }
html[data-theme="light"] .dark-section { background: linear-gradient(160deg, #13111d, #0c0b13); color: #fff; }
.dark-section .eyebrow { color: #b69cff; }
.dark-section .section-lead,
.dark-section .section-copy,
.dark-section .muted { color: rgba(255, 255, 255, .64); }

/* ---- Tipografia ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--violet);
  font-weight: 850;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.display {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  font-weight: 900;
}
.gradient-text {
  background: linear-gradient(105deg, var(--magenta), var(--violet) 48%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  margin: 0;
  max-width: 940px;
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 850;
}
.section-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  line-height: 1.6;
}
.section-copy { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 720px; }
.muted { color: var(--muted); }

/* ---- Reveal no scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
