/* Reset minimalista + tipografia base */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;

  /* Grain texture sutil — quebra a flat-IA */
  background-image:
    radial-gradient(1200px 800px at 80% -10%, rgba(226,82,45,0.04), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(124,58,237,0.03), transparent 60%);
}

/* Grain overlay aplicado em pseudo-element pra não bagunçar o body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 4px;
  border-radius: 4px;
}

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

::selection { background: var(--terracota); color: var(--bg); }

/* ─── Typography ─────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Variante pra eyebrow com frase mais longa: case natural + sans, sem uppercase forçado */
.eyebrow--prose {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  font-variation-settings: "opsz" 100, "SOFT" 50;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 380;
  background: linear-gradient(120deg, var(--purple) 0%, var(--terracota) 80%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Italic + WONK 1 projeta o último glyph além do métric box. background-clip:
   text clipa exatamente nesse box e cortava perninha do "a/o/ã" final E o
   descender da cedilha de "direção". inline-block + padding-right + leve
   padding-bottom resolvem o overshoot sem alterar baseline visual. */
.serif-italic,
.prof-card__title em,
.pivot__phrase .direction,
.precta__phrase .direction,
.demo-step h3 em {
  display: inline-block;
  padding-right: 0.12em;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.mono { font-family: var(--font-mono); }

.sub {
  font-size: var(--fs-sub);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 36ch;
  font-weight: 400;
}

/* ─── CTAs ─────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: var(--bg);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 24px -8px rgba(124, 58, 237, 0.45),
    0 0 0 1px rgba(124, 58, 237, 0.6);
}

.btn-primary:hover {
  background: #8B47F2;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 32px -8px rgba(124, 58, 237, 0.6),
    0 0 0 1px rgba(124, 58, 237, 0.7);
}

.btn-primary .arrow {
  transition: transform 220ms var(--ease-out);
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-link {
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  transition: color 200ms;
}

.btn-link:hover { color: var(--terracota); }

/* Halo magnético pro CTA primário */
.btn-magnetic {
  position: relative;
  isolation: isolate;
}

.btn-magnetic::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.28), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}

.btn-magnetic:hover::before { opacity: 1; }

/* ─── Container ─────────────────────── */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}
