/* VibeAudioKit - Global Dark Minimalist Stylesheet */
:root {
  --bg: #090b10;
  --bg-elevated: #111521;
  --bg-card: #151a28;
  --bg-card-hover: #1b2234;
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(124, 92, 255, 0.45);
  --text: #f3f5f9;
  --text-muted: #9aa3b8;
  --text-dim: #6d768d;
  --primary: #7c5cff;
  --primary-hover: #6a46ff;
  --accent: #00d4ff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at 15% 0%, rgba(124, 92, 255, 0.14), transparent 40%),
              radial-gradient(circle at 85% 10%, rgba(0, 212, 255, 0.09), transparent 35%),
              var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 11, 16, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-links a.active {
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--border-accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Main Container */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.2rem 1.25rem 4rem;
}

/* Hero Section */
.hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c8bcff;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.35);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 10%, #b59eff 55%, #5ee7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Trust Pills */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.trust-pill {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* Tool Cards Grid (Homepage) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  box-shadow: var(--shadow);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.tool-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.25);
}

.tool-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.tool-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  flex: 1;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.4rem;
}

/* Workspace / Studio Panel */
.studio-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: stretch;
}

.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 1.6rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(124, 92, 255, 0.08);
}

.dropzone strong {
  font-size: 1rem;
}

.dropzone span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dropzone input[type="file"] {
  display: none;
}

.demo-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(0, 212, 255, 0.1));
  border: 1px solid var(--border-accent);
  min-width: 215px;
  text-align: center;
}

.demo-box small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, opacity 0.2s;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5b43f1);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover), #4e36e6);
}

.btn-accent {
  background: linear-gradient(135deg, #00b8e6, #0088cc);
  color: #fff;
}

.btn-accent:hover:not(:disabled) {
  filter: brightness(1.08);
}

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

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
}

/* Player & Visualizer */
.player-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.track-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

.track-name {
  font-weight: 600;
  color: #fff;
  word-break: break-all;
}

.track-status {
  color: var(--accent);
  font-size: 0.84rem;
}

.visualizer-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: var(--radius-sm);
  background: #0b0e16;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
}

.visualizer-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 8D Radar Badge */
.radar-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.radar-canvas-box {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #0b0e16;
  border: 1px solid var(--border-accent);
  flex-shrink: 0;
  overflow: hidden;
}

.radar-canvas-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.transport-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.seek-wrap {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.time-label {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 42px;
}

/* Controls & Sliders */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.control-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.control-header label {
  font-size: 0.9rem;
  font-weight: 600;
}

.control-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.control-hint {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(124, 92, 255, 0.6);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  cursor: pointer;
}

/* Presets */
.presets-wrap {
  margin-bottom: 1.5rem;
}

.presets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  display: block;
}

.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.preset-btn {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.preset-btn:hover {
  border-color: var(--border-accent);
  background: rgba(124, 92, 255, 0.15);
}

.preset-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Export Section & Progress Bar */
.export-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.progress-box {
  display: none;
  width: 100%;
  margin-top: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.progress-box.visible {
  display: block;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.12s linear;
}

.headphone-tip {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.22);
  font-size: 0.88rem;
  color: #bfefff;
}

/* Promo / Extension Teaser Banner */
.promo-banner {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 212, 255, 0.08));
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.promo-banner h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.promo-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* SEO Content & Guide Sections */
.content-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.6rem;
}

.content-section h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.content-section h3 {
  margin: 1.3rem 0 0.5rem;
  font-size: 1.08rem;
  color: #e4e8f5;
}

.content-section p,
.content-section li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.25rem;
  margin: 0.6rem 0 1rem;
}

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

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
}

.step-num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.2);
  color: #c8bcff;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.step-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step-item p {
  margin: 0;
  font-size: 0.88rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.93rem;
}

/* Legal / Form Pages */
.prose-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.prose-card h1 {
  margin-top: 0;
  font-size: 2rem;
}

.prose-card h2 {
  margin-top: 1.6rem;
  font-size: 1.25rem;
}

.prose-card p,
.prose-card li {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.9);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .upload-row {
    grid-template-columns: 1fr;
  }

  .studio-panel,
  .content-section,
  .prose-card {
    padding: 1.25rem;
  }
}
