/* MUSE Landing Page — Premium Dark Theme */

:root {
  --bg-primary: #0a0a0f;
  --bg-primary-alpha: rgba(10, 10, 15, 0.88);
  --bg-secondary: #111118;
  --bg-secondary-alpha: rgba(17, 17, 24, 0.9);
  --bg-card: rgba(22, 22, 31, 0.85);
  --bg-card-hover: rgba(28, 28, 40, 0.9);
  --text-primary: #e8e6f0;
  --text-secondary: #9896a8;
  --text-muted: #6b6980;
  --gold: #c9a84c;
  --gold-light: #e0c872;
  --gold-dark: #9a7b2f;
  --accent: #7c6bff;
  --accent-light: #9d8fff;
  --green: #3dd68c;
  --red: #ff6b6b;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border);
}

.section,
.hero,
.footer {
  position: relative;
  z-index: 1;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.nav-logo img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0f;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn.btn-sm {
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.btn.btn-sm:hover {
  background: rgba(201, 168, 76, 0.2);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 10, 15, 0.4) 0%,
      rgba(10, 10, 15, 0.7) 50%,
      rgba(10, 10, 15, 0.95) 85%,
      var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 80px 0 60px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.hero-tools {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tool-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.2s;
}

.tool-pill:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.25);
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── Sections ─── */
.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--bg-secondary-alpha);
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.section-subtitle code {
  background: rgba(124, 107, 255, 0.1);
  color: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.9em;
}

/* ─── Problem/Solution ─── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.comparison-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-card.bad {
  background: rgba(255, 107, 107, 0.03);
  border-color: rgba(255, 107, 107, 0.15);
}

.comparison-card.good {
  background: rgba(61, 214, 140, 0.03);
  border-color: rgba(61, 214, 140, 0.15);
}

.comparison-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.comparison-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.comparison-card.bad h3 {
  color: var(--red);
}

.comparison-card.good h3 {
  color: var(--green);
}

.comparison-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comparison-card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
}

.comparison-card.bad li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--red);
}

.comparison-card.good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
}

.comparison-card code {
  background: rgba(124, 107, 255, 0.1);
  color: var(--accent-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85em;
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

.feature-card code {
  background: rgba(124, 107, 255, 0.1);
  color: var(--accent-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.85em;
}

/* ─── Demo ─── */
.demo-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
}

.demo-container img {
  width: 100%;
  display: block;
}

/* ─── Tools ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}

.tool-card:hover {
  border-color: rgba(201, 168, 76, 0.2);
}

.tool-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.tool-card code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ─── Install ─── */
.install-block {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.install-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0f;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.code-block {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  flex: 1;
  white-space: nowrap;
}

.copy-btn {
  flex-shrink: 0;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(201, 168, 76, 0.2);
}

/* ─── Comparison Table ─── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table .highlight {
  background: rgba(201, 168, 76, 0.04);
  color: var(--gold);
  font-weight: 500;
}

.comparison-table thead .highlight {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ─── Commands ─── */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.command-card {
  padding: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.command-card code {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.command-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── Footer ─── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand img {
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

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

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold);
}

.footer-muse {
  margin-top: 8px;
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-toggle {
    display: block;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .commands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    padding: 40px 0;
  }

  .section {
    padding: 64px 0;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .hero-tools {
    gap: 6px;
  }

  .tool-pill {
    font-size: 0.78rem;
    padding: 4px 11px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .code-block {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .code-block code {
    white-space: normal;
    word-break: break-all;
  }

  .copy-btn {
    align-self: flex-end;
  }

  .install-step {
    gap: 14px;
  }

  .step-num {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .commands-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .stat-num {
    font-size: 1.4rem;
  }
}