:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1b1b1b;
  --text: #f6f3ed;
  --muted: #9c9a95;
  --line: #292929;
  --accent: #c6ff3e;
  --accent-text: #101400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.success-page {
  display: flex;
  min-height: calc(100vh - 76px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 0;
}

.success-page h1 {
  max-width: 900px;
}

.primary-button {
  display: inline-flex;
  margin-top: 34px;
  padding: 15px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.download-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.contact-link,
footer a {
  color: var(--muted);
  text-underline-offset: 4px;
}

.hero {
  padding: 110px 0 100px;
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero-copy {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.catalogue {
  padding-bottom: 110px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0 0 5px;
  color: var(--muted);
}

.beats-grid {
  display: grid;
  gap: 22px;
}

.beat-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.beat-cover {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  background: #202020;
}

.beat-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.beat-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.beat-title {
  margin: 0 0 7px;
  font-size: 1.55rem;
}

.beat-details,
.beat-key {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.beat-key {
  white-space: nowrap;
}

.beat-player {
  width: 100%;
  height: 42px;
}

.license-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.license-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.license-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.license-button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.empty-state {
  padding: 75px 30px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}

.empty-state p {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.empty-state span {
  color: var(--muted);
}

.license-info {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.license-info h2 {
  max-width: 650px;
}

.license-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.license-summary article {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.license-summary strong {
  font-size: 1.1rem;
}

.license-summary span {
  color: var(--muted);
  line-height: 1.6;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 80px 0 75px;
  }

  .beat-card {
    grid-template-columns: 1fr;
  }

  .beat-cover {
    aspect-ratio: 1;
    min-height: 0;
  }

  .license-options,
  .license-summary {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 10px;
  }
}
