/* ============================================================
   AYLA - Design System & Styles
   Premium dark-theme one-page institutional site
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0A0E17;
  --bg-secondary: #0D1117;
  --bg-card: #111827;
  --bg-card-hover: #151d2e;
  --accent: #3B82F6;
  --accent-dark: #2563EB;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-glow-md: rgba(59, 130, 246, 0.25);
  --accent-glow-strong: rgba(59, 130, 246, 0.4);
  --text-primary: #F4F5F7;
  --text-secondary: #9AA4B2;
  --text-tertiary: #6B7A90;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(59, 130, 246, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-highlight: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-out-quart);
  --transition-base: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
  --container-max: 1200px;
  --container-padding: 24px;
  --section-padding: 140px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

@media (max-width: 768px) {
  body::after { display: none; }
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  position: relative;
  padding: var(--section-padding) 0;
  z-index: 2;
}

/* Subtle alternating section backgrounds for visual rhythm */
.prova-social,
.diferenciacao,
.cta-final {
  background-image: radial-gradient(circle, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.implementacao,
.para-quem {
  background-color: rgba(255,255,255,0.008);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.highlight {
  font-family: var(--font-highlight);
  font-style: italic;
  color: var(--accent);
}

h1 .highlight, h2 .highlight { font-size: 1.05em; }

/* Blue underline accent */
.underline-accent {
  position: relative;
  display: inline;
}

.underline-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ---- Section label ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow-strong);
}

/* ---- Hero Tag Pill ---- */
.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.hero-tag:hover::before { opacity: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow:
    0 0 20px var(--accent-glow),
    0 0 60px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow:
    0 0 30px var(--accent-glow-md),
    0 0 80px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0px) scale(0.98);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.1rem;
}

.btn-ghost {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  position: relative;
}

.nav-logo .logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ---- Three.js Canvas ---- */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Decorative Gradient Orbs ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  will-change: auto;
}

.orb-blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.orb-purple {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.orb-cyan {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
}

/* ============================================================
   SECTION 1 - HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { max-width: 600px; }
.hero-content h1 { margin-bottom: 24px; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.spline-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 600px;
  position: relative;
}

.spline-placeholder::before {
  display: none;
}

spline-viewer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180% !important;
  height: 180% !important;
  max-width: none !important;
  outline: none;
}

/* Esconder a logo do Spline acessando o Shadow DOM via ::part */
spline-viewer::part(logo) {
  display: none !important;
}

spline-viewer {
  cursor: default !important;
  pointer-events: none !important;
}

.spline-placeholder {
  cursor: default !important;
}

.spline-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  z-index: 10;
  cursor: default;
  background: transparent;
}

/* ============================================================
   SECTION 2 - PROVA SOCIAL
   ============================================================ */
.prova-social { text-align: center; }

.prova-social h2 {
  max-width: 720px;
  margin: 0 auto 60px;
}

.video-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.video-placeholder {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  contain: layout;
}

/* Wistia player fills container */
.video-placeholder wistia-player {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px dashed rgba(59, 130, 246, 0.12);
  pointer-events: none;
}

.prova-stats {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.prova-stats .highlight { font-size: 1.1em; }

.prova-cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---- CTA Final ---- */
.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px auto;
  line-height: 1.8;
}

.cta-btn-wrapper {
  position: relative;
  display: inline-block;
}

.cta-btn-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 130%;
  background: var(--accent);
  filter: blur(28px);
  opacity: 0.5;
  border-radius: 50%;
  z-index: -1;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================================
   SECTION 3 - IMPLEMENTACAO
   ============================================================ */
.implementacao { overflow: hidden; }

.implementacao h2 {
  max-width: 700px;
  margin: 0 auto 16px;
  text-align: center;
}

.implementacao .section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  text-align: center;
}

.tempo-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 auto 64px;
  display: flex;
  justify-content: center;
}

.tempo-stat .highlight { font-size: 1.15em; }

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 56px;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent-glow-md), var(--accent), var(--accent-glow-md));
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  transition: all var(--transition-base);
}

.step-card:hover .step-number {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow-md);
}

.step-card h3 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.implementacao .btn {
  margin-top: 8px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SECTION 4 - DIFERENCIACAO
   ============================================================ */
.diferenciacao { overflow: hidden; }

.diff-opening {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  max-width: 880px;
  margin: 0 auto 80px;
  text-align: center;
  letter-spacing: -0.015em;
}

.diff-opening .highlight { font-size: 1.05em; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.result-item {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.result-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.result-item:hover::before { opacity: 1; }

.result-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.12);
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
}

.result-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-item p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
}

.crm-card {
  padding: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 40px var(--accent-glow),
    0 0 100px rgba(59, 130, 246, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Glowing top border accent */
.crm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  pointer-events: none;
}

.crm-content .crm-subheadline {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* Mobile CRM visual hidden on desktop */
.crm-mobile-visual { display: none; }
.crm-mobile-stats { display: none; }

/* Window title in header */
.dash-window-title {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-left: 10px;
  letter-spacing: 0.04em;
}

/* Stat card top row (value + trend badge) */
.dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.dash-trend {
  font-size: 0.65rem;
  font-weight: 600;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 100px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* Area chart */
.dash-chart-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.dash-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dash-chart-label {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-chart-range {
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--accent-glow);
  border-radius: 100px;
  padding: 2px 8px;
}

.dash-area-chart {
  width: 100%;
  height: 70px;
  display: block;
  overflow: visible;
}

.dash-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.dash-axis span {
  font-size: 0.6rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* Activity feed */
.dash-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-feed-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dash-feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-feed-green { background: #22C55E; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.dash-feed-blue  { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow-strong); }
.dash-feed-yellow { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,0.4); }

.dash-feed-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dash-feed-text strong { color: var(--text-primary); font-weight: 600; }

.crm-content p {
  font-size: 1rem;
  line-height: 1.8;
}

.crm-visual {
  position: relative;
  padding: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  max-width: 100%;
  box-sizing: border-box;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.dashboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.dashboard-dot:first-child { background: #EF4444; }
.dashboard-dot:nth-child(2) { background: #F59E0B; }
.dashboard-dot:nth-child(3) { background: #22C55E; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.dash-stat-value {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.dash-stat-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.dashboard-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding-top: 8px;
}

.dash-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transition: height 0.6s var(--ease-out-expo);
}

.dash-bar.blue { background: var(--accent); opacity: 0.7; }
.dash-bar.dim { background: rgba(59, 130, 246, 0.2); }
.dash-bar.accent { background: var(--accent); opacity: 0.9; }

/* ============================================================
   SECTION 5 - PARA QUEM E
   ============================================================ */
.para-quem { position: relative; }

.para-quem::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.para-quem .container {
  position: relative;
  z-index: 1;
}

.para-quem h2 {
  margin-bottom: 40px;
  text-align: center;
}

.para-quem-body {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.para-quem-body p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 28px;
  color: var(--text-secondary);
}

.para-quem-body p:last-child {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.15rem;
}

/* ============================================================
   SECTION 6 - CTA FINAL
   ============================================================ */
.cta-final {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 120px;
}

/* Pulsing ring behind CTA button */
.cta-final .container {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  margin-bottom: 48px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.cta-final .btn-large {
  box-shadow:
    0 0 30px var(--accent-glow-md),
    0 0 100px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px var(--accent-glow-md), 0 0 80px rgba(59,130,246,0.08); }
  50% { box-shadow: 0 0 50px var(--accent-glow-strong), 0 0 120px rgba(59,130,246,0.18); }
}

.cta-final .btn-large:hover {
  box-shadow:
    0 0 50px var(--accent-glow-strong),
    0 0 120px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============================================================
   ANIMATION CLASSES (toggled by GSAP)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay a {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.nav-overlay a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
  @media (max-width: 1024px) {
  :root {
    --section-padding: 100px;
    --container-padding: 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-content .btn { margin: 0 auto; }
  .hero-tag { margin-left: auto; margin-right: auto; }

  .section-label { margin-left: auto; margin-right: auto; }

  .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .spline-placeholder {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: visible;
  }

  spline-viewer {
    width: 160% !important;
    height: 160% !important;
    position: absolute !important;
    left: 58% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .results-grid { grid-template-columns: repeat(2, 1fr); }

  .crm-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --container-padding: 20px;
    --nav-height: 64px;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 60px;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 64px;
  }

  .steps-timeline::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 1.5px;
    height: auto;
  }

  .step-card {
    text-align: left;
    padding: 0 0 40px 0;
    position: relative;
  }

  .step-card:last-child { padding-bottom: 0; }

  .step-number {
    position: absolute;
    left: -60px;
    top: 0;
    width: 44px;
    height: 44px;
    font-size: 0.75rem;
    margin-bottom: 0;
  }

  .step-card h3 { padding-top: 6px; padding-left: 4px; }
  .results-grid { grid-template-columns: 1fr; }
  .crm-card { padding: 28px; }
  .crm-visual { min-height: 220px; padding: 20px; }
  .diff-opening { font-size: 1.2rem; margin-bottom: 48px; }
  .video-placeholder { max-width: 280px; }
  .tempo-stat { font-size: 0.95rem; padding: 12px 20px; }
  .btn-large { padding: 16px 36px; font-size: 1rem; }
}

@media (max-width: 400px) {
  :root { --container-padding: 16px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .hero-tag { font-size: 0.6rem; padding: 6px 14px; }
  .video-placeholder { max-width: 260px; }
  .dash-stat-value { font-size: 0.9rem; }
  .dashboard-stats { gap: 8px; }
  .dash-stat { padding: 8px 6px; }
}

/* ---- Canvas hidden on mobile for performance, but Orbs enabled with lower opacity ---- */
@media (max-width: 768px) {
  #three-canvas { display: none; }
  .orb { opacity: 0.4 !important; }
  .section:not(:last-of-type)::after { display: none; }

  /* CRM mobile: hide desktop dashboard, show illustrated visual */
  .crm-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 0;
  }
  .crm-visual { display: none; }
  .crm-mobile-visual { display: block; margin-top: 24px; }
  .crm-content .crm-subheadline { font-size: 1.3rem; }

  /* ---- CRM Mobile Visual ---- */
  .crm-mobile-visual {
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 18px;
    overflow: hidden;
    position: relative;
  }

  .cmv-notification {
    background: rgba(59,130,246,0.05);
    border: 1px solid rgba(59,130,246,0.14);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .cmv-notif-dim {
    background: rgba(255,255,255,0.02);
    border-color: var(--border);
    opacity: 0.7;
  }

  .cmv-notif-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .cmv-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34,197,94,0.7);
    animation: blink 1.6s ease-in-out infinite;
    flex-shrink: 0;
  }

  .cmv-dot-blue {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow-strong);
    animation: none;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .cmv-notif-msg {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
  }

  .cmv-notif-msg strong { color: var(--text-primary); }

  .cmv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0;
  }

  .cmv-stat {
    text-align: center;
    padding: 12px 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .cmv-stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
  }

  .cmv-stat-label {
    display: block;
    font-size: 0.58rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 3px;
  }

  .cmv-chart {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
  }

  .cmv-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .cmv-chart-title {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .cmv-chart-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #22C55E;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 100px;
    padding: 2px 8px;
  }

  .cmv-chart svg {
    width: 100%;
    height: 52px;
    display: block;
  }

  /* Other mobile fixes */
  .video-placeholder { max-width: 300px; }
  .dashboard-stats { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .dash-stat { padding: 8px; }
  .dash-stat-value { font-size: 1rem; }
  .dashboard-bars { height: 60px; }
}
