/* ===========================
   Sprits AI — Shared Styles
   =========================== */

:root {
  /* Dark theme colors */
  --dark-bg: #0A0E27;
  --dark-surface: #151B3B;
  --dark-elevated: #1E2749;
  --dark-border: #2D3658;

  /* Text colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-muted: #718096;

  /* Neon accents */
  --neon-blue: #00D4FF;
  --neon-purple: #A78BFA;
  --neon-pink: #F472B6;
  --neon-cyan: #22D3EE;

  /* Aliases for legacy references */
  --blue-600: #00D4FF;
  --blue-500: #00D4FF;
  --violet-500: #A78BFA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===========================
   Navigation
   =========================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-link.active {
  color: var(--text-primary);
}

.nav-cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-cta-secondary {
  padding: 8px 18px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-cta-secondary:hover {
  border-color: var(--neon-cyan);
  background: rgba(34, 211, 238, 0.1);
}

.nav-cta {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
  color: white;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* ===========================
   Footer
   =========================== */

footer {
  padding: 48px 24px;
  text-align: center;
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--neon-cyan);
}

/* ===========================
   Utilities
   =========================== */

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
  margin: 80px 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   Mobile Responsive — Nav
   =========================== */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dark-border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .nav-cta-secondary,
  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* ===========================
   Reduced Motion
   =========================== */

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