/* ==========================================================================
   COSMOSIS - Redesigned Design System (Dark Obsidian Theme)
   ========================================================================== */

/* Design Tokens & Theme Setup */
:root {
  --bg-cream: #050706; /* Dark Obsidian */
  --bg-green-deep: #050706;
  --bg-green-card: #0d100e;
  
  --text-primary-dark: #f2f5f3; /* Off-white text */
  --text-secondary-dark: #86928a; /* Muted Sage */
  --text-primary-light: #f2f5f3;
  --text-secondary-light: #86928a;
  
  --color-rust: #e8ab42; /* Solar Gold */
  --color-rust-hover: #ebd297;
  --color-rust-light: rgba(232, 171, 66, 0.12);
  
  --border-sand: rgba(255, 255, 255, 0.08);
  --border-green: rgba(255, 255, 255, 0.05);
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Space Mono', monospace;
  --font-mono: 'Space Mono', monospace;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --radius-screenshot: 30px;
  
  --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-quick: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-primary-dark);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: transparent;
}

/* Background Stars Canvas */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-color: #050706; /* Solid background on canvas itself */
  opacity: 1.0;
}

/* Container Utility */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Centered Floating Pill Navigation */
.nav-bar-pill {
  position: fixed;
  top: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links-pill {
  background-color: rgba(13, 16, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-sand);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.nav-links-pill:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.nav-link-item {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary-dark);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-quick);
}

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

.btn-pill-cta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--color-rust);
  color: var(--bg-cream);
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-quick);
}

.btn-pill-cta:hover {
  background-color: var(--color-rust-hover);
  transform: translateY(-1px);
}

.btn-appstore.btn-nav-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--text-primary-dark);
  color: var(--bg-cream);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  
  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  min-width: 0; /* allows it to shrink below content size in flexbox */
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  border-width: 0; /* prevent border width from taking space */
  overflow: hidden;
  white-space: nowrap;
}

.btn-appstore.btn-nav-appstore svg {
  flex-shrink: 0;
}

/* Scrolled state for desktop */
.nav-bar-pill.scrolled .btn-appstore.btn-nav-appstore {
  opacity: 1;
  visibility: visible;
  max-width: 110px; /* Sized for 'Get App' text */
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  margin-left: 0.4rem;
  border-width: 1px;
}

.btn-appstore.btn-nav-appstore:hover {
  background-color: transparent;
  color: var(--text-primary-dark) !important;
  border-color: var(--text-primary-dark);
  transform: translateY(-1px);
}

.btn-appstore.btn-nav-appstore .text-desktop {
  display: inline;
}

.btn-appstore.btn-nav-appstore .text-mobile {
  display: none;
}

.btn-appstore.btn-nav-appstore .appstore-icon {
  display: none !important; /* Hide App Store icon on desktop nav bar button */
}


/* Hero Section (Above the Fold) */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 5rem;
}

.hero-section .hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-rust);
  border: 1px solid rgba(232, 171, 66, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.8rem;
  background-color: var(--color-rust-light);
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--text-primary-dark);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-rust);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary-dark);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1.25rem;
}

.hero-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  width: 40%;
  height: 1px;
  background-color: var(--border-sand);
}

.hero-description {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-secondary-dark);
  margin-bottom: 2rem;
  max-width: 62ch;
}

.hero-cta-wrapper {
  margin-bottom: 3.5rem;
}

/* Unified Transmission Console Container */
.transmission-console {
  background-color: rgba(13, 16, 14, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 960px;
  box-shadow: none; /* Removed drop shadow and glow completely */
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin: 0 auto;
  transition: border-color 0.8s ease;
}

/* Selector Navigation Tabs at top (Structured & Compact) */
.console-navigation {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  width: 100%;
  gap: 0.5rem;
}

.console-tab-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  opacity: 0.4;
  transition: var(--transition-smooth);
  width: 90px; /* fixed structured width */
  text-align: center;
  outline: none;
}

.console-tab-btn:hover {
  opacity: 0.85;
}

.console-tab-btn.active {
  opacity: 1;
}

.tab-sphere {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition-smooth);
  border: 1.5px solid transparent;
}

.console-tab-btn.active .tab-sphere {
  box-shadow: 0 0 12px rgba(var(--active-planet-color-rgb, 232, 171, 66), 0.35);
}

/* Progress Ring around active planet */
.tab-sphere-container {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.1rem;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.progress-ring-circle {
  stroke-dasharray: 138.23;
  stroke-dashoffset: 138.23; /* fully empty */
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke 0.8s ease;
}

.console-tab-btn.active .progress-ring-circle {
  animation: progressSweep 12s linear forwards;
}

@keyframes progressSweep {
  from {
    stroke-dashoffset: 138.23;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.tab-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary-dark);
  transition: var(--transition-quick);
  margin: 0;
}

.console-tab-btn.active .tab-label {
  color: var(--active-planet-color, var(--color-rust));
}

.tab-freq {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-secondary-dark);
  opacity: 0.7;
  transition: color 0.8s ease;
  margin: 0;
}

.console-tab-btn.active .tab-freq {
  color: var(--active-planet-color, var(--color-rust));
  opacity: 0.95;
}

/* Planet Textures */
.mercury-sphere { background-image: url('assets/mercury.jpg'); background-size: cover; background-position: center; }
.venus-sphere { background-image: url('assets/venus.jpg'); background-size: cover; background-position: center; }
.earth-sphere { background-image: url('assets/earth.jpg'); background-size: cover; background-position: center; }
.mars-sphere { background-image: url('assets/mars.jpg'); background-size: cover; background-position: center; }
.jupiter-sphere { background-image: url('assets/jupiter.jpg'); background-size: cover; background-position: center; }
.saturn-sphere { background-image: url('assets/saturn.jpg'); background-size: cover; background-position: center; }
.uranus-sphere { background-image: url('assets/uranus.jpg'); background-size: cover; background-position: center; }
.neptune-sphere { background-image: url('assets/neptune.jpg'); background-size: cover; background-position: center; }

/* Console Main Display */
.console-viewport {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4.5rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 769px) {
  .transmission-console {
    height: 490px;
  }
  .console-viewport {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .console-viewport {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .console-orb-container {
    justify-content: center;
  }
}

.console-orb-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.console-orb-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.console-orb-sphere {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.console-orb-sphere.playing {
  animation: planet-spin 80s infinite linear;
}

@keyframes planet-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Centered Gold Ring */
.console-orb-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.02);
  width: 204px;
  height: 204px;
  border-radius: 50%;
  border: 1.5px solid var(--active-planet-color, var(--border-gold));
  opacity: 1;
  pointer-events: none;
  box-shadow: 0 0 25px rgba(var(--active-planet-color-rgb, 184, 74, 52), 0.15);
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
  z-index: 2;
}

/* Large Interactive Play Indicator Overlay */
.console-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: rgba(13, 16, 14, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid var(--active-planet-color, var(--border-gold));
  color: var(--text-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 3;
}

.console-orb-wrapper:hover .console-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.console-play-indicator.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.console-play-indicator:hover {
  background-color: var(--active-planet-color, var(--color-rust));
  color: #050706;
  box-shadow: 0 0 25px rgba(var(--active-planet-color-rgb, 184, 74, 52), 0.45);
}

.console-play-indicator .icon-play.hidden,
.console-play-indicator .icon-pause.hidden {
  display: none;
}

/* Right Details Panel */
.console-info-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .console-info-panel {
    align-items: center;
  }
}

.console-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--active-planet-color, var(--color-rust));
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  transition: color 0.8s ease;
}

.console-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-primary-dark);
  margin: 0 0 1rem 0;
}

.console-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-secondary-dark);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 2rem 0;
  min-height: 4.8rem; /* Reserves space for 3 lines to maintain constant height */
}

.console-controls-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

@media (max-width: 768px) {
  .console-controls-row {
    justify-content: center;
  }
}

.console-tuning-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tuning-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary-dark);
}

.tuning-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary-dark);
}

.console-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.console-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  border: none;
}

.console-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--active-planet-color, var(--color-rust));
  cursor: pointer;
  transition: background 0.8s ease;
}

/* Narrative Section (Deep Forest Green block - Stepping Rule) */
.about-section {
  background-color: transparent;
  color: var(--text-primary-light);
  padding: 8rem 0;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 6rem;
}

/* Visual Card on Left with Orbit lines */
.log-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 380px;
}

.eclipse-container {
  width: 320px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  z-index: 5;
}

/* Breathing Corona Pulse */
.eclipse-corona-pulse {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-rust);
  opacity: 0.15;
  filter: blur(25px);
  animation: coronaBreathing 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes coronaBreathing {
  from {
    transform: scale(0.92);
    opacity: 0.08;
  }
  to {
    transform: scale(1.15);
    opacity: 0.22;
  }
}

/* Dynamic Corona Flare */
.eclipse-corona-flare {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.1s linear;
}

.corona-inner-ring {
  position: absolute;
  width: 222px;
  height: 222px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.85);
  filter: blur(2px);
}

.corona-outer-halo {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 242, 212, 0.75) 50%,
    transparent 70%
  );
  animation: coronaPulseScale 3s ease-in-out infinite alternate;
}

@keyframes coronaPulseScale {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

/* Planet Wrapper */
.eclipse-planet-wrapper {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eclipse-planet-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05); /* Slight zoom to prevent edge lines */
}

/* Occulting shadow */
.eclipse-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
  transform: translateX(230px);
}

/* Diamond Ring Glint */
.eclipse-diamond-ring {
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glint-core {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 15px 5px #ffffff;
}

.glint-specular {
  position: absolute;
  width: 48px;
  height: 48px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.6) 40%,
    transparent 70%
  );
}

.glint-flare-h {
  position: absolute;
  width: 32px;
  height: 2px;
  background: #ffffff;
}

.glint-flare-v {
  position: absolute;
  width: 2px;
  height: 32px;
  background: #ffffff;
}

.log-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--color-rust);
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.log-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 1.2rem;
  color: var(--text-primary-dark);
}

.log-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-secondary-dark);
  margin-bottom: 2rem;
}

.log-footer {
  display: flex;
  gap: 0.8rem;
}

.log-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary-dark);
  border: 1px solid var(--border-sand);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* Card Orbit Rings */
.card-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.ring-1 {
  width: 480px;
  height: 480px;
  animation: orbit-rotate 40s infinite linear;
}

.ring-2 {
  width: 580px;
  height: 580px;
  animation: orbit-rotate-reverse 60s infinite linear;
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* About Text copy */
.about-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--text-primary-light);
}

.about-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-rust);
}

.about-body {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--text-secondary-light);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

/* Global Section Headers (For cream sections) */
.simulator-section,
.frequencies-section,
.screenshots-section {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 4.5rem;
  max-width: 800px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-rust);
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text-primary-dark);
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-rust);
}

.section-lead {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary-dark);
  max-width: 62ch;
}

.frequencies-section .section-lead {
  max-width: 74ch;
}

/* Simulator Center Wrappers */
.mixer-center-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.mixer-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.75rem;
  width: 100%;
}

@media (max-width: 900px) {
  .mixer-grid-container {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
  }
}

.frequencies-center-wrapper {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.mixer-panel, .telemetry-panel, .visualizer-panel {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(18, 42, 30, 0.02);
}

.panel-header {
  border-bottom: 1px solid var(--border-sand);
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary-dark);
  font-weight: 700;
}

.panel-header-left {
  display: flex;
  flex-direction: column;
}

.panel-header-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary-dark);
  margin-top: 0.4rem;
  line-height: 1.5;
  max-width: 78ch;
}

.telemetry-panel .panel-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Synthesizer engine initialization button */
.btn-engine {
  background-color: transparent;
  border: 1px solid var(--border-sand);
  color: var(--text-primary-dark);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-quick);
}

.btn-engine:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--text-primary-dark);
}

.btn-engine.active {
  background-color: var(--color-rust-light);
  border-color: var(--color-rust);
  color: var(--color-rust);
}

.btn-engine .stop-icon.hidden,
.btn-engine .play-icon.hidden {
  display: none;
}

/* Channels slider lists */
/* Channels slider lists - vertical physical console style */
.mixer-channels {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 1.5rem;
  height: 310px; /* Constrain height to fit panel card */
}

.mixer-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  height: 100%;
  position: relative;
  padding: 0.4rem 0;
}

.slider-wrapper {
  position: relative;
  width: 32px;
  height: 180px; /* Constrains rotated space container */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.4rem 0;
}

.channel-slider {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 155px; /* Physical vertical travel track height */
  height: 2px;
  background: var(--border-sand);
  outline: none;
  border: none;
  transform: rotate(-90deg);
  cursor: pointer;
  margin: 0;
}

.channel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px; /* High-res tactile knob sizing */
  height: 16px;
  border-radius: 50%;
  background: var(--bg-cream); /* Hollow circle physical matching */
  border: 2px solid var(--color-rust);
  cursor: pointer;
  transition: var(--transition-quick);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.channel-slider::-webkit-slider-thumb:hover {
  background: var(--color-rust);
  transform: scale(1.15);
}

.channel-label-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
  position: relative;
}

.channel-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary-dark);
  font-weight: 500;
}

.channel-name {
  font-family: var(--font-mono);
  font-size: 0.68rem; /* slightly smaller for 2-line visual balance */
  letter-spacing: 0.05em;
  color: var(--text-primary-dark);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.channel-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-rust);
  font-weight: 700;
}

.about-section-icon {
  color: var(--color-rust);
  opacity: 0.85;
  margin-bottom: 1.2rem;
  display: block;
}

/* Frequency radio list - elevated native cards grid matrix */
.frequency-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

@media (max-width: 820px) {
  .frequency-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .frequency-list {
    grid-template-columns: 1fr;
  }
}

.freq-card {
  display: block;
  cursor: pointer;
}

.freq-card input {
  display: none;
}

.freq-card-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background-color: #0d100e;
  border: 1px solid var(--border-sand);
  border-radius: 18px;
  transition: var(--transition-quick);
}

.freq-card-inner:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.freq-card input:checked + .freq-card-inner {
  background-color: rgba(232, 171, 66, 0.08);
  border-color: var(--color-rust);
  box-shadow: 0 0 15px rgba(232, 171, 66, 0.12);
}

.freq-wave {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.freq-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.freq-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1.5rem;
}

.freq-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary-dark);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.freq-planet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
}

/* Individual planet glow dots mapping colors */
.dot-mars, .dot-venus, .dot-earth, .dot-saturn, .dot-sun, .dot-jupiter, .dot-mercury, .dot-uranus, .dot-neptune {
  color: var(--color-rust);
  background-color: var(--color-rust);
}

.freq-planet-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Planet alignment custom colors */
.label-mars { color: #db4a39; }
.label-venus { color: #e67e22; }
.label-earth { color: #2ecc71; }
.label-saturn { color: #adb834; }
.label-sun { color: #e8ab42; }
.label-jupiter { color: #e8ab42; }
.label-mercury { color: #c24cb2; }
.label-uranus { color: #7cc5ba; }
.label-neptune { color: #7d53de; }

.freq-desc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary-dark);
  text-transform: lowercase;
}


/* Live Oscillograph Canvas wrapper */
.visualizer-content {
  height: 220px;
  background-color: rgba(18, 42, 30, 0.02);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
}

#osc-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.status-indicator {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background-color: rgba(18, 42, 30, 0.04);
  color: var(--text-secondary-dark);
  border: 1px solid var(--border-sand);
}

.status-indicator.active {
  background-color: var(--color-rust-light);
  color: var(--color-rust);
  border-color: var(--color-rust);
}

.telemetry-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.readout-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 1px solid var(--border-sand);
  padding-left: 1rem;
}

.readout-col:first-child {
  border-left: none;
  padding-left: 0;
}

.readout-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary-dark);
  font-weight: 500;
}

.readout-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--text-primary-dark);
}

#telemetry-status.active {
  color: var(--color-rust);
}

/* Screenshots Carousel Grid - Snapping Horizontal Rail */
.carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  width: 100%;
}

.carousel-viewport {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  background-color: transparent;
  padding: 1.5rem 0.5rem;
  scrollbar-width: none; /* Hide default scrollbar on Firefox */
}

.carousel-viewport::-webkit-scrollbar {
  display: none; /* Hide default scrollbar on Chrome/Safari */
}

.carousel-track {
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
}

.carousel-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 280px;
  padding: 0;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-screenshot);
  box-shadow: none;
  justify-self: center;
  border: 1px solid var(--border-sand);
  transition: var(--transition-smooth);
}

.carousel-slide img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: none;
}

@media (min-width: 992px) {
  .carousel-viewport {
    overflow-x: visible;
  }
  .carousel-track {
    justify-content: center;
    gap: 2.5rem;
    padding: 0;
    width: 100%;
  }
  .carousel-slide {
    flex: 1 1 0px;
    max-width: 300px;
    width: auto;
  }
}

.slide-caption {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.slide-caption h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-primary-dark);
}

.slide-caption p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary-dark);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn-arrow {
  background: transparent;
  border: 1px solid var(--border-sand);
  color: var(--text-secondary-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-quick);
}

.btn-arrow:hover {
  border-color: var(--text-primary-dark);
  color: var(--text-primary-dark);
  background-color: rgba(255, 255, 255, 0.05);
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border-sand);
  cursor: pointer;
  transition: var(--transition-quick);
}

.dot.active {
  background-color: var(--color-rust);
  transform: scale(1.4);
}

/* Call to Action Section (Deep Green background block) */
.cta-section {
  background-color: transparent;
  color: var(--text-primary-light);
  padding: 8rem 0;
  text-align: center;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--text-primary-light);
}

.cta-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-rust);
}

.cta-body {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary-light);
  line-height: 1.6;
  max-width: 50ch;
  margin-bottom: 3.5rem;
}

.cta-buttons {
  margin-bottom: 2rem;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background-color: var(--text-primary-dark);
  color: var(--bg-cream);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition-quick);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-appstore:hover {
  background-color: transparent;
  color: var(--text-primary-dark);
  border-color: var(--text-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.app-compatibility {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary-light);
  opacity: 0.7;
}

/* Footer (Deep forest green matching Stillwave) */
.footer {
  border-top: 1px solid var(--border-green);
  background-color: transparent;
  padding: 4rem 0;
  color: var(--text-secondary-light);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: var(--text-primary-light);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-secondary-light);
  opacity: 0.6;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  text-align: right;
}

.footer-meta p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary-light);
  opacity: 0.5;
}

.footer-meta .fine-print {
  max-width: 50ch;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet & Smaller Screens */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.8rem;
  }
  
  .planets-row {
    gap: 1.8rem;
  }
  
  .planet-sphere {
    width: 65px;
    height: 65px;
  }
  
  .planet-btn::before {
    width: 75px;
    height: 75px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .about-text-content {
    align-items: center;
  }
  
  .simulator-container {
    grid-template-columns: 1fr;
  }
  
  .visualizer-panel {
    grid-column: span 1;
  }
  
  .carousel-slide {
    grid-template-columns: 1fr;
    padding: 3rem;
    gap: 2rem;
    text-align: center;
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .section-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .theme-pull-chain {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    height: 120px !important;
  }

  .theme-pull-chain .chain-bead:nth-child(n+8) {
    display: none;
  }

  
  .nav-bar-pill {
    top: 1rem;
    width: auto;
  }
  
  .nav-links-pill {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .nav-link-item {
    display: none !important;
  }

  .btn-appstore.btn-nav-appstore {
    padding: 0.6rem 1.6rem !important;
    font-size: 0.82rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .nav-bar-pill.scrolled .btn-appstore.btn-nav-appstore {
    max-width: 280px !important;
    padding-left: 1.6rem !important;
    padding-right: 1.6rem !important;
    margin-left: 0 !important;
  }

  .btn-appstore.btn-nav-appstore .text-desktop {
    display: none !important;
  }

  .btn-appstore.btn-nav-appstore .text-mobile {
    display: inline !important;
  }

  .btn-appstore.btn-nav-appstore .appstore-icon {
    display: inline-block !important;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .planets-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .minimal-player {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .player-volume-wrapper {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  
  .player-vol-slider {
    width: 120px;
  }
  
  .about-title {
    font-size: 2.2rem;
  }
  
  .eclipse-container {
    width: 260px;
    height: 260px;
  }
  .eclipse-planet-wrapper {
    width: 180px;
    height: 180px;
  }
  .eclipse-corona-pulse {
    width: 160px;
    height: 160px;
  }
  .eclipse-corona-flare {
    width: 190px;
    height: 190px;
  }
  .corona-inner-ring {
    width: 182px;
    height: 182px;
  }
  .corona-outer-halo {
    width: 210px;
    height: 210px;
  }
  
  .card-orbit-ring {
    display: none; /* Hide orbits on mobile to prevent clipping issues */
  }
  
  .telemetry-readout {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .readout-col {
    border-left: none;
    padding-left: 0;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }
  
  .footer-meta {
    align-items: center;
    text-align: center;
  }

  /* Mobile screenshots adjustments */
  .carousel-viewport {
    overflow-x: visible !important;
    padding: 0 !important;
  }
  
  .carousel-track {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important; /* Structured gap between columns */
    align-items: start !important; /* Level mockups at the top border */
    padding: 0 !important;
    width: 100% !important;
  }
  
  .carousel-slide {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important; /* Reset padding to align perfectly */
    gap: 0.6rem !important;
  }

  .carousel-slide img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important; /* Makes device mockups pop */
  }

  .carousel-slide:nth-child(3) {
    display: none !important;
  }

  .slide-caption {
    width: 100% !important;
    text-align: center !important;
    margin-top: 0.2rem !important;
  }

  .slide-caption h4 {
    font-family: var(--font-mono) !important;
    font-size: 0.72rem !important;
    color: var(--text-secondary-dark) !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Usability improvements for Frequencies tuning console on mobile */
  .linear-scale-container {
    padding: 1.2rem 0.5rem !important; /* more horizontal space for nodes */
  }

  .hz-suffix {
    display: none !important; /* hide ' Hz' suffix to prevent squished labels from wrapping */
  }

  .linear-scale-node {
    width: calc(100% / 9) !important;
  }

  .node-label {
    font-size: 0.62rem !important; /* slightly smaller font size to fit perfectly */
    letter-spacing: 0.02em !important;
  }

  .spectrum-detail {
    flex-direction: column !important; /* stack details and controls vertically */
    align-items: center !important;
    text-align: center !important;
    padding: 1rem 1.2rem !important;
    gap: 1.2rem !important;
  }

  .detail-left-content {
    flex-direction: row !important; /* keep planet badge and description inline */
    justify-content: center !important;
    width: 100% !important;
    gap: 0.8rem !important;
  }

  .detail-description {
    font-size: 0.82rem !important;
    text-align: left !important;
    max-width: 100% !important;
  }

  .spectrum-player-controls {
    justify-content: center !important;
    width: 100% !important;
    gap: 1.2rem !important; /* slightly wider gap for easier touch targets */
  }
}

/* Hero and Footer Logo Sparkle and Brand Header Styles */
.hero-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-logo-sparkle {
  color: var(--text-primary-dark);
  opacity: 0.95;
  margin-bottom: 1.2rem;
  animation: pulse-sparkle 3s infinite ease-in-out;
}

.hero-version {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary-dark);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

@keyframes pulse-sparkle {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.25)); }
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  justify-content: flex-start;
}

.footer-logo-sparkle {
  color: var(--text-primary-dark);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .footer-logo-group {
    justify-content: center;
  }
}

/* Inline Solfeggio Mixer Dropdown Select */
.mixer-select-wrapper {
  position: absolute;
  bottom: -0.9rem; /* Sit perfectly under the SOLFEGGIO OSC label */
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  white-space: nowrap;
}

.mixer-select {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--color-rust) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  outline: none;
  transition: var(--transition-quick);
  text-align: center;
  text-align-last: center;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
}

.select-arrow {
  font-size: 0.5rem;
  color: var(--color-rust);
  pointer-events: none; /* Let clicks pass through to select */
  display: inline-block;
  transform: translateY(0.5px);
  transition: color var(--transition-quick);
}

.mixer-select-wrapper:hover .mixer-select,
.mixer-select-wrapper:focus-within .mixer-select {
  color: var(--text-primary-dark) !important;
  text-decoration: underline;
}

.mixer-select-wrapper:hover .select-arrow,
.mixer-select-wrapper:focus-within .select-arrow {
  color: var(--text-primary-dark) !important;
}

.mixer-select option {
  background-color: #0d100e;
  color: var(--text-primary-dark);
}

/* Live Visualizer Play Overlay for Empty State */
.visualizer-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 13, 11, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  z-index: 10;
  transition: opacity var(--transition-smooth);
}

.visualizer-play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-overlay-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-rust);
  color: var(--bg-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(var(--active-planet-color-rgb, 232, 171, 66), 0.35);
  transition: var(--transition-smooth);
}

.visualizer-play-overlay:hover .play-overlay-circle {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(var(--active-planet-color-rgb, 232, 171, 66), 0.5);
  background-color: #ffffff;
}

.play-overlay-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-primary-dark);
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.95;
  transition: var(--transition-smooth);
}

.visualizer-play-overlay:hover .play-overlay-text {
  color: var(--color-rust);
  opacity: 1;
}

/* Spectrum Container & Equalizer styling */
.spectrum-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

.linear-scale-container {
  padding: 2.2rem;
  background: var(--bg-green-card);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
}

.linear-scale-nodes {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.linear-scale-track {
  position: absolute;
  top: 5px; /* Centers track inside the 12px dot */
  left: 5.55%;
  right: 5.55%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.linear-scale-fill {
  position: absolute;
  left: 0;
  height: 100%;
  background-color: var(--color-rust);
  z-index: 2;
  transition: width var(--transition-smooth);
  width: 0%; /* updated by JS */
}

.linear-scale-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 3;
  width: calc(100% / 9);
}

.linear-scale-node input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-green-deep);
  border: 2px solid var(--border-sand);
  transition: all var(--transition-quick);
  margin-bottom: 0.8rem;
  position: relative;
}

.node-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  transition: transform var(--transition-quick);
}

.node-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary-dark);
  transition: all var(--transition-quick);
  letter-spacing: 0.05em;
}

.hz-suffix {
  display: inline;
}

/* Hover & Active Checked states */
.linear-scale-node:hover .node-dot {
  transform: scale(1.2);
  border-color: var(--text-primary-dark);
}

.linear-scale-node input[type="radio"]:checked + .node-dot {
  border-color: var(--color-rust);
  background-color: var(--color-rust);
}

.linear-scale-node input[type="radio"]:checked + .node-dot::after {
  transform: translate(-50%, -50%) scale(1);
}

.linear-scale-node input[type="radio"]:checked ~ .node-label {
  color: var(--text-primary-dark);
  font-weight: 700;
}

/* Detail box */
.spectrum-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 2rem;
  background: rgba(13, 16, 14, 0.45);
  border: 1.5px solid rgba(var(--active-planet-color-rgb, 232, 171, 66), 0.15);
  border-radius: var(--radius-md);
  min-height: 3.5rem; /* Layout stability */
  transition: border-color 0.8s ease;
}

.detail-planet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--active-planet-color, var(--color-rust));
  border: 1px solid rgba(var(--active-planet-color-rgb, 232, 171, 66), 0.3);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
  transition: color 0.8s ease, border-color 0.8s ease;
}

.badge-planet-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-description {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary-dark);
  line-height: 1.5;
}


.spectrum-play-btn {
  background-color: var(--color-rust);
  color: var(--bg-primary-dark);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-quick), background-color var(--transition-quick);
  flex-shrink: 0;
}

.spectrum-play-btn:hover {
  transform: scale(1.08);
  background-color: #ffffff;
}

.spectrum-play-btn:active {
  transform: scale(0.95);
}

.spectrum-play-btn svg.hidden {
  display: none !important;
}

.spectrum-player-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.spectrum-ctrl-btn {
  background-color: transparent;
  color: var(--text-secondary-dark);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-quick), color var(--transition-quick);
}

.spectrum-ctrl-btn:hover {
  transform: scale(1.08);
  color: var(--text-primary-dark);
}

.spectrum-ctrl-btn:active {
  transform: scale(0.95);
}

.detail-left-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Pull Chain Theme Toggle */
.theme-pull-chain {
  position: fixed;
  top: 0;
  left: 3.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  width: 40px;
  height: 220px;
}

/* Minimal silver mount loop */
.chain-mount {
  width: 10px;
  height: 10px;
  border: 1.5px solid #d1d1d6;
  border-radius: 50%;
  background: transparent;
  box-shadow: 
    inset 0.5px 0.5px 0.5px rgba(255,255,255,0.5),
    0 1px 2px rgba(0,0,0,0.3);
  position: relative;
  transition: transform 0.2s ease;
}

/* Screw/attachment hook to ceiling */
.chain-mount::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background-color: #8e8e93;
}

/* Beads wrapper containing thread line and beads */
.chain-beads-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 4px;
  transform-origin: top center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.35); /* elastic snap-back */
}

/* Connector Wire running through beads */
.chain-beads-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 30px; /* stop inside the moon connector ring */
  width: 1px;
  background: linear-gradient(to right, #8e8e93, #e5e5ea, #8e8e93);
  z-index: 1;
}

/* Metal beads - silver chrome and spaced out */
.chain-bead {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 1.5px 0; /* spaced out as in the reference image */
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d1d1d6 45%, #8e8e93 80%, #3a3a3c 100%);
  box-shadow: 
    0 1px 1px rgba(0,0,0,0.25),
    inset 0.5px 0.5px 0.5px rgba(255,255,255,0.7);
  position: relative;
  z-index: 2;
  transition: background 0.3s ease;
}

/* Glass Crescent Moon Container */
.chain-moon-container {
  margin-top: -2px;
  position: relative;
  z-index: 3;
  transition: transform 0.15s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.chain-moon-svg {
  display: block;
  /* Frosted glass backdrop blur */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Hover effects */
.theme-pull-chain:hover .chain-moon-container {
  transform: translateY(3px) rotate(-3deg);
  filter: drop-shadow(0 6px 12px rgba(232, 171, 66, 0.25)); /* golden glint on hover */
}

.theme-pull-chain:hover .chain-beads-wrapper {
  transform: scaleY(1.02);
}

/* Active / Pulling State */
.theme-pull-chain.pulling .chain-beads-wrapper {
  transform: translateY(22px);
  transition: transform 0.08s ease-out; /* pull down instantly */
}

/* Keyboard focus */
.theme-pull-chain:focus-visible .chain-mount {
  outline: 2px dashed #e8ab42;
  outline-offset: 4px;
}

/* Light Theme Overrides (subtle brightness adjustment for realistic lighting) */
body.light-theme .chain-mount {
  border-color: #8e8e93;
  box-shadow: 
    inset 0.5px 0.5px 0.5px rgba(255,255,255,0.8),
    0 1px 2px rgba(0,0,0,0.15);
}

body.light-theme .chain-bead {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e5e5ea 45%, #aeaea2 80%, #767676 100%);
}

body.light-theme .chain-moon-container {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

body.light-theme .chain-moon-svg path {
  fill: rgba(0, 0, 0, 0.05) !important;
  stroke: rgba(0, 0, 0, 0.22) !important;
}

body.light-theme .chain-moon-svg circle {
  stroke: rgba(0, 0, 0, 0.25) !important;
}


/* Black Gradient Shimmer Logo styling */
.hero-title {
  background: linear-gradient(90deg, #f2f5f3 0%, #e8ab42 25%, #ffffff 50%, #e8ab42 75%, #f2f5f3 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: logoShimmer 24s linear infinite;
  display: inline-block;
}

body.light-theme .hero-title {
  background: linear-gradient(90deg, #1d1d1f 0%, #5a4a35 25%, #e8ab42 50%, #5a4a35 75%, #1d1d1f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

@keyframes logoShimmer {
  0% {
    background-position: 200% center;
  }
  29.17% {
    background-position: 200% center; /* 7s pause at 24s total duration */
  }
  100% {
    background-position: -200% center; /* Slow 17s sweep */
  }
}

/* Light Theme Overrides */
body.light-theme {
  --bg-cream: #f4f5f6; /* Light grey stone canvas */
  --bg-green-deep: #f4f5f6;
  --bg-green-card: rgba(255, 255, 255, 0.85); /* Apple-like light glassmorphic card */
  
  --text-primary-dark: #1d1d1f; /* Apple dark text */
  --text-secondary-dark: #6e6e73; /* Apple muted gray */
  --text-primary-light: #1d1d1f;
  --text-secondary-light: #6e6e73;
  
  --border-sand: rgba(0, 0, 0, 0.08);
  --border-green: rgba(0, 0, 0, 0.05);
  background-color: var(--bg-cream);
  color: var(--text-primary-dark);
}

body.light-theme .transmission-console {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.03);
}

body.light-theme .mixer-panel, 
body.light-theme .telemetry-panel, 
body.light-theme .visualizer-panel,
body.light-theme .linear-scale-container {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.03);
}

body.light-theme .spectrum-detail {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

body.light-theme .visualizer-play-overlay {
  background: rgba(245, 245, 247, 0.8);
}

body.light-theme .visualizer-play-overlay span {
  color: #1d1d1f;
}

body.light-theme .play-overlay-circle {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-rust);
}

body.light-theme .mixer-select {
  background-color: transparent !important;
  color: var(--color-rust) !important;
  border: none !important;
}

body.light-theme .select-arrow {
  color: var(--color-rust) !important;
}

body.light-theme .mixer-select-wrapper:hover .mixer-select {
  color: #1d1d1f !important;
}

body.light-theme .mixer-select-wrapper:hover .select-arrow {
  color: #1d1d1f !important;
}

body.light-theme .mixer-select option {
  background-color: #ffffff;
  color: #1d1d1f;
}

body.light-theme .console-tab-btn {
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .console-tab-btn.active {
  background-color: rgba(232, 171, 66, 0.08);
}

body.light-theme .linear-scale-track {
  background: rgba(0, 0, 0, 0.08);
}

body.light-theme .linear-scale-node .node-dot {
  background-color: #e5e5ea;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .badge-planet-thumb {
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .app-icon-badge {
  background-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .nav-links-pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.02);
}

body.light-theme .nav-links-pill:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .nav-link-item {
  color: #6e6e73;
}

body.light-theme .nav-link-item:hover {
  color: #1d1d1f;
}

body.light-theme .eclipse-planet-wrapper {
  background-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .hero-subtitle {
  color: var(--color-rust);
}

