/* =============================================================
   VAI DE GIRO — SOLUÇÕES DIGITAIS
   Folha de estilo principal
   Estilo: Tech / SaaS Dark Mode corporativo
   ============================================================= */

/* ==================== 1. VARIÁVEIS / DESIGN TOKENS ==================== */
:root {
  /* Cores de fundo / neutros */
  --bg-deep: #0A0F1D;          /* Azul escuro profundo */
  --bg-space: #121929;         /* Cinza espacial */
  --card-bg: rgba(28, 38, 61, 0.55);   /* Azul-grafite translúcido */
  --card-border: rgba(0, 245, 212, 0.14);

  /* Acentos neon */
  --accent: #00F5D4;           /* Ciano/verde neon */
  --accent-2: #00E5FF;         /* Ciano elétrico */
  --accent-glow: rgba(0, 245, 212, 0.35);

  /* Texto */
  --text-white: #FFFFFF;
  --text-body: #E2E8F0;
  --text-muted: #94A3B8;

  /* Tipografia */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 18px;
  --radius-sm: 12px;

  /* Transições */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 2. RESET BÁSICO ==================== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

/* ==================== 3. UTILITÁRIOS ==================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 100px 0; }

.text-accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cabeçalho de seção */
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-desc { margin-top: 16px; color: var(--text-muted); font-size: 1.05rem; }

/* ==================== 4. BOTÕES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04121a;
  box-shadow: 0 8px 24px -6px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -6px var(--accent-glow);
}

.btn-ghost {
  border: 1.5px solid rgba(226, 232, 240, 0.22);
  color: var(--text-white);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }

.btn-nav {
  padding: 10px 20px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04121a;
  font-size: 0.9rem;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px var(--accent-glow); }

/* ==================== 5. HEADER / NAV ==================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: inline-flex; }
.logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-white);
  letter-spacing: -0.01em;
}
.logo-divider { color: var(--accent); margin: 0 2px; font-weight: 400; }
.logo-sub { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }

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

/* ==================== 6. HERO ==================== */
.hero {
  position: relative;
  padding: 170px 0 120px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-space) 100%);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}
.glow-1 { width: 480px; height: 480px; background: var(--accent); top: -120px; right: -80px; }
.glow-2 { width: 420px; height: 420px; background: var(--accent-2); bottom: -140px; left: -100px; animation-delay: -6s; }

/* Grade decorativa */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 40%, transparent 75%);
}

.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 780px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  background: var(--card-bg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.hero-subtitle {
  margin-top: 24px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-body);
  max-width: 620px;
}
.hero-subtitle strong { color: var(--text-white); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-trust span { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }

/* ==================== 7. SERVIÇOS ==================== */
.services { background: var(--bg-space); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  position: relative;
  padding: 38px 32px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at top, rgba(0, 245, 212, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 212, 0.5);
  box-shadow: 0 20px 50px -20px var(--accent-glow);
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(0, 229, 255, 0.08));
  border: 1px solid var(--card-border);
  color: var(--accent);
  margin-bottom: 22px;
}
.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  position: relative;
}
.card-text { color: var(--text-muted); font-size: 0.98rem; position: relative; }

/* ==================== 8. QUEM SOMOS ==================== */
.about { background: var(--bg-deep); }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-paragraph { margin-top: 20px; color: var(--text-body); font-size: 1.08rem; }
.about-paragraph strong { color: var(--accent); }

.about-list { margin-top: 30px; display: grid; gap: 16px; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-body);
  font-weight: 500;
}
.check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Card visual lateral */
.about-visual { display: flex; justify-content: center; }
.stat-card {
  position: relative;
  width: 100%;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  gap: 22px;
  overflow: hidden;
}
.stat-glow {
  position: absolute;
  width: 260px; height: 260px;
  background: var(--accent);
  filter: blur(110px);
  opacity: 0.22;
  top: -80px; right: -80px;
}
.stat-item { position: relative; padding-left: 18px; border-left: 2px solid var(--accent); }
.stat-item strong { display: block; color: var(--text-white); font-size: 1.15rem; }
.stat-item span { color: var(--text-muted); font-size: 0.95rem; }

/* ==================== 9. CTA BAND ==================== */
.cta-band {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 245, 212, 0.12), transparent 60%),
    var(--bg-space);
  padding: 90px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}
.cta-inner p { margin: 16px 0 30px; color: var(--text-muted); font-size: 1.05rem; }

/* ==================== 10. FOOTER ==================== */
.site-footer { background: var(--bg-deep); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
}
.logo-footer { margin-bottom: 18px; }
.footer-tagline { color: var(--text-muted); font-size: 0.96rem; max-width: 320px; }

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-info { display: grid; gap: 12px; }
.footer-info li { color: var(--text-body); font-size: 0.96rem; }
.footer-info span { color: var(--text-muted); font-weight: 600; margin-right: 4px; }
.footer-info a { color: var(--accent); transition: opacity var(--transition); }
.footer-info a:hover { opacity: 0.8; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.link-btn {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(148, 163, 184, 0.4);
}
.link-btn:hover { color: var(--accent); text-decoration-color: var(--accent); }
.dot-sep { color: var(--text-muted); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 0;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.86rem; text-align: center; }

/* ==================== 11. MODAIS ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(4, 8, 18, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-space);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 245, 212, 0.06);
  animation: modalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 245, 212, 0.03);
}
.modal-title { font-size: 1.3rem; font-weight: 800; color: var(--text-white); }
.modal-close {
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--accent); }

.modal-body {
  padding: 26px 28px;
  overflow-y: auto;
  color: var(--text-body);
}
.modal-body p { margin-bottom: 16px; font-size: 0.98rem; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body em { color: var(--text-muted); }

/* Scrollbar customizada do modal */
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 212, 0.3);
  border-radius: 8px;
}

body.modal-open { overflow: hidden; }

/* ==================== 12. VOLTAR AO TOPO ==================== */
.back-to-top {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04121a;
  box-shadow: 0 8px 24px -6px var(--accent-glow);
  transition: transform var(--transition), opacity var(--transition);
}
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top[hidden] { display: none; }

/* ==================== 13. ANIMAÇÕES ==================== */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 30px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==================== 14. RESPONSIVIDADE ==================== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  /* Navegação mobile */
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    height: 100vh;
    background: rgba(10, 15, 29, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 26px; text-align: center; }
  .nav-link { font-size: 1.2rem; }
  .nav-toggle { display: flex; z-index: 101; }

  .section { padding: 72px 0; }
  .hero { padding: 140px 0 90px; }
  .hero-trust { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .logo-sub { display: none; }
  .modal-header { padding: 20px; }
  .modal-body { padding: 20px; }
}

/* Acessibilidade: respeitar preferência de menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
