/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:          #0A0D13;
  --bg-alt:      #11151E;
  --card:        #161B26;
  --card-hi:     #1C2230;
  --line:        rgba(255,255,255,0.07);
  --line-gold:   rgba(201,162,74,0.30);
  --gold:        #C9A24A;
  --gold-soft:   #E2C275;
  --gold-deep:   #8E6F2C;
  --text:        #F4F2EC;
  --text-mute:   #C7C5BF;
  --text-dim:    #7A7A78;
  --radius:      4px;
  --sans:        'Geist', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono:        'Geist Mono', ui-monospace, monospace;
  --maxw:        1240px;
  --transition:  0.25s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text-mute);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none; opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap        { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.section     { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 300;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 12px rgba(201,162,74,0.6);
  transition: transform 0.1s linear;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #0A0D13;
  font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-primary.btn-full { width: 100%; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-gold); color: var(--gold);
  font-weight: 500; font-size: 15px;
  padding: 13px 28px; border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,162,74,0.08); transform: translateY(-1px); }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  background: rgba(10,13,19,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--transition);
}
.topbar.scrolled { border-bottom-color: var(--line-gold); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo img { height: 32px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; color: var(--text-mute); transition: color var(--transition); }
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold); color: #0A0D13 !important;
  font-weight: 600; font-size: 14px;
  padding: 8px 18px; border-radius: var(--radius);
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-soft) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-mute); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 160px 0 96px;
  min-height: 100svh;
  display: flex; align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 13px;
  color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700; line-height: 1.08;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 820px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-mute); max-width: 560px;
  margin-bottom: 40px; line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head { margin-bottom: 56px; }
.section-num {
  font-family: var(--mono); font-size: 12px;
  color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; color: var(--text); line-height: 1.15;
  max-width: 640px;
}

/* ============================================================
   EFEITO DE ELEVACAO
   ============================================================ */
.elevate {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.elevate:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,162,74,0.25), 0 0 40px rgba(201,162,74,0.08);
  border-color: rgba(201,162,74,0.4);
}

/* ============================================================
   STATS (NUMEROS)
   ============================================================ */
.stats { padding: 72px 0; background: var(--bg-alt); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  padding: 32px 28px;
  text-align: center;
  cursor: default;
}
.stat-num {
  display: block;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.4;
}

/* ============================================================
   SERVICOS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  padding: 36px 32px;
}
.service-icon {
  color: var(--gold);
  margin-bottom: 20px;
}
.service-title {
  font-size: 20px; font-weight: 600;
  color: var(--text); margin-bottom: 12px;
}
.service-desc { font-size: 15px; color: var(--text-mute); line-height: 1.65; }

/* ============================================================
   PROCESSO
   ============================================================ */
.steps {
  display: flex; align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1; padding: 32px 24px;
  text-align: center;
}
.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  margin-top: 40px;
  opacity: 0.4;
}
.step-num {
  font-family: var(--mono);
  font-size: 36px; font-weight: 700;
  color: var(--gold); opacity: 0.3;
  line-height: 1; margin-bottom: 16px;
}
.step-title {
  font-size: 18px; font-weight: 600;
  color: var(--text); margin-bottom: 10px;
}
.step-desc { font-size: 14px; color: var(--text-mute); line-height: 1.6; }

/* ============================================================
   CASES
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
}
.case-card--featured { grid-row: span 1; }
.case-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--card-hi);
  cursor: pointer;
  overflow: hidden;
}
.case-thumb-video {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(0.6);
  transition: filter var(--transition);
}
.case-video-thumb:hover .case-thumb-video { filter: brightness(0.8); }
.case-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: transform var(--transition);
}
.case-play-btn svg {
  width: 56px; height: 56px;
  background: rgba(10,13,19,0.7);
  border-radius: 50%;
  padding: 16px;
  border: 2px solid rgba(201,162,74,0.4);
  transition: border-color var(--transition), background var(--transition);
}
.case-video-thumb:hover .case-play-btn svg {
  border-color: var(--gold);
  background: rgba(201,162,74,0.15);
}
.case-body { padding: 28px; background: var(--card); }
.case-card:not(.case-card--featured) .case-body { height: 100%; }
.case-tag {
  font-family: var(--mono); font-size: 11px;
  color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.case-name {
  font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.case-desc { font-size: 14px; color: var(--text-mute); margin-bottom: 20px; }
.case-quote {
  font-style: italic; font-size: 15px;
  color: var(--text-mute); border-left: 2px solid var(--gold);
  padding-left: 16px; margin-bottom: 20px;
  line-height: 1.6;
}
.case-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.case-stat { display: flex; flex-direction: column; gap: 2px; }
.case-stat strong { font-size: 20px; color: var(--gold); }
.case-stat span { font-size: 12px; color: var(--text-dim); }

/* ============================================================
   FUNDADOR
   ============================================================ */
.founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px; align-items: center;
}
.founder-photo img {
  width: 100%; border-radius: var(--radius);
  filter: grayscale(20%);
}
.founder-copy p {
  font-size: 16px; color: var(--text-mute);
  margin-bottom: 20px; line-height: 1.7;
}
.founder-copy p strong { color: var(--text); }
.founder-stats {
  display: flex; gap: 32px;
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.founder-stat { display: flex; flex-direction: column; gap: 4px; }
.founder-stat strong { font-size: 22px; color: var(--gold); }
.founder-stat span { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   FORMULARIO
   ============================================================ */
.form-section {
  padding: 96px 0;
  position: relative;
}
.form-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,162,74,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.form-head { text-align: center; margin-bottom: 48px; }
.form-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.form-sub { font-size: 16px; color: var(--text-mute); }
.form-box { max-width: 560px; margin: 0 auto; }
.form-box--center { text-align: center; }
.form-box--center h3 { font-size: 24px; color: var(--text); margin: 20px 0 12px; }
.form-box--center p { color: var(--text-mute); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,74,0.12);
}
.field select option { background: var(--card); }
.field textarea { resize: vertical; min-height: 100px; }
.form-wa-link { text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 16px; }
.form-wa-link a { color: var(--gold); text-decoration: underline; }
.step-heading { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.step-sub { font-size: 14px; color: var(--text-mute); margin-bottom: 20px; }

/* ============================================================
   CALENDAR PICKER
   ============================================================ */
.cal-dates { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cal-date-btn {
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  color: var(--text-mute); font-size: 14px; cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.cal-date-btn:hover,
.cal-date-btn.selected {
  border-color: var(--gold); color: var(--gold);
  background: rgba(201,162,74,0.08);
}
.cal-slots-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.cal-slot-btn {
  padding: 10px 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  color: var(--text-mute); font-size: 14px; cursor: pointer;
  font-family: var(--mono);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.cal-slot-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,162,74,0.08); }
.cal-confirm { font-size: 15px; color: var(--text-mute); padding: 20px 0; }

/* ============================================================
   MODAL DE VIDEO
   ============================================================ */
.video-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.video-modal:not([hidden]) { opacity: 1; pointer-events: auto; }
.video-modal[hidden] { display: flex !important; opacity: 0; pointer-events: none; }
.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}
.video-modal-inner {
  position: relative; z-index: 1;
  width: min(90vw, 900px);
  background: var(--card); border-radius: var(--radius);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.video-modal:not([hidden]) .video-modal-inner { transform: scale(1); }
.video-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,0.5); border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background var(--transition);
}
.video-modal-close:hover { background: rgba(0,0,0,0.8); }
#modal-video { width: 100%; display: block; max-height: 80vh; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo img { height: 26px; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-wa { font-size: 13px; color: var(--gold); }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  background: #25D366; color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card--featured { grid-row: auto; }
  .founder { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 64px; min-height: auto; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { width: 2px; height: 32px; margin: 0 auto; }
  .nav { display: none; position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 20px 32px; gap: 20px; }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .founder-stats { flex-direction: column; gap: 20px; }
}
