/* =========================================================
   Rogue — base.css
   Reset, fontes, design tokens, tipografia e utilitários
   ========================================================= */

/* ---------- Fonte (Inter variável, self-hosted) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-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;
}

/* ---------- Design tokens ---------- */
:root {
  /* cores da marca */
  --primary: #4fddd4;
  --secondary: #dea4f0;
  --accent: #efbd4e;
  --headline: #ffffff;
  --body: #7c7e82;
  --dark: #0d0e12;
  --light: #15181e;
  --black: #00010d;
  --border: #141521;
  --eyebrow: #64686a;

  /* layout */
  --container: 1240px;
  --gutter: 24px;
  --radius: 25px;
  --radius-sm: 12.5px;
  --header-h: 88px;

  /* espaçamento vertical de seção */
  --section-y: 110px;

  /* tipografia */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-h1: 64px;
  --fs-h2: 50px;
  --fs-h3: 26px;
  --fs-h4: 18px;
  --fs-body: 15px;

  /* gradiente dos títulos (mesmo do site original) */
  --title-gradient: linear-gradient(90deg, #d3d3d3, #5c5c5c);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--body);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; border: 0; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

figure,
blockquote { margin: 0; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--headline);
  font-weight: 500;
  letter-spacing: -0.027em;
  line-height: 1.25;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.2; }

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

strong, b { color: var(--headline); font-weight: 600; }

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

.section { padding-block: var(--section-y); }
.section--flush-top { padding-top: 0; }

/* ---------- Utilitários ---------- */
.center { text-align: center; }

.gradient-text {
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.9;
  font-weight: 600;
}

/* garante que o gradiente não corte descendentes (ç, g, ç) */
.gradient-text { padding-bottom: 0.08em; }

.eyebrow {
  margin: 0;
  color: var(--eyebrow);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.093em;
  text-transform: uppercase;
}

.lead {
  max-width: 636px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.5;
}

/* ---------- Lista com check ---------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.check-list svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  fill: currentColor;
  opacity: 0.85;
}

.check-list--inline {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

/* ---------- Reveal ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  :root {
    --fs-h1: 46px;
    --fs-h2: 38px;
    --fs-h3: 22px;
    --section-y: 80px;
    --header-h: 76px;
  }
  .lead { font-size: 16px; }
}

@media (max-width: 767px) {
  :root {
    --fs-h1: 34px;
    --fs-h2: 28px;
    --fs-h3: 20px;
    --fs-h4: 17px;
    --section-y: 64px;
    --gutter: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
