/* Apollo Returns V2 - Minimal, responsive, grayscale theme */
:root {
  --bg: #000;
  --text: #f2f2f2;
  --muted: #cfcfcf;
  --dim: #9a9a9a;
  --glass: rgba(255,255,255,0.08);
  --stroke: rgba(255,255,255,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ========================
   Animações de entrada
   ======================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* estados iniciais (antes do load) */
.site-header, .title, .feature-stack .card {
  opacity: 0;
}

/* ao carregar (body.ready), animar */
body.ready .site-header { animation: slideDown .45s ease-out forwards; }
body.ready .title { animation: fadeUp .6s ease-out .05s forwards; }
body.ready .feature-stack .card:nth-child(1) { animation: fadeUp .6s ease-out .10s forwards; }
body.ready .feature-stack .card:nth-child(2) { animation: fadeUp .6s ease-out .18s forwards; }
body.ready .feature-stack .card:nth-child(3) { animation: fadeUp .6s ease-out .26s forwards; }

/* Background image + overlay + particles */
.bg {
  position: fixed;
  inset: 0;
  /* Caminho corrigido: de v2/assets/css para arweb/assets/img => subir 3 níveis */
  background: #000 url('../images/ar-MammothDarkside4x.png') center/cover no-repeat;
  z-index: -3;
}
.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.6));
  z-index: -2;
}
#particles {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 30px rgba(0,0,0,.35); }
.nav-bar {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
}
.brand-logo img {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-title {
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,1);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  margin-left: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.nav-links { position: relative; display: contents; }
.nav-link {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 400; /* mais fino */
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em; /* um pouco mais junto */
  padding: 8px 10px;
  border-radius: 12px;
  transition: color .2s ease, background .2s ease;
}
/* Hover melhor: sublinhado sutil e cor mais clara */
.nav-link:hover { background: rgba(255,255,255,0.06); }
.nav-link::after {
  content: '';
  display: block;
  height: 1px;
  width: 0;
  margin: 3px auto 0;
  background: linear-gradient(90deg,#fff,#9a9a9a);
  transition: width .22s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Mobile menu */
.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
}
.menu-toggle .bar,
.menu-toggle .bar::before,
.menu-toggle .bar::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle .bar::before { transform: translate(-50%, calc(-50% - 6px)); }
.menu-toggle .bar::after  { transform: translate(-50%, calc(-50% + 6px)); }
.menu-toggle.open .bar { opacity: 1; background: transparent; }
.menu-toggle.open .bar::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle.open .bar::after  { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-bar { flex-direction: row; gap: 8px; align-items: center; }
  .brand-title { text-align: center; font-size: 0.95rem; letter-spacing: .1em; }
  .brand-logo img { height: 18px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    position: fixed;
    right: 12px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    width: min(86vw, 360px);
    background: rgba(0,0,0,1);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    display: none; /* escondido por padrão no mobile */
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    z-index: 15;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-links.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 10px 12px; font-size: 0.85rem; }
  .container { display: flex; flex-direction: column; justify-content: center;padding: 88px 12px 24px; }
  .title { font-size: clamp(1.6rem, 7.5vw, 3rem); letter-spacing: .16em; }
  .feature-stack { grid-template-columns: repeat(2, minmax(140px, 1fr)); max-width: 680px; gap: 12px; }
}

/* Main */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 98px 16px 32px; /* espaço p/ header fixo */
  position: relative;
  z-index: 3;
  flex: 1 0 auto; /* ocupa o espaço para empurrar o footer */
}
.hero { margin-top: 10px; }
.title {
  text-align: center;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(2rem, 6vw, 5rem);
  margin: 24px 0;
  position: relative;
  z-index: 3;
}
/* remove mídia flutuante: o fundo de tela cheia cumpre o papel visual */

.feature-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  justify-items: center;
  align-items: start;
  gap: 16px;
  margin: 16px auto 40px;
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 3; /* acima do overlay/particles */
}
.card {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 10px;
  backdrop-filter: none;
  text-align: center;
}
.card-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}
.card-text {
  color: #bdbdbd; /* acinzentado mais evidente */
  font-size: 0.86rem;
}

/* Footer */
.site-footer {
  text-align: center;
  color: var(--dim);
  font-size: 0.82rem;
  padding: 12px 12px 16px; /* footer mais baixo */
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.5);
  position: relative;
  z-index: 3;
  margin-top: auto; /* gruda no final da página */
}
.site-footer .note {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem; /* texto menor */
  opacity: 0.7;
}

/* Footer layout: textos à esquerda e ícone à direita */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-left { text-align: left; }
.footer-right { display: flex; align-items: center; justify-content: flex-end; }
.footer-icon-link { display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 0; }
.footer-icon-img { width: 30px; height: 30px; display: block; filter: grayscale(100%) brightness(0.8); opacity: .95; }
.footer-right a:hover .footer-icon-img { transform: translateY(-1px); opacity: 1; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: row; align-items: flex-start; gap: 12px; }
  .footer-icon-img { width: 25px; height: 25px; }
  .site-footer .note { font-size: 0.60rem; }
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .nav { gap: 8px; padding: 6px 10px; }
  .nav-link { font-size: 0.82rem; padding: 6px 8px; }
  .container { padding-top: 44px; }
  .feature-stack { width: min(680px, 100%); }
}
@media (max-width: 600px) {
  .nav-bar { gap: 6px; }
  .nav-links { padding: 6px 8px; }
  .nav-link { font-size: 0.8rem; letter-spacing: 0.06em; padding: 8px 10px; }
  .container { padding: 82px 10px 20px; }
  .title { font-size: clamp(1.4rem, 8.5vw, 2.2rem); letter-spacing: .14em; margin: 16px 0; }
  .feature-stack { grid-template-columns: 1fr; gap: 12px; max-width: 480px; }
  .card { padding: 10px 8px; }
  .site-footer { padding: 10px 10px 12px; font-size: 0.78rem; }
}
