:root {
  --bg-dark: #07090E;
  --bg-card: rgba(15, 21, 32, 0.75);
  --bg-card-hover: rgba(21, 29, 44, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 229, 255, 0.3);
  --cyan-primary: #00E5FF;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  --cyan-dark: #008899;
  --text-main: #FFFFFF;
  --text-dim: #94A3B8;
  --text-muted: #64748B;
  --accent-gold: #F59E0B;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 100% 50%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
              var(--bg-dark);
}

/* Studio Oscilloscope Grid Background */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 9, 14, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-cyan);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFF 40%, var(--cyan-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan-primary);
  border-radius: 999px;
  border: 1px solid var(--border-cyan);
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--cyan-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--cyan-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.1); }
  100% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.3); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #00E5FF 70%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Download CTA Area */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, #00E5FF 0%, #0099AA 100%);
  color: #07090E;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--cyan-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.5);
  background: linear-gradient(135deg, #38EFFF 0%, #00B4C8 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.release-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.release-tag-badge {
  color: var(--cyan-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Audio Player Interactive Visual Mockup */
.mockup-container {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(24px);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.mockup-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-primary);
  box-shadow: 0 0 8px var(--cyan-primary);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.nerd-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.nerd-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.stat-val.highlight {
  color: var(--cyan-primary);
}

/* Waveform Visualizer simulation */
.waveform-container {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 1rem;
}

.wave-bar {
  width: 4px;
  background: var(--cyan-primary);
  border-radius: 2px;
  animation: soundwave 1.4s ease-in-out infinite alternate;
}

@keyframes soundwave {
  0% { height: 12%; opacity: 0.4; }
  50% { height: 85%; opacity: 1; }
  100% { height: 35%; opacity: 0.6; }
}

/* Feature Grid */
.features-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--cyan-primary);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Hardware DAC specs table */
.hardware-section {
  max-width: 1000px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

td {
  font-size: 0.95rem;
}

.tag-verified {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.95);
  padding: 4rem 1.5rem 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 3.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .mockup-container { padding: 1.25rem; }
}

/* ==========================================================================
   Documentation & Addon Guide Styles
   ========================================================================== */

.docs-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 5.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

.docs-sidebar h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.docs-sidebar ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.docs-sidebar li {
  margin-bottom: 0.4rem;
}

.docs-sidebar a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--cyan-primary);
  background: rgba(0, 229, 255, 0.08);
}

.docs-content {
  min-width: 0;
  line-height: 1.7;
}

.docs-hero {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2rem;
}

.docs-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.docs-lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 800px;
}

.docs-section {
  margin-bottom: 4rem;
  scroll-margin-top: 6rem;
}

.docs-section h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-section h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: #fff;
}

.docs-section p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--cyan-primary);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
}

.method-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.method-pill.get {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.endpoint-path {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
}

.code-container {
  position: relative;
  background: #05070B;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin: 1.25rem 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.code-container pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #E2E8F0;
}

.alert-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  border: 1px solid transparent;
}

.alert-card.info {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.2);
}

.alert-card.tip {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.alert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.alert-content {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.alert-content strong {
  color: #fff;
}

.flow-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan-primary);
  margin-bottom: 0.5rem;
}

.flow-step h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.flow-step p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  .docs-sidebar {
    display: none;
  }
}


/* --- Timbre Studio Audiophile Suite Styles --- */
.studio-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.studio-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.12);
}

.studio-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.studio-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.studio-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.studio-card-subtitle {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--cyan-primary);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.studio-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Audio Signal Flow Architecture */
.signal-flow-card {
  background: rgba(15, 21, 32, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0 3.5rem 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.signal-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.signal-flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.signal-flow-step {
  background: rgba(8, 12, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.25s ease;
}

.signal-flow-step:hover {
  border-color: var(--cyan-primary);
}

.signal-flow-step .step-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.signal-flow-step h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.signal-flow-step p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}
