:root {
  --navy: #0e2a4d;
  --navy-dark: #081a30;
  --navy-soft: #eef2f7;
  --accent: #2a78d6;
  --accent-light: #5da0ea;
  --border: #e4e9f0;
  --text: #1c2b3a;
  --text-muted: #66748a;
  --white: #ffffff;
  --radius: 14px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, height 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(14, 42, 77, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s ease;
}
.site-header.scrolled .header-inner { height: 64px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 30px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand-logo { height: 26px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a:not(.nav-cta) {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav a:not(.nav-cta):hover { color: var(--accent); }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  padding: 120px 0 100px;
}
.hero-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(700px 400px at 85% -10%, rgba(42, 120, 214, 0.35), transparent 60%),
    radial-gradient(600px 500px at -10% 110%, rgba(42, 120, 214, 0.2), transparent 60%),
    linear-gradient(180deg, var(--navy-dark), var(--navy) 140%);
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
}
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.circuit-line {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 14;
  opacity: 0.35;
  animation: flow 6s linear infinite;
}
.circuit-line.l2 { animation-duration: 8s; animation-direction: reverse; opacity: 0.25; }
.circuit-line.l3 { animation-duration: 7s; opacity: 0.3; }
@keyframes flow {
  to { stroke-dashoffset: -200; }
}
.circuit-nodes circle {
  fill: var(--accent-light);
  opacity: 0.6;
  animation: nodeGlow 3s ease-in-out infinite;
}
.circuit-nodes circle:nth-child(2n) { animation-delay: 0.8s; }
.circuit-nodes circle:nth-child(3n) { animation-delay: 1.6s; }
@keyframes nodeGlow {
  0%, 100% { opacity: 0.35; r: 3.5; }
  50% { opacity: 0.9; r: 5; }
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  color: var(--accent-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 16px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent-light), #a6c9f7, var(--accent-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  to { background-position: -200% center; }
}
.hero-lead {
  color: #c7d2e3;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dbe4f3;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--navy-soft); }
.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 16px;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 48px;
}

/* ---------- Services ---------- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.service-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 360px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(14, 42, 77, 0.08);
  border-color: rgba(42, 120, 214, 0.3);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-6deg);
  background: var(--accent);
  color: var(--white);
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.services-grid .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.services-grid .reveal.visible:nth-child(2) { transition-delay: 0.12s; }
.services-grid .reveal.visible:nth-child(3) { transition-delay: 0.19s; }
.services-grid .reveal.visible:nth-child(4) { transition-delay: 0.26s; }
.services-grid .reveal.visible:nth-child(5) { transition-delay: 0.33s; }
.services-grid .reveal.visible:nth-child(6) { transition-delay: 0.4s; }
.contact-grid .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.contact-grid .reveal.visible:nth-child(2) { transition-delay: 0.12s; }
.contact-grid .reveal.visible:nth-child(3) { transition-delay: 0.19s; }
.values-grid .reveal.visible:nth-child(1) { transition-delay: 0.05s; }
.values-grid .reveal.visible:nth-child(2) { transition-delay: 0.12s; }
.values-grid .reveal.visible:nth-child(3) { transition-delay: 0.19s; }

/* ---------- Coverage ---------- */
.coverage-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.coverage-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}
.coverage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.coverage-visual { display: flex; justify-content: center; }
.brazil-map { width: 100%; max-width: 320px; }
.map-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.18;
}
.map-ring-2 { opacity: 0.28; }
.map-ring-3 { opacity: 0.4; }
.pin-core { fill: var(--accent); }
.pin { fill: var(--navy); animation: pulse 2.4s ease-in-out infinite; }
.map-pins circle:nth-child(3) { animation-delay: 0.3s; }
.map-pins circle:nth-child(4) { animation-delay: 0.6s; }
.map-pins circle:nth-child(5) { animation-delay: 0.9s; }
.map-pins circle:nth-child(6) { animation-delay: 1.2s; }
.map-pins circle:nth-child(7) { animation-delay: 1.5s; }
.map-pins circle:nth-child(8) { animation-delay: 1.8s; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Contact ---------- */
.contact { background: var(--navy-dark); }
.contact .section-eyebrow { color: var(--accent-light); }
.contact .section-title { color: var(--white); }
.contact .section-lead { color: #b9c5da; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.contact-card:not(.contact-card-static):hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
}
.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8ea2c2;
  font-weight: 600;
}
.contact-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------- Values ---------- */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.value-card {
  flex: 1 1 280px;
  max-width: 340px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(14, 42, 77, 0.08);
  border-color: rgba(42, 120, 214, 0.3);
}
.value-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-logo { height: 22px; width: auto; opacity: 0.9; }
.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9db0cc;
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-location svg { width: 15px; height: 15px; }
.footer-copy { color: #7e8ea9; font-size: 0.85rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .coverage-inner { grid-template-columns: 1fr; }
  .coverage-visual { order: -1; max-width: 260px; margin: 0 auto 16px; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .hero { padding: 90px 0 72px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg,
  .circuit-line,
  .circuit-nodes circle,
  .hero h1 span,
  .pin {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
