/* ── FONTS (self-hosted: evita enviar o IP do visitante à Google sem consentimento) ── */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/outfit-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-variable.woff2') format('woff2');
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ── HONEYPOT (anti-spam, invisível para humanos) ── */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── TOKENS (Paleta preto + azul-elétrico) ── */
:root {
  --bg:          #0A0A0D;
  --surface:     #131318;
  --surface-card:#191A21;
  --border:      #2B2C35;
  --border-glow: rgba(46,92,255, 0.35);
  --accent:      #2E5CFF; /* Electric Cobalt */
  --accent-2:    #5CA8FF; /* Light Electric Blue */
  --accent-glow: rgba(46,92,255, 0.22);
  --cyan-glow:   rgba(92,168,255, 0.18);
  --text:        #F4F5F7;
  --text-mid:    #9A9CA6;
  --text-low:    rgba(244,245,247, 0.30);
  --display:     'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --body:        'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --mono:        'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --radius:      12px;
}

/* ── LIGHT THEME OVERRIDES ── */
:root[data-theme="light"] {
  --bg:          #F7F8FA;
  --surface:     #FFFFFF;
  --surface-card:#FFFFFF;
  --border:      #E2E4EA;
  --border-glow: rgba(46,92,255, 0.25);
  --accent-2:    #1D4ED8; /* darker electric blue: readable as text on a light background */
  --accent-glow: rgba(46,92,255, 0.18);
  --cyan-glow:   rgba(29,78,216, 0.14);
  --text:        #101114;
  --text-mid:    #5B5E6B;
  --text-low:    rgba(16,17,20, 0.35);
}
[data-theme="light"] .vignette {
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 45%, rgba(247,248,250,0.65) 100%);
}
[data-theme="light"] .curtain-mark { color: rgba(16,17,20,0.55); }
/* these elements hardcode a dark rgba background instead of using --surface/--bg,
   so they need an explicit light-theme override or they stay dark-on-light */
[data-theme="light"] .nav {
  background: linear-gradient(180deg, rgba(247,248,250,0.94) 0%, rgba(247,248,250,0.80) 70%, transparent 100%);
}
[data-theme="light"] .mobile-menu { background: rgba(247,248,250,0.97); }
[data-theme="light"] .theme-toggle { background: rgba(255,255,255,0.6); }
[data-theme="light"] .btn-outline { background: rgba(255,255,255,0.6); }
[data-theme="light"] .diag-pill { background: rgba(16,17,20,0.06); }
[data-theme="light"] .quiz-progress { background: rgba(16,17,20,0.08); }
[data-theme="light"] .svc-card:hover { background: #EEF2FF; }

/* ── BASE ── */
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(46,92,255,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(92,168,255,.14), transparent 55%),
    var(--bg);
  min-height: 100vh;
}
body.no-scroll { overflow: hidden; }
::selection { background: rgba(46,92,255,0.30); color: var(--text); }

/* ── SCROLLBAR (acompanha o tema claro/escuro) ── */
html { scrollbar-color: var(--accent-2) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 6px; height: 6px; transition: width 0.2s ease, height 0.2s ease; }
::-webkit-scrollbar:hover { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  border: 2px solid var(--bg);
  transition: box-shadow 0.25s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-glow);
}
::-webkit-scrollbar-thumb:active { box-shadow: 0 0 14px var(--accent-glow); }

/* ── LOADER (curtain) ── */
#loader {
  position: fixed; inset: 0; z-index: 99000;
  pointer-events: none;
}
.curtain {
  position: absolute; left: 0; right: 0;
  height: 50%;
  background: var(--bg);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain-top    { top: 0; }
.curtain-bottom { bottom: 0; }
.curtain-mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244,245,247,0.40);
  white-space: nowrap;
  transition: opacity 0.35s ease;
}
.curtain-mark b {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.curtain-mark::after {
  content: '';
  display: block;
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--accent-2), transparent);
  margin: 1rem auto 0;
}
#loader.open .curtain-top    { transform: translateY(-100%); }
#loader.open .curtain-bottom { transform: translateY(100%); }
#loader.open .curtain-mark   { opacity: 0; }

/* ── CUSTOM CURSOR SYSTEM (mouse only; no mousemove on touch, so keep it out of the way there) ── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, select, textarea, .svc-card, .impact-card, .quiz-opt, .calc-box, .contact-form-card {
    cursor: none !important;
  }
}
@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring, #cursor-glow { display: none; }
}

#cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 99999;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2), 0 0 20px var(--accent-2);
  pointer-events: none; will-change: transform;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99998;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(46, 92, 255, 0.6);
  background: rgba(46, 92, 255, 0.05);
  pointer-events: none; will-change: transform;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.33, 1, 0.68, 1),
              height 0.25s cubic-bezier(0.33, 1, 0.68, 1),
              border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

#cursor-ring.active {
  width: 58px; height: 58px;
  border-color: var(--accent-2);
  background: rgba(92, 168, 255, 0.12);
  box-shadow: 0 0 24px rgba(92, 168, 255, 0.35);
}

#cursor-dot.active {
  width: 12px; height: 12px;
  background: #FFFFFF;
  box-shadow: 0 0 14px #FFFFFF, 0 0 25px var(--accent-2);
}

.click-ripple {
  position: fixed; z-index: 99997;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--accent-2);
  pointer-events: none; transform: translate(-50%, -50%) scale(1);
  animation: rippleAnim 0.5s ease-out forwards;
}
@keyframes rippleAnim {
  0%   { width: 10px; height: 10px; opacity: 1; border-width: 2px; }
  100% { width: 75px; height: 75px; opacity: 0; border-width: 1px; }
}

#cursor-glow {
  position: fixed; z-index: 1;
  width: 650px; height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,92,255,0.16) 0%, rgba(92,168,255,0.08) 40%, transparent 70%);
  pointer-events: none;
  top: 0; left: 0;
  will-change: transform;
  transform: translate(-50%, -50%);
}

/* Card Spotlight Hover Highlight */
.svc-card, .impact-card, .calc-box, .contact-form-card {
  position: relative;
}
.svc-card::before, .impact-card::before, .calc-box::before, .contact-form-card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(92,168,255, 0.14), transparent 80%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.svc-card:hover::before, .impact-card:hover::before, .calc-box:hover::before, .contact-form-card:hover::before {
  opacity: 1;
}

/* ── FIXED OVERLAYS ── */
.vignette {
  position: fixed; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 38%, rgba(10,10,13,0.78) 100%);
  pointer-events: none;
}

/* ── LAYOUT ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 3rem; }
.divider { position: relative; z-index: 2; height: 1px; background: var(--border); }

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 100000;
  background: var(--accent-2); color: #FFFFFF; font-weight: 700;
  padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ── LABEL ── */
.label {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2);
}
.label::before {
  content: ''; display: block;
  width: 22px; height: 1px; background: var(--accent-2); opacity: 0.6; flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9rem 2.1rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border-radius: 999px;
  text-align: center;
}
.btn-solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text); font-weight: 700;
  box-shadow: 0 0 24px rgba(46,92,255, 0.35);
}
.btn-solid:hover {
  box-shadow: 0 0 32px rgba(92,168,255, 0.55);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: rgba(19,19,24, 0.5);
}
.btn-outline:hover {
  border-color: rgba(92,168,255, 0.4);
  color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(92,168,255, 0.15);
}
.btn-full { width: 100%; }

/* ── REVEAL ANIMATIONS ── */
.rl  { display: block; overflow: hidden; }
.rli {
  display: block;
  transform: translateY(112%);
  transition: transform 0.95s cubic-bezier(0.33, 1, 0.68, 1);
}
.rli.up { transform: translateY(0); }

.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(180deg, rgba(10,10,13,0.94) 0%, rgba(10,10,13,0.80) 70%, transparent 100%);
  backdrop-filter: blur(14px);
  transition: padding 0.3s ease;
}
.nav-logo {
  font-family: var(--mono); font-size: 0.84rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--text);
}
.nav-logo strong {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mid);
  transition: color 0.2s, opacity 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-2); }
.nav-links a.btn-solid, .nav-links a.btn-solid:hover { color: var(--text); }
.nav-links a.btn-solid {
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Theme Toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border); background: rgba(19,19,24,0.4);
  color: var(--text-mid); cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent-2); color: var(--accent-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.scroll-top-btn {
  position: fixed; right: 2rem; bottom: 2rem; z-index: 400;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface-card);
  color: var(--text-mid); cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}
.scroll-top-btn.visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ── COOKIE CONSENT BANNER ── */
.consent-banner {
  position: fixed; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 900;
  max-width: 640px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.consent-banner.visible { opacity: 1; transform: none; pointer-events: auto; }
.consent-banner p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; flex: 1 1 320px; }
.consent-banner a { color: var(--accent-2); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.consent-actions .btn { padding: 0.7rem 1.4rem; }
@media (max-width: 560px) {
  .consent-banner { left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}
.scroll-top-btn svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
  .scroll-top-btn { right: 1.2rem; bottom: 1.2rem; width: 40px; height: 40px; }
}
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1px;
}

/* Mobile Hamburger Button */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; cursor: pointer; z-index: 600;
  background: transparent; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent-2); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent-2); }

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 550;
  background: rgba(10,10,13,0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.2rem; padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mid);
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent-2); transform: scale(1.05); }
.mobile-menu a.btn-solid, .mobile-menu a.btn-solid:hover { color: var(--text); }

/* ── HERO ── */
#hero {
  position: relative; z-index: 2;
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 10rem 2rem 7rem;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

/* Neural network background: nodes + connections + traveling signal pulses */
.hero-network { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.hero-network .ai-edge { stroke: var(--accent); stroke-width: 1; opacity: 0.2; }
.hero-network .ai-node {
  fill: var(--accent-2);
  filter: drop-shadow(0 0 6px var(--accent-2));
  animation-name: aiPulse;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.hero-network .ai-node-bg {
  fill: var(--accent);
  opacity: 0.22;
  animation-name: aiPulseSlow;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.hero-network .ai-signal {
  fill: var(--text);
  filter: drop-shadow(0 0 7px var(--accent-2));
}
.hero-network .layer-far, .hero-network .layer-near {
  transition: transform 0.4s ease-out;
}
@keyframes aiPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
@keyframes aiPulseSlow {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.4; }
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.30em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 2.8rem;
  opacity: 0; transition: opacity 0.6s ease;
}
.hero-eyebrow.visible { opacity: 1; }
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 52px; height: 1px;
  background: var(--accent-2); opacity: 0.45;
}
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8.5vw, 7.8rem);
  font-weight: 400; line-height: 1.06;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 2.2rem; max-width: 920px;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.hero-p {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: var(--text-mid); max-width: 510px;
  line-height: 1.78; font-weight: 300; margin-bottom: 3rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.hero-p.visible { opacity: 1; transform: none; }
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s ease 0.22s, transform 0.7s ease 0.22s;
}
.hero-btns.visible { opacity: 1; transform: none; }
.scroll-hint {
  position: absolute; bottom: 2.6rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
  color: var(--text-low);
  font-family: var(--mono); font-size: 0.54rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.6s ease 1.6s;
}
.scroll-hint.visible { opacity: 1; }
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--accent-2) 0%, transparent 100%);
  animation: scanDown 2.2s ease-in-out infinite;
}
@keyframes scanDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── SERVICES ── */
#services { position: relative; z-index: 2; padding: 7.5rem 0; }
.svc-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 4rem;
}
.svc-title, .proc-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 500; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--text);
  margin-top: 0.75rem;
}
.svc-title em, .proc-title em {
  font-style: normal; font-weight: 700;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.svc-intro {
  font-size: 0.88rem; color: var(--text-mid);
  max-width: 360px; line-height: 1.72; font-weight: 300;
}
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.svc-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.6rem;
  position: relative; overflow: hidden;
  transition: background 0.3s, border-color 0.3s, opacity 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; transform: translateY(28px);
}
.svc-card.visible { opacity: 1; transform: none; }
.svc-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s ease;
}
.svc-card:hover {
  background: #1F212C;
  border-color: rgba(46,92,255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(46,92,255, 0.15);
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 1.8rem; height: 1.8rem;
  color: var(--accent-2); opacity: 0.9; margin-bottom: 1.5rem;
}
.svc-h3 {
  font-family: var(--display); font-size: 1.45rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.7rem;
  line-height: 1.2; letter-spacing: 0em;
}
.svc-p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.68; font-weight: 300; }
.svc-tag {
  display: inline-block; margin-top: 1.6rem;
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid rgba(92,168,255, 0.25);
  background: rgba(92,168,255, 0.08);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}

/* ── CALCULATOR SECTION ── */
#calculator {
  position: relative; z-index: 2;
  background: var(--surface);
  padding: 7.5rem 0;
  border-top: 1px solid var(--border);
}
.calc-box {
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 3.5rem;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.calc-controls { display: flex; flex-direction: column; gap: 2.2rem; }
.calc-group { display: flex; flex-direction: column; gap: 0.8rem; }
.calc-label-row { display: flex; justify-content: space-between; align-items: center; }
.calc-label-text { font-size: 0.88rem; color: var(--text-mid); }
.calc-val-badge {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 700;
  color: var(--accent-2); background: rgba(92,168,255, 0.08); border: 1px solid rgba(92,168,255, 0.25);
  padding: 0.2rem 0.6rem; border-radius: 999px;
}

/* Range Slider Styling */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--border);
  border: 1px solid rgba(92,168,255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  margin: 10px 0;
}
input[type=range]:focus { outline: none; }

/* Webkit (Chrome, Safari, Edge) */
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: transparent;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid #0A0A0D;
  box-shadow: 0 0 12px rgba(92,168,255, 0.8);
  margin-top: -7px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #8FC4FF;
  box-shadow: 0 0 18px rgba(92,168,255, 0.9);
}

/* Firefox */
input[type=range]::-moz-range-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  border: 1px solid rgba(92,168,255, 0.2);
}
input[type=range]::-moz-range-thumb {
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid #0A0A0D;
  box-shadow: 0 0 12px rgba(92,168,255, 0.8);
  transition: transform 0.15s ease, background 0.15s ease;
}
input[type=range]::-moz-range-progress {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  height: 8px;
  border-radius: 4px;
}

.calc-results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.8rem;
}
.calc-res-item { display: flex; flex-direction: column; gap: 0.3rem; }
.calc-res-label { font-family: var(--mono); font-size: 0.60rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mid); }
.calc-res-num { font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--accent-2); line-height: 1.1; }

/* ── PROCESS ── */
#process { position: relative; z-index: 2; padding: 7.5rem 0; }
.proc-header { margin-bottom: 4.5rem; }
.proc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem; }
.proc-num {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--accent-2); opacity: 0.8; line-height: 1;
  margin-bottom: 1.2rem; letter-spacing: 0.18em;
}
.proc-h3 {
  font-family: var(--display); font-size: 1.45rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.65rem; letter-spacing: 0em;
}
.proc-p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.68; font-weight: 300; }

/* ── IMPACT STATS SECTION ── */
#impact {
  position: relative; z-index: 2;
  background: var(--surface);
  padding: 6.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.impact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3.5rem;
}
.impact-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem; text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.impact-card:hover {
  border-color: rgba(92,168,255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(92,168,255, 0.15);
}
.impact-num {
  font-family: var(--display); font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 700; color: var(--accent-2); line-height: 1; margin-bottom: 0.8rem;
}
.impact-label { font-size: 0.82rem; color: var(--text-mid); font-weight: 300; line-height: 1.5; }

/* ── FAQ ── */
#faq { position: relative; z-index: 2; padding: 7.5rem 0; }
.faq-list { max-width: 760px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.5rem;
  transition: border-color 0.3s ease;
}
.faq-item.is-open { border-color: rgba(92,168,255, 0.4); }
.faq-item .faq-q {
  width: 100%; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0;
  font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--text);
  text-align: left;
}
.faq-item .faq-q::after {
  content: '+'; font-size: 1.3rem; color: var(--accent-2); flex-shrink: 0; line-height: 1;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
/* Altura exata calculada e aplicada via JS (script.js), nada de grid-rows:
   evita os bugs de dimensionamento intrínseco desse truque entre browsers. */
.faq-item .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item .faq-a p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; font-weight: 300; padding-bottom: 1.4rem; }

/* ── DIAGNOSTIC ── */
#diagnostic {
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(46,92,255,0.06) 0%, transparent 60%);
  padding: 6.5rem 0;
}
.diag-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 3rem; flex-wrap: wrap;
}
.diag-left { flex: 1; min-width: 280px; }
.diag-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 1.3rem;
  background: rgba(92,168,255, 0.08); border: 1px solid rgba(92,168,255, 0.25);
  padding: 0.25rem 0.75rem; border-radius: 999px;
}
.diag-badge::before {
  content: ''; display: block;
  width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-2);
}
.diag-h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 500; color: var(--text);
  line-height: 1.14; letter-spacing: -0.01em; margin-bottom: 1.1rem;
}
.diag-p {
  font-size: 0.88rem; color: var(--text-mid);
  line-height: 1.72; max-width: 420px; font-weight: 300;
}
.diag-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.diag-pill {
  font-family: var(--mono); font-size: 0.58rem;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-mid); border: 1px solid var(--border);
  padding: 0.3rem 0.75rem; background: rgba(19,19,24,0.6);
  border-radius: 999px;
}
.diag-right { flex-shrink: 0; }

/* ── DIAGNOSTIC MODAL QUIZ ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,10,13,0.88); backdrop-filter: blur(16px);
  display: flex; justify-content: center; align-items: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--surface-card); border: 1px solid rgba(46,92,255,0.4);
  border-radius: var(--radius);
  width: 100%; max-width: 620px; padding: 3rem;
  position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  transform: translateY(20px); transition: transform 0.35s ease;
}
.modal-backdrop.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 1.5rem; color: var(--text-mid); cursor: pointer;
  line-height: 1; transition: color 0.2s;
}
.modal-close:hover { color: var(--accent-2); }

.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-progress {
  height: 4px; background: rgba(255,255,255,0.08);
  margin-bottom: 2rem; border-radius: 2px; overflow: hidden;
}
.quiz-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 33%; transition: width 0.3s ease;
}

.quiz-h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; margin-bottom: 0.5rem; }
.quiz-sub { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 1.8rem; }

.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.quiz-opt {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.2rem; cursor: pointer; text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  border-radius: var(--radius);
}
.quiz-opt:hover, .quiz-opt.selected {
  border-color: var(--accent-2); background: rgba(92,168,255, 0.08); transform: translateY(-2px);
}
.quiz-opt-title { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.quiz-opt-desc { font-size: 0.75rem; color: var(--text-mid); margin-top: 0.3rem; }

/* Form Fields */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.form-label { font-family: var(--mono); font-size: 0.60rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid); }
.form-input, .form-select, .form-textarea {
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.85rem 1rem; color: var(--text); font-size: 0.9rem;
  border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-2); box-shadow: 0 0 12px rgba(92,168,255, 0.25);
}
.form-textarea { min-height: 100px; resize: vertical; }

/* intl-tel-input (phone country picker) reskinned to match the site theme */
.iti { width: 100%; }
.iti__tel-input { width: 100%; }
.iti__selected-country {
  background: transparent; border-radius: var(--radius) 0 0 var(--radius);
  transition: background 0.2s ease;
}
.iti__selected-country:hover, .iti__selected-country:focus { background: rgba(92,168,255,0.10); }
.iti__selected-country-primary { color: var(--text); gap: 0.4rem; }
.iti__dial-code { color: var(--text-mid); font-family: var(--mono); font-size: 0.85em; }
.iti__arrow { opacity: 0.6; transition: transform 0.2s ease; }
.iti--container .iti__arrow--up { transform: rotate(180deg); }

.iti__dropdown-content {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  margin-top: 0.4rem;
  animation: itiFadeIn 0.15s ease-out;
}
@keyframes itiFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.iti__search-input-container {
  background: var(--surface-card); padding: 0.6rem;
}
.iti__search-input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; margin: 0; width: 100%;
  color: var(--text); padding: 0.6rem 1rem; font-size: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.iti__search-input:focus {
  border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(92,168,255,0.18); outline: none;
}
.iti__search-input::placeholder { color: var(--text-low); }

.iti__country-list {
  background: var(--surface-card); padding: 0.3rem 0;
  max-height: 220px; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.iti__country-list::-webkit-scrollbar { width: 6px; }
.iti__country-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.iti__country {
  color: var(--text-mid); padding: 0.55rem 1rem; margin: 0 0.4rem;
  border-radius: var(--radius); transition: background 0.15s ease, color 0.15s ease;
}
.iti__country.iti__highlight, .iti__country:hover { background: rgba(92,168,255,0.12); color: var(--text); }
.iti__country-name { font-size: 0.88rem; }
.iti__country .iti__dial-code { color: var(--text-low); }
.iti__divider { border-bottom: 1px solid var(--border); margin: 0.4rem 0.8rem; }

.consent-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.2rem; }
.consent-row input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 0.15rem;
  accent-color: var(--accent-2); flex-shrink: 0; cursor: pointer;
}
.consent-row label { font-size: 0.78rem; color: var(--text-mid); line-height: 1.5; cursor: pointer; }
.consent-row a { color: var(--accent-2); text-decoration: underline; }

/* ── CONTACT SECTION ── */
#contact { position: relative; z-index: 2; padding: 8.5rem 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 4rem; align-items: start;
}
.contact-info { text-align: left; }
.contact-h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 500; line-height: 1.08;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 1.3rem;
}
.contact-h2 em {
  font-style: normal; font-weight: 700;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contact-p { font-size: 0.92rem; color: var(--text-mid); margin-bottom: 2.2rem; font-weight: 300; line-height: 1.7; }

.contact-form-card {
  background: var(--surface-card); border: 1px solid var(--border);
  padding: 3rem; border-radius: var(--radius); text-align: left;
}

.form-status {
  display: none; padding: 1rem; margin-top: 1rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  border: 1px solid rgba(92,168,255, 0.4); background: rgba(92,168,255, 0.1); color: var(--accent-2);
  text-align: center; border-radius: var(--radius);
}
.form-status.visible { display: block; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border); padding: 2rem 3rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; text-align: center;
}
.ft-copy { font-family: var(--mono); font-size: 0.62rem; color: var(--text-low); }
.ft-link { color: var(--text-low); text-decoration: underline; transition: color 0.2s; }
.ft-link:hover { color: var(--accent-2); }
.ft-link-btn { font: inherit; cursor: pointer; }

.social-links { display: flex; gap: 0.8rem; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--border); color: var(--text-mid);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.social-link svg { width: 18px; height: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .calc-box { grid-template-columns: 1fr; gap: 2.5rem; padding: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .container { padding: 0 1.5rem; }
  #services, #calculator, #process, #impact, #diagnostic, #faq, #contact { padding: 4.5rem 0; }
  .svc-header { flex-direction: column; align-items: flex-start; }
  .proc-steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .diag-inner { flex-direction: column; }
  .quiz-options { grid-template-columns: 1fr; }
  .modal-card { padding: 2rem 1.5rem; }
  footer { padding: 1.6rem 1.5rem; }
}
@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rli, .fade-up, .hero-p, .hero-btns, .svc-card, .hero-eyebrow, .scroll-hint {
    transition: none !important; transform: none !important; opacity: 1 !important;
  }
  .scroll-line { animation: none; opacity: 0.4; }
  .curtain { display: none; }
  .hero-network .ai-node, .hero-network .ai-node-bg { animation: none; }
  .hero-network .ai-signal { display: none; }
  .hero-network .layer-far, .hero-network .layer-near { transition: none; transform: none !important; }
  body, a, button, input, select, textarea, .svc-card, .impact-card, .quiz-opt, .calc-box, .contact-form-card {
    cursor: auto !important;
  }
  #cursor-dot, #cursor-ring, #cursor-glow { display: none !important; }
  html { scroll-behavior: auto; }
}
