/* ---------------------------------------------------------
   SOUND CODE — HYBRID DESIGN SYSTEM
   Premium Dark Base + Optional Neon Themes
   Shared across ALL pages
--------------------------------------------------------- */

/* ------------------------------
   THEME TOKENS
------------------------------ */
:root {
  /* Base Colors */
  --bg: #050509;
  --bg-alt: #0d0d16;
  --bg-card: #11111a;
  --text: #f5f5f7;
  --text-muted: #9ca3af;

  /* Accent (default purple) */
  --accent: #a855f7;

  /* Neon Accent Palettes */
  --neon-cyan: #00fff0;
  --neon-magenta: #ff00e6;
  --neon-yellow: #ffe600;

  /* Layout */
  --radius: 16px;
  --radius-sm: 8px;
  --max-width: 1200px;

  /* Motion */
  --transition: 0.25s ease;
}

/* Neon Theme Modifiers */
body.theme-neon-cyan {
  --accent: var(--neon-cyan);
}

body.theme-neon-magenta {
  --accent: var(--neon-magenta);
}

body.theme-neon-yellow {
  --accent: var(--neon-yellow);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ------------------------------
   LAYOUT PRIMITIVES
------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.stack > * + * {
  margin-top: var(--space, 1rem);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   TYPOGRAPHY
------------------------------ */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
}

.text-muted {
  color: var(--text-muted);
}

/* ------------------------------
   NAVIGATION BAR
------------------------------ */
nav {
  width: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

/* CTA Button */
.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.nav-cta:hover {
  opacity: 0.85;
}

/* ------------------------------
   MOBILE NAV
------------------------------ */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  body.nav-open .nav-links-mobile {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

.nav-links-mobile {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.nav-links-mobile a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}

/* ------------------------------
   COMPONENTS
------------------------------ */
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 0.7rem;
}

.button {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.button:hover {
  opacity: 0.85;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: var(--text-muted);
}

/* ------------------------------
   UTILITY CLASSES
------------------------------ */
.glow {
  text-shadow: 0 0 12px var(--accent);
}

.accent {
  color: var(--accent);
}

.center {
  text-align: center;
}
