/* ==========================================================================
   BACKUP FTP — Landing Page
   Stack: HTML5 + CSS3 + Vanilla JS
   ========================================================================== */

/* ============ 1. VARIÁVEIS E RESET ============ */
:root {
  /* Paleta */
  --navy-950: #050d1f;        /* Azul escuro (fundo) */
  --navy-900: #0a1a3a;        /* Azul escuro secundário */
  --navy-800: #0f2450;        /* Cartões / superfícies */
  --royal-600: #2563eb;       /* Azul royal (primário) */
  --royal-500: #3b82f6;       /* Azul royal claro */
  --sky-400: #60a5fa;         /* Azul claro (destaques) */
  --green-500: #10b981;       /* Verde segurança (acento) */
  --white: #f8fafc;           /* Branco suave */
  --gray-400: #94a3b8;        /* Cinza texto secundário */
  --gray-600: #475569;        /* Cinza suave */

  /* Tokens semânticos */
  --bg: var(--navy-950);
  --bg-alt: rgba(15, 36, 80, 0.35);
  --surface: rgba(15, 36, 80, 0.55);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(96, 165, 250, 0.14);
  --border-strong: rgba(96, 165, 250, 0.35);
  --text: var(--white);
  --text-muted: var(--gray-400);
  --primary: var(--royal-600);
  --primary-hover: var(--royal-500);
  --accent: var(--green-500);

  /* Tipografia */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Diversos */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.35);
  --shadow-card: 0 8px 30px rgba(2, 8, 23, 0.5);
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; text-wrap: balance; }

/* ============ 2. UTILITÁRIOS ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 820px; }

.text-gradient {
  background: linear-gradient(100deg, var(--sky-400), var(--royal-500) 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding: 110px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(15, 36, 80, 0.25) 20%, rgba(15, 36, 80, 0.25) 80%, transparent);
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-400);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 1.05rem; text-wrap: pretty; }

/* Leitores de tela */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============ 3. BOTÕES ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--royal-600), var(--royal-500));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--sky-400); background: rgba(96, 165, 250, 0.1); transform: translateY(-2px); }
.btn-ghost { color: var(--text-muted); padding: 12px 16px; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl { padding: 18px 42px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* Efeito ripple (span criado via JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ============ 4. FUNDO ANIMADO ============ */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.bg-shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: blob-float 18s ease-in-out infinite alternate;
}
.blob-1 { width: 480px; height: 480px; background: rgba(37, 99, 235, 0.5); top: -10%; left: -8%; }
.blob-2 { width: 420px; height: 420px; background: rgba(16, 185, 129, 0.25); bottom: -12%; right: -6%; animation-delay: -6s; }
.blob-3 { width: 320px; height: 320px; background: rgba(96, 165, 250, 0.35); top: 45%; left: 55%; animation-delay: -12s; }
@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ============ 5. NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(5, 13, 31, 0.85);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(2, 8, 23, 0.5);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.logo-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--royal-600), var(--sky-400));
  color: #fff; font-size: 17px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}
.logo-accent { color: var(--sky-400); }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 14.5px; font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(96, 165, 250, 0.08); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions-mobile { display: none; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 6. HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500;
  color: var(--sky-400);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: 0.4; transform: scale(0.8); } }

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 34px;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-muted);
}
.trust-item i { color: var(--accent); font-size: 14px; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted); font-size: 18px;
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---- Ilustração do hero ---- */
.hero-visual { display: flex; justify-content: center; }
.visual-scene {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 500 / 460;
  transition: transform 0.2s ease-out; /* mouse parallax */
}
.visual-cloud {
  position: absolute; top: 4%; left: 50%; transform: translateX(-50%);
  font-size: 96px; color: var(--royal-500);
  filter: drop-shadow(0 0 24px rgba(37, 99, 235, 0.6));
}
.cloud-glow {
  position: absolute; inset: -30px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 3.5s ease-in-out infinite;
  z-index: -1;
}
@keyframes glow-pulse { 50% { opacity: 0.4; transform: scale(1.15); } }

.visual-server {
  position: absolute; bottom: 14%; left: 6%;
  text-align: center;
}
.server-rack {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}
.server-unit {
  display: flex; align-items: center; gap: 8px;
  background: rgba(5, 13, 31, 0.6);
  border-radius: 6px;
  padding: 8px 12px;
  min-width: 130px;
}
.led { width: 7px; height: 7px; border-radius: 50%; }
.led-green { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.led-blue { background: var(--sky-400); box-shadow: 0 0 6px var(--sky-400); }
.led.blink { animation: led-blink 1.4s steps(2) infinite; }
@keyframes led-blink { 50% { opacity: 0.15; } }
.server-lines { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.server-lines i { display: block; height: 3px; border-radius: 3px; background: rgba(148, 163, 184, 0.35); }
.server-lines i:last-child { width: 65%; }

.visual-label {
  display: inline-block; margin-top: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.05em;
}

.visual-db {
  position: absolute; bottom: 16%; right: 8%;
  text-align: center;
  font-size: 58px; color: var(--sky-400);
  filter: drop-shadow(0 0 16px rgba(96, 165, 250, 0.5));
}
.visual-db .visual-label { display: block; font-size: 12px; }

.visual-lock {
  position: absolute; top: 34%; right: 20%;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff; font-size: 22px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.55);
}
.visual-file {
  position: absolute;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--sky-400); font-size: 19px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
}
.file-1 { top: 30%; left: 12%; }
.file-2 { top: 16%; right: 8%; }
.file-3 { top: 52%; left: 38%; }

.visual-arrow {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.visual-arrow i { font-size: 18px; }
.arrow-up { top: 44%; left: 24%; color: var(--accent); animation: arrow-rise 2.4s ease-in-out infinite; }
.arrow-down { top: 44%; right: 40%; color: var(--sky-400); animation: arrow-fall 2.4s ease-in-out infinite; animation-delay: 1.2s; }
@keyframes arrow-rise { 0%,100% { transform: translateY(4px); opacity: 0.5; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes arrow-fall { 0%,100% { transform: translateY(-4px); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }

.visual-ftp {
  position: absolute; bottom: 40%; left: 50%;
  color: rgba(96, 165, 250, 0.5); font-size: 30px;
}
.visual-badge-ftp {
  position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--sky-400);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 18px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* Linhas de conexão SVG animadas */
.visual-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.link-line {
  stroke: rgba(96, 165, 250, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  fill: none;
  animation: dash-move 3s linear infinite;
}
.line-2 { animation-delay: -1s; }
.line-3 { animation-delay: -2s; }
@keyframes dash-move { to { stroke-dashoffset: -56; } }

/* Animações contínuas dos elementos */
.floating { animation: float 5s ease-in-out infinite; }
.floating-slow { animation: float 7s ease-in-out infinite; }
.floating-delay { animation: float 6s ease-in-out infinite; animation-delay: -2.5s; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }

.pulse-anim { animation: pulse-scale 2.6s ease-in-out infinite; }
@keyframes pulse-scale { 50% { scale: 1.1; } }

.spin-slow { animation: spin 14s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ============ 7. RECURSOS ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}
.feature-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(96, 165, 250, 0.12));
  border: 1px solid var(--border);
  color: var(--sky-400);
  font-size: 19px;
  margin-bottom: 18px;
  transition: transform var(--transition), color var(--transition);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); color: var(--accent); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* ============ 8. TIMELINE (Como funciona) ============ */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--royal-600) 8%, var(--royal-600) 92%, transparent);
}
.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 44px;
}
.timeline-item:nth-child(odd) { justify-content: flex-start; padding-right: calc(50% + 40px); }
.timeline-item:nth-child(even) { justify-content: flex-end; padding-left: calc(50% + 40px); }

.timeline-marker {
  position: absolute;
  left: 50%; top: 24px;
  transform: translateX(-50%);
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 2px solid var(--royal-500);
  color: var(--sky-400);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.5);
  z-index: 1;
}
.timeline-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition);
}
.timeline-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.timeline-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--sky-400);
  font-size: 17px;
  margin-bottom: 14px;
}
.timeline-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-card p { font-size: 14px; color: var(--text-muted); }
.timeline-card-final { border-color: rgba(16, 185, 129, 0.35); }
.timeline-card-final .timeline-icon { background: rgba(16, 185, 129, 0.15); color: var(--accent); }

/* ============ 9. PLANOS ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}
.pricing-featured {
  border-color: var(--royal-500);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.18), rgba(15, 36, 80, 0.5));
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.25);
  transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-10px); box-shadow: var(--shadow-glow); }
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--royal-600), var(--sky-400));
  border-radius: 999px;
  padding: 5px 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  white-space: nowrap;
}
.pricing-enterprise { border-color: rgba(16, 185, 129, 0.3); }
.pricing-name { font-size: 1.3rem; margin-bottom: 6px; }
.pricing-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; min-height: 42px; }
.pricing-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 24px; font-family: var(--font-heading); }
.price-currency { font-size: 1rem; color: var(--text-muted); margin-right: 4px; }
.price-value { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.price-cents { font-size: 1.2rem; font-weight: 600; }
.price-period { font-size: 0.9rem; color: var(--text-muted); margin-left: 6px; }
.price-custom { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.pricing-features { flex: 1; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.pricing-features i { color: var(--accent); font-size: 13px; }

/* ============ 10. API (janela de código) ============ */
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.api-content .section-tag { margin-bottom: 18px; }
.api-content .section-title { margin-bottom: 18px; }
.api-content .section-desc { margin-bottom: 26px; }
.api-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.api-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); }
.api-list i { color: var(--accent); }

.code-window {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(37, 99, 235, 0.12);
  font-size: 13.5px;
}
.code-titlebar {
  display: flex; align-items: center; gap: 8px;
  background: #161b22;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.code-filename { margin-left: 10px; font-size: 12.5px; color: var(--gray-400); font-family: 'Consolas', 'Menlo', monospace; }
.code-body {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: 'Consolas', 'Menlo', 'Courier New', monospace;
  line-height: 1.75;
  color: #c9d1d9;
}
.c-comment { color: #6b7f99; }
.c-method { color: #7ee787; font-weight: 700; }
.c-delete { color: #ff7b72; }
.c-path { color: #79c0ff; }
.c-key { color: #d2a8ff; }
.c-str { color: #a5d6ff; }
.c-num { color: #ffa657; }
.c-brace { color: #c9d1d9; }

/* ============ 11. INTEGRAÇÃO ============ */
.integration-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.integration-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 140px;
  padding: 26px 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.integration-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: var(--border-strong);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.2);
}
.integration-card i { font-size: 34px; color: var(--sky-400); transition: color var(--transition); }
.integration-card:hover i { color: var(--accent); }
.integration-card span { font-size: 14px; font-weight: 600; }

/* ============ 12. ESTATÍSTICAS ============ */
.stats-section {
  padding: 90px 0;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(37, 99, 235, 0.14), transparent),
    linear-gradient(180deg, transparent, rgba(15, 36, 80, 0.3), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}
.stat-card {
  padding: 34px 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition);
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(120deg, var(--sky-400), var(--royal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.stat-label { color: var(--text-muted); font-size: 14.5px; }

/* ============ 13. DEPOIMENTOS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.16);
}
.testimonial-stars { color: #fbbf24; font-size: 13px; display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 15px; color: var(--text); margin-bottom: 22px; text-wrap: pretty; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-600), var(--sky-400));
  color: #fff; font-weight: 700; font-size: 15px;
  font-family: var(--font-heading);
}
.testimonial-author strong { display: block; font-size: 14.5px; }
.testimonial-author span:not(.author-avatar) { font-size: 13px; color: var(--text-muted); }

/* ============ 14. FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.active { border-color: var(--border-strong); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 20px 24px;
  font-size: 15.5px; font-weight: 600;
  text-align: left;
  color: var(--text);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--sky-400); }
.faq-question i { font-size: 13px; color: var(--sky-400); transition: transform 0.35s ease; flex-shrink: 0; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer p { padding: 0 24px 22px; font-size: 14.5px; color: var(--text-muted); }

/* ============ 15. CTA FINAL ============ */
.cta-section { padding: 120px 0; }
.cta-inner {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.16), rgba(15, 36, 80, 0.5));
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 80px 40px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.cta-glow {
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.4), transparent 70%);
  pointer-events: none;
  animation: glow-pulse 4s ease-in-out infinite;
}
.cta-title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 700; margin-bottom: 18px; }
.cta-desc { color: var(--text-muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto 36px; text-wrap: pretty; }
.cta-note { margin-top: 20px; font-size: 13.5px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.cta-note i { color: var(--accent); }

/* ============ 16. RODAPÉ ============ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 13, 31, 0.7);
  backdrop-filter: blur(10px);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 54px;
}
.footer-brand p { font-size: 14px; color: var(--text-muted); margin: 18px 0 22px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-social a:hover { color: var(--sky-400); border-color: var(--border-strong); transform: translateY(-3px); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { font-size: 15px; margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-col a i { font-size: 13px; color: var(--sky-400); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--text); }

/* ============ 17. ANIMAÇÕES DE SCROLL (reveal) ============ */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.fade-in { transform: none; }
.reveal.slide-up { transform: translateY(40px); }
.reveal.slide-left { transform: translateX(60px); }
.reveal.slide-right { transform: translateX(-60px); }
.reveal.scale-in { transform: scale(0.9); }
.reveal.visible { opacity: 1; transform: none; }

/* Delays escalonados */
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* Escalonamento automático em grades (via JS: --stagger) */
.reveal[style*="--stagger"] { transition-delay: calc(var(--stagger) * 70ms); }

/* ============ 18. ACESSIBILIDADE / MOVIMENTO REDUZIDO ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ 19. RESPONSIVIDADE ============ */

/* Notebook / telas médias */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-featured { transform: none; }
  .pricing-featured:hover { transform: translateY(-10px); }
}

/* Tablet */
@media (max-width: 900px) {
  .section { padding: 80px 0; }

  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-content { text-align: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }

  .api-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Timeline vira coluna única */
  .timeline::before { left: 22px; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) { justify-content: flex-start; padding: 0 0 0 66px; }
  .timeline-marker { left: 22px; }

  /* Menu mobile */
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(5, 13, 31, 0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border);
    padding: 96px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 99;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-link { padding: 14px 16px; font-size: 16px; }
  .nav-actions-mobile {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: 24px; padding-top: 24px;
    border-top: 1px solid var(--border);
  }
}

/* Smartphone */
@media (max-width: 600px) {
  .container { padding-inline: 18px; }
  .section { padding: 64px 0; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .visual-scene { transform: none !important; } /* desativa mouse parallax */

  .cta-inner { padding: 56px 22px; }
  .btn-xl { padding: 16px 26px; font-size: 15px; width: 100%; }
  .code-body { font-size: 12px; padding: 16px; }
  .integration-card { width: calc(50% - 10px); }
}
