:root {
  --navy: #0b1f3b;
  --navy-2: #123a6b;
  --blue: #1e6bff;
  --cyan: #22d3ee;
  --ink: #0f172a;
  --muted: #5b6b85;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-alt: #f6f9fd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 59, .08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 2px 14px rgba(11, 31, 59, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; display: block; }
.footer-brand picture { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; }
.footer-brand img { height: 62px; width: auto; display: block; }
.footer-brand { text-align: left; }
.brand-text small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 15px; opacity: .8; }
.nav-links a:hover { opacity: 1; color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(34, 211, 238, .18), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 84px 0 92px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--cyan); font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.grad { background: linear-gradient(90deg, var(--cyan), #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: 18px; color: #d7e2f0; max-width: 54ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 38px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero-stats strong { display: block; font-size: 30px; letter-spacing: -.02em; }
.hero-stats span { font-size: 13.5px; color: #b9c8dc; }
.hero-card {
  background: rgba(9, 22, 45, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.code { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; line-height: 1.85; color: #cfe3ff; white-space: pre-wrap; }
.c-prompt { color: var(--cyan); font-weight: 700; }
.c-str { color: #fcd34d; }
.c-ok { color: #4ade80; }

/* ---------- Botões ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 15px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(30, 107, 255, .32); }
.btn-primary:hover { background: #1a5ef0; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-lg { font-size: 17px; padding: 16px 34px; background: #fff; color: var(--navy); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: #1fbb59; }
.btn-wa svg { vertical-align: -4px; margin-right: 4px; }

/* ---------- Seções ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.02em; color: var(--navy); }
.section-sub { margin-top: 12px; color: var(--muted); max-width: 62ch; }

.grid.services { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9dcfb; }
.icon { font-size: 28px; margin-bottom: 14px; }
.card h3 { font-size: 18.5px; color: var(--navy); margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Passos ---------- */
.steps { list-style: none; margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 3px solid var(--line); }
.steps li::after { content: ""; position: absolute; top: -3px; left: 0; width: 40px; height: 3px; background: var(--blue); }
.steps span { font-weight: 800; color: var(--blue); font-size: 13px; letter-spacing: .08em; }
.steps h3 { font-size: 17px; color: var(--navy); margin: 6px 0 7px; }
.steps p { color: var(--muted); font-size: 14.5px; }

/* ---------- Mapa ---------- */
.map-wrap { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dce7f5; }
#map { width: 100%; height: 520px; }
.cities { list-style: none; margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cities li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.cities b { color: var(--navy); }
.cities span { color: var(--muted); font-size: 13.5px; margin-left: auto; }

.leaflet-tile-pane { filter: saturate(.82) contrast(1.03); }

.pin { background: transparent; border: 0; }
.pin-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(30, 107, 255, .3), 0 3px 8px rgba(0, 0, 0, .3); transition: transform .2s; }
.pin:hover .pin-dot { transform: scale(1.25); background: var(--cyan); }
.leaflet-popup-content { margin: 14px 16px; font-family: inherit; }
.leaflet-popup-content b { color: var(--navy); display: block; font-size: 15px; }
.leaflet-popup-content span { color: var(--muted); font-size: 13px; }

/* ---------- CTA / Footer ---------- */
.cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 76px 0; text-align: center; }
.cta h2 { font-size: clamp(25px, 3.4vw, 34px); letter-spacing: -.02em; }
.cta p { margin: 16px auto 30px; color: #cdd9e8; max-width: 58ch; }
.footer { background: var(--navy); color: #9fb1c7; padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer p { margin-top: 6px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #9fb1c7; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { order: 2; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 20px 16px; display: none;
    box-shadow: 0 12px 24px rgba(11, 31, 59, .1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .hero-stats { gap: 24px; }
  .section { padding: 62px 0; }
  #map { height: 420px; }
}
@media (max-width: 520px) {
  .hero { padding: 58px 0 64px; }
  .hero-stats { flex-wrap: wrap; gap: 20px 30px; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { padding: 15px 22px; font-size: 16px; }
  .brand img { height: 44px; }
  .footer-brand img { height: 54px; }
}
