:root {
  --c-bg: #121D26;    /* fundo principal */
  --c-nav: #0F1A23;   /* topo (diferente do corpo, tom mais fechado) */
  --c-ink: #E6EEF4;   /* texto principal */
  --c-muted: #9CB4C4; /* texto secundário */
  --c-primary: #F26241; /* destaque */
  --c-secondary: #405F73; /* contraste */
  --c-sand-1: #F2B988; /* apoio */
  --c-sand-2: #D99F7E; /* apoio */
  --radius: 14px;
  --shadow-1: 0 6px 18px rgba(0,0,0,0.35);
  --shadow-2: 0 10px 28px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--c-ink);
  background:
    radial-gradient(1200px 500px at 10% -20%, rgba(242,185,136,0.06), transparent 60%),
    radial-gradient(800px 600px at 100% 0%, rgba(64,95,115,0.12), transparent 60%),
    linear-gradient(180deg, #0E1620 0%, var(--c-bg) 100%);
  min-height: 100vh;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(180deg, var(--c-nav), #0C141C);
  border-bottom: 1px solid rgba(156,180,196,0.18);
  box-shadow: var(--shadow-1);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  text-decoration: none;
}
.brand-badge {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), #F28C41);
  box-shadow: 0 0 0 2px rgba(242,98,65,0.35), 0 10px 20px rgba(242,98,65,0.25);
}
.brand-title { font-weight: 800; letter-spacing: 1px; }
.brand-sub { font-size: 12px; color: var(--c-muted); }

.nav {
  display: flex;
  gap: 14px;
}
.nav a {
  color: var(--c-ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(64,95,115,0.18);
  border: 1px solid rgba(156,180,196,0.16);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav a:hover {
  transform: translateY(-1px);
  background: rgba(64,95,115,0.28);
  border-color: rgba(242,185,136,0.35);
}

/* Mobile menu */
.menu-toggle { display: none; }
@media (max-width: 720px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav.open {
    display: flex; position: absolute; right: 20px; top: 60px;
    flex-direction: column; background: #0B131B; padding: 10px;
    border-radius: 12px; border: 1px solid rgba(156,180,196,0.18); box-shadow: var(--shadow-2);
  }
}

/* Laser line */
.laser-wrap {
  position: sticky; /* acompanha o topo ao rolar */
  top: 0;
  z-index: 998;
  height: 6px;
  background: linear-gradient(180deg, rgba(156,180,196,0.10), rgba(156,180,196,0.02));
  overflow: hidden;
  border-bottom: 1px solid rgba(242,98,65,0.25);
}
.laser-track { position: relative; width: 100%; height: 2px; background: rgba(64,95,115,0.45); margin-top: 2px; }
.laser-beam {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 140px; height: 2px; left: -160px;
  background: linear-gradient(90deg, transparent, #F28C41 20%, #F26241 50%, #F28C41 80%, transparent);
  box-shadow:
    0 0 8px rgba(242,98,65,0.75),
    0 0 16px rgba(242,98,65,0.55),
    0 0 28px rgba(242,98,65,0.35);
  animation: sweep 3.6s linear infinite;
}
@keyframes sweep {
  from { left: -200px; }
  to   { left: calc(100% + 200px); }
}
@media (prefers-reduced-motion: reduce) {
  .laser-beam { animation: none; }
}

.main {
  max-width: 1100px;
  margin: 38px auto;
  padding: 0 20px 60px;
}
.hero {
  margin-top: 24px;
  background: linear-gradient(145deg, rgba(64,95,115,0.25), rgba(18,29,38,0.4));
  border: 1px solid rgba(156,180,196,0.18);
  box-shadow: var(--shadow-2);
  border-radius: 22px;
  padding: 36px;
}
.hero h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.2; }
.hero p { margin: 0; color: var(--c-muted); font-size: 18px; }

.cta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  color: #0E0E0E; font-weight: 700; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--c-sand-1), var(--c-sand-2));
  border: none; border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(217,159,126,0.25);
  text-decoration: none;
}
.btn.secondary { color: var(--c-ink); background: rgba(64,95,115,0.25); border: 1px solid rgba(156,180,196,0.22); box-shadow: none; }
.btn.secondary:hover { background: rgba(64,95,115,0.35); }

.grid {
  margin-top: 28px;
  display: grid; gap: 16px; grid-template-columns: repeat(12, 1fr);
}
.card {
  grid-column: span 6;
  background: rgba(18,29,38,0.7);
  border: 1px solid rgba(156,180,196,0.14);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--c-muted); }

@media (max-width: 900px) {
  .card { grid-column: span 12; }
}

.footer {
  max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; color: var(--c-muted);
}
.footer a { color: var(--c-sand-1); }

/* === Ajustes para o fundo hex + onda === */
:root {
  /* Levemente mais escuro que --c-bg (#121D26) via overlay */
  --c-hex-line: rgba(0, 0, 0, 0.22);
}

/* Canvas de fundo ocupando a tela toda */
#hexBg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none; /* sempre intocável */
}

/* Eleva o conteúdo acima do canvas */
.topbar, .laser-wrap, .main, .footer {
  position: relative;
  z-index: 1;
}

/* Garante conteúdo acima do canvas */
.topbar, .laser-wrap, .main, .footer {
  position: relative;
  z-index: 1;
}

/* === Rodapé fixo === */
.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;             /* fixa no fundo da janela */
  z-index: 2;            /* acima do canvas hex e atrás/abaixo do conteúdo onde fizer sentido */
  background: linear-gradient(180deg, rgba(18,29,38,0.85), rgba(18,29,38,1));
  border-top: 1px solid rgba(156,180,196,0.18);
  padding: 10px 20px;    /* pode ajustar */
  color: var(--c-muted);
  text-align: center;
  backdrop-filter: blur(6px); /* se quiser um leve vidro; remova se não gostar */
}

/* Reserva espaço no fim da página para o footer não cobrir o conteúdo */
:root {
  --footer-height: 46px; /* ajuste conforme seu padding/tipografia */
  --c-hex-seam: rgba(0, 0, 0, 0.55);
}

.main {
  padding-bottom: calc(var(--footer-height) + 24px);
}

/* === Ajustes do grid hex + onda === */

/* Canvas de fundo em tela cheia (já deve existir; mantenho aqui por clareza) */
#hexBg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

