/* ============================================================
   base.css — reset, tokens, tipografia, layout e fundo animado
   ============================================================ */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
body.lightbox-open { overflow: hidden; }

:root {
  /* Cores */
  --bg-900: #10030a;
  --bg-800: #180512;
  --bg-700: #240a1c;
  --bg-600: #320e26;

  --pink-600: #e0105a;
  --pink-500: #ff2d6f;
  --pink-400: #ff5c8d;
  --pink-300: #ff8fb3;
  --red-600: #d40d38;
  --rose-050: #fff2f6;
  --gold: #ffc94d;
  --gold-soft: #ffe0a3;

  --text: #fff5f9;
  --text-soft: #f0cedd;
  --muted: #c290a8;
  --muted-2: #9b6a83;

  /* Superfícies */
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 143, 179, 0.18);
  --stroke-strong: rgba(255, 143, 179, 0.38);

  /* Gradientes */
  --grad-brand: linear-gradient(135deg, #ff2d6f 0%, #e0105a 45%, #b3063f 100%);
  --grad-hot: linear-gradient(135deg, #ff5c8d 0%, #ff2d6f 50%, #d40d38 100%);
  --grad-gold: linear-gradient(135deg, #ffe0a3 0%, #ffc94d 100%);
  --grad-glass: linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.02));

  /* Sombras */
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
  --glow: 0 0 0 1px rgba(255, 92, 141, .35), 0 18px 50px rgba(255, 45, 111, .35);

  /* Formas */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Ritmo */
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 34px);
  --section-y: clamp(64px, 9vw, 128px);
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 7.4vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2.1vw, 1.35rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pink-300); text-decoration: none; }
a:hover { color: #fff; }

em { font-style: normal; color: var(--pink-400); }

strong { color: #fff; font-weight: 700; }

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 860px; }
.center { text-align: center; }

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

.section-alt {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 45, 111, .14), transparent 62%),
    radial-gradient(760px 460px at 92% 100%, rgba(212, 13, 56, .16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0));
  border-block: 1px solid rgba(255, 143, 179, .09);
}

.section-dark {
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(255, 45, 111, .22), transparent 66%),
    linear-gradient(180deg, #10030a, #1c0514 60%, #10030a);
  border-block: 1px solid rgba(255, 143, 179, .12);
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 780px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 45, 111, .1);
  color: var(--pink-300);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title { margin-bottom: .35em; }

.section-title::after {
  content: "";
  display: block;
  width: 82px;
  height: 5px;
  margin: 18px auto 0;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
}

.center .section-title::after { margin-inline: auto; }
.section-dark .section-title::after { margin-inline: auto; }

.section-lead {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

/* Título gigante estilo "manchete" */
.titanic {
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  font-weight: 900;
  text-transform: none;
}

.titanic em {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- Utilitários ---------- */
.hl {
  display: inline;
  background: linear-gradient(180deg, transparent 58%, rgba(255, 45, 111, .45) 58%);
  color: #fff;
  font-weight: 700;
}

.muted-note {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  max-width: 720px;
  margin-inline: auto;
}

.fine-print {
  margin-top: 28px;
  color: var(--muted-2);
  font-size: .84rem;
  line-height: 1.7;
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- Fundo animado ---------- */
#hearts-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .55;
  transition: opacity .5s ease;
}
#hearts-canvas.is-off { opacity: 0; }

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, #2b0a1e 0%, transparent 60%),
    linear-gradient(175deg, #10030a 0%, #1a0512 40%, #10030a 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.orb-1 {
  width: 46vw; height: 46vw; min-width: 340px; min-height: 340px;
  top: -12vw; left: -10vw;
  background: radial-gradient(circle, rgba(255,45,111,.75), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 40vw; height: 40vw; min-width: 300px; min-height: 300px;
  bottom: -14vw; right: -12vw;
  background: radial-gradient(circle, rgba(212,13,56,.7), transparent 68%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.orb-3 {
  width: 34vw; height: 34vw; min-width: 260px; min-height: 260px;
  top: 42%; left: 52%;
  background: radial-gradient(circle, rgba(255,201,77,.35), transparent 70%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 42px 42px, 66px 66px;
  background-position: 0 0, 21px 33px;
}

@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-7vw, -5vh, 0) scale(1.12); } }
@keyframes drift-c { to { transform: translate3d(-6vw, 7vh, 0) scale(1.2); } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,.7,.3,1), transform .7s cubic-bezier(.22,.7,.3,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.no-js .reveal, .reveal.no-anim { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #150410; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink-500), var(--red-600));
  border-radius: 99px;
  border: 2px solid #150410;
}
