﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

/* ==========================================
   DESIGN SYSTEM VARIABLES
   ========================================== */
:root {
  --bg-dark: #0f172a;
  --bg-page: #f9fafb;
  --bg-section: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --color-primary: #2d8acb;
  --color-secondary: #38bdf8;
  --color-accent: #6366f1;
  --color-success: #22c55e;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-dark: #1f1f1f;
  --color-border: #e5e7eb;
  --border-color: #e5e7eb;
  --border-hover: rgba(45, 138, 203, 0.25);
  --gradient-primary: linear-gradient(135deg, #2d8acb 0%, #38bdf8 50%, #6366f1 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #2d8acb 100%);
  --gradient-soft: linear-gradient(135deg, #eaf6fd 0%, #f9fafb 60%, #ffffff 100%);
  --font-heading: 'Poppins', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --shadow-subtle: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-glow-hover: 0 24px 60px rgba(45, 138, 203, 0.18);
}

/* ==========================================
   GLOBAL RESETS
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  font-size: 16px;
  background-color: var(--bg-page);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--color-text-muted);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

:focus-visible {
  outline: 3px solid rgba(45, 138, 203, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

ul {
  list-style: none;
}

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

/* ==========================================
   GLOWING BACKGROUNDS & PATTERNS
   ========================================== */
.app-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Glowing Neon Circles */
.glow-spot {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 138, 203, 0.16) 0%, rgba(56, 189, 248, 0.08) 30%, rgba(45, 138, 203, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-spot-1 { top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; }
.glow-spot-2 { top: 1000px; right: -100px; }
.glow-spot-3 { top: 2200px; left: -200px; }
.glow-spot-4 { top: 3800px; right: -200px; }
.glow-spot-5 { bottom: -100px; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; }

/* Subtle Neon Grid Overlay */
.neon-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(45, 138, 203, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 138, 203, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================
   GLASSMORPHISM UTILITIES
   ========================================== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 138, 203, 0.04) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
  z-index: -1;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow-hover);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 64px rgba(45, 138, 203, 0.24);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-text-dark);
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.btn-whatsapp-fixed {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  font-size: 2rem;
  transition: var(--transition-smooth);
}

.btn-whatsapp-fixed:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 211, 102, 0.6);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.72);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.logo {
  display: flex;
  align-items: center;
  max-width: 168px;
}

.logo img {
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================
   LAYOUT SECTIONS
   ========================================== */
section {
  padding: 7rem 2rem;
  position: relative;
  z-index: 2;
  background: var(--bg-page);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: #eaf6fd;
  color: var(--color-primary);
  border: 1px solid rgba(45, 138, 203, 0.18);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-subtle);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 1.2rem;
  color: var(--color-text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ==========================================
   HERO SECTION
   ========================================== */
#inicio {
  position: relative;
  padding: clamp(7rem, 11vh, 9.5rem) 1.5rem clamp(4rem, 8vh, 6rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-soft);
}

/* Fundo premium: grid técnico + glows de marca */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(45, 138, 203, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(45, 138, 203, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 38%, #000 32%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 82% at 50% 38%, #000 32%, transparent 100%);
  opacity: 0.7;
}

.hero-bg-glow {
  position: absolute;
  width: min(34rem, 60vw);
  height: min(34rem, 60vw);
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.5;
}

.hero-bg-glow-1 {
  top: -10rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.5), transparent 70%);
}

.hero-bg-glow-2 {
  bottom: -12rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 600px;
  text-align: left;
}

.hero-content > * {
  animation: heroRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-badge { animation-delay: 0.05s; }
.hero-title { animation-delay: 0.13s; }
.hero-subtitle { animation-delay: 0.22s; }
.hero-ctas { animation-delay: 0.31s; }
.hero-microcopy { animation-delay: 0.4s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 138, 203, 0.28);
  background: rgba(45, 138, 203, 0.08);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
  animation: heroPulse 2.4s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1.35rem;
  color: var(--color-text);
  text-wrap: balance;
}

.hero-title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.hero-ctas .btn {
  min-height: 3.4rem;
  padding-inline: 1.6rem;
  font-size: 1rem;
}

.hero-cta-arrow,
.hero-link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.hero-cta-arrow {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.hero-link-arrow {
  margin-left: 0.1rem;
  color: var(--color-primary);
}

.btn:hover .hero-cta-arrow,
.btn:hover .hero-link-arrow {
  transform: translateX(3px);
}

.hero-microcopy {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.hero-microcopy::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

/* Coluna direita — mockup premium */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  animation: heroVisualIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-visual-glow {
  position: absolute;
  inset: -14%;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(45, 138, 203, 0.35), transparent 62%),
    radial-gradient(circle at 70% 72%, rgba(56, 189, 248, 0.28), transparent 60%);
  filter: blur(46px);
  opacity: 0.85;
}

.hero-visual-frame {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.28),
    0 8px 24px rgba(15, 23, 42, 0.16);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-mockup {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================
   PAIN SECTION (DOR)
   ========================================== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pain-card {
  text-align: left;
}

.pain-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pain-title {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.pain-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ==========================================
   SOLUTION SECTION
   ========================================== */
.solution-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.solution-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.solution-text {
  margin-bottom: 2rem;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.benefit-checkmark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.solution-visual {
  position: relative;
}

.solution-visual video {
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.service-features {
  margin-bottom: 2rem;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.service-feature svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-cta {
  width: 100%;
  margin-top: auto;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(34, 197, 94, 0.05) 100%);
  z-index: 1;
}

.process-step {
  position: relative;
  display: flex;
  gap: 2rem;
  z-index: 2;
}

.process-number-wrapper {
  flex-shrink: 0;
  position: relative;
}

.process-number {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border-color);
  color: var(--color-text);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.process-step:hover .process-number {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.25);
  transform: scale(1.05);
}

.process-body {
  padding-top: 0.8rem;
}

.process-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.process-desc {
  font-size: 0.95rem;
}

/* ==========================================
   PLANS SECTION
   ========================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.plan-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card.featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.plan-card.featured:hover {
  box-shadow: var(--shadow-glow-hover);
}

.plan-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #041f0c;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.plan-price-wrapper {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.plan-price-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-top: 0.3rem;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.plan-features-list {
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.plan-feature-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.plan-cta {
  width: 100%;
}

/* ==========================================
   DIAGNOSTIC FORM (DIAGNÓSTICO GRATUITO)
   ========================================== */
.diagnostic-container {
  max-width: 800px;
  margin: 0 auto;
}

.diagnostic-card {
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-input, .form-select, .form-textarea {
  background: rgba(6, 9, 15, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
  background: rgba(6, 9, 15, 0.7);
}

.form-radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.3rem;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.form-radio {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-cta {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* ==========================================
   VALUE SECTION (PROVA DE VALOR)
   ========================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.value-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.value-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.value-card-body p {
  font-size: 0.9rem;
}

/* ==========================================
   BEFORE/AFTER SECTION (ANTES E DEPOIS)
   ========================================== */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ba-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ba-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 16px;
}

.ba-card.before {
  background: rgba(239, 68, 68, 0.02);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.ba-card.after {
  background: rgba(34, 197, 94, 0.02);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.ba-badge {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.before .ba-badge {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.after .ba-badge {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.ba-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ba-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.before .ba-item {
  color: var(--color-text-muted);
}

.after .ba-item {
  color: var(--color-text);
  font-weight: 500;
}

.before .ba-item-icon {
  color: #ef4444;
  flex-shrink: 0;
}

.after .ba-item-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.ba-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ba-media-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.ba-media img,
.ba-media video {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
}

/* ==========================================
   SEGMENTS SECTION (SEGMENTOS ATENDIDOS)
   ========================================== */
.segments-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

.segment-tag {
  padding: 0.6rem 1.3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.segment-tag:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--color-primary);
  color: var(--color-text);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
}

.segments-action {
  text-align: center;
}

/* ==========================================
   FAQ SECTION (PERGUNTAS FREQUENTES)
   ========================================== */
.faq-list {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out, background 0.25s ease-out;
}

.faq-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-subtle);
}

.faq-item.active {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  gap: 1rem;
  font-family: var(--font-heading);
  line-height: 1.4;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: 16px;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(45, 138, 203, 0.10);
  border: 1px solid rgba(45, 138, 203, 0.22);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.25s ease-out, color 0.25s ease-out;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
  margin: 0 1.5rem;
  padding: 1rem 0 1.4rem;
  border-top: 1px dashed var(--border-color);
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-footer {
  max-width: 1000px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.faq-footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.faq-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon,
  .faq-content {
    transition: none;
  }
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta-container {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.final-cta-card {
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta-card .glow-spot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  z-index: 1;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.final-cta-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.final-cta-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: rgba(6, 9, 15, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 5rem 2rem 2rem 2rem;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-link:hover {
  color: var(--color-text);
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.footer-contact-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
}

.footer-legal-link:hover {
  color: var(--color-text);
}

/* ==========================================
   SCROLL INTERSECTION ENTRY ANIMATIONS
   ========================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for list child elements */
.stagger-parent .fade-in-up {
  opacity: 0;
  transform: translateY(30px);
}

.stagger-parent.in-view .fade-in-up:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-parent.in-view .fade-in-up:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-parent.in-view .fade-in-up:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-parent.in-view .fade-in-up:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-parent.in-view .fade-in-up:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-parent.in-view .fade-in-up:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ==========================================
   LEGAL PAGES STYLE OVERRIDES
   ========================================== */
.legal-main {
  padding-top: 10rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-title {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.legal-content {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.6rem;
  color: var(--color-text);
  margin: 2.5rem 0 1.2rem 0;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* ==========================================
   THANK YOU PAGE STYLE OVERRIDES
   ========================================== */
.thank-you-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 2rem 5rem 2rem;
}

.thank-you-card {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 3rem;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.2);
  animation: pulse-glow 2s infinite alternate;
}

.thank-you-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.thank-you-text {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.thank-you-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.2); }
  100% { box-shadow: 0 0 35px rgba(34, 197, 94, 0.5); }
}

/* ==========================================
   GODIGI OFFICIAL DESIGN SYSTEM OVERRIDES
   ========================================== */
section:nth-of-type(even) {
  background: var(--bg-section);
}

#inicio,
#modelos,
#contato {
  background: var(--gradient-soft);
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: var(--color-primary);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(45, 138, 203, 0.12);
}

.pain-icon,
.service-icon,
.value-icon-wrapper {
  background: #eaf6fd;
  border-color: rgba(45, 138, 203, 0.18);
  color: var(--color-primary);
}

.benefit-checkmark {
  background: #eaf6fd;
  border-color: rgba(45, 138, 203, 0.25);
  color: var(--color-primary);
}

.service-cta {
  color: var(--color-primary);
  font-weight: 700;
}

.process-timeline::before {
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(45, 138, 203, 0.08) 100%);
}

.process-number {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
}

.process-step:hover .process-number {
  color: #ffffff;
  box-shadow: var(--shadow-glow-hover);
}

.plan-card.featured {
  border-color: rgba(45, 138, 203, 0.25);
  box-shadow: var(--shadow-glow-hover);
}

.plan-badge {
  background: var(--gradient-primary);
  color: #ffffff;
}

.plan-price {
  color: var(--color-primary);
}

.plan-feature-item {
  color: #374151;
}

.diagnostic-card {
  border-color: rgba(45, 138, 203, 0.18);
  box-shadow: var(--shadow-glow-hover);
}

.form-input,
.form-select,
.form-textarea {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  color: var(--color-text);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 138, 203, 0.12);
}

.ba-card.before {
  background: #fff7f7;
}

.ba-card.after {
  background: #f0fdf4;
  border-color: rgba(34, 197, 94, 0.18);
}

.segment-tag {
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-subtle);
}

.segment-tag:hover {
  background: #eaf6fd;
  color: var(--color-primary);
  border-color: rgba(45, 138, 203, 0.25);
}

.faq-item {
  background: #ffffff;
  border-color: #e5e7eb;
}

.final-cta-card {
  background: var(--gradient-dark);
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow-glow-hover);
  overflow: hidden;
}

.final-cta-title {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.final-cta-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
  max-width: 156px;
}

.footer-col-title,
.footer-brand .logo,
.footer-link:hover,
.footer-legal-link:hover {
  color: #ffffff;
}


/* ==========================================
   RESPONSIVENESS / MEDIA QUERIES
   ========================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .solution-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
  section {
    padding: 5rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  /* Hamburger Menu navigation active state */
  .menu-toggle {
    display: block;
    z-index: 101;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(6, 9, 15, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    z-index: 100;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-cta {
    display: none; /* Hide in header, place in mobile menu if needed */
  }
  
  .nav-menu .nav-cta {
    display: flex;
    width: 100%;
    justify-content: center;
  }
  
  .nav-menu .nav-cta .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .diagnostic-card {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .btn-whatsapp-fixed {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

/* Final mobile header correction for the official GoDigi light system. */
@media (max-width: 768px) {
  .nav-menu {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid #e5e7eb;
    box-shadow: var(--shadow-glow);
  }

  .nav-link {
    color: #374151;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-primary);
  }
}

/* ==========================================
   THEME TOGGLE + DARK MODE
   ========================================== */
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-primary);
  border-color: rgba(45, 138, 203, 0.35);
  background: #eaf6fd;
}

.theme-icon {
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-icon-moon {
  opacity: 0;
  transform: scale(0.75) rotate(-20deg);
}

body.dark-mode {
  --bg-page: #0f172a;
  --bg-section: #111827;
  --bg-card: #1e293b;
  --bg-card-hover: #243044;
  --color-text: #f9fafb;
  --color-text-muted: #cbd5e1;
  --color-text-dark: #f9fafb;
  --color-border: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(56, 189, 248, 0.35);
  --gradient-soft: linear-gradient(135deg, #0f172a 0%, #111827 58%, #1e3a5f 100%);
  --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.22);
  --shadow-glow: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-glow-hover: 0 24px 60px rgba(45, 138, 203, 0.22);
  background: var(--bg-page);
  color: var(--color-text-muted);
}

body.dark-mode .theme-icon-sun {
  opacity: 0;
  transform: scale(0.75) rotate(20deg);
}

body.dark-mode .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

body.dark-mode header {
  background: rgba(15, 23, 42, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode header.scrolled {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #eaf6fd;
}

body.dark-mode .theme-toggle:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.42);
}

body.dark-mode .nav-link {
  color: #dbeafe;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
  color: #38bdf8;
}

body.dark-mode section,
body.dark-mode section:nth-of-type(even) {
  background: var(--bg-page);
}

body.dark-mode #inicio,
body.dark-mode #modelos,
body.dark-mode #contato {
  background: var(--gradient-soft);
}

body.dark-mode .hero-badge {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-secondary);
}

body.dark-mode .hero-bg-grid {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

body.dark-mode .hero-visual-frame {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

body.dark-mode .hero-subtitle,
body.dark-mode .pain-text,
body.dark-mode .plan-desc,
body.dark-mode .template-desc,
body.dark-mode .section-subtitle,
body.dark-mode .faq-content-inner {
  color: #cbd5e1;
}

body.dark-mode .glass-card,
body.dark-mode .faq-item,
body.dark-mode .segment-tag {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--color-text-muted);
}

body.dark-mode .section-tag,
body.dark-mode .pain-icon,
body.dark-mode .service-icon,
body.dark-mode .value-icon-wrapper,
body.dark-mode .benefit-checkmark,
body.dark-mode .template-badge {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

body.dark-mode .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.16);
}

body.dark-mode .btn-secondary:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

body.dark-mode .form-input,
body.dark-mode .form-select,
body.dark-mode .form-textarea {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f9fafb;
}

body.dark-mode .form-input:focus,
body.dark-mode .form-select:focus,
body.dark-mode .form-textarea:focus {
  background: rgba(15, 23, 42, 0.92);
  border-color: #38bdf8;
}

body.dark-mode .footer-logo,
body.dark-mode #header-logo img {
  filter: none;
}

@media (max-width: 768px) {
  body.dark-mode .nav-menu {
    background: rgba(15, 23, 42, 0.98);
    border-left-color: rgba(255, 255, 255, 0.1);
  }

  body.dark-mode .theme-toggle {
    order: -1;
  }
}

/* ==========================================
   PROFESSIONAL UX / PERFORMANCE POLISH
   ========================================== */
.solution-visual,
.ba-media {
  contain: layout paint;
}

.solution-visual img,
.ba-media img,
.solution-visual video,
.ba-media video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  display: block;
}

.form-input.input-error,
.form-select.input-error,
.form-textarea.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

body.dark-mode .form-input::placeholder,
body.dark-mode .form-textarea::placeholder {
  color: #94a3b8;
}

@media (hover: none) {
  .glass-card:hover,
  .btn:hover,
  .template-card:hover .template-media img {
    transform: none;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-container {
    min-height: 64px;
    padding: 0 1.25rem;
  }

  .logo {
    max-width: 136px;
  }

  .theme-toggle,
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  #inicio {
    padding: 7rem 1.25rem 4rem;
  }

  .hero-ctas .btn,
  .final-cta-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   VIDEO HERO EXPERIENCE
   ========================================== */
/* ====== Hero — animações premium ====== */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.04); }
}

/* ====== Hero — responsivo ====== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 3.5rem);
  }

  .hero-content {
    order: 1;
    max-width: 640px;
    margin-inline: auto;
  }

  .hero-visual {
    order: 2;
    max-width: 540px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  #inicio {
    padding: 6.5rem 1.25rem 4rem;
  }

  .hero-title {
    font-size: clamp(2.05rem, 8.5vw, 2.7rem);
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  .hero-ctas {
    width: 100%;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero-visual-inner,
  .hero-visual-frame,
  .hero-badge-dot {
    animation: none;
  }
}


/* ==========================================
   VITRINE — EXEMPLOS DE PROJETOS DIGITAIS
   ========================================== */
.showcase-reinforce {
  max-width: 760px;
  margin: 1.25rem auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.showcase-header-cta {
  margin-top: 1.75rem;
}

/* ---------- Badges e tags ---------- */
.tpl-segment-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(45, 138, 203, 0.10);
  border: 1px solid rgba(45, 138, 203, 0.25);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tpl-segment-badge-media {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

body.dark-mode .tpl-segment-badge-media {
  background: rgba(15, 23, 42, 0.85);
}

.tpl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.4rem;
}

.tpl-tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.tpl-card:hover .tpl-tag {
  border-color: var(--border-hover);
  color: var(--color-primary);
}

/* ---------- Grid de cards ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tpl-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tpl-card-media {
  position: relative;
  overflow: hidden;
  height: 230px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  background: var(--bg-section);
}

.tpl-card-media:hover img {
  transform: translateY(calc(-100% + 230px));
  transition: transform 6s linear;
}

.tpl-card-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.tpl-card-media-overlay span {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transform: translateY(6px);
  transition: transform 0.25s ease-out;
}

.tpl-card-media:hover .tpl-card-media-overlay {
  opacity: 1;
}

.tpl-card-media:hover .tpl-card-media-overlay span {
  transform: translateY(0);
}

.tpl-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.75rem;
}

.tpl-card-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.tpl-card-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.tpl-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.tpl-card-actions .btn {
  padding: 0.7rem 1.3rem;
  font-size: 0.85rem;
}

.tpl-want-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition-fast);
}

.tpl-want-link:hover {
  gap: 0.6rem;
  color: var(--color-secondary);
}

/* ---------- Bloco de reforço / CTA da vitrine ---------- */
.showcase-cta-card {
  position: relative;
  overflow: hidden;
  margin-top: 3.5rem;
  padding: 3.5rem 2.5rem;
  border-radius: 28px;
  background: var(--gradient-dark);
  text-align: center;
}

.showcase-cta-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.10);
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.showcase-cta-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
  margin-bottom: 1rem;
}

.showcase-cta-text {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.showcase-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Modal de preview ---------- */
.tpl-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

.tpl-modal.tpl-modal-open {
  opacity: 1;
}

.tpl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.tpl-modal-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(1200px, 96vw);
  height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-glow-hover);
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s ease-out;
}

.tpl-modal-open .tpl-modal-shell {
  transform: translateY(0) scale(1);
}

.tpl-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tpl-modal-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.tpl-modal-badge {
  flex-shrink: 0;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 138, 203, 0.10);
  border: 1px solid rgba(45, 138, 203, 0.25);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tpl-modal-title {
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.tpl-modal-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
}

.tpl-modal-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tpl-modal-close:hover {
  color: var(--color-primary);
  border-color: var(--border-hover);
}

.tpl-modal-desc {
  padding: 0.75rem 1.5rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--border-color);
}

.tpl-modal-frame-wrap {
  position: relative;
  flex: 1;
  background: var(--bg-section);
}

.tpl-modal-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Skeleton ---------- */
.tpl-skeleton {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--bg-section);
  overflow: hidden;
  transition: opacity 0.3s ease-out;
}

.tpl-skeleton span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(45, 138, 203, 0.08) 50%, transparent 100%);
  animation: tpl-shimmer 1.4s infinite;
}

.tpl-skeleton-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes tpl-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tpl-card-actions .btn {
    width: 100%;
  }

  .tpl-want-link {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 0;
  }

  .showcase-cta-card {
    padding: 2.5rem 1.5rem;
  }

  .tpl-modal {
    padding: 0;
  }

  .tpl-modal-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .tpl-modal-desc,
  .tpl-modal-btn:not(.btn-primary) {
    display: none;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .tpl-card-media:hover img {
    transform: none;
    transition: none;
  }

  .tpl-skeleton span {
    animation: none;
  }

  .tpl-modal,
  .tpl-modal-shell {
    transition: none;
  }
}

/* ---------- Ajustes da vitrine ---------- */
/* Stagger para grids com mais de 6 cards (a vitrine tem 9) */
.stagger-parent.in-view .fade-in-up:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.stagger-parent.in-view .fade-in-up:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
.stagger-parent.in-view .fade-in-up:nth-child(9) { transition-delay: 0.9s; opacity: 1; transform: translateY(0); }
.stagger-parent.in-view .fade-in-up:nth-child(n+10) { transition-delay: 1s; opacity: 1; transform: translateY(0); }

/* Glow central do bloco de reforço (conteúdo acima do brilho) */
.showcase-cta-card .glow-spot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 540px;
  height: 540px;
  z-index: 1;
}

.showcase-cta-card > :not(.glow-spot) {
  position: relative;
  z-index: 2;
}

/* ---------- Feedback do formulário ---------- */
.form-feedback {
  margin: 1rem 0 0;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback[data-type="error"] {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.30);
  color: #dc2626;
}

.form-feedback[data-type="success"] {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.30);
  color: #16a34a;
}

.form-privacy-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.form-privacy-note a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---------- Acessibilidade: foco visível global ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================
   COVERFLOW PREMIUM DA VITRINE
   ========================================== */
#modelos {
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 138, 203, 0.2), transparent 38%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #ffffff;
}

#modelos .section-tag {
  background: rgba(45, 138, 203, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

#modelos .section-title {
  color: #ffffff;
}

#modelos .section-subtitle,
#modelos .showcase-reinforce {
  color: rgba(255, 255, 255, 0.82);
}

#modelos .section-subtitle {
  max-width: 980px;
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);
  line-height: 1.55;
}

#modelos .showcase-reinforce {
  max-width: 780px;
  margin-top: 1.4rem;
  font-size: 1.02rem;
}

.showcase-coverflow {
  position: relative;
  min-height: 620px;
  margin-top: 2.6rem;
  outline: none;
}

/* ══ Novas seções — Plano de otimização ═══════════════════════════════════ */

/* ── Toggle Mensal/Anual ── */
.plans-toggle-wrapper {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.plans-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.plans-toggle-btn.active {
  background: var(--cor-primaria, #2D8ACB);
  color: #fff;
}
.toggle-savings-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #25D366;
  color: #fff;
  padding: 2px 7px;
  border-radius: 50px;
}

/* ── Planos: novos elementos ── */
.plan-installment {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 0.15rem;
}
.plan-monthly {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #25D366;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.plan-monthly-label {
  font-size: 0.85rem;
  opacity: 0.7;
  color: inherit;
}
.plan-includes-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.7rem;
  margin-top: 0.7rem;
  margin-bottom: 0.5rem;
}
.plans-custom-line {
  margin-top: 2rem;
}
.plans-custom-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  flex-wrap: wrap;
}
.plans-guarantee {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  opacity: 0.8;
}

/* ── Depoimentos ── */
#depoimentos {
  padding: 6rem 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.97rem;
  line-height: 1.65;
  opacity: 0.9;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.9rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cor-primaria, #2D8ACB);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name {
  display: block;
  font-size: 0.9rem;
}
.testimonial-role {
  display: block;
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: 0.1rem;
}

/* ── Números de autoridade ── */
.authority-numbers {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.authority-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.authority-number {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--cor-primaria, #2D8ACB);
}
.authority-label {
  font-size: 0.82rem;
  opacity: 0.65;
  text-align: center;
}

/* ── Sobre a GoDigi ── */
#sobre {
  padding: 6rem 0;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}
.about-content p {
  font-size: 1.02rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.about-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-badge-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
}
.about-badge-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.about-badge-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.about-badge-card span {
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ── Portfólio estático (sem JS) ── */
.portfolio-grid-static {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.portfolio-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--raio, 12px);
}
.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.portfolio-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ── Pain icons com SVG ── */
.pain-icon svg {
  stroke: var(--cor-primaria, #2D8ACB);
}

.showcase-video-panel {
  position: relative;
  max-width: 960px;
  margin: clamp(2.4rem, 5vw, 4rem) auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.32);
}

.showcase-video-panel::before {
  content: '';
  display: block;
  aspect-ratio: 16 / 9;
}

.showcase-video-glow {
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.32), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(99, 102, 241, 0.28), transparent 38%);
  filter: blur(36px);
  opacity: 0.72;
  pointer-events: none;
}

.showcase-intro-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.coverflow-stage {
  position: relative;
  height: 540px;
  overflow: hidden;
}

.coverflow-card {
  --offset: 0;
  --scale: 1;
  --slide-opacity: 1;
  --slide-saturation: 1;
  --slide-blur: 0;
  position: absolute;
  top: 34px;
  left: 50%;
  width: clamp(280px, 30vw, 430px);
  height: 468px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  color: var(--color-text);
  cursor: pointer;
  opacity: var(--slide-opacity);
  filter: saturate(var(--slide-saturation)) blur(var(--slide-blur));
  transform: translateX(calc(-50% + (var(--offset) * clamp(13.2rem, 24vw, 22rem)))) scale(var(--scale));
  transform-origin: center center;
  transition: transform 420ms ease, opacity 420ms ease, filter 420ms ease, box-shadow 420ms ease;
  will-change: transform, opacity, filter;
}

.coverflow-card[aria-current="true"] {
  box-shadow: 0 36px 110px rgba(45, 138, 203, 0.34);
}

.coverflow-card[data-position="hidden"] {
  pointer-events: none;
}

.coverflow-card:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 6px;
}

.coverflow-card .tpl-card-media {
  height: 255px;
  border-bottom-color: rgba(15, 23, 42, 0.08);
  cursor: inherit;
}

.coverflow-card .tpl-card-media:hover img {
  transform: none;
  transition: none;
}

.coverflow-card .tpl-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.coverflow-card .tpl-card-media-overlay {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0) 44%, rgba(15, 23, 42, 0.46) 100%);
}

.coverflow-card .tpl-card-body {
  min-height: 213px;
  padding: 1.45rem;
}

.coverflow-card .tpl-card-title {
  font-size: 1.08rem;
}

.coverflow-card .tpl-card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.coverflow-card .tpl-tags {
  margin-bottom: 0;
}

.coverflow-arrow {
  position: absolute;
  top: 250px;
  z-index: 30;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-primary);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  font-size: 1.35rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.coverflow-arrow:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.coverflow-arrow-prev {
  left: max(1rem, calc(50% - 615px));
}

.coverflow-arrow-next {
  right: max(1rem, calc(50% - 615px));
}

.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.coverflow-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.coverflow-dot-active {
  width: 30px;
  background: var(--color-cyan);
}

.tpl-modal-actions .tpl-modal-btn {
  display: none;
}

.footer-social-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================
   MODAL DE POLÍTICA E TERMOS
   ========================================== */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.legal-modal.legal-modal-open {
  opacity: 1;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.legal-modal-shell {
  position: relative;
  z-index: 2;
  width: min(920px, 96vw);
  max-height: min(86vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: var(--bg-card);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.38);
  transform: translateY(12px) scale(0.985);
  transition: transform 180ms ease;
}

.legal-modal-open .legal-modal-shell {
  transform: translateY(0) scale(1);
}

.legal-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

body.dark-mode .legal-modal-topbar {
  background: rgba(15, 23, 42, 0.86);
}

.legal-modal-back,
.legal-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition-fast);
}

.legal-modal-back {
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
}

.legal-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
}

.legal-modal-back:hover,
.legal-modal-close:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.legal-modal-scroll {
  overflow: auto;
  padding: clamp(1.35rem, 3vw, 2.4rem);
}

.legal-modal-document {
  max-width: 760px;
  margin: 0 auto;
}

.legal-modal-kicker {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 138, 203, 0.1);
  border: 1px solid rgba(45, 138, 203, 0.22);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-modal-title {
  margin-bottom: 0.25rem;
  color: var(--color-text);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.legal-modal-meta {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
}

.legal-modal-document section {
  padding: 1.15rem 0;
  border-top: 1px solid var(--border-color);
}

.legal-modal-document h3 {
  margin-bottom: 0.7rem;
  color: var(--color-text);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.legal-modal-document p,
.legal-modal-document li {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-modal-document ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.legal-modal-document a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-section);
}

@media (max-width: 1024px) {
  .showcase-coverflow {
    min-height: 570px;
  }

  .coverflow-stage {
    height: 500px;
  }

  .coverflow-card {
    width: min(420px, 54vw);
    height: 442px;
    transform: translateX(calc(-50% + (var(--offset) * clamp(13rem, 34vw, 19rem)))) scale(var(--scale));
  }

  .coverflow-card[data-position="-2"],
  .coverflow-card[data-position="2"] {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  #modelos .section-subtitle {
    font-size: 1.06rem;
  }

  .showcase-coverflow {
    min-height: 560px;
    margin-top: 2.4rem;
  }

  .coverflow-stage {
    height: 500px;
  }

  .coverflow-card {
    top: 24px;
    width: min(86vw, 360px);
    height: 440px;
    transform: translateX(calc(-50% + (var(--offset) * 82vw))) scale(var(--scale));
  }

  .coverflow-card[data-position="-2"],
  .coverflow-card[data-position="2"] {
    opacity: 0;
    pointer-events: none;
  }

  .coverflow-arrow {
    top: auto;
    bottom: 0;
    width: 46px;
    height: 46px;
  }

  .coverflow-arrow-prev {
    left: calc(50% - 4rem);
  }

  .coverflow-arrow-next {
    right: calc(50% - 4rem);
  }

  .coverflow-dots {
    margin-top: 0.25rem;
  }

  .legal-modal {
    padding: 0;
  }

  .legal-modal-shell {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coverflow-card,
  .coverflow-arrow,
  .coverflow-dot,
  .legal-modal,
  .legal-modal-shell {
    transition: none;
  }
}

[hidden] {
  display: none !important;
}

/* ==========================================
   BANNER DE CONSENTIMENTO DE COOKIES (LGPD)
   ========================================== */
.cookie-consent {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 9998;
  width: min(420px, calc(100% - 2.5rem));
  padding: 1.3rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-glow-hover);
  transform: translateY(160%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-consent.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.cookie-consent-text p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.cookie-consent-text a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.cookie-consent-actions .cookie-btn {
  flex: 1;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
  .cookie-consent-actions {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: opacity 0.3s ease;
    transform: none;
  }
}
