/* =========================================================
   Dhionathan Jobim · base
   Fontes, tokens de cor, reset, tipografia, seções, botões e animação de entrada.
   ========================================================= */

/* ---------- Fontes locais (OFL, ver assets/fonts) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #07070C;
  --bg-2: #0B0A15;
  --bg-3: #110F20;
  --card: rgba(255, 255, 255, 0.035);
  --card-solid: #100E1E;
  --line: rgba(170, 160, 255, 0.12);
  --line-strong: rgba(170, 160, 255, 0.28);

  --blue: #4F7CFF;
  --blue-300: #8FA8FF;
  --violet: #8B5CF6;
  --violet-300: #B49CFF;
  --grad: linear-gradient(135deg, #4F7CFF 0%, #8B5CF6 100%);
  --grad-text: linear-gradient(135deg, #8FA8FF 0%, #C4A8FF 100%);
  --pix: #32BCAD;                 /* verde oficial do PIX, só no botão de pagamento */

  --text: #F5F4FF;
  --text-soft: #B7B3D9;           /* 9.8:1 sobre --bg */
  --text-dim: #7F7AA8;

  --glow: 0 0 0 1px rgba(180,156,255,.22), 0 18px 48px rgba(0,0,0,.5), 0 0 56px rgba(110,100,255,.18);

  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 120px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-300); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--violet-300); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
[hidden] { display: none !important; }

.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; left: 16px; top: -100px; z-index: 300; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

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

/* ---------- Seções ---------- */
.section { position: relative; isolation: isolate; padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }
.section::before {            /* linha de luz no topo de cada seção */
  content: ""; position: absolute; left: 50%; top: 0; z-index: -1; width: min(880px, 90vw); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(79,124,255,.5), rgba(139,92,246,.5), transparent);
}
.section::after {             /* grade fina que some para baixo */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(170,160,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(170,160,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 80%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 600 0.8125rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--violet-300);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.875rem); }
.section-head p { color: var(--text-soft); font-size: 1.125rem; margin: 0; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 0; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 0 28px rgba(110,100,255,.4); }
.btn--primary:hover { color: #fff; box-shadow: 0 0 40px rgba(139,92,246,.55); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { color: #fff; border-color: var(--violet-300); background: rgba(139,92,246,.1); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }

.tag { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: .8125rem; font-weight: 500; color: var(--text-soft); background: rgba(255,255,255,.05); border: 1px solid var(--line); }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
