/**
 * AI Titans — Shared Brand Tokens
 * Linked from every page. One change here = all pages updated.
 */

/* ── HTML ROOT ── */
html {
  background: #0a0a0a;
  scroll-padding-top: 80px;
}

/* ── NAV (CANONICAL) ── */
/* position: fixed on mobile to guarantee header stays pinned on iOS Safari.
   Desktop keeps sticky for natural document flow. */
nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  padding-top: max(16px, env(safe-area-inset-top, 16px));
  padding-bottom: 16px;
  padding-left: max(48px, env(safe-area-inset-left, 48px));
  padding-right: max(48px, env(safe-area-inset-right, 48px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(245,240,232,0.06);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: #f5f0e8;
  text-decoration: none;
}

.nav-logo span { color: #e85d00; }

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #888;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: #f5f0e8; }

.nav-cta {
  background: #e85d00 !important;
  color: #0a0a0a !important;
  padding: 10px 24px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: #c44d00 !important; }

/* ── MOBILE NAV ── */
@media (max-width: 768px) {
  nav {
    position: fixed;
    left: 0;
    right: 0;
    padding-left: max(24px, env(safe-area-inset-left, 24px));
    padding-right: max(24px, env(safe-area-inset-right, 24px));
  }

  /* Spacer to push content below fixed nav — injected via body padding */
  body {
    padding-top: max(56px, calc(40px + env(safe-area-inset-top, 16px)));
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}
