/* ═══════════════════════════════════════════════
   XPARSE AO — Stylesheet
   Font: Plus Jakarta Sans (Google Fonts)
   Paleta: Navy #1a2035 · Blue #87C0DD
═══════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --navy: #1a2035;
  --navy-light: #23293f;
  --navy-mid: #1e2640;
  --blue: #87C0DD;
  --blue-light: #aad4ea;
  --blue-pale: rgba(135,192,221,0.12);
  --white: #f4f6fb;
  --white-dim: rgba(244,246,251,0.7);
  --white-faint: rgba(244,246,251,0.35);
  --border: rgba(135,192,221,0.2);
  --border-light: rgba(135,192,221,0.1);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── LANG SWITCHER ─── */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(135,192,221,0.07);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white-faint);
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
  transition: all 0.2s;
}
.lang-btn.active { background: var(--blue); color: var(--navy); }
.lang-btn:hover:not(.active) { color: var(--white-dim); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26,32,53,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s;
}
nav.scrolled { padding: 0.9rem 5vw; background: rgba(26,32,53,0.97); }
.nav-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--white); }
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--navy-light);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: var(--blue);
}
.nav-brand { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; }
.nav-right { display: flex; align-items: center; gap: 1.8rem; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--white-dim);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--blue);
  color: var(--navy) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-light) !important; }
.nav-cta::after { display: none !important; }

/* ─── HAMBURGER / MOBILE MENU ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--navy);
  padding: 6rem 5vw 3rem;
  flex-direction: column; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-lang { margin-top: auto; }

/* ─── HERO ─── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5vw 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(135,192,221,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135,192,221,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 20%, transparent 80%);
}
.hero-glow {
  position: absolute; top: 20%; right: 5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(135,192,221,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; color: var(--blue);
  letter-spacing: 0.09em; text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.08rem; line-height: 1.78; font-weight: 400;
  color: var(--white-dim);
  max-width: 520px;
  margin-bottom: 2.8rem;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; }

.btn-primary {
  background: var(--blue); color: var(--navy);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-secondary {
  border: 1px solid var(--border); color: var(--white-dim);
  padding: 0.85rem 2rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--white); }

.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid var(--border-light);
  animation: fadeUp 0.6s 0.4s ease both;
  flex-wrap: wrap;
}
.hero-stat-number { font-size: 2.2rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; display: inline-block; }
.hero-stat-label { font-size: 0.75rem; color: var(--white-faint); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECTIONS ─── */
section { padding: 7rem 5vw; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; color: var(--blue);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative; overflow: hidden;
}
.section-tag::before { content: '—'; opacity: 0.5; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.2rem; }
.section-lead { font-size: 1.02rem; line-height: 1.78; font-weight: 400; color: var(--white-dim); max-width: 560px; }
.divider { height: 1px; background: var(--border-light); margin: 0 5vw; }

/* ─── ABOUT ─── */
#about { background: var(--navy-mid); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-card {
  background: linear-gradient(135deg, rgba(135,192,221,0.06), rgba(135,192,221,0.02));
  border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.about-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(135,192,221,0.06), transparent);
  transform: skewX(-15deg);
  animation: shimmer 6s ease-in-out infinite 2s;
}
@keyframes shimmer { 0%, 100% { left: -60%; } 50% { left: 120%; } }
.about-card-quote { font-size: 1.25rem; font-weight: 700; line-height: 1.45; margin-bottom: 1.2rem; }
.about-card-quote em { font-style: normal; color: var(--blue); }
.about-card-body { font-size: 0.9rem; line-height: 1.75; color: var(--white-dim); margin-bottom: 1.5rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.about-value {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500; color: var(--white-dim);
  padding: 0.45rem 0.7rem;
  background: var(--blue-pale);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}
.about-value::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.about-text p { font-size: 0.975rem; line-height: 1.82; font-weight: 400; color: var(--white-dim); margin-bottom: 1.3rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--white); font-weight: 600; }

/* ─── SERVICES ─── */
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1.5rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--navy-light);
  border: 1px solid var(--border-light);
  border-radius: 16px; padding: 2.2rem;
  transition: all 0.3s;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Garante que o reveal não bloqueia o tilt nos cards */
.service-card.reveal.visible { opacity: 1; transform: translateY(0) !important; }
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(135,192,221,0.05), transparent);
  transition: opacity 0.3s;
}
.service-card:hover { border-color: var(--border); transform: translateY(-3px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.service-card:hover::after { opacity: 1; }
.service-card .tilt-shine {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover .tilt-shine { opacity: 1; }
.service-number { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); opacity: 0.6; margin-bottom: 1.2rem; text-transform: uppercase; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-pale); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.service-title { font-size: 1.12rem; font-weight: 700; margin-bottom: 0.7rem; line-height: 1.3; }
.service-desc { font-size: 0.875rem; line-height: 1.72; font-weight: 400; color: var(--white-dim); margin-bottom: 1.4rem; }
.service-items { list-style: none; }
.service-items li { font-size: 0.84rem; font-weight: 400; color: var(--white-faint); padding: 0.42rem 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 0.5rem; }
.service-items li:last-child { border-bottom: none; }
.service-items li::before { content: '→'; color: var(--blue); font-size: 0.75rem; flex-shrink: 0; }

/* ─── VALUE ─── */
#value { background: var(--navy-mid); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.value-features { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
.value-feature { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.3rem; border-radius: 12px; border: 1px solid transparent; transition: all 0.2s; }
.value-feature:hover { background: var(--blue-pale); border-color: var(--border-light); }
.value-feature-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--blue-pale); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.value-feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.value-feature-desc { font-size: 0.875rem; font-weight: 400; color: var(--white-dim); line-height: 1.65; }
.value-big-card {
  background: linear-gradient(145deg, rgba(135,192,221,0.08), rgba(135,192,221,0.02));
  border: 1px solid var(--border);
  border-radius: 20px; padding: 3rem;
  position: relative; overflow: hidden;
}
.value-big-card::before {
  content: '"';
  position: absolute; top: 1rem; right: 2rem;
  font-size: 8rem; font-weight: 800; color: var(--blue); opacity: 0.06; line-height: 1;
}
.value-quote { font-size: 1.35rem; font-weight: 700; line-height: 1.45; margin-bottom: 1.5rem; }
.value-quote em { font-style: normal; color: var(--blue); }
.value-quote-body { font-size: 0.9rem; font-weight: 400; color: var(--white-dim); line-height: 1.72; margin-bottom: 2rem; }
.value-pillars { display: flex; flex-direction: column; gap: 0.55rem; }
.value-pillar {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  background: rgba(135,192,221,0.05);
  border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: var(--white-dim);
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}
.value-pillar:hover { background: var(--blue-pale); color: var(--white); transform: translateX(6px); }
.value-pillar svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--blue); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: var(--navy-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-item:hover { border-color: var(--border); transform: translateX(4px); box-shadow: -3px 0 0 var(--blue); }
.contact-item-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--blue-pale); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--blue); margin-bottom: 0.2rem; }
.contact-item-value { font-size: 0.9rem; font-weight: 400; color: var(--white-dim); }
.contact-item-value a { color: inherit; text-decoration: none; transition: color 0.2s; }
.contact-item-value a:hover { color: var(--white); }

.contact-form { background: var(--navy-light); border: 1px solid var(--border-light); border-radius: 20px; padding: 2.5rem; }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; }
.contact-form p { font-size: 0.875rem; font-weight: 400; color: var(--white-dim); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.72rem; font-weight: 700; color: var(--white-dim); text-transform: uppercase; letter-spacing: 0.07em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(135,192,221,0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px; padding: 0.75rem 1rem;
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--navy); }
.form-submit {
  width: 100%; padding: 0.9rem;
  background: var(--blue); color: var(--navy);
  border: none; border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s;
}
.form-submit:hover { background: var(--blue-light); transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer { background: var(--navy-mid); border-top: 1px solid var(--border-light); padding: 3rem 5vw; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand-name { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.05em; }
.footer-brand-tagline { font-size: 0.76rem; font-weight: 400; color: var(--white-faint); margin-top: 0.1rem; }
.footer-copy { font-size: 0.78rem; font-weight: 400; color: var(--white-faint); text-align: center; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { text-decoration: none; font-size: 0.82rem; font-weight: 500; color: var(--white-dim); transition: color 0.2s; position: relative; }
.footer-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.footer-links a:hover { color: var(--blue); }
.footer-links a:hover::after { transform: scaleX(1); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════
   EFEITOS ESPECIAIS — XPARSE v2
═══════════════════════════════════════════════ */

/* ─── SCROLL PROGRESS BAR ─── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(135,192,221,0.6);
}

/* ─── CUSTOM CURSOR ─── */
* { cursor: none !important; }
@media (pointer: coarse) { * { cursor: auto !important; } }
#cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
  width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9997; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(135,192,221,0.5);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
body.cursor-hover #cursor-dot { width: 12px; height: 12px; background: var(--blue-light); }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; border-color: rgba(135,192,221,0.8); }
body.cursor-click #cursor-dot { transform: translate(-50%,-50%) scale(0.5); }

/* ─── HERO CANVAS (partículas) ─── */
#hero-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; }

/* ─── AURORA ANIMATED BACKGROUND ─── */
.aurora-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0;
  animation: auroraFloat 12s ease-in-out infinite;
}
.aurora-blob:nth-child(1) {
  width: 500px; height: 500px; top: -10%; right: 10%;
  background: radial-gradient(circle, rgba(135,192,221,0.09), transparent 70%);
  animation-delay: 0s; animation-duration: 14s;
}
.aurora-blob:nth-child(2) {
  width: 350px; height: 350px; top: 30%; right: 30%;
  background: radial-gradient(circle, rgba(135,192,221,0.05), transparent 70%);
  animation-delay: -5s; animation-duration: 18s;
}
.aurora-blob:nth-child(3) {
  width: 250px; height: 250px; bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(135,192,221,0.06), transparent 70%);
  animation-delay: -9s; animation-duration: 11s;
}
@keyframes auroraFloat {
  0%   { opacity: 0; transform: translate(0,0) scale(1); }
  20%  { opacity: 1; }
  50%  { transform: translate(30px,-40px) scale(1.1); }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-20px,20px) scale(0.95); }
}

/* ─── GLITCH EFEITO NO LOGO ─── */
.nav-brand { position: relative; display: inline-block; }
.nav-brand.glitch::before,
.nav-brand.glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  font-weight: inherit; font-size: inherit; letter-spacing: inherit;
  white-space: nowrap;
}
.nav-brand.glitch::before {
  color: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  animation: glitch1 0.3s steps(2) forwards;
}
.nav-brand.glitch::after {
  color: rgba(135,192,221,0.6);
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  animation: glitch2 0.3s steps(2) forwards;
}
@keyframes glitch1 { 0% { transform: translate(-2px,0); } 50% { transform: translate(2px,0); } 100% { transform: translate(0,0); } }
@keyframes glitch2 { 0% { transform: translate(2px,0); } 50% { transform: translate(-2px,0); } 100% { transform: translate(0,0); } }

/* ─── TYPING CURSOR ─── */
.typed-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--blue); margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── MAGNETIC BUTTON WRAPPER ─── */
.mag-wrap { display: inline-block; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .about-grid, .value-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  section { padding: 5rem 5vw; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-values { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   XPARSE AO — Simuladores BNA
   Adicionar ao final de css/styles.css
═══════════════════════════════════════════════════════════════ */

/* ── SIMULATOR MODAL ── */
.sim-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10, 13, 24, 0.88);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  animation: sim-fade-in 0.2s ease;
}
.sim-overlay.open { display: flex; }

@keyframes sim-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sim-modal {
  width: min(96vw, 960px);
  height: min(92vh, 820px);
  background: #1a2035;
  border: 1px solid rgba(135,192,221,0.2);
  border-radius: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: sim-slide-up 0.22s cubic-bezier(0.16,1,0.3,1);
}

@keyframes sim-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.sim-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(135,192,221,0.12);
  flex-shrink: 0;
}
.sim-modal-title { display: flex; align-items: center; gap: 10px; }
.sim-modal-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: #87C0DD;
  background: rgba(135,192,221,0.1);
  border: 1px solid rgba(135,192,221,0.2);
  padding: 2px 8px; border-radius: 20px;
}
.sim-modal-name {
  font-size: 13px; font-weight: 600; color: #f0f4f8;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.sim-modal-actions { display: flex; align-items: center; gap: 10px; }
.sim-open-tab {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(135,192,221,0.7);
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500; transition: color 0.15s;
}
.sim-open-tab:hover { color: #87C0DD; }
.sim-close-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.4); padding: 4px;
  border-radius: 6px; display: flex; align-items: center;
  transition: color 0.15s, background 0.15s;
}
.sim-close-btn:hover { color: #f0f4f8; background: rgba(255,255,255,0.07); }
#sim-iframe {
  flex: 1; width: 100%; border: none;
  background: #1a2035;
}

/* ── SIMULATORS SECTION ── */
#simulators { padding: 5rem 0; }

.simulators-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 2rem;
  margin-bottom: 1.75rem; flex-wrap: wrap;
}
.simulators-header .section-lead {
  max-width: 360px; font-size: 0.93rem;
  color: var(--text-muted, rgba(255,255,255,0.55));
  align-self: flex-end;
}

.sim-bna-strip {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.78rem;
  color: rgba(135,192,221,0.65);
  background: rgba(135,192,221,0.06);
  border: 1px solid rgba(135,192,221,0.12);
  border-left: 2px solid rgba(135,192,221,0.35);
  border-radius: 0 6px 6px 0;
  padding: 8px 12px; margin-bottom: 2rem;
  line-height: 1.5;
}
.sim-bna-strip svg { flex-shrink: 0; margin-top: 1px; opacity: 0.7; }

/* ── SIMULATOR CARDS GRID ── */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .sim-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .sim-grid { grid-template-columns: 1fr; } }

.sim-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(135,192,221,0.12);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.sim-card-active {
  cursor: pointer;
  border-color: rgba(135,192,221,0.22);
}
.sim-card-active:hover {
  border-color: rgba(135,192,221,0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(135,192,221,0.08);
}
.sim-card-soon { opacity: 0.6; }

.sim-card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.sim-card-norm { display: flex; align-items: center; gap: 6px; }
.sim-norm-badge {
  font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #87C0DD;
  background: rgba(135,192,221,0.12);
  border: 1px solid rgba(135,192,221,0.2);
  padding: 2px 7px; border-radius: 20px;
}
.sim-norm-ref {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.45);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.sim-card-status {
  font-size: 9px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 20px;
  white-space: nowrap;
}
.sim-active { background: rgba(78,203,141,0.12); color: #4ecb8d; }
.sim-soon   { background: rgba(232,185,106,0.12); color: #e8b96a; }

.sim-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(135,192,221,0.1);
  border: 1px solid rgba(135,192,221,0.15);
  display: flex; align-items: center; justify-content: center;
}
.sim-card-icon-muted { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.sim-card-icon-muted svg { stroke: rgba(255,255,255,0.25); }

.sim-card-title {
  font-size: 0.97rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.3;
}
.sim-card-desc {
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  line-height: 1.6; margin: 0; flex: 1;
}
.sim-card-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.sim-card-tags span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  color: rgba(135,192,221,0.6);
  background: rgba(135,192,221,0.07);
  border: 1px solid rgba(135,192,221,0.12);
  padding: 2px 8px; border-radius: 20px;
}
.sim-card-cta {
  margin-top: auto;
  padding: 0.6rem 1rem; border-radius: 7px;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  text-align: center;
}
.sim-cta-muted {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}

/* ── CTA COMERCIAL ── */
.sim-commercial {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  background: rgba(135,192,221,0.06);
  border: 1px solid rgba(135,192,221,0.15);
  border-radius: 12px;
  padding: 1.5rem 2rem;
}
.sim-commercial-title {
  font-size: 1rem; font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 0.3rem;
}
.sim-commercial-desc {
  font-size: 0.83rem; color: rgba(255,255,255,0.45);
  line-height: 1.6; margin: 0;
}

/* ── SIMULATOR CARD BUTTONS ── */
.sim-card-btns {
  display: flex; flex-direction: column; gap: 6px; margin-top: auto;
}
.sim-card-lex {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0.5rem 0.8rem; border-radius: 6px;
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
  color: rgba(135,192,221,0.65);
  border: 1px solid rgba(135,192,221,0.15);
  transition: all 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.sim-card-lex:hover {
  color: var(--xp-accent, #87C0DD);
  border-color: rgba(135,192,221,0.35);
  background: rgba(135,192,221,0.05);
}
.sim-lex-muted { opacity: 0.45; pointer-events: auto; }
.sim-lex-muted:hover { opacity: 0.7; }



/* Logo icon animation */
.nav-logo img,
.footer-brand img {
  animation: logoPulse 3s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover img {
  transform: rotate(15deg) scale(1.1);
  animation: logoPulseHover 3s ease-in-out infinite;
}

/*ANIMAÇÃO CIRCULAR LOGO*/
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(135, 192, 221, 0.15); }
  50%       { box-shadow: 0 0 10px rgba(135, 192, 221, 0.4); }
}

@keyframes logoPulseHover {
  0%, 100% { box-shadow: 0 0 6px rgba(135, 192, 221, 0.25); }
  50%       { box-shadow: 0 0 16px rgba(135, 192, 221, 0.6); }
}

.logo-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: logoPulse 2.5s ease-in-out infinite;
}
.logo-icon-wrap:hover {
  animation: logoPulseHover 1.2s ease-in-out infinite;
}
.logo-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*ANIMAÇÃO CIRCULAR*/

/*Sweet alert enviar email*/
/*Erro - Campos Obrigatorio*/
.field-error {
  border-color: #87C0DD !important;
  animation: fieldShake 0.4s ease;
  box-shadow: 0 0 0 3px rgba(135, 192, 221, 0.15) !important;
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* Sweet alert enviar email */
/*Modal*/
.swal-xparse {
  border: 1px solid rgba(135,192,221,0.12) !important;
  border-radius: 18px !important;
  padding: 2.2rem 2rem 1.8rem !important;
  max-width: 320px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important;
}
.swal-xparse .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
}
.swal-xparse-btn {
  border-radius: 8px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 9px 28px !important;
  margin-top: 0.2rem !important;
  transition: opacity 0.2s !important;
}
.swal-xparse-btn:hover { opacity: 0.85 !important; }

/* Ícone custom */
.swal-xi {
  width: 52px; height: 52px;
  margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.swal-xi svg { width: 52px; height: 52px; }
.swal-xi.loading svg { animation: swalSpin 1.2s linear infinite; }
.swal-xi.success svg circle.ring { stroke-dasharray: 113; stroke-dashoffset: 113; animation: swalDraw 0.5s ease forwards; }
.swal-xi.success svg polyline { stroke-dasharray: 30; stroke-dashoffset: 30; animation: swalDraw 0.4s 0.4s ease forwards; }

@keyframes swalSpin { to { transform: rotate(360deg); } }
@keyframes swalDraw { to { stroke-dashoffset: 0; } }

.swal-xtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8edf6;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}
.swal-xtext {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(232,237,246,0.55);
  line-height: 1.5;
  margin: 0;
}