/* ============================================================
   GlobalCore — tema futurista
   ============================================================ */
:root {
  --bg: #04060e;
  --surface: rgba(148, 178, 255, 0.05);
  --border: rgba(148, 178, 255, 0.12);
  --text: #e8eefb;
  --muted: #93a0b8;
  --cyan: #00e5ff;
  --blue: #4f7cff;
  --violet: #8b5cf6;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 50%, var(--violet));
  --radius: 18px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* brilhos de fundo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(79, 124, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(139, 92, 246, 0.10), transparent 60%),
    radial-gradient(500px 400px at 50% 100%, rgba(0, 229, 255, 0.07), transparent 60%);
}

::selection { background: rgba(0, 229, 255, 0.25); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1b2740; border-radius: 8px; }

#bg-canvas { position: fixed; inset: 0; z-index: -2; }

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { scroll-margin-top: 90px; }

.glass {
  background: linear-gradient(160deg, rgba(148, 178, 255, 0.09), rgba(148, 178, 255, 0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

/* ============ NAVBAR ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: 0.35s;
}
.nav.scrolled {
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.45));
}
.brand-logo-rect {
  width: auto;
  height: 44px;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
}
.brand-name b {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width 0.3s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--border);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  color: var(--text) !important;
  background: var(--surface);
  transition: 0.3s;
}
.nav-cta:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 1.4rem 0 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.85rem 1.7rem;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
}
.btn-primary {
  color: #04121a;
  background: var(--grad);
  box-shadow: 0 8px 30px rgba(0, 150, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 180, 255, 0.45);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}

.hero-tags {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.hero-tags li {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 60% 40%, rgba(0, 229, 255, 0.16), transparent 60%);
  filter: blur(10px);
  z-index: -1;
}

/* console estilo terminal */
.console {
  max-width: 460px;
  margin-left: auto;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 20, 60, 0.5), 0 0 0 1px rgba(0, 229, 255, 0.04);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }
.console-title {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.console-body {
  padding: 1.2rem 1.3rem 1.5rem;
  font-family: var(--font-mono);
}
.console-body p { font-size: 0.85rem; color: #c6d4ee; white-space: nowrap; }
.prompt { color: var(--cyan); }
.ok { color: #3dffa0; }
.num { color: var(--cyan); }
.typed-line { min-height: 1.4em; }
.cursor { color: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ STATS ============ */
.stats { padding: 1rem 0 4.5rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: 0.35s;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 14px 34px rgba(0, 40, 90, 0.35);
}
.stat-value {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ============ SEÇÕES ============ */
.section { padding: 6rem 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.9rem;
}
.section-head p { color: var(--muted); margin-top: 1rem; }

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}
.card {
  position: relative;
  padding: 2rem 1.7rem;
  transition: 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.55), transparent 35%, transparent 65%, rgba(139, 92, 246, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 30, 80, 0.45);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--cyan);
  margin-bottom: 1.3rem;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}
.card h3 { font-size: 1.18rem; margin-bottom: 0.7rem; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card-tags {
  list-style: none;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.card-tags li {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #a9c6e8;
  background: rgba(79, 124, 255, 0.12);
  border: 1px solid rgba(79, 124, 255, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ============ SOBRE / ÓRBITA ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.split-visual { display: grid; place-items: center; }
.orbit {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.orbit-logo {
  width: 38%;
  filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.35));
}
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(120, 160, 255, 0.18);
  border-radius: 50%;
}
.ring-1 { inset: 8%; border-top-color: rgba(0, 229, 255, 0.6); animation: spin 24s linear infinite; }
.ring-2 { inset: 20%; border-top-color: rgba(139, 92, 246, 0.55); animation: spin 16s linear infinite reverse; }
.ring-3 { inset: -4%; animation: spin 40s linear infinite; }
.satellite {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan), 0 0 30px rgba(0, 229, 255, 0.5);
}
@keyframes spin { to { transform: rotate(360deg); } }

.split-copy p { color: var(--muted); margin-top: 1.1rem; }
.check-list {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
}
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: #c9d5ea;
  font-size: 0.96rem;
}
.check-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ============ CHIPS (INOVAÇÃO) ============ */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 820px;
  margin: 0 auto;
}
.chips li {
  font-family: var(--font-head);
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #c9d5ea;
  transition: 0.3s;
}
.chips li:hover {
  border-color: rgba(0, 229, 255, 0.5);
  color: var(--text);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.15);
  transform: translateY(-3px);
}

/* ============ CTA / CONTATO ============ */
.cta {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(closest-side, rgba(0, 229, 255, 0.18), transparent);
  pointer-events: none;
}
.cta p { color: var(--muted); margin: 1rem auto 2rem; max-width: 480px; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: rgba(0, 0, 0, 0.25);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.25s;
}
.footer-links a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 0.85rem; }

/* ============ ANIMAÇÃO DE REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .console { margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
    background: rgba(4, 6, 14, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 0 0 0 16px;
    padding: 1.6rem 2.2rem;
    transform: translateX(110%);
    transition: 0.35s;
  }
  .nav-links.open { transform: none; }
}

@media (max-width: 640px) {
  .hero { padding-top: 110px; }
  .brand-logo-rect { height: 34px; }
  .console-body p { font-size: 0.72rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
