/* ============================================================
   CRITICAL CSS (Above-the-fold styles)
   Design System: Spotify × LUMEN IDOL
   ============================================================ */

/* DESIGN TOKENS */
:root {
  /* Type Scale — Spotify compact range (10px–24px) */
  --text-micro:   10px;
  --text-badge:   10.5px;
  --text-xs:      12px;
  --text-sm:      14px;
  --text-base:    16px;
  --text-lg:      18px;
  --text-xl:      24px;
  --text-2xl:     clamp(28px, 1.2rem + 2.5vw, 40px);
  --text-3xl:     clamp(32px, 1rem + 4vw, 50px);
  --text-hero:    clamp(40px, 0.5rem + 7vw, 80px);

  /* Spacing — 8px base unit */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Fonts — Spotify-style (Inter as CircularSp substitute) */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;

  /* Radius — Spotify pill-and-circle geometry */
  --radius-minimal:    2px;
  --radius-subtle:     4px;
  --radius-sm:         6px;
  --radius-md:         8px;
  --radius-lg:         12px;
  --radius-xl:         16px;
  --radius-pill:       500px;
  --radius-full-pill:  9999px;
  --radius-circle:     50%;

  /* Shadows — Spotify heavy shadows for dark theme */
  --shadow-medium: rgba(0, 0, 0, 0.3) 0px 8px 8px;
  --shadow-heavy:  rgba(0, 0, 0, 0.5) 0px 8px 24px;
  --shadow-inset:  rgb(18, 18, 18) 0px 1px 0px, rgb(124, 124, 124) 0px 0px 0px 1px inset;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition:      200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
}

/* LUMEN Spotify Palette — Dark-only site */
[data-theme="dark"] {
  /* Backgrounds — Spotify near-black range */
  --color-bg:          #121212;
  --color-surface:     #181818;
  --color-surface-2:   #1f1f1f;
  --color-surface-3:   #252525;

  /* Text — Spotify silver hierarchy */
  --color-text:        #ffffff;
  --color-text-muted:  #b3b3b3;
  --color-text-faint:  #7c7c7c;

  /* Primary — LUMEN purple (functional only) */
  --color-primary:        #7b6bff;
  --color-primary-hover:  #8a7dff;
  --color-primary-glow:   rgba(123, 107, 255, 0.15);

  /* Semantic — Spotify convention */
  --color-danger:         #f3727f;
  --color-warning:        #ffa42b;
  --color-announcement:   #539df5;

  /* Borders */
  --color-border:        #4d4d4d;
  --color-border-bright: #7c7c7c;
  --color-divider:       rgba(255, 255, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; }
p { text-wrap: pretty; }

::selection {
  background: var(--color-primary-glow);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-minimal);
}

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

/* NAVIGATION — Spotify top-bar style */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-5) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo img {
  flex-shrink: 0;
  border-radius: var(--radius-circle);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  font-weight: 700;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.0875em;
  color: #000000 !important;
  background: var(--color-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full-pill);
  border: none;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.nav-cta:hover {
  background: #e0e0e0;
  transform: scale(1.04);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-2);
  flex-direction: column;
  gap: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition);
}

/* HERO SECTION — Content-first darkness */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-32) var(--space-8) var(--space-24);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0) 0%, var(--color-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto var(--space-12);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.0875em;
  color: #000000;
  background: var(--color-primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full-pill);
  border: none;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.hero-cta:hover {
  background: var(--color-primary-hover);
  transform: scale(1.04);
}

/* Mobile navigation basic styling */
@media (max-width: 768px) {
  .nav-links,
  .nav-cta,
  #langSwitcher { display: none; }
  .nav-menu-btn { display: flex; }
}
