/* =====================================================
   AGILIZE BUSINESS — custom.css
   Palette: #0B0B0C deep black · #F2C772 gold
   ===================================================== */

/* --- Reset & Base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-behavior: smooth removido para evitar conflito com Lenis */

body {
  font-family: 'Urbanist', 'Inter', sans-serif;
  background-color: #0B0B0C;
  color: #f1f5f9;
  overflow-x: hidden;
}

/* --- Custom scrollbar ----------------------------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0B0B0C; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#F2C772, #c49a3c);
  border-radius: 99px;
}

/* --- CSS Variables -------------------------------- */
:root {
  --gold:   #F2C772;
  --gold2:  #c49a3c;
  --gold3:  #e6b84a;
  --dark:   #0B0B0C;
  --card:   #111111;
  --card2:  #161616;
  --border: rgba(255, 255, 255, 0.07);
  --muted:  rgba(255, 255, 255, 0.45);
}

/* --- Noise texture overlay (DISABLED: too heavy) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.03);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

/* --- Grid background ------------------------------ */
.bg-grid {
  background-image:
    linear-gradient(rgba(242,199,114,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,199,114,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Gradient text -------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #F2C772 45%, #c49a3c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-brand {
  background: linear-gradient(135deg, #F2C772, #e6b84a, #c49a3c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-green {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Glass cards (OPTIMIZED: removed blur) -------- */
.glass {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(242,199,114,0.10);
  border-radius: 1.5rem;
}

/* Fallback: garante visibilidade de cards animados mesmo sem JS */
[data-animate="card"] {
  opacity: 1;
  transform: translate3d(0,0,0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Como funciona: badges saindo do card */
#como-funciona [data-animate="step"] {
  overflow: visible !important;
}

.step-badge {
  width: 3rem;
  height: 3rem;
  transform: translate(-40%, -40%);
  box-shadow: 0 14px 34px rgba(242,199,114,0.28);
  border: 2px solid rgba(11,11,12,0.12);
  z-index: 2;
}

.step-badge::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(242,199,114,0.5);
  border-radius: 9999px;
  opacity: 0.7;
}
.glass-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.5rem;
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1), border-color 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.glass-card:hover {
  background: rgba(242,199,114,0.05);
  border-color: rgba(242,199,114,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(242,199,114,0.10);
}

/* --- Buttons (OPTIMIZED) ------------------------- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #F2C772, #c49a3c);
  color: #0B0B0C;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  font-family: 'Urbanist', sans-serif;
  will-change: transform;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff8e8, #F2C772);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(242,199,114,0.35); }
.btn-primary > * { position: relative; z-index: 1; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  font-family: 'Urbanist', sans-serif;
  will-change: transform;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(16,185,129,0.4); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(242,199,114,0.30);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  font-family: 'Urbanist', sans-serif;
  will-change: transform;
}
.btn-outline:hover {
  background: rgba(242,199,114,0.06);
  border-color: rgba(242,199,114,0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  text-decoration: none;
  font-family: 'Urbanist', sans-serif;
  will-change: transform;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-2px);
  color: #fff;
}

/* --- Section badge -------------------------------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(242,199,114,0.08);
  border: 1px solid rgba(242,199,114,0.28);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #F2C772;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.section-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: badgePulse 2.2s ease-in-out infinite;
}

/* --- Testimonial Video Cards (2 colunas grandes) --- */
.testimonial-card {
  position: relative;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.video-container {
  position: relative;
  overflow: hidden;
  background: #111111;
  border-radius: 12px 12px 0 0;
}

.video-container:hover .play-button-circle {
  transform: scale(1.15);
  box-shadow: 0 12px 40px rgba(242,199,114,0.60);
}

.video-thumb {
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.video-container:hover .video-thumb {
  transform: scale(1.08);
}

.video-play-overlay {
  background: linear-gradient(
    to bottom,
    rgba(11,11,12,0) 0%,
    rgba(11,11,12,0.25) 40%,
    rgba(11,11,12,0.60) 100%
  );
  transition: background 0.3s ease;
}

.video-container:hover .video-play-overlay {
  background: linear-gradient(
    to bottom,
    rgba(11,11,12,0.20) 0%,
    rgba(11,11,12,0.40) 50%,
    rgba(11,11,12,0.70) 100%
  );
}

.video-iframe-container iframe {
  border: none;
}

/* --- Method Timeline (linha vertical + pontos) --------- */
#method-timeline {
  perspective: 1000px;
}

.method-step {
  position: relative;
}

.method-bubble {
  transition: all 0.3s ease;
  will-change: transform;
}

.method-card {
  will-change: transform, opacity;
}

/* Aspect ratio responsive */
.aspect-video {
  aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 16 / 9) {
  .aspect-video {
    padding-bottom: 56.25%; /* 16:9 fallback */
    height: 0;
    position: relative;
  }
  
  .aspect-video > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* --- Badge pulse animation ------------------------ */
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.5); }
}

/* --- Background orbs ------------------------------ */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

/* --- Reveal animations (GSAP targets) ------------- */
.reveal       { opacity:0; transform:translateY(40px); }
.reveal-left  { opacity:0; transform:translateX(-50px); }
.reveal-right { opacity:0; transform:translateX(50px); }
.reveal-scale { opacity:0; transform:scale(0.88); }

/* --- Typing cursor -------------------------------- */
.typing-cursor::after {
  content:'|';
  animation: blink 0.8s step-end infinite;
  color: var(--gold);
  margin-left: 2px;
}
@keyframes blink {
  0%,100% { opacity:1; } 50% { opacity:0; }
}

/* --- FAQ accordion -------------------------------- */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.faq-question {
  width:100%; display:flex; align-items:center;
  justify-content:space-between; padding:1.5rem 0;
  text-align:left; background:none; border:none;
  color:#fff; font-size:1rem; font-weight:500;
  cursor:pointer; font-family:'Urbanist',sans-serif;
  transition: color 0.3s ease;
}
.faq-question:hover { color: #F2C772; }
.faq-icon {
  width:1.5rem; height:1.5rem; border-radius:50%;
  border:1px solid rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition: all 0.35s ease; font-size:0.8rem;
}
.faq-item.active .faq-icon {
  background: #F2C772; border-color: #F2C772; color: #0B0B0C;
  transform: rotate(45deg);
}
.faq-answer { max-height:0; overflow:hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-answer-inner { padding-bottom:1.5rem; color:rgba(255,255,255,0.50); line-height:1.75; }

/* --- Simulator range ------------------------------ */
.sim-range {
  -webkit-appearance:none; appearance:none;
  height:6px; border-radius:99px;
  background:rgba(255,255,255,0.08); outline:none; width:100%;
}
.sim-range::-webkit-slider-thumb {
  -webkit-appearance:none; appearance:none;
  width:22px; height:22px; border-radius:50%;
  background:linear-gradient(135deg, #F2C772, #c49a3c);
  cursor:pointer; box-shadow:0 0 14px rgba(242,199,114,0.50);
  transition: transform 0.2s;
}
.sim-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* --- Form fields ---------------------------------- */
.form-field {
  width:100%; background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08); border-radius:0.875rem;
  padding:0.875rem 1.25rem; color:#fff; font-size:0.95rem;
  font-family:'Urbanist',sans-serif; outline:none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-field::placeholder { color:rgba(255,255,255,0.25); }
.form-field:focus {
  border-color:rgba(242,199,114,0.45);
  box-shadow:0 0 0 3px rgba(242,199,114,0.08);
}
select.form-field option { background:#111111; color:#fff; }

/* --- Marquee -------------------------------------- */
.marquee-track {
  display:flex; width:max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  0%   { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

/* --- Animated gradient border (CTA) --------------- */
.animated-border {
  background:linear-gradient(-45deg,#F2C772,#c49a3c,#e6b84a,#fff8d6,#c49a3c,#F2C772);
  background-size:400% 400%;
  animation: borderAnim 6s ease infinite;
  border-radius:1.75rem; padding:1px;
}
@keyframes borderAnim {
  0%,100% { background-position:0% 50%; }
  50%      { background-position:100% 50%; }
}

/* --- Service cards -------------------------------- */
.service-card {
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.05);
  border-radius:1.5rem; padding:2rem;
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
  position:relative; overflow:hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.service-card::before {
  content:''; position:absolute; top:0; left:0; right:0;
  height:1px; background:linear-gradient(90deg,transparent,rgba(242,199,114,0.5),transparent);
  transform:scaleX(0); transition:transform 0.5s ease;
}
.service-card:hover::before  { transform:scaleX(1); }
.service-card:hover {
  background:rgba(242,199,114,0.04);
  border-color:rgba(242,199,114,0.20);
  box-shadow:0 30px 80px rgba(242,199,114,0.10);
}

/* --- ROAS badge ----------------------------------- */
.roas-badge {
  display:inline-flex; align-items:center; gap:0.375rem;
  padding:0.375rem 0.875rem;
  background:rgba(16,185,129,0.12);
  border:1px solid rgba(16,185,129,0.3);
  border-radius:99px; color:#34d399;
  font-size:0.8rem; font-weight:700;
}

/* --- Mobile-first adjustments --------------------- */
@media (max-width:640px) {
  .btn-primary, .btn-whatsapp, .btn-outline {
    padding: 0.75rem 1.5rem; font-size:0.875rem;
  }
}

/* --- Hero keyframes ------------------------------- */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50%       { opacity: 0.6; transform: scaleY(1.1); }
}

#hero .overflow-hidden { overflow: hidden; }

/* --- Hero headline (Bebas Neue — specs do Framer) --- */
.hero-headline {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.5rem, 14vw, 16rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-feature-settings: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on;
  white-space: nowrap;
}

#hero .hero-headline {
  display: inline-block;
  width: max-content;
}

@media (min-width: 1024px) {
  #hero-h1.hero-headline {
    font-size: var(--hero-h1-desktop-size, clamp(4.5rem, 14vw, 16rem));
  }

  #hero-mockup {
    margin-right: 2.5rem;
  }
}

/* "BUSINESS" — versão stroke (outline) */
.hero-headline-stroke {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
}

/* --- Smoke / fog effect (hero) -------------------- */
.smoke-layer {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(242, 199, 114, 0.05) 0%,
    rgba(196, 154,  60, 0.03) 40%,
    transparent               70%
  );
  filter: blur(55px);
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes smokeA {
  0%   { transform: translate(  0px,   0px) scale(1.00); opacity: 0.55; }
  33%  { transform: translate( 65px, -45px) scale(1.12); opacity: 0.85; }
  66%  { transform: translate(-35px,  25px) scale(0.92); opacity: 0.45; }
  100% { transform: translate(  0px,   0px) scale(1.00); opacity: 0.55; }
}

@keyframes smokeB {
  0%   { transform: translate(  0px,   0px) scale(1.00); opacity: 0.40; }
  50%  { transform: translate(-55px,  38px) scale(1.18); opacity: 0.70; }
  100% { transform: translate(  0px,   0px) scale(1.00); opacity: 0.40; }
}

@keyframes smokeC {
  0%   { transform: translate(  0px,   0px) rotate(  0deg) scale(1.00); opacity: 0.50; }
  40%  { transform: translate( 45px, -35px) rotate(  6deg) scale(1.12); opacity: 0.75; }
  80%  { transform: translate(-25px,  22px) rotate( -4deg) scale(0.90); opacity: 0.35; }
  100% { transform: translate(  0px,   0px) rotate(  0deg) scale(1.00); opacity: 0.50; }
}

/* --- Founder photo hover scale ------------------- */
.founder-photo:hover img {
  transform: scale(1.04);
}
/* Tipo A: fundo sólido profundo */
.section-dark   { 
  background-color: #0B0B0C;
  position: relative;
  z-index: 1;
}
/* Tipo B: fundo card levemente elevado */
.section-card   { 
  background-color: #111111;
  position: relative;
  z-index: 2;
}
/* Tipo C: fundo com glow dourado sutil */
.section-glow {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(242,199,114,0.06) 0%, transparent 65%),
    #0B0B0C;
  position: relative;
  z-index: 3;
}
/* Tipo D: gradiente direcional premium */
.section-gradient {
  background: linear-gradient(135deg, #0B0B0C 0%, #111111 100%);
  position: relative;
  z-index: 4;
}

/* Z-index hierarchy para efeito de cover/wipe */
#hero         { z-index: 1 !important; }
#results      { z-index: 2 !important; }
#services     { z-index: 3 !important; }
#authority    { z-index: 4 !important; }
#method       { z-index: 5 !important; }
#process      { z-index: 6 !important; }
#testimonials { z-index: 7 !important; }
#cta-final    { z-index: 8 !important; }
#faq          { z-index: 9 !important; }
#contact      { z-index: 10 !important; }

/* =====================================================
   FLOATING SIDE NAV
   ===================================================== */
#side-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  opacity: 0;            /* fades in via GSAP after load */
  pointer-events: none;
}

#side-nav-track {
  position: relative;
  width: 170px;
  height: 120px;         /* 3 × 40px — shows exactly 3 items */

  /* Fade top & bottom edges so only center 3 are fully visible */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.5) 18%,
    black 32%,
    black 68%,
    rgba(0,0,0,0.5) 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.5) 18%,
    black 32%,
    black 68%,
    rgba(0,0,0,0.5) 82%,
    transparent 100%
  );
}

/* Thin vertical gold line on the right edge */
#side-nav-line {
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(242,199,114,0.15) 30%,
    rgba(242,199,114,0.55) 50%,
    rgba(242,199,114,0.15) 70%,
    transparent
  );
  pointer-events: none;
}

.snav-item {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-right: 14px;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  will-change: transform, opacity;
}

.snav-label {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  will-change: color, font-size, letter-spacing;
}

.snav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  will-change: transform, background, box-shadow;
  transition: none;
}

/* Hover state */
.snav-item:hover .snav-label {
  color: rgba(255,255,255,0.55);
}

/* Mobile: hide completely */
@media (max-width: 1023px) {
  #side-nav { display: none !important; }
}

/* =====================================================
   RESPONSIVE DESIGN — Mobile First
   ===================================================== */

/* ── Mobile Portrait (320px - 479px) ───────────────── */
@media (max-width: 479px) {
  
  /* Typography scaling */
  .hero-headline {
    font-size: clamp(3rem, 14vw, 5rem) !important;
    line-height: 0.95 !important;
  }
  
  #hero-h2.hero-headline {
    font-size: var(--hero-h2-mobile-size, clamp(3rem, 14vw, 5rem)) !important;
  }
  
  /* Reduce padding */
  .max-w-\[1500px\] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Section spacing */
  [class*="py-24"],
  [class*="py-32"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Badges smaller */
  .section-badge {
    font-size: 0.625rem;
    padding: 0.4rem 0.85rem;
  }
  
  /* Grid 1 col only */
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
}

/* ── Mobile Landscape & Tablet Portrait (480px - 767px) ── */
@media (min-width: 480px) and (max-width: 767px) {
  
  .hero-headline {
    font-size: clamp(3.5rem, 12vw, 6rem) !important;
  }
  
  #hero-h2.hero-headline {
    font-size: var(--hero-h2-mobile-size, clamp(3.5rem, 12vw, 6rem)) !important;
  }
  
  /* 2 columns for cards */
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
}

/* ── Tablet (768px - 1023px) ─────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  
  .hero-headline {
    font-size: clamp(4rem, 10vw, 6.5rem) !important;
  }
  
  #hero-h2.hero-headline {
    font-size: var(--hero-h2-mobile-size, clamp(4rem, 10vw, 6.5rem)) !important;
  }
  
  /* Better spacing */
  [class*="py-24"] {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
  
  [class*="py-32"] {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
  }
  
}

/* ── Hero Section Mobile Optimizations ────────────────── */
@media (max-width: 1023px) {

  /* Hero height */
  #hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport for mobile browsers */
  }

  /* Hero content centering */
  #hero .flex-col.justify-between {
    justify-content: center !important;
    gap: 2rem;
  }

  /* Hero phone sizing */
  #hero-mockup {
    max-width: 430px !important;
  }

  #hero-phone {
    min-width: 370px !important;
  }

  /* Hide decorative elements */
  .smoke-layer,
  #orb-r {
    display: none !important;
  }

  /* Simplify hero background */
  #hero-bg {
    opacity: 0.25 !important;
  }

  /* Hero scroll indicator */
  #hero-scroll {
    bottom: 1.5rem;
  }

}

/* ── Method Timeline Mobile ────────────────────────────── */
@media (max-width: 1023px) {
  
  /* Vertical timeline */
  #method .lg\:flex-row-reverse {
    flex-direction: column !important;
  }
  
  #method {
    overflow: visible !important;
  }

  #method .method-step {
    padding-left: 0;
    align-items: flex-start !important;
  }

  #method .method-card {
    width: 100% !important;
    margin-left: 0 !important;
  }

  #method .method-bubble {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-bottom: 0.75rem;
  }
  
  /* Hide connecting line */
  #method .absolute.left-1\/2 {
    display: none !important;
  }
  
}

/* ── Founders/Process Cards Mobile ─────────────────────── */
@media (max-width: 1023px) {
  
  .founder-row {
    flex-direction: column !important;
  }
  
  .founder-photo {
    width: 100% !important;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .founder-meta,
  .founder-bio {
    width: 100% !important;
    text-align: center;
  }
  
}

/* ── Navigation Mobile ─────────────────────────────────── */
@media (max-width: 1023px) {
  
  /* Main nav adjustments if needed */
  nav .hidden {
    display: none !important;
  }
  
  /* Ensure mobile menu works */
  .mobile-menu-btn {
    display: block !important;
  }
  
}

/* ── Glass Cards Mobile ────────────────────────────────── */
@media (max-width: 767px) {
  
  .glass-card {
    padding: 1.25rem !important;
  }
  
  /* Reduce hover effects on touch devices */
  .glass-card:hover {
    transform: none;
  }
  
  .glass-card:active {
    transform: scale(0.98);
  }
  
}

/* ── Results Cards Grid ────────────────────────────────── */
@media (max-width: 640px) {
  
  /* Stack result metrics vertically */
  #results .flex.items-end {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  
}

/* ── Testimonials Grid ─────────────────────────────────── */
@media (max-width: 767px) {
  
  #testimonials .lg\:grid-cols-3,
  #testimonials .md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
}

/* ── FAQ Mobile ────────────────────────────────────────── */
@media (max-width: 767px) {
  
  .faq-question {
    font-size: 1rem !important;
    padding: 1rem !important;
  }
  
  .faq-answer {
    font-size: 0.875rem !important;
    padding: 1rem !important;
  }
  
}

/* ── Contact Form Mobile ───────────────────────────────── */
@media (max-width: 767px) {
  
  #contact form .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
  #contact input,
  #contact select,
  #contact textarea {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
}

/* ── CTA Section Mobile ────────────────────────────────── */
@media (max-width: 767px) {
  
  #cta-final .flex-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  #cta-final .btn-primary,
  #cta-final .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
}

/* ── Authority Stats Grid ──────────────────────────────── */
@media (max-width: 640px) {
  
  #authority .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  #authority [style*="border-right"] {
    border-right: none !important;
  }
  
  #authority > div > div:nth-child(odd) {
    border-right: 1px solid rgba(242,199,114,0.08) !important;
  }
  
}

/* ── Services Grid Mobile ──────────────────────────────── */
@media (max-width: 640px) {
  
  #services .lg\:grid-cols-3,
  #services .md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
}

/* ── Results Cards Mobile Horizontal Scroll ──────────────── */
.results-cards-wrapper {
  position: relative;
  width: 100%;
}

.results-carousel-shell {
  position: relative;
}

.results-carousel-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
  padding: 0 0.25rem;
}

.results-carousel-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(242,199,114,0.32);
  background: rgba(17,17,17,0.9);
  color: #F2C772;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .results-cards-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .results-card {
    width: 100% !important;
  }
}

@media (max-width: 1023px) {
  #results {
    overflow: visible;
  }

  .results-cards-wrapper {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 1.25rem;
    will-change: transform;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .results-cards-wrapper::-webkit-scrollbar {
    display: none;
  }

  .results-card {
    min-width: 85vw !important;
    max-width: 400px !important;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .results-carousel-controls {
    display: flex;
  }

  #results-prev {
    transform: translateX(-38%);
  }

  #results-next {
    transform: translateX(38%);
  }

  .results-carousel-btn:active {
    transform: scale(0.94);
  }
}

/* ── Animated Border for Single Story ──────────────── */
.story-border-animated {
  background: linear-gradient(135deg, #F2C772, #e6b84a, #c49a3c, #F2C772);
  background-size: 300% 300%;
  animation: borderFlow 3s ease infinite;
}

@keyframes borderFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.story-progress-bar {
  position: relative;
  overflow: hidden;
}

.story-progress-fill {
  background: linear-gradient(90deg, #F2C772, #ffffff);
  transform-origin: left;
}

.story-dot {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-dot:hover {
  background-color: rgba(242, 199, 114, 0.5) !important;
  transform: scale(1.2);
}

.stories-container-simple {
  max-width: 100%;
}

@media (max-width: 767px) {
  .stories-container-simple {
    max-width: 90vw;
    margin: 0 auto;
  }

  #single-story-card {
    --story-max-h: 74svh;
    max-height: var(--story-max-h);
    width: min(100%, calc(var(--story-max-h) * 9 / 16)) !important;
  }

  /* Dots navigation */
  .story-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .story-dot.active,
  .story-dot[style*="width: 24px"] {
    width: 14px !important;
  }
}

/* ── Touch Device Optimizations ────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  
  /* Remove hover effects that don't work on touch */
  .glass-card:hover {
    transform: none !important;
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.06);
  }
  
  /* Larger touch targets */
  button,
  a.btn-primary,
  a.btn-secondary,
  .faq-question {
    min-height: 48px;
    min-width: 48px;
  }
  
  /* Disable custom cursor on touch devices */
  #cursor,
  #cursor-follower {
    display: none !important;
  }
  
}

/* ── Landscape Mobile Optimization ─────────────────────── */
@media (max-height: 600px) and (orientation: landscape) {
  
  /* Reduce hero min-height in landscape */
  #hero {
    min-height: auto !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4.5rem) !important;
  }
  
}

/* ── High DPI Screens (Retina) ─────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  /* Sharper text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
}

/* ── Dark Mode Override (if user prefers) ──────────────── */
@media (prefers-color-scheme: dark) {
  /* Already dark, no changes needed */
}

/* ── Reduced Motion Preference ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .smoke-layer,
  .orb {
    animation: none !important;
  }
  
}

/* ── Print Styles ───────────────────────────────────────── */
@media print {
  
  /* Hide non-essential elements */
  #cursor,
  #cursor-follower,
  #side-nav,
  #hero-scroll,
  .smoke-layer,
  .orb {
    display: none !important;
  }
  
  /* Ensure text is black on white */
  body {
    background: white !important;
    color: black !important;
  }
  
  section {
    page-break-inside: avoid;
  }
  
}

/* =====================================================
   STORIES INSTAGRAM STYLE - TESTIMONIALS
   ===================================================== */

.stories-container {
  perspective: 2500px;
  perspective-origin: center center;
  position: relative;
  width: 100%;
  max-width: 1400px;
  min-height: clamp(500px, 70vw, 650px);
  margin: 0 auto;
  transform-style: preserve-3d;
}

.stories-wrapper {
  position: relative;
  width: 100%;
  min-height: clamp(460px, 62vw, 560px);
  margin: 0 auto;
  transform-style: preserve-3d;
}

/* Story Card Base */
.story-card {
  position: absolute;
  top: 0;
  left: 50%;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  filter: blur(15px) saturate(0.4) brightness(0.5);
  transform: translate3d(-50%, 40px, -300px) scale(0.7) rotateY(0deg);
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.7s ease,
              filter 0.7s ease;
  will-change: transform, opacity, filter;
  cursor: pointer;
}

.story-card.is-active {
  opacity: 1;
  z-index: 50;
  pointer-events: auto;
  filter: blur(0) saturate(1) brightness(1);
  transform: translate3d(-50%, 0, 0) scale(1.08) rotateY(0deg);
}

.story-card.is-prev {
  opacity: 0.35;
  z-index: 20;
  pointer-events: none;
  filter: blur(8px) saturate(0.6) brightness(0.5);
  transform: translate3d(calc(-50% - 420px), 35px, -220px) scale(0.78) rotateY(30deg);
}

.story-card.is-next {
  opacity: 0.35;
  z-index: 20;
  pointer-events: none;
  filter: blur(8px) saturate(0.6) brightness(0.5);
  transform: translate3d(calc(-50% + 420px), 35px, -220px) scale(0.78) rotateY(-30deg);
}

.story-card.is-hidden {
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  filter: blur(15px) saturate(0.4) brightness(0.4);
  transform: translate3d(-50%, 60px, -350px) scale(0.65) rotateY(0deg);
}

.story-card.is-active:hover {
  transform: translate3d(-50%, -12px, 0) scale(1.11) rotateY(0deg);
  z-index: 55;
  filter: blur(0) saturate(1.05) brightness(1.05);
}

.story-card.is-active:hover .story-glow {
  opacity: 1;
  animation: storyGlow 2s ease-in-out infinite;
}

.story-card.is-active:hover .story-hover-overlay {
  opacity: 1;
}

.story-card.is-active:hover .story-progress-fill {
  animation: storyProgress 5s linear forwards;
}

.story-card.is-active:hover .story-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(242, 199, 114, 0.4);
}

/* Video background layer inside story cards */
.story-bg-video {
  pointer-events: none;
  opacity: 0.34;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.story-card:not(.is-active) .story-bg-video {
  opacity: 0.14;
  filter: blur(8px);
  transform: scale(1.08);
}

/* Story Progress Bar */
@keyframes storyProgress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Glow Animation */
@keyframes storyGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

/* Story Name Blur Effect */
.story-name-blur {
  letter-spacing: 0.05em;
  /* Blur do meio do nome */
}

/* Floating Particles */
.story-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(242, 199, 114, 0.4);
  animation: particleFloat 6s ease-in-out infinite;
}

.particle-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle-2 {
  top: 60%;
  right: 25%;
  animation-delay: 2s;
}

.particle-3 {
  bottom: 30%;
  left: 40%;
  animation-delay: 4s;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(10px, -20px) scale(1.5);
    opacity: 0.8;
  }
  50% {
    transform: translate(-5px, -40px) scale(1);
    opacity: 0.4;
  }
  75% {
    transform: translate(15px, -20px) scale(1.2);
    opacity: 0.6;
  }
}

/* Story Quote Card */
.story-quote-card {
  transform: translateY(10px);
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-card.is-active:hover .story-quote-card {
  transform: translateY(0);
  opacity: 1;
  border-color: rgba(242, 199, 114, 0.3);
}

/* Result text animation */
.story-result {
  opacity: 0.9;
  transform: scale(0.95);
  transition: all 0.4s ease;
}

.story-card.is-active:hover .story-result {
  opacity: 1;
  transform: scale(1);
}

/* Story Indicators (Dots Navigation) */
.story-indicators {
  position: relative;
  z-index: 60;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.story-indicator-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.story-indicator-dot::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(242, 199, 114, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-indicator-dot.active {
  background: linear-gradient(135deg, #F2C772, #e6b84a);
  width: 2rem;
  box-shadow: 0 0 20px rgba(242, 199, 114, 0.6), 0 0 40px rgba(242, 199, 114, 0.3);
}

.story-indicator-dot.active::before {
  opacity: 1;
  animation: dotPulse 2s ease-in-out infinite;
}

.story-indicator-dot:hover:not(.active) {
  background-color: rgba(242, 199, 114, 0.5);
  transform: scale(1.3);
}

.story-indicator-dot:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 199, 114, 0.3);
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
}

.story-nav-btn:active {
  transform: translateY(-1px);
}

.story-nav-btn-toggle {
  min-width: 130px;
  background: linear-gradient(135deg, rgba(242, 199, 114, 0.12), rgba(196, 154, 60, 0.12));
}

.story-nav-btn-toggle[data-playing="false"] .story-play-icon {
  display: block;
}

.story-nav-btn-toggle[data-playing="false"] .story-pause-icon {
  display: none;
}

.story-nav-btn-toggle[data-playing="true"] .story-play-icon {
  display: none;
}

.story-nav-btn-toggle[data-playing="true"] .story-pause-icon {
  display: block;
}

@media (max-width: 1024px) {
  .stories-wrapper {
    min-height: clamp(430px, 128vw, 560px);
  }

  .story-card.is-prev {
    transform: translate3d(calc(-50% - 280px), 35px, -150px) scale(0.78) rotateY(20deg);
  }

  .story-card.is-next {
    transform: translate3d(calc(-50% + 280px), 35px, -150px) scale(0.78) rotateY(-20deg);
  }

  .story-carousel-controls {
    margin-top: 2.5rem;
  }
}

@media (max-width: 767px) {
  .stories-container {
    perspective: 1200px;
    overflow: hidden;
  }

  .stories-wrapper {
    min-height: clamp(500px, 140vw, 580px);
  }

  /* Mobile: Hide non-active cards completely off-screen */
  .story-card.is-prev,
  .story-card.is-next {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, 0, -200px) scale(0.6);
    filter: blur(20px) saturate(0.3) brightness(0.4);
  }

  .story-card.is-hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
  }

  /* Active card: full focus, centered */
  .story-card.is-active {
    opacity: 1;
    z-index: 50;
    transform: translate3d(-50%, 0, 0) scale(1);
    filter: blur(0) saturate(1) brightness(1);
  }

  .story-carousel-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .story-nav-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
  }

  .story-nav-btn span:not([data-story-nav-label]) {
    display: none;
  }
}

/* =====================================================
   CONTACT SECTION - PREMIUM DESIGN
   ===================================================== */

/* Contact Left Animations */
.contact-left {
  opacity: 0;
  transform: translateX(-50px);
}

.contact-left.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Links Hover */
.contact-link {
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
}

.contact-link:hover::before {
  left: 100%;
}

/* Form Card Styling */
.contact-form-wrapper {
  opacity: 0;
  transform: translateX(50px);
}

.contact-form-wrapper.animated {
  opacity: 1;
  transform: translateX(0);
}

.contact-form-card {
  position: relative;
}

.contact-form-card:hover .form-border-glow {
  opacity: 1;
}

/* Form Field Groups Animation */
.form-field-group {
  opacity: 0;
  transform: translateY(20px);
}

.form-field-group.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Input Focus Effects */
.contact-input:focus,
.contact-select:focus {
  border-color: rgba(242, 199, 114, 0.5);
  box-shadow: 0 0 0 4px rgba(242, 199, 114, 0.1);
}

.contact-input:focus ~ .input-focus-line,
.contact-select:focus ~ .input-focus-line {
  width: 100%;
  left: 0;
}

/* Select Arrow Animation */
.contact-select {
  background-image: none;
}

/* Submit Button Hover Effects */
.contact-submit-btn {
  position: relative;
  overflow: hidden;
}

.contact-submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact-submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Floating Orbs Animation */
.contact-orb {
  animation: orbFloat 10s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -20px); }
  50% { transform: translate(-10px, 10px); }
  75% { transform: translate(15px, 15px); }
}

/* Trust Badges Animation */
.contact-badges > div {
  opacity: 0;
  transform: translateY(10px);
}

.contact-badges.animated > div {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   SIDE NAV - FIXED POSITION FIX
   ===================================================== */

#side-nav {
  position: fixed !important;
  right: 2rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

#side-nav.visible {
  opacity: 1 !important;
}

/* Ensure nav track is properly positioned */
#side-nav-track {
  position: relative;
  width: 170px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* =====================================================
   METHOD SECTION - CARDS FIX
   ===================================================== */

.method-step {
  position: relative;
}

.method-card {
  will-change: transform, opacity;
}

.method-bubble {
  will-change: transform, opacity;
}

/* Method cards should always be visible by default */
#method .method-step,
#method .method-card,
#method .method-bubble {
  opacity: 1;
  visibility: visible;
}

/* Ensure method section has proper stacking */
#method {
  position: relative;
  z-index: 5;
}

/* =====================================================
   MEDIA LOADING HELPERS
   ===================================================== */
.media-loading {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.04),
    rgba(242, 199, 114, 0.08),
    rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: mediaShimmer 1.2s linear infinite;
}

.media-loaded {
  animation: none;
  background: transparent;
}

.media-error {
  background: rgba(255, 255, 255, 0.04);
  color: #fca5a5 !important;
}

@keyframes mediaShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#contact-feedback {
  margin-top: 0.35rem;
}
