:root {
  --bg: #090909;
  --surface: #111111;
  --surface-2: #171717;
  --line: rgba(255,255,255,.11);
  --text: #f4f4f0;
  --muted: #929292;
  --accent: #d7ff3f;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.site-header {
  height: 82px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 42px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(9,9,9,.82); backdrop-filter: blur(16px); z-index: 30;
}
.logo { font: 700 20px/1 "Space Grotesk", sans-serif; letter-spacing: -.8px; }
.logo span { font-weight: 400; margin-left: 4px; }
.desktop-nav { display: flex; gap: 34px; margin-left: 90px; }
.desktop-nav a, .header-actions button, footer a { color: #bdbdbd; font-size: 13px; transition: color .2s; }
.desktop-nav a:hover, footer a:hover { color: white; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.currency, .cart-button, .menu-button {
  border: 0; background: none; color: #ccc; padding: 8px;
}
.cart-button { display: flex; gap: 9px; align-items: center; }
.cart-button b { min-width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-size: 10px; }
.menu-button { display: none; font-size: 22px; }
.mobile-menu { display: none; }

.hero {
  min-height: calc(100vh - 82px); max-width: var(--max); margin: auto; padding: 90px 42px 28px;
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
}
.hero-content { position: relative; z-index: 2; padding-bottom: 55px; }
.eyebrow { font-size: 10px; letter-spacing: 2.7px; color: #7e7e7e; margin: 0 0 24px; font-weight: 700; }
.hero h1 { font: 600 clamp(64px, 8vw, 122px)/.86 "Space Grotesk", sans-serif; letter-spacing: -6px; margin: 0; }
.hero h1 em, h2 em { font-style: normal; color: #888; }
.hero-copy { color: #aaa; max-width: 440px; line-height: 1.65; font-size: 15px; margin: 35px 0 30px; }
.hero-buttons { display: flex; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 25px; padding: 16px 19px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.button-light { background: var(--text); color: #080808; }
.button-ghost { border: 1px solid var(--line); color: #ddd; }
.hero-art { min-height: 550px; position: relative; display: grid; place-items: center; }
.hero-card {
  width: min(390px, 70%); aspect-ratio: 1; position: relative; z-index: 2; padding: 28px;
  background: linear-gradient(145deg, #303030, #101010 65%); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 30px 40px 100px rgba(0,0,0,.65); transform: rotate(7deg);
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-card span { font-size: 9px; letter-spacing: 3px; color: #aaa; }
.hero-card strong { font: 600 58px/.85 "Space Grotesk"; letter-spacing: -3px; }
.hero-card small { font-size: 9px; letter-spacing: 2px; color: #aaa; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-1 { width: 390px; height: 390px; background: radial-gradient(circle at 35% 35%, #555, #101010 60%); }
.orb-2 { width: 130px; height: 130px; right: 2%; bottom: 16%; border: 1px solid #333; }
.hero-bottom { position: absolute; bottom: 25px; left: 42px; right: 42px; display: flex; gap: 35px; font-size: 9px; letter-spacing: 2px; color: #5d5d5d; }
.hero-bottom .scroll { margin-left: auto; }

.store-section, .licenses, .manifesto, .newsletter { max-width: var(--max); margin: auto; padding: 120px 42px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
.section-heading h2, .manifesto h2, .newsletter h2 { font: 500 clamp(42px, 5vw, 72px)/.95 "Space Grotesk"; letter-spacing: -3px; margin: 0; }
.section-description { color: #777; max-width: 300px; line-height: 1.5; font-size: 13px; }
.filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; display: flex; justify-content: space-between; gap: 15px; }
.genre-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter, #sortSelect { border: 1px solid transparent; background: transparent; color: #777; padding: 9px 13px; font-size: 11px; }
.filter.active, .filter:hover { border-color: var(--line); color: white; }
#sortSelect { border-color: var(--line); color: #aaa; outline: none; }
.beat-list { margin-top: 5px; }
.beat {
  display: grid; grid-template-columns: 65px 1fr 120px 90px 125px; align-items: center;
  gap: 20px; min-height: 92px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.beat:hover { background: rgba(255,255,255,.025); }
.beat-cover { width: 58px; height: 58px; display: grid; place-items: center; font: 600 16px "Space Grotesk"; background: linear-gradient(135deg, #303030, #111); }
.beat-title { display: flex; flex-direction: column; gap: 6px; }
.beat-title strong { font-size: 15px; }
.beat-title span, .beat-meta, .beat-price { font-size: 11px; color: #777; }
.beat-meta { display: flex; gap: 18px; }
.beat-actions { display: flex; align-items: center; justify-content: end; gap: 10px; }
.play-btn, .buy-btn { border: 1px solid var(--line); background: transparent; color: #ddd; padding: 10px 12px; font-size: 10px; }
.play-btn:hover, .buy-btn:hover { border-color: #666; }
.buy-btn { background: white; color: #090909; border-color: white; font-weight: 700; }
.buy-btn:hover { background: var(--accent); border-color: var(--accent); }
.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr 260px; gap: 30px; align-items: start; }
.manifesto-number { color: #555; font-size: 11px; }
.manifesto-copy { color: #777; line-height: 1.7; font-size: 13px; }
.license-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.license-card { background: var(--bg); padding: 32px; min-height: 340px; display: flex; flex-direction: column; position: relative; }
.license-card > span { color: #555; font-size: 10px; }
.license-card h3 { font: 600 24px "Space Grotesk"; margin: 55px 0 12px; }
.license-card p { color: #777; font-size: 13px; line-height: 1.6; max-width: 260px; }
.license-card strong { margin-top: auto; font: 500 25px "Space Grotesk"; }
.license-btn { margin-top: 18px; padding: 13px; background: transparent; border: 1px solid var(--line); color: white; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.featured-license { background: #121212; }
.popular { position: absolute; right: 24px; top: 24px; background: var(--accent); color: #080808; font-size: 8px; font-weight: 800; letter-spacing: 1px; padding: 6px 8px; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; border-top: 1px solid var(--line); }
.newsletter form { padding-top: 30px; }
.newsletter label { display: block; color: #777; font-size: 10px; letter-spacing: 1px; margin-bottom: 12px; }
.email-row { display: flex; border-bottom: 1px solid #444; }
.email-row input { flex: 1; border: 0; outline: 0; background: transparent; color: white; padding: 13px 0; }
.email-row button { border: 0; background: transparent; color: white; font-size: 11px; }
#formMessage { display: block; margin-top: 12px; color: var(--accent); }
footer { border-top: 1px solid var(--line); padding: 35px 42px; max-width: 100%; }
.footer-top, .footer-bottom { max-width: var(--max); margin: auto; display: flex; justify-content: space-between; }
.footer-top p { margin: 0; color: #666; font-size: 11px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 35px; padding-top: 20px; color: #555; font-size: 10px; }
.footer-bottom div { display: flex; gap: 22px; }
.player {
  position: fixed; z-index: 40; left: 18px; right: 18px; bottom: 18px; height: 72px;
  background: rgba(18,18,18,.96); border: 1px solid #2b2b2b; backdrop-filter: blur(18px);
  display: grid; grid-template-columns: 48px 190px 42px 1fr 115px; gap: 14px; align-items: center;
  padding: 10px 13px; transform: translateY(120%); transition: transform .3s;
}
.player.visible { transform: translateY(0); }
.player-art { width: 48px; height: 48px; display: grid; place-items: center; background: #292929; font-size: 10px; }
.player-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.player-info strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-info span { color: #666; font-size: 9px; }
.play-main { border: 0; border-radius: 50%; width: 35px; height: 35px; background: white; color: black; font-size: 10px; }
.player-progress { display: flex; align-items: center; gap: 10px; color: #555; font-size: 9px; }
#progress { width: 100%; accent-color: white; }
.add-player-cart { border: 1px solid var(--line); background: transparent; color: white; padding: 11px; font-size: 10px; }
.cart-panel { position: fixed; z-index: 60; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: #0d0d0d; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
.cart-panel.open { transform: translateX(0); }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.65); opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.cart-header { padding: 25px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.cart-header h2 { margin: 0; font: 500 22px "Space Grotesk"; }
.cart-header button { background: none; color: white; border: 0; font-size: 28px; }
.cart-items { flex: 1; overflow: auto; padding: 10px 25px; }
.empty-cart { color: #666; font-size: 13px; padding: 50px 0; text-align: center; }
.cart-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-item-cover { width: 50px; height: 50px; background: #222; display: grid; place-items: center; font-size: 9px; }
.cart-item strong { font-size: 12px; }
.cart-item span { display: block; color: #666; font-size: 10px; margin-top: 5px; }
.remove { background: none; border: 0; color: #666; font-size: 10px; }
.cart-footer { padding: 25px; border-top: 1px solid var(--line); }
.cart-footer > div { display: flex; justify-content: space-between; margin-bottom: 18px; }
.cart-footer span { color: #777; font-size: 12px; }
.cart-footer strong { font: 500 20px "Space Grotesk"; }
.checkout { width: 100%; border: 0; background: white; color: black; padding: 15px; font-weight: 700; font-size: 11px; }
.cart-footer small { display: block; color: #555; font-size: 9px; margin-top: 12px; text-align: center; }
.currency-menu { position: fixed; z-index: 70; right: 135px; top: 65px; display: none; background: #151515; border: 1px solid var(--line); padding: 5px; }
.currency-menu.open { display: block; }
.currency-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: #aaa; padding: 9px 15px; font-size: 11px; }
.currency-menu button:hover { background: #222; color: white; }

@media (max-width: 850px) {
  .site-header { padding: 0 20px; }
  .desktop-nav, .currency { display: none; }
  .menu-button { display: block; }
  .mobile-menu { position: fixed; z-index: 29; top: 82px; left: 0; right: 0; background: #0c0c0c; border-bottom: 1px solid var(--line); display: none; padding: 12px 20px; }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 17px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 70px 20px 100px; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(58px, 17vw, 100px); letter-spacing: -5px; }
  .hero-art { min-height: 380px; }
  .hero-card { width: 270px; }
  .hero-card strong { font-size: 45px; }
  .hero-bottom { left: 20px; right: 20px; gap: 12px; }
  .hero-bottom span:nth-child(2), .hero-bottom span:nth-child(3) { display: none; }
  .store-section, .licenses, .manifesto, .newsletter { padding: 85px 20px; }
  .section-heading { display: block; }
  .section-description { margin-top: 25px; }
  .filters { display: block; }
  #sortSelect { margin-top: 12px; width: 100%; }
  .beat { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 10px 0; }
  .beat-cover { width: 48px; height: 48px; }
  .beat-meta { display: none; }
  .beat-actions { grid-column: 3; grid-row: 1; }
  .buy-btn { display: none; }
  .beat-price { grid-column: 2; }
  .manifesto { grid-template-columns: 1fr; gap: 20px; }
  .license-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; gap: 20px; }
  footer { padding: 30px 20px; }
  .player { left: 8px; right: 8px; bottom: 8px; height: 65px; grid-template-columns: 42px 1fr 35px; gap: 10px; }
  .player-art { width: 42px; height: 42px; }
  .player-progress { grid-column: 1 / 3; grid-row: 2; display: none; }
  .add-player-cart { display: none; }
}
