@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:    #4f8cf2;
  --accent2:   #7aaeff;
  --bg:        #06090D;
  --bg2:       #0B1017;
  --bg3:       #0F1620;
  --surface:   #131C28;
  --surface2:  #1A2535;
  --border:    rgba(79,140,242,0.14);
  --border-h:  rgba(79,140,242,0.40);
  --text:      #E2EAF4;
  --muted:     #7A90A8;
  --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 + ORBS */
.grid-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(79,140,242,0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(79,140,242,0.028) 1px, transparent 1px); background-size: 56px 56px; }
.orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(100px); opacity: .12; }
.orb-1 { width: 600px; height: 600px; background: #4f8cf2; top: -200px; right: -150px; }
.orb-2 { width: 440px; height: 440px; background: #7aaeff; bottom: -100px; left: -130px; }

/* ── NAV — Liquid 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(8, 12, 20, 0.48);
  backdrop-filter: blur(48px) saturate(1.8);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px  rgba(0, 0, 0, 0.20),
    inset 0  1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
nav.scrolled {
  background: rgba(6, 9, 13, 0.70);
  border-color: rgba(79, 140, 242, 0.20);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.55),
    0 4px  12px rgba(0, 0, 0, 0.25),
    inset 0  1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.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; }

/* Links como botões liquid glass */
.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 ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0  1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.15);
}
.nav-links a.active {
  color: var(--accent2);
  background: rgba(79, 140, 242, 0.14);
  border-color: rgba(79, 140, 242, 0.30);
  box-shadow:
    inset 0  1px 0 rgba(79, 140, 242, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 2px 10px rgba(79, 140, 242, 0.10);
}

/* HAMBÚRGUER — glass */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px; padding: 8px; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 8px rgba(0,0,0,0.20);
  transition: background .2s ease, border-color .2s ease;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,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(6, 9, 13, 0.94);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  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 { opacity: .88; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--surface2); }
.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(79,140,242,0.08); border: 1px solid var(--border); }
.badge-gray { color: var(--muted); background: var(--surface2); border: 1px solid var(--surface2); }

/* 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: .6; transition: opacity var(--ease);
}
.footer-logo a:hover .footer-logo-img { opacity: 1; }

.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(79,140,242,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(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s, border-color var(--ease); }
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { border-color: 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; }
}
