/* ============================================
   REFINE — sweep final de sofisticação
   Override de seções claras + ajustes de paleta
   Carregar POR ÚLTIMO (depois de todos os outros CSS)
   ============================================ */

:root {
  /* Off-blacks editoriais — variação sutil pra criar respiro */
  --bg-0: #000;
  --bg-1: #050505;
  --bg-2: #0a0a0a;
  --bg-3: #0f0f0f;
  --bg-elevated: #141414;
  --bg-card: #0c0c0c;

  /* Gold mais brilhante p/ contraste em fundo escuro */
  --gold: #e6c34d;
  --gold-bright: #f4d564;
  --gold-deep: #c8a233;
  --gold-soft: rgba(230, 195, 77, 0.10);
  --gold-line: rgba(230, 195, 77, 0.25);
  --gold-line-strong: rgba(230, 195, 77, 0.45);

  /* Inks — muito mais legíveis */
  --ink: #ffffff;
  --ink-1: rgba(255, 255, 255, 0.92);
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.56);
  --ink-4: rgba(255, 255, 255, 0.38);
  --ink-mute: rgba(255, 255, 255, 0.74);
  --ink-mute-soft: rgba(255, 255, 255, 0.56);
  --ink-faint: rgba(255, 255, 255, 0.38);

  /* Linhas */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);

  /* Container — narrow Apple-style */
  --container-narrow: 980px;
  --container-default: 1100px;
  --container-wide: 1280px;

  /* Section vertical rhythm — tighter, normalized */
  --section-py: clamp(56px, 6vw, 88px);
  --section-py-tight: clamp(40px, 4vw, 64px);
}

html, body { background: var(--bg-0); }

/* ============================================
   SUMIR COM AS 3 SEÇÕES CLARAS
   ============================================ */

/* Method (era #f5f5f7) */
.method {
  background: var(--bg-1) !important;
  color: var(--ink) !important;
  position: relative;
}
.method::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(230, 195, 77, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(230, 195, 77, 0.04), transparent 60%);
  pointer-events: none;
}
.method > * { position: relative; }
.method .eyebrow { color: var(--gold) !important; }
.method .t-h1, .method .t-h2, .method h1, .method h2 { color: var(--ink) !important; }
.method .t-lead, .method .mute { color: var(--ink-2) !important; }

/* Flow cards */
.flow-card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--ink) !important;
  transition: border-color .4s var(--ease, ease), background .4s var(--ease, ease), transform .4s var(--ease, ease) !important;
}
.flow-card:hover {
  border-color: var(--gold-line) !important;
  background: #161616 !important;
  transform: translateY(-4px);
}
.flow-card .step { color: var(--gold) !important; }
.flow-card .num { color: rgba(230, 195, 77, 0.20) !important; }
.flow-card h3 { color: var(--ink) !important; }
.flow-card li { color: var(--ink-2) !important; }
.flow-card li::before { background: var(--gold) !important; }

/* Timeline (V10× cards) */
.tl-card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--ink) !important;
}
.tl-card .tag { color: var(--gold) !important; }
.tl-card h3 { color: var(--ink) !important; }
.tl-card p, .tl-card li { color: var(--ink-2) !important; }
.tl-card .days { color: var(--ink) !important; }
.tl-card .days small { color: var(--ink-3) !important; }
.tl-card .desc { color: var(--ink-2) !important; }
.tl-card small { color: var(--ink-3) !important; }
.tl-card .num { color: rgba(230, 195, 77, 0.18) !important; }

/* Peaks (era #f5f5f7) */
.peaks {
  background: var(--bg-1) !important;
  color: var(--ink) !important;
  position: relative;
}
.peaks::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 70% 30%, rgba(230, 195, 77, 0.05), transparent 60%);
  pointer-events: none;
}
.peaks > * { position: relative; }
.peaks .eyebrow { color: var(--gold) !important; }
.peaks .t-h1, .peaks .t-h2, .peaks h1, .peaks h2 { color: var(--ink) !important; }
.peaks .t-lead, .peaks .mute { color: var(--ink-2) !important; }
.peaks-chart {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--line-2) !important;
}
.peaks-legend { color: var(--ink-2) !important; }
.peaks-legend .lg.flat .sw { background: rgba(255, 255, 255, 0.18) !important; }

/* Founders (era #f5f5f7) */
.founders {
  background: var(--bg-1) !important;
  color: var(--ink) !important;
  position: relative;
}
.founders::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(230, 195, 77, 0.05), transparent 60%);
  pointer-events: none;
}
.founders > * { position: relative; }
.founders .eyebrow { color: var(--gold) !important; }
.founders .t-h1, .founders .t-h2, .founders h1, .founders h2 { color: var(--ink) !important; }
.founders .t-lead, .founders .mute { color: var(--ink-2) !important; }

.founder-card {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--line-2) !important;
  transition: border-color .5s var(--ease, ease), transform .5s var(--ease, ease) !important;
}
.founder-card:hover {
  border-color: var(--gold-line) !important;
  transform: translateY(-6px);
}
.founder-photo {
  background: linear-gradient(135deg, #1a1a1a 0%, #0c0c0c 100%) !important;
}
.founder-photo .ph { color: var(--ink-3) !important; }
.founder-photo .ph strong { color: var(--gold) !important; }
.founder-role { color: var(--gold) !important; }
.founder-name { color: var(--ink) !important; }
.founder-bullets li { color: var(--ink-2) !important; }
.founder-bullets li::before { background: var(--gold) !important; }
.founder-social {
  border-color: var(--line-2) !important;
  color: var(--ink-2) !important;
}
.founder-social:hover {
  border-color: var(--gold-line-strong) !important;
  color: var(--gold) !important;
}
.founder-social .gold { color: var(--gold) !important; }

/* Generic .section.light fallback */
.section.light {
  background: var(--bg-1) !important;
  color: var(--ink) !important;
}
.section.light .t-lead, .section.light .mute { color: var(--ink-2) !important; }

/* ============================================
   FIX TEXT-FILL-COLOR FALLBACK
   (gradientes em texto sem fallback em browsers/states que não pintam)
   ============================================ */
.bs-day, .v, .word-i, .gradient-text {
  /* fallback color caso o gradient pinte transparente */
  color: var(--gold) !important;
}
/* mas se o gradient está aplicado, deixa funcionar */
.bs-day[style*="background-clip"], .v[style*="background-clip"] { color: transparent !important; }

/* Big counters (R$ 0M) — garantir que apareçam mesmo zerados */
.number-slide .big {
  color: var(--gold) !important;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* fallback p/ casos onde gradient não rendeu */
@supports not (-webkit-background-clip: text) {
  .number-slide .big { -webkit-text-fill-color: var(--gold); }
}

/* Editorial.winter strong */
.editorial.winter strong, .winter strong {
  color: var(--gold) !important;
  -webkit-text-fill-color: var(--gold) !important;
}

/* ============================================
   GOLD CONTRAST UPGRADE
   (gold #d4af37 em fundo claro era 2.6:1 — agora não tem mais fundo claro,
    mas reforça em fundos escuros pra ler com punch)
   ============================================ */
.eyebrow {
  color: var(--gold) !important;
}

/* Hover dos botões: subir o gold */
.btn-primary:hover { background: var(--gold-bright) !important; }

/* Gold strokes em todos os accents fixos */
[class*="gold-line"], .gold-line { border-color: var(--gold-line) !important; }

/* ============================================
   POLISH: BORDAS, SHADOWS, MICRO-DETAILS
   ============================================ */

/* Cards mais elegantes — borda dupla técnica (1px line + ring inset) */
.flow-card,
.tl-card,
.founder-card,
.case-card,
.scenario-card,
.who-card,
.bs-card,
.faq-item,
.peaks-chart {
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* Hover lift sutil em cards */
.case-card:hover,
.scenario-card:hover,
.who-card:hover,
.bs-card:hover {
  box-shadow:
    0 1px 0 0 rgba(230, 195, 77, 0.10) inset,
    0 0 0 1px rgba(230, 195, 77, 0.10) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

/* ============================================
   SECTION SEPARATORS — gold hairline editorial
   ============================================ */
.section + .section,
section + section {
  position: relative;
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, transparent, var(--gold-line) 50%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   GRAIN OVERLAY — luxury micro-texture
   ============================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================
   SCROLL PROGRESS — refinar
   ============================================ */
.scroll-progress {
  background: linear-gradient(90deg, transparent, var(--gold) 50%, var(--gold-bright)) !important;
  height: 1px !important;
  opacity: 0.85;
}

/* ============================================
   NAV — subtle backdrop refinement
   ============================================ */
.nav.scrolled, .nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border-bottom: 1px solid var(--line) !important;
}

/* ============================================
   BUTTONS — gold sofisticado
   ============================================ */
.btn-primary, .btn.btn-primary, button.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%) !important;
  color: #000 !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.4) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.15) inset,
    0 8px 24px -8px rgba(230, 195, 77, 0.5);
  transition: transform .2s var(--ease, ease), box-shadow .3s var(--ease, ease) !important;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 0 0 rgba(0, 0, 0, 0.18) inset,
    0 14px 32px -8px rgba(230, 195, 77, 0.7);
}
.btn-secondary, .btn.btn-secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-2) !important;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--gold-line-strong) !important;
  background: rgba(230, 195, 77, 0.06) !important;
}

/* ============================================
   FAQ — refinement
   ============================================ */
.faq-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--line) !important;
  transition: border-color .3s var(--ease, ease), background .3s var(--ease, ease) !important;
}
.faq-item:hover { border-color: var(--line-2) !important; }
.faq-item.open {
  border-color: var(--gold-line) !important;
  background: var(--bg-elevated) !important;
}

/* ============================================
   FORM REFINEMENTS
   ============================================ */
.cta input, .cta textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--ink) !important;
  transition: border-color .25s var(--ease, ease), background .25s var(--ease, ease) !important;
}
.cta input:focus, .cta textarea:focus {
  border-color: var(--gold-line-strong) !important;
  background: rgba(230, 195, 77, 0.04) !important;
  outline: none;
}
.cta input::placeholder, .cta textarea::placeholder {
  color: var(--ink-4) !important;
}

/* ============================================
   FOOTER refine
   ============================================ */
footer, .footer {
  background: var(--bg-0) !important;
  border-top: 1px solid var(--line) !important;
  color: var(--ink-3) !important;
}

/* ============================================
   TYPOGRAPHY — APPLE GRADE
   Escala honesta, peso semibold, line-height confortável,
   letter-spacing discreto.
   Reference: apple.com/iphone, apple.com/macbook-pro
   ============================================ */

body {
  font-size: 17px !important;
  line-height: 1.47 !important;
  letter-spacing: -0.022em !important;
  font-weight: 400 !important;
}

/* Hero — antes: clamp(56px, 11vw, 200px). Apple usa max ~80-96px */
.t-mega, .hero-title {
  font-size: clamp(48px, 6.4vw, 88px) !important;
  line-height: 1.07 !important;
  letter-spacing: -0.025em !important;
  font-weight: 600 !important;
  text-wrap: balance;
}

/* Display — para destaques numéricos, antes 128px max */
.t-display {
  font-size: clamp(44px, 5.6vw, 76px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.024em !important;
  font-weight: 600 !important;
}

/* H1 — section titles. Antes 88px max → 56px */
.t-h1 {
  font-size: clamp(34px, 3.8vw, 56px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.022em !important;
  font-weight: 600 !important;
  text-wrap: balance;
}

/* H1.lg — destaque editorial maior. Antes 104px → 64px */
.t-h1.lg {
  font-size: clamp(38px, 4.4vw, 64px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.024em !important;
  font-weight: 600 !important;
}

/* H2 — sub-section. Antes 64px → 40-44px */
.t-h2 {
  font-size: clamp(28px, 3vw, 44px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
  font-weight: 600 !important;
  text-wrap: balance;
}

/* Editorial serif headlines — Fraunces */
.t-h1.editorial,
.t-h2.editorial,
.editorial-h1 {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  font-variation-settings: "SOFT" 50, "opsz" 96 !important;
}

.editorial-h1 {
  font-size: clamp(38px, 4.6vw, 68px) !important;
  line-height: 1.05 !important;
}

.cta-title {
  font-size: clamp(40px, 5vw, 72px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.024em !important;
  font-weight: 400 !important;
  text-wrap: balance;
}

/* Lead body — antes clamp(20-24px). Apple ~21px */
.t-lead, .editorial-lede {
  font-size: clamp(18px, 1.4vw, 21px) !important;
  line-height: 1.5 !important;
  letter-spacing: -0.012em !important;
  font-weight: 400 !important;
  color: var(--ink-2) !important;
  max-width: 60ch;
}

/* "Big" stat numbers — antes 96-128px caricato */
.big {
  font-size: clamp(48px, 6.4vw, 88px) !important;
  line-height: 1.0 !important;
  letter-spacing: -0.025em !important;
  font-weight: 600 !important;
}

/* Tabular numbers everywhere stats appear */
.big, .v, .stat-value, .stat-num, .scenario-card .v, .case-card .v {
  font-variant-numeric: tabular-nums !important;
}

/* Body paragraphs */
p {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink-2);
}

/* Eyebrow tightening — Apple uses 12-13px */
.eyebrow {
  font-size: 12px !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase;
  font-weight: 500 !important;
  color: var(--gold) !important;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--gold-line-strong);
  display: inline-block;
}

/* "step" / "tag" labels */
.step, .tag, .niche, .founder-role {
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.4;
}

/* Render quality */
.t-h1, .t-h2, .t-display, .t-mega, .editorial-h1, .cta-title, .hero-title, .big {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   LAYOUT — narrow Apple containers + generous padding
   ============================================ */

/* Section vertical padding — Apple breathes more */
.section, section.section {
  padding-top: var(--section-py) !important;
  padding-bottom: var(--section-py) !important;
}

/* Editorial sections (full-bleed feel) */
.editorial {
  padding-top: var(--section-py) !important;
  padding-bottom: var(--section-py) !important;
}

/* Inner containers — narrow them down (Apple uses 980-1060) */
.container,
.section > .inner,
.section .container,
.editorial-inner,
.method-flow,
.peaks-chart,
.founders-grid,
.faq-grid,
.cta-inner {
  max-width: var(--container-default) !important;
  margin-left: auto;
  margin-right: auto;
}

/* Hero / large cinematic moments can go a bit wider */
.hero-inner, .cases-grid, .scenarios-grid {
  max-width: var(--container-wide) !important;
  margin-left: auto;
  margin-right: auto;
}

/* Cards: tighten internal padding too */
.flow-card, .tl-card, .case-card, .scenario-card, .who-card, .founder-card, .faq-item, .bs-card {
  padding: clamp(28px, 3vw, 40px) !important;
}
.founder-card { padding: 0 !important; }
.founder-body { padding: clamp(28px, 3vw, 40px) !important; }
.faq-item { padding: clamp(24px, 2.4vw, 32px) clamp(24px, 2.6vw, 36px) !important; }

/* Buttons — Apple uses 11-15px font, 11-22px padding */
.btn, button.btn, a.btn {
  font-size: 15px !important;
  letter-spacing: -0.01em !important;
  font-weight: 500 !important;
  padding: 12px 24px !important;
  border-radius: 980px !important; /* Apple-style full-pill */
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.large, .btn-large {
  font-size: 17px !important;
  padding: 16px 32px !important;
}

/* Spacing between hero pieces — eyebrow → headline → lead → CTA */
.hero-eyebrow + .hero-title,
.eyebrow + .t-h1,
.eyebrow + .t-h2,
.eyebrow + .editorial-h1 {
  margin-top: clamp(20px, 2.4vw, 32px) !important;
}
.hero-title + .hero-sub,
.t-h1 + .t-lead,
.t-h2 + .t-lead,
.editorial-h1 + .editorial-lede,
.editorial-h1 + .t-lead {
  margin-top: clamp(20px, 1.8vw, 28px) !important;
}
.t-lead + .hero-cta,
.hero-sub + .hero-cta,
.t-lead + .actions {
  margin-top: clamp(32px, 3.2vw, 48px) !important;
}

/* ============================================
   SCROLL BEHAVIOR
   ============================================ */
html { scroll-padding-top: 80px; }

/* ============================================
   SELECTION
   ============================================ */
::selection { background: var(--gold); color: #000; }
::-moz-selection { background: var(--gold); color: #000; }
