/* ==========================================================================
   XNK Music (.fm) — Atmosphere & Design System
   Ethos: Calm, Focus, Possibility
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Luminous Nocturnal Palette */
  --c-twilight: #818cf8;       /* Periwinkle iris */
  --c-twilight-hover: #a5b4fc;
  --c-twilight-glow: rgba(129, 140, 248, 0.35);
  --c-twilight-tint: rgba(129, 140, 248, 0.1);
  --c-twilight-border: rgba(129, 140, 248, 0.25);

  --c-cyan: #38bdf8;           /* Ethereal sky */
  --c-cyan-glow: rgba(56, 189, 248, 0.35);
  --c-cyan-tint: rgba(56, 189, 248, 0.08);

  --c-amber: #fbbf24;          /* Warm starlight */
  --c-amber-glow: rgba(251, 191, 36, 0.3);
  --c-amber-tint: rgba(251, 191, 36, 0.1);

  --c-emerald: #34d399;        /* Serene emerald pulse */

  /* Deep Cosmic Surfaces */
  --bg: #06070a;
  --surface-glass: rgba(13, 16, 26, 0.65);
  --surface-elevated: rgba(20, 26, 42, 0.7);
  --surface-recessed: rgba(8, 10, 16, 0.85);
  --surface-pill: rgba(255, 255, 255, 0.04);

  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-highlight: rgba(129, 140, 248, 0.3);

  /* Typography Colors */
  --text: #f8fafc;
  --text-dim: #cbd5e1;
  --muted: #94a3b8;
  --muted-dark: #64748b;

  /* Typography Families */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Player Component Overrides */
  --player-bg: rgba(12, 15, 24, 0.85);
  --player-surface: rgba(20, 26, 42, 0.7);
  --player-border: rgba(129, 140, 248, 0.2);
  --player-text: #f8fafc;
  --player-muted: #94a3b8;
  --player-accent: var(--c-twilight);
  --player-accent-hover: var(--c-twilight-hover);
  --player-spark: var(--c-cyan);
}

/* Base Reset & Smoothness */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.65;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 15% 30%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 65%, rgba(251, 191, 36, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Ambient Background Light Orbs */
.ambient-glow-1 {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.18), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: absolute;
  top: 900px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.12), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--c-twilight);
  color: #06070a;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 7, 10, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 16px var(--c-twilight-glow);
}

.brand-gradient {
  background: linear-gradient(135deg, #f8fafc 30%, var(--c-twilight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-domain {
  color: var(--c-cyan);
  font-size: 0.85em;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

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

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

.nav-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: var(--surface-pill);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.nav-pill:hover {
  background: var(--c-twilight-tint);
  border-color: var(--c-twilight-border);
  color: var(--c-twilight-hover);
  box-shadow: 0 0 12px var(--c-twilight-glow);
}

.header-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-emerald);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.pulse-emerald {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-emerald);
  box-shadow: 0 0 8px var(--c-emerald);
  animation: pulse-glow 2.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: var(--surface-glass);
  border: 1px solid var(--border-highlight);
  color: var(--c-twilight);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .text-glow {
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(129, 140, 248, 0.3);
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 9999px;
  background: var(--surface-glass);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Luminous Player Deck */
.player-sanctuary {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.player-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle at center, rgba(129, 140, 248, 0.15), rgba(56, 189, 248, 0.08), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.player-card {
  position: relative;
  z-index: 1;
  background: var(--surface-glass);
  border: 1px solid var(--border-highlight);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.player-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-cyan);
}

.status-right {
  color: var(--muted-dark);
}

.hero-player {
  display: block;
  width: 100%;
}

.player-subnote {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-twilight);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* Three Pillars of the Experience */
.ethos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.ethos-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ethos-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ethos-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.ethos-card:hover::before {
  opacity: 1;
}

.ethos-icon {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  padding: 0.75rem;
  background: var(--surface-pill);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.ethos-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.ethos-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* Waitlist & Experiment Card */
.waitlist-section {
  padding: 4rem 0 7rem;
}

.waitlist-card {
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.8) 0%, rgba(9, 11, 18, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  max-width: 740px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.waitlist-card::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.waitlist-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0.5rem 0 1rem;
}

.waitlist-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* Role Selector */
.role-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 1.5rem;
}

.role-pill {
  cursor: pointer;
  position: relative;
}

.role-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.role-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.role-pill input:checked + .role-content {
  border-color: var(--c-twilight);
  background: var(--c-twilight-tint);
  box-shadow: 0 0 20px var(--c-twilight-glow);
}

.role-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.role-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.role-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Form Groups */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--c-twilight);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px var(--c-twilight-tint);
}

/* Survey Card */
.survey-expandable {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
}

.survey-toggle {
  font-size: 0.85rem;
  color: var(--c-amber);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.survey-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1.1rem;
  font-size: 1.1rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.form-feedback {
  padding: 0;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-feedback.success {
  padding: 1.2rem;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
  line-height: 1.6;
}

.form-feedback.error {
  padding: 1.2rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.waitlist-footer {
  text-align: center;
  margin-top: 1.75rem;
}

.security-note {
  font-size: 0.8rem;
  color: var(--muted-dark);
  font-family: var(--font-mono);
}

/* Creator Studio Section */
.creator-section {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 16, 26, 0.5) 100%);
}

.creator-box {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3.5rem;
  backdrop-filter: blur(20px);
}

.creator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .creator-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.creator-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.creator-lead {
  font-size: 1.08rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.creator-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.25rem;
}

.creator-perks li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

.creator-perks li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--c-twilight);
  font-size: 1.1rem;
}

.creator-card-visual {
  background: rgba(8, 10, 16, 0.9);
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.card-visual-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-twilight);
}

.card-visual-body {
  padding: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  line-height: 1.5;
}

.tok-dim { color: var(--muted-dark); }
.tok-key { color: var(--c-twilight); }
.tok-str { color: #a5d6ff; }
.tok-num { color: var(--c-amber); }
.tok-glow { color: var(--c-emerald); }

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.faq-a {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 3rem;
  background: rgba(4, 5, 8, 0.9);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--muted-dark);
}

.site-version-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-twilight);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--surface-pill);
  border: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .waitlist-card {
    padding: 2.25rem 1.5rem;
  }
  .creator-box {
    padding: 2rem 1.5rem;
  }
}
