/* ==========================================================================
   BASE — tokens, reset, utilitários e componentes compartilhados
   (carregado por todas as páginas)
   ========================================================================== */

/* Plus Jakarta Sans (OFL) — subconjunto latin, fonte variável 400–700 */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Cores */
  --dark: #070710;
  --surface: #1a1a1e;
  --surface-hover: #1e1e22;
  --border-subtle: #1f2233;
  --border-default: #2a2a2a;
  --border-strong: #29292e;

  --yellow: #ffc800;
  --cyan: #1cb0f6;
  --brand-purple: #8257e5;
  --brand-purple-hover: #9466ff;

  --green: #15803d;
  --green-hover: #166534;
  --green-shadow: #14532d;
  --green-shadow-hover: #0f3d22;

  --text-main: #e2e4e9;
  --text-body: #c4c4cc;
  --text-secondary: #888;

  /* Tipografia */
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-serif: Georgia, serif;

  /* Altura aproximada do header fixo (aviso de promoção + navbar) */
  --header-height: 130px;
}

@media (max-width: 768px) {
  :root {
    --header-height: 136px;
  }
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

/* ---------- Acessibilidade ---------- */

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100000;
  padding: 12px 20px;
  border-radius: 6px;
  background-color: var(--yellow);
  color: #000;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout ---------- */

.container {
  max-width: 1416px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fundo em gradiente animado (hero e página de obrigado).
   O gradiente é uma camada 4x maior que desliza com transform, que roda na GPU
   (animar background-position repintaria a seção inteira a cada frame). */
.gradient-bg {
  position: relative;
  overflow: hidden;
}

.gradient-bg::before {
  content: "";
  position: absolute;
  top: -150%;
  left: 0;
  z-index: 0;
  width: 400%;
  height: 400%;
  pointer-events: none;
  background: linear-gradient(-45deg, #91d70f, #502102, #630fd7, #68065d);
  will-change: transform;
  animation: gradient-move 15s ease infinite;
}

@keyframes gradient-move {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-75%);
  }
}

/* Cabeçalho de seção centralizado */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}

.section-heading p {
  color: #8c8c9a;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .section-heading h2 {
    font-size: 32px;
  }
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--purple {
  background-color: var(--brand-purple);
  color: #fff;
}

.btn--purple:hover {
  background-color: var(--brand-purple-hover);
}

.btn--dark {
  background-color: var(--surface);
  color: #fff;
}

.btn--dark:hover {
  background-color: var(--surface-hover);
}

.btn-green {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background-color: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--green-shadow);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.btn-green:hover {
  background-color: var(--green-hover);
  box-shadow: 0 4px 0 var(--green-shadow-hover);
  transform: translateY(-3px);
}
