@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  --accent:    #2563EB;
  --accent2:   #1D4ED8;
  --bg:        #FFFFFF;
  --bg2:       #F7F9FC;
  --bg3:       #EDF0F8;
  --surface:   #FFFFFF;
  --surface2:  #EEF2FB;
  --border:    rgba(15,22,51,0.09);
  --border-h:  rgba(15,22,51,0.22);
  --text:      #0D1829;
  --muted:     #637591;
  --radius:    14px;
  --radius-lg: 20px;
  --font-head: 'Sora', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Sora', sans-serif;
  --ease:      .25s ease;
  --nav-h:     56px;
  --nav-top:   16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* BG GRID SUTIL */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ORBS — tons claros */
.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(120px); }
.orb-1 { width: 640px; height: 640px; background: #93c5fd; top: -220px; right: -160px; opacity: .20; }
.orb-2 { width: 480px; height: 480px; background: #c4b5fd; bottom: -120px; left: -140px; opacity: .14; }

/* ── NAV — Light Glass ── */
nav {
  position: fixed;
  top: var(--nav-top);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1100px;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  height: var(--nav-h);

  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(15, 22, 51, 0.10);
  border-radius: 18px;
  box-shadow:
    0 4px 20px rgba(15, 22, 51, 0.07),
    0 1px 4px  rgba(15, 22, 51, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 22, 51, 0.13);
  box-shadow:
    0 8px 32px rgba(15, 22, 51, 0.10),
    0 2px 8px  rgba(15, 22, 51, 0.05),
    inset 0 1px 0 #fff;
}

.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; height: var(--nav-h); padding: 9px 0; flex-shrink: 0;
}
.nav-logo-img {
  height: calc(var(--nav-h) - 16px);
  width: auto; display: block; object-fit: contain;
  filter: brightness(0);
}

/* Links */
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 13.5px; color: var(--muted); text-decoration: none; font-weight: 500;
  padding: 7px 16px; border-radius: 10px;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 22, 51, 0.05);
  border-color: rgba(15, 22, 51, 0.09);
}
.nav-links a.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

/* HAMBÚRGUER */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; cursor: pointer;
  background: rgba(15, 22, 51, 0.04);
  border: 1px solid rgba(15, 22, 51, 0.10);
  border-radius: 10px; padding: 8px; flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.nav-hamburger:hover { background: rgba(15,22,51,0.08); border-color: rgba(15,22,51,0.16); }
.nav-hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s ease, opacity .3s ease; transform-origin: center; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE OVERLAY */
.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column; align-items: center; justify-content: center;
  padding-top: calc(var(--nav-top) + var(--nav-h) + 24px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  color: var(--text); text-decoration: none; padding: 20px 0;
  border-bottom: 1px solid var(--border); width: 80%; text-align: center;
  transition: color var(--ease);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--accent); }

/* BOTÕES */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px; font-family: var(--font-head);
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  border: 1.5px solid transparent;
  transition: opacity var(--ease), transform var(--ease), border-color var(--ease), color var(--ease), background var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-h); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 34px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* SECTION TAG / TÍTULO */
.section-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-tag::before { content: ''; width: 16px; height: 1px; background: var(--accent); }
.section-title {
  font-family: var(--font-head); font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 16px;
}
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.8; max-width: 540px; }

/* BADGES */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  padding: 4px 12px; border-radius: 100px; white-space: nowrap;
}
.badge-blue { color: var(--accent); background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.20); }
.badge-gray { color: var(--muted); background: var(--surface2); border: 1px solid var(--border); }

/* PULSE */
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }

/* BACK LINK */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-decoration: none; transition: color var(--ease); margin-bottom: 28px;
}
.back-link:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 32px 5%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
}
.footer-logo a { display: flex; align-items: center; text-decoration: none; }
.footer-logo-img {
  height: 36px; width: auto; object-fit: contain;
  opacity: .45; filter: brightness(0);
  transition: opacity var(--ease);
}
.footer-logo a:hover .footer-logo-img { opacity: .75; }

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 12.5px; color: var(--muted); text-decoration: none; transition: color var(--ease); }
.footer-nav a:hover { color: var(--accent); }

.footer-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.footer-copy { font-size: 12px; color: var(--muted); white-space: nowrap; }
.footer-copy strong { color: var(--text); }
.footer-ig {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--muted);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.footer-ig:hover { border-color: var(--accent); color: var(--accent); background: rgba(37,99,235,0.06); }

/* SCROLL TO TOP */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border-h);
  box-shadow: 0 4px 16px rgba(15,22,51,0.10);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, border-color var(--ease), box-shadow var(--ease);
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(37,99,235,0.18); }
#scroll-top svg { stroke: var(--accent); }

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

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 0 16px; width: calc(100% - 24px); }
  .nav-links { gap: 2px; }
  .container { padding: 0 4%; }
  footer { grid-template-columns: 1fr; gap: 16px; padding: 28px 4%; }
  .footer-nav { justify-content: flex-start; }
  .footer-right { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  nav { top: 10px; width: calc(100% - 20px); border-radius: 14px; }
}
