/* ==========================================================================
   MISC PLAYER - OFFICIAL WEBSITE TEMPLATE STYLESHEET
   Conceived & Designed for MISC Player by MI Sunny Chowdhury
   Supports 6 Dynamic Themes, Glassmorphism, and Fully Responsive Layout
   ========================================================================== */

:root {
  /* Default Theme: Sunset Glow (Coral & Sunset Orange) */
  --bg-primary: #0c0d14;
  --bg-secondary: #131522;
  --bg-card: rgba(22, 24, 38, 0.85);
  --bg-card-hover: rgba(29, 32, 51, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 94, 98, 0.5);
  
  --accent-primary: #ff5e62;
  --accent-secondary: #ff9966;
  --accent-gradient: linear-gradient(135deg, #ff5e62 0%, #ff9966 100%);
  --accent-glow: rgba(255, 94, 98, 0.25);
  
  --text-main: #f3f5fc;
  --text-secondary: #9ea7bd;
  --text-muted: #626a82;
  --badge-bg: rgba(255, 94, 98, 0.12);
  --badge-text: #ff7e72;

  --code-bg: #090a10;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 12px 35px var(--accent-glow);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Cyberpunk Cyan Theme */
[data-theme="cyan"] {
  --bg-primary: #070e17;
  --bg-secondary: #0b1726;
  --bg-card: rgba(13, 27, 44, 0.85);
  --bg-card-hover: rgba(18, 38, 62, 0.95);
  --border-color: rgba(0, 210, 255, 0.15);
  --border-focus: rgba(0, 210, 255, 0.6);
  --accent-primary: #00d2ff;
  --accent-secondary: #3a7bd5;
  --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --accent-glow: rgba(0, 210, 255, 0.3);
  --badge-bg: rgba(0, 210, 255, 0.12);
  --badge-text: #38e1ff;
}

/* 2. Emerald Matrix Theme */
[data-theme="matrix"] {
  --bg-primary: #06110a;
  --bg-secondary: #0b1c11;
  --bg-card: rgba(14, 33, 21, 0.85);
  --bg-card-hover: rgba(20, 48, 30, 0.95);
  --border-color: rgba(0, 230, 118, 0.15);
  --border-focus: rgba(0, 230, 118, 0.6);
  --accent-primary: #00e676;
  --accent-secondary: #00b0ff;
  --accent-gradient: linear-gradient(135deg, #00e676 0%, #1de9b6 100%);
  --accent-glow: rgba(0, 230, 118, 0.3);
  --badge-bg: rgba(0, 230, 118, 0.12);
  --badge-text: #2cf58e;
}

/* 3. Midnight Ocean Theme */
[data-theme="ocean"] {
  --bg-primary: #0b0d1a;
  --bg-secondary: #12152b;
  --bg-card: rgba(22, 26, 51, 0.85);
  --bg-card-hover: rgba(30, 35, 70, 0.95);
  --border-color: rgba(138, 75, 255, 0.18);
  --border-focus: rgba(138, 75, 255, 0.6);
  --accent-primary: #a855f7;
  --accent-secondary: #ec4899;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --accent-glow: rgba(168, 85, 247, 0.3);
  --badge-bg: rgba(168, 85, 247, 0.15);
  --badge-text: #c084fc;
}

/* 4. Studio Light Theme */
[data-theme="light"] {
  --bg-primary: #f6f8fc;
  --bg-secondary: #eef1f8;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(255, 94, 98, 0.6);
  --accent-primary: #e63946;
  --accent-secondary: #f4a261;
  --accent-gradient: linear-gradient(135deg, #e63946 0%, #f4a261 100%);
  --accent-glow: rgba(230, 57, 70, 0.2);
  --text-main: #141724;
  --text-secondary: #4b5266;
  --text-muted: #828a9e;
  --badge-bg: rgba(230, 57, 70, 0.1);
  --badge-text: #d62828;
  --code-bg: #eaeff8;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.1);
}

/* 5. Monochrome Obsidian Theme */
[data-theme="obsidian"] {
  --bg-primary: #080808;
  --bg-secondary: #101010;
  --bg-card: rgba(20, 20, 20, 0.85);
  --bg-card-hover: rgba(30, 30, 30, 0.95);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 255, 255, 0.5);
  --accent-primary: #e0e0e0;
  --accent-secondary: #888888;
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  --accent-glow: rgba(255, 255, 255, 0.15);
  --badge-bg: rgba(255, 255, 255, 0.1);
  --badge-text: #ffffff;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Atmosphere Glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: var(--accent-gradient);
  filter: blur(140px);
  opacity: 0.12;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  filter: blur(160px);
  opacity: 0.08;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   Layout Containers & Utilities
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.text-center { text-align: center; }
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

[data-theme="light"] header {
  background: rgba(246, 248, 252, 0.88);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform var(--transition-fast);
}

.logo-brand:hover .logo-icon {
  transform: scale(1.05) rotate(4deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Selector Pill */
.theme-selector {
  position: relative;
}

.theme-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.theme-dropdown-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  min-width: 190px;
  z-index: 1100;
}

.theme-menu.show {
  display: flex;
}

.theme-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.theme-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.theme-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

.btn.disabled, .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
  filter: grayscale(0.4);
}

/* ==========================================================================
   Hero Section & Interactive Mockup
   ========================================================================== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin: 20px 0;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Player Mockup / Interactive Demo Widget
   ========================================================================== */
.player-demo-container {
  margin-top: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

.player-demo-container:hover {
  border-color: var(--border-focus);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

.demo-titlebar {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.demo-window-controls {
  display: flex;
  gap: 8px;
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.demo-dot.red { background: #ff5f56; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green { background: #27c93f; }

.demo-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.demo-screen {
  height: 380px;
  background: #06070a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Live Waveform Canvas */
.demo-canvas {
  width: 100%;
  height: 240px;
  display: block;
}

.demo-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.demo-overlay-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.demo-overlay-sub {
  font-size: 14px;
  color: #a0aec0;
}

.demo-controls-bar {
  background: rgba(12, 14, 22, 0.95);
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
}

.demo-seeker {
  width: 100%;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.seeker-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}

.seeker-bar-fill {
  height: 100%;
  width: 42%;
  background: var(--accent-gradient);
  border-radius: 6px;
  position: relative;
}

.seeker-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.demo-button-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-playback-btns {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn.primary-play {
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.icon-btn.primary-play:hover {
  transform: scale(1.08);
}

.demo-right-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vol-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.vol-slider {
  width: 80px;
  height: 4px;
  accent-color: var(--accent-primary);
}

/* ==========================================================================
   Feature Cards & Grid
   ========================================================================== */
.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-title-wrap h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 12px 0;
}

.section-title-wrap p {
  color: var(--text-secondary);
  font-size: 17px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--badge-bg);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   Interactive Theme Grid Showcase
   ========================================================================== */
.themes-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.theme-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.theme-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
}

.theme-card-preview {
  height: 110px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

.theme-card h4 {
  font-size: 18px;
  font-weight: 700;
}

.theme-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Download Hub Page Styles
   ========================================================================== */
.download-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 50px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

.tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.pkg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.pkg-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pkg-card.highlight {
  border-color: var(--accent-primary);
  background: linear-gradient(180deg, rgba(255, 94, 98, 0.05) 0%, var(--bg-card) 100%);
  position: relative;
}

.pkg-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pkg-header {
  margin-bottom: 20px;
}

.pkg-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.pkg-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pkg-header .pkg-os {
  color: var(--text-muted);
  font-size: 13.5px;
}

.pkg-features {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pkg-features li span {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   Checksums & Verification Table
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th, .data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--bg-secondary);
  color: var(--text-main);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--code-bg);
  padding: 4px 8px;
  border-radius: 4px;
  color: #ff9966;
}

.copy-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: 8px;
}

.copy-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-primary);
}

/* ==========================================================================
   Documentation & Code Snippets
   ========================================================================== */
.doc-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0;
}

.doc-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.doc-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-nav-list a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.doc-nav-list a:hover, .doc-nav-list a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.doc-content h2 {
  font-size: 28px;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.doc-content h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.doc-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 20px 0;
  overflow: hidden;
}

.code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  font-size: 12.5px;
  color: var(--text-muted);
}

.code-content {
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* ==========================================================================
   Author & Creator Spotlight
   ========================================================================== */
.creator-spotlight {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  margin: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.creator-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
}

.creator-avatar-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
}

.creator-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.creator-spotlight h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.creator-spotlight h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

.creator-spotlight p {
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 16px;
}

.creator-roles {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.role-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-arrow {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 15px;
}

.faq-item.open .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-bottom a {
  color: var(--text-secondary);
}

.footer-bottom a:hover {
  color: var(--accent-primary);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero h1 { font-size: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-screen { height: 280px; }
  .demo-canvas { height: 160px; }
}
