/* ═══════════════════════════════════════════════════════════
   HERO V2 — Video background · Stats · Slide-up heading
   ═══════════════════════════════════════════════════════════ */

/* ── TYPEWRITER ──────────────────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  font-style: normal;
  font-weight: 700;
  color: var(--brand-400);
  margin-left: 2px;
  animation: cursorBlink 0.7s step-end infinite;
  vertical-align: baseline;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

:root { --hv2-accent: #5E0ED7; }

/* ── LEFT GRADIENT OVERLAY ───────────────────────────────── */
.hero-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(40,0,70,1.00)   0%,
    rgba(40,0,70,0.92)  25%,
    rgba(10,0,20,0.60)  50%,
    rgba(0,0,0,0.20)    65%,
    transparent         80%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-v2::before-unused {
  background: linear-gradient(
    to right,
    rgba(237,233,254,1.00)  0%,
    rgba(237,233,254,0.95) 20%,
    rgba(237,233,254,0.50) 36%,
    transparent            46%
  );
  -webkit-mask-image: none;
  mask-image: none;
  z-index: 1;
  pointer-events: none;
}

/* ── SECTION ─────────────────────────────────────────────── */
.hero-divider {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 4;
  line-height: 0;
  pointer-events: none;
}
.hero-divider svg {
  width: 100%;
  height: 120px;
  display: block;
}
@media (max-width: 768px) {
  .hero-divider svg { height: 70px; }
}

.hero-v2 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
  color: #F1F5F9;
  background: #04111f;
}
.hv2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

/* ── GLOBE SCENE ─────────────────────────────────────────── */
.hv2-globe-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: none !important;
}

/* Page bottom blend into next section */
.hv2-globe-scene::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #16161F);
  z-index: 3;
}

/* Hills WebGL canvas */
.hv2-hills-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  opacity: 0.60;
  pointer-events: none;
}

/* Globe container — right side of hero */
.hv2-globe-wrap {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-52%);
  z-index: 1;
}

/* Rotating Earth */
.hv2-globe {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  background-image: url('https://pub-940ccf6255b54fa799a9b01050e6c227.r2.dev/globe.jpeg');
  background-size: cover;
  background-position: left center;
  animation: earthRotate 30s linear infinite;
  box-shadow:
    0 0 60px rgba(100,210,255,0.18),
    -8px  0   13px #c3f4ff inset,
    25px  3px  42px #000000 inset,
    -40px -3px 57px rgba(195,244,255,0.6) inset,
    420px 0   74px rgba(0,0,0,0.4) inset,
    300px 0   62px rgba(0,0,0,0.68) inset;
}

@keyframes earthRotate {
  0%   { background-position: 0 center; }
  100% { background-position: 400px center; }
}

/* Twinkling stars */
.hv2-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
.hv2-star--lg {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.95; }
}



/* ── CONTENT WRAPPER ─────────────────────────────────────── */
.hv2-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 4rem;
}


/* ── NAV ─────────────────────────────────────────────────── */
.hv2-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
}
@media (min-width: 640px)  { .hv2-nav { padding: 1.25rem 2rem; } }
@media (min-width: 768px)  { .hv2-nav { padding: 1.5rem 3rem; } }

.hv2-logo-ring {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--hv2-accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity .2s;
}
.hv2-logo-ring:hover { opacity: .7; }
.hv2-logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--hv2-accent);
}

.hv2-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
@media (min-width: 768px) { .hv2-nav-links { display: flex; } }

.hv2-nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
  font-family: var(--font-body);
  transition: opacity .2s;
}
.hv2-nav-link:hover { opacity: .55; }

.hv2-hamburger {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #000;
  border: none; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  transition: opacity .2s;
}
.hv2-hamburger:hover { opacity: .75; }
.hv2-hamburger span {
  display: block;
  width: 16px; height: 2px;
  background: white;
  border-radius: 1px;
}

/* ── STATS ROW ───────────────────────────────────────────── */
.hv2-stats-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.25rem;
}
@media (min-width: 640px) { .hv2-stats-row { padding: 2rem; } }
@media (min-width: 768px) { .hv2-stats-row { padding: 2rem 3rem; } }

.hv2-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 640px) { .hv2-stats { gap: 2rem; } }
@media (min-width: 768px) { .hv2-stats { gap: 2.5rem; } }

.hv2-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hv2-stat-num {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: #000;
  line-height: 1;
}
.hv2-accent { color: var(--hv2-accent); font-size: .5em; vertical-align: super; }

.hv2-stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
  font-family: var(--font-body);
  text-align: right;
  line-height: 1.35;
  white-space: pre-line;
}
@media (min-width: 640px) { .hv2-stat-label { font-size: .75rem; } }
@media (min-width: 768px) { .hv2-stat-label { font-size: .875rem; } }

/* ── BOTTOM ──────────────────────────────────────────────── */
.hv2-bottom {
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) { .hv2-bottom { padding: 2rem 2rem 2.5rem; gap: 2rem; } }
@media (min-width: 768px) { .hv2-bottom { padding: 2rem 3rem 3rem; gap: 3rem; } }

/* Row A */
.hv2-row-a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hv2-tagline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #000;
  font-family: var(--font-body);
  max-width: 130px;
  line-height: 1.6;
}
@media (min-width: 640px) { .hv2-tagline { font-size: .75rem; max-width: 160px; } }
@media (min-width: 768px) { .hv2-tagline { max-width: 22rem; } }

.hv2-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hv2-accent);
  white-space: nowrap;
  transition: opacity .2s;
}
.hv2-cta:hover { opacity: .65; }
@media (min-width: 640px) { .hv2-cta { font-size: 1.25rem; } }
@media (min-width: 768px) { .hv2-cta { font-size: 1.5rem; } }
.hv2-cta svg { flex-shrink: 0; }

/* Row B */
.hv2-row-b {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
}
@media (min-width: 640px) { .hv2-row-b { gap: 1rem; } }

.hv2-desc {
  width: 120px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(15,23,42,0.6);
  font-family: var(--font-body);
  line-height: 1.65;
  text-align: left;
}
@media (min-width: 640px) { .hv2-desc { font-size: .8125rem; width: 180px; text-align: right; } }
@media (min-width: 768px) { .hv2-desc { width: 280px; } }

/* Conteúdo alinhado à esquerda do hero */
.hv2-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 2.5rem 1.5rem 2.5rem;
  max-width: 860px;
  margin: 0;
  width: 100%;
}
@media (min-width: 640px)  { .hv2-left { padding: 3rem 2.5rem; } }
@media (min-width: 768px)  { .hv2-left { padding: 4rem 3rem; } }
@media (min-width: 1280px) { .hv2-left { padding: 4rem 5rem; } }

/* br visível só no desktop */
.br-desk { display: none; }
@media (min-width: 768px) { .br-desk { display: block; } }

/* Hero logo */
.hv2-logo-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 1.25rem;
}

/* Eyebrow label */
.hv2-eyebrow {
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F1F5F9;
  margin-bottom: 0.75rem;
}

/* Purple gradient "reais." */
.text-gradient-purple {
  font-style: normal;
  background: linear-gradient(90deg, #818CF8, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main heading */
.hv2-heading {
  font-size: clamp(2.125rem, 5.2vw, 4.325rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #F1F5F9;
  text-align: left;
  font-family: var(--font-display);
  text-shadow: none;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .hv2-heading { font-size: clamp(1.25rem, 5.5vw, 1.75rem); }
}
.hv2-heading em {
  font-style: normal;
  background: linear-gradient(135deg, #5E0ED7, #0EA5E9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typewriter line — elemento independente, tamanho idêntico ao heading */
.tw-line {
  display: block;
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-family: var(--font-display);
  white-space: nowrap;
  height: 1.2em;         /* altura fixa — nunca muda */
  overflow: hidden;
  margin-bottom: var(--s-2);
}
.typewriter-text {
  white-space: nowrap;
}

/* ── DIVIDER BELOW TITLE ─────────────────────────────────── */
.hv2-divider {
  border: none;
  border-top: 1px solid rgba(15,23,42,0.15);
  margin: 1.5rem 0 1.5rem;
  width: 60%;
}

/* ── HERO SUB, CTAs, PROOF ───────────────────────────────── */
.hv2-sub {
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(203,213,225,0.85);
  line-height: 1.75;
  max-width: 52ch;
  margin-top: var(--s-8);
  margin-bottom: var(--s-8);
  text-align: left;
}

.hv2-ctas {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.hv2-btn-primary {
  display: inline-flex; align-items: center;
  padding: 0.85rem 1.75rem;
  background: var(--brand-500);
  color: #fff;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--text-md);
  text-decoration: none;
  transition: background var(--dur-base), transform var(--dur-fast);
  white-space: nowrap;
}
.hv2-btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

.hv2-btn-secondary {
  display: inline-flex; align-items: center;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: rgba(15,23,42,0.85);
  border: 1.5px solid rgba(15,23,42,0.25);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--text-md);
  text-decoration: none;
  transition: border-color var(--dur-base), background var(--dur-base), transform var(--dur-fast);
  white-space: nowrap;
}
.hv2-btn-secondary:hover {
  border-color: var(--brand-500);
  background: color-mix(in srgb, var(--brand-500) 6%, transparent);
  transform: translateY(-2px);
}

/* ── CTA — Fale com um especialista ─────────────────────── */
.hv2-btn-specialist {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  color: #F1F5F9;
  text-decoration: none;
  padding: 0.25rem 0;
  position: relative;
  transition: gap 0.25s ease;
}
.hv2-btn-specialist-line {
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #6366F1, #A78BFA);
  border-radius: 2px;
  flex-shrink: 0;
  transition: width 0.25s ease;
}
.hv2-btn-specialist:hover .hv2-btn-specialist-line {
  width: 48px;
}
.hv2-btn-specialist:hover {
  gap: 14px;
}

.hv2-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
}
.hv2-proof-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--brand-600);
}
.hv2-proof-item div {
  display: flex;
  flex-direction: column;
}
.hv2-proof-item strong {
  font-size: var(--text-lg);
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1.2;
}
.hv2-proof-item span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── ENTRY ANIMATIONS ────────────────────────────────────── */
.hv2-fade-down {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}
.hv2-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}
.hv2-fade-down.hv2-in,
.hv2-fade-up.hv2-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE MENU OVERLAY ─────────────────────────────────── */
.hv2-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.hv2-mobile-menu[hidden] { display: none; }

.hv2-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hv2-mobile-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #000;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s;
}
.hv2-mobile-close:hover { opacity: .7; }

.hv2-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 4rem;
  list-style: none;
}

.hv2-mobile-link {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
  transition: opacity .2s;
}
.hv2-mobile-link:hover { opacity: .55; }

.hv2-mobile-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hv2-accent);
  transition: opacity .2s;
}
.hv2-mobile-cta:hover { opacity: .65; }

/* ── HEADER HIDE ON HERO ─────────────────────────────────── */
#site-header.hero-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

/* ══════════════════════════════════════════════════════════
   HERO — MOBILE (max-width: 767px)
══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Altura segura para iOS com notch */
  .hero-v2 { min-height: 100svh; overflow: hidden; }

  /* Background posiciona no centro */
  .hv2-bg {
    object-position: center center;
    width: 100%; height: 100%;
  }

  /* Overlay cobre tudo para legibilidade */
  .hero-v2::after {
    background: linear-gradient(
      to bottom,
      rgba(40,0,70,0.95)  0%,
      rgba(10,0,20,0.88)  60%,
      rgba(0,0,0,0.92)   100%
    );
  }

  /* Wrap ocupa a tela completa e centraliza conteúdo */
  .hv2-wrap {
    flex-direction: column;
    min-height: 100svh;
    padding-top: 0;
    justify-content: center;
  }

  /* Esconde stats e bottom no mobile — foco no copy */
  .hv2-stats-row { display: none; }
  .hv2-bottom    { display: none; }

  /* Conteúdo principal */
  .hv2-left {
    padding: 7rem 1.5rem 3rem !important;
    max-width: 100% !important;
    width: 100%;
    flex: 1;
    justify-content: center;
  }

  /* Logo */
  .hv2-logo-img {
    height: 52px;
    margin-bottom: 1.25rem;
  }

  /* Eyebrow */
  .hv2-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.625rem;
  }

  /* Heading — remove nowrap e redimensiona */
  .hv2-heading {
    white-space: normal !important;
    font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.25rem;
  }

  /* Divisor */
  .hv2-divider { margin: 1rem 0; width: 100%; }

  /* Subtítulo */
  .hv2-sub {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    max-width: 100%;
  }
  .hv2-sub br { display: none; }

  /* CTAs — botão full width */
  .hv2-ctas {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 0;
    align-items: flex-start;
  }

  .hv2-btn-specialist {
    font-size: 1rem;
    min-height: 44px;
    padding: 0.5rem 0;
  }

  .hv2-btn-primary,
  .hv2-btn-secondary {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }

  /* Proof items compactos */
  .hv2-proof {
    gap: 0.75rem;
    padding-top: 1rem;
    flex-wrap: wrap;
  }
  .hv2-proof-item { gap: 0.5rem; }
  .hv2-proof-item strong { font-size: 1rem; }
  .hv2-proof-item span  { font-size: 0.7rem; }
}

