:root {
  --bg: #0b0b0d;
  --bg-elevated: #16161b;
  --bg-elevated-2: #1e1e25;
  --border: #2a2a33;
  --text: #f5f5f7;
  --text-muted: #a3a3ad;
  --accent-1: #7c5cff;
  --accent-2: #ff5c8a;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --radius: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

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

nav.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #0b0b0d;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px -6px rgba(124, 92, 255, 0.75);
}

.btn-secondary {
  background: var(--bg-elevated-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #26262f;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

/* Hero */

.hero {
  padding: 88px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(255, 92, 138, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--text);
}

/* Mockup */

.mockup {
  position: relative;
  border-radius: 20px;
  padding: 3px;
  background: var(--accent-gradient);
  box-shadow: 0 30px 60px -20px rgba(124, 92, 255, 0.4);
}

.mockup-inner {
  background: #17171c;
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}

.mockup-art {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffb366, #ff5c8a 55%, #7c5cff);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

.mockup-text {
  flex: 1 1 auto;
  min-width: 0;
}

.mockup-title {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-artist {
  color: var(--text-muted);
  font-size: 14px;
}

.mockup-bars {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.mockup-bars span {
  display: block;
  width: 8px;
  border-radius: 4px;
  background: var(--accent-gradient);
  animation: bar-bounce 1.2s ease-in-out infinite;
}

.mockup-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.mockup-bars span:nth-child(2) { height: 75%; animation-delay: 0.15s; }
.mockup-bars span:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.mockup-bars span:nth-child(4) { height: 55%; animation-delay: 0.45s; }
.mockup-bars span:nth-child(5) { height: 85%; animation-delay: 0.6s; }

@keyframes bar-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.mockup-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Sections */

section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
}

.section-head h2 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

/* Feature grid */

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

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #0b0b0d;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* CTA banner */

.cta-banner {
  border-radius: 20px;
  background: var(--accent-gradient);
  padding: 56px 48px;
  text-align: center;
  color: #0b0b0d;
}

.cta-banner h2 {
  font-size: 30px;
  margin: 0 0 12px;
}

.cta-banner p {
  margin: 0 0 28px;
  font-size: 16px;
  opacity: 0.85;
}

.cta-banner .btn-primary {
  background: #0b0b0d;
  color: #fff;
  box-shadow: none;
}

.cta-banner .btn-primary:hover {
  background: #1c1c22;
}

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site .brand {
  font-size: 14px;
}

footer.site .brand img {
  width: 22px;
  height: 22px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

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

/* Download page */

.download-hero {
  padding: 64px 0 24px;
  text-align: center;
}

.download-hero h1 {
  font-size: 40px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.download-hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 52ch;
  margin: 0 auto;
}

.download-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 960px;
  margin: 40px auto 0;
}

.download-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  height: 100%;
}

.download-card img.icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.5);
}

.download-card .icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
}

.ndi-card h2 {
  font-size: 20px;
  margin: 0 0 12px;
}

.ndi-card .ndi-blurb {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.download-version {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 20px;
}

.download-version strong {
  color: var(--text);
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.download-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
}

.download-note a {
  color: var(--accent-2);
  text-decoration: none;
}

.download-note a:hover {
  text-decoration: underline;
}

.download-error {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 92, 138, 0.1);
  border: 1px solid rgba(255, 92, 138, 0.35);
  color: #ffb3c5;
  font-size: 13px;
}

.download-error p {
  margin: 0;
}

.download-error-detail {
  margin-top: 8px !important;
  color: #ffb3c5;
  opacity: 0.75;
  font-size: 12px;
}

.download-error-detail:empty {
  display: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(11, 11, 13, 0.35);
  border-top-color: #0b0b0d;
  display: inline-block;
  animation: spin 0.7s linear infinite;
  vertical-align: -3px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.requirements {
  max-width: 640px;
  margin: 56px auto 0;
}

.requirements h2 {
  font-size: 18px;
  text-align: center;
  margin: 0 0 20px;
}

.requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.requirements li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.requirements li strong {
  color: var(--text);
}

/* Responsive */

@media (max-width: 880px) {
  .hero {
    padding-top: 56px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

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

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

  nav.site-nav {
    gap: 16px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .download-columns {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

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

  nav.site-nav a.hide-mobile {
    display: none;
  }

  .hero h1 {
    font-size: 30px;
  }

  .mockup-inner {
    flex-wrap: wrap;
  }

  .download-card {
    padding: 28px 20px;
  }
}
