@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");
:root {
  --bg: #12110f;
  --panel: #1a1916;
  --line: #2c2a26;
  --text: #f2eee4;
  --muted: #9b9486;
  --gold: #d4bc6a;
  --gold-2: #8a7038;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 "IBM Plex Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.button, .signup, .play, .get {
  transition: transform 140ms var(--ease-out), background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.button:active, .signup:active, .play:active, .get:active { transform: scale(0.97); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.04em; line-height: 1.15; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #12110ff5;
  z-index: 20;
}
.logo { font-weight: 700; letter-spacing: 0.18em; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { display: block; width: 32px; height: 32px; flex: none; margin: -2px 0; }
.logo-text { white-space: nowrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand img { display: block; width: 28px; height: 28px; }
.menu { display: flex; gap: 18px; font-size: 12px; letter-spacing: 0.08em; }
.menu a[aria-current="page"] { color: var(--gold); }
.search { display: flex; flex: 1 1 260px; min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.search input { flex: 1; background: transparent; border: 0; padding: 9px 12px; min-width: 0; }
.search button { padding: 0 12px; color: var(--muted); }
.account { display: flex; gap: 14px; align-items: center; font-size: 12px; margin-left: auto; }
.account form { margin: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.08em; }
.lang-switch button { color: var(--muted); padding: 0; line-height: 1; }
.lang-switch button[aria-current="true"] { color: var(--gold); }
.lang-bar { color: var(--muted); }
.signup { border: 1px solid var(--gold); color: var(--gold); padding: 7px 12px; border-radius: 3px; }
.text { color: var(--muted); }
.flash { background: #1d2a18; color: #d7e8b8; padding: 10px 28px; }

.store, .detail { max-width: 1280px; margin: 0 auto; padding: 28px 28px 120px; }
.store.cinematic { max-width: none; padding: 0 0 120px; }
.store.cinematic .filters,
.store.cinematic .sample-table,
.store.cinematic .pages { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
.store.cinematic .filters { padding-top: 28px; }
.stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(820px 62% at 74% 40%, rgba(212, 188, 106, 0.16), transparent 58%),
    #12110f;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #12110f 8%, rgba(18, 17, 15, 0.42) 32%, transparent 54%);
  pointer-events: none;
  z-index: 1;
}
.stage-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: 4.5rem 48px 5rem;
  text-shadow: 0 10px 36px #12110f;
}
.stage-copy h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; letter-spacing: -0.045em; }
.stage-copy p { color: #c9c0ae; max-width: 36em; }
.stage.still { background-size: cover; }
.shop-nav {
  display: flex;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px 0;
  border-bottom: 1px solid var(--line);
}
.shop-nav a {
  padding-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.shop-nav a:hover,
.shop-nav a[aria-current="page"] { color: var(--gold); }
.shop-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--gold);
  margin-bottom: -1px;
}
.eyebrow { font-size: 11px; letter-spacing: 0.16em; color: var(--gold); }
.hero-store { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-bottom: 28px; padding: 28px; }
.hero-store p { color: var(--muted); max-width: 42em; }
.pack-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pack-strip a { display: block; background: var(--panel); border: 1px solid var(--line); padding: 12px; }
.pack-strip span { display: block; color: var(--muted); font-size: 11px; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.filters label { display: grid; gap: 6px; font-size: 11px; color: var(--muted); }
.filters select, .filters input, .form-panel input, .form-panel textarea, .form-panel select {
  background: var(--panel); border: 1px solid var(--line); padding: 8px 10px; border-radius: 3px;
}
.bpm { display: flex; gap: 6px; }
.bpm input { width: 72px; }
.button {
  background: var(--gold); color: #1b1406; padding: 10px 16px; border-radius: 3px; font-weight: 600;
}
a.button:hover { color: #1b1406; }
.button.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
a.button.ghost:hover { color: var(--gold); }
.muted { color: var(--muted); }

.sample-table { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 40px minmax(0, 2.4fr) 0.8fr 0.8fr 0.7fr 0.5fr 0.5fr 0.7fr 80px;
  gap: 10px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.row.playing { background: #1c1910; }
.play { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }
.row.playing .play, .play:hover { border-color: var(--gold); color: var(--gold); }
.meta .name { font-weight: 600; }
.meta p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.tag, .num, .kind, .lock { font-size: 12px; color: var(--muted); }
.get { color: var(--gold); font-size: 12px; }
.empty { padding: 40px 8px; color: var(--muted); }

.pages { display: flex; justify-content: center; gap: 20px; margin-top: 24px; }
.detail .crumb { color: var(--muted); font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 36px; }
.vst-hero { margin: 20px 0; }
.vst-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
  color: inherit;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.vst-card:hover { color: inherit; border-color: var(--gold-2); }
.vst-card-hero {
  background: linear-gradient(160deg, #201c12, #141416);
  border-color: var(--gold-2);
  padding: 28px;
}
.vst-card .button { display: inline-block; margin-top: 8px; }
.vst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.price { font-size: 22px; }

.vst-product {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: start;
  margin: 24px 0 40px;
}
.vst-media { display: grid; gap: 16px; }
.vst-plugin-photo img, .vst-cover img, .vst-performer img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.vst-plugin-photo figcaption, .vst-cover figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.plugin-ui {
  background: linear-gradient(180deg, #2a261c, #141310);
  border: 1px solid var(--gold-2);
  padding: 18px 20px 22px;
}
.plugin-ui-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-bottom: 1px solid #3a3426;
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.plugin-ui-top span { color: var(--muted); font-size: 12px; }
.plugin-knobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.knob { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.knob i {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 2px solid var(--gold-2);
  background: #1a1814;
  box-shadow: inset 0 0 0 1px #3a3426;
  position: relative;
}
.knob i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 2px;
  height: 12px;
  background: var(--gold);
  transform: rotate(-35deg);
  transform-origin: bottom center;
}
.plugin-keys {
  margin-top: 22px;
  height: 48px;
  background: repeating-linear-gradient(90deg, #f2eee4 0 16px, #12110f 16px 20px);
  opacity: 0.8;
}
.vst-buy {
  position: sticky;
  top: 80px;
  background: var(--panel);
  border: 1px solid var(--gold-2);
  padding: 22px;
}
.vst-buy h1 { font-size: clamp(26px, 3vw, 34px); }
.vst-buy .actions { margin: 16px 0 8px; }
.vst-buy .actions form { margin: 0; }
.vst-section { margin: 0 0 32px; }
.vst-section h2 { font-size: 16px; letter-spacing: 0.04em; }
.vst-section ul { margin: 0; padding-left: 18px; color: var(--muted); }
.vst-section li { margin: 6px 0; }
.vst-demo .button { margin-top: 4px; }
.vst-video {
  position: relative;
  padding-top: 56.25%;
  border: 1px solid var(--line);
  background: #0d0c0b;
}
.vst-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vst-performer img { max-width: 220px; margin-bottom: 12px; }
.vst-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.library-actions { display: flex; gap: 12px; align-items: center; }
.download-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.download-list .button { flex: 0 0 auto; padding: 8px 14px; font-size: 12px; }

.form-page { max-width: 560px; margin: 0 auto; padding: 48px 28px 120px; }
.form-panel { background: var(--panel); border: 1px solid var(--line); padding: 24px; }
.form-panel label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-panel input, .form-panel textarea, .form-panel select { width: 100%; margin-bottom: 12px; }
.form-panel input[type="checkbox"] { width: auto; margin-right: 8px; }
.teacher-panel { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.teacher-panel h2 { font-size: 1.15rem; margin-bottom: 8px; }
.teacher-panel .form-panel { margin-top: 16px; }
.teacher-panel .button.ghost { margin-top: 12px; }
.helptext, .errorlist { color: var(--muted); font-size: 12px; }
.errorlist { color: #e08a8a; }

.foot { padding: 28px 28px 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.foot div { display: flex; gap: 16px; margin-top: 12px; }

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 12px; align-items: center;
  background: #16140f; border-top: 1px solid var(--line); padding: 10px 20px;
}
.player[hidden] { display: none; }
.player button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; }
.now { min-width: 160px; max-width: 280px; }
.now small { color: var(--muted); display: block; }
.player input[type="range"] { flex: 1; accent-color: var(--gold); }
#volume { max-width: 90px; }
.dl { color: var(--gold); font-size: 12px; }

@media (max-width: 1000px) {
  .hero-store, .vst-grid, .vst-product, .vst-specs { grid-template-columns: 1fr; }
  .vst-buy { position: static; }
  .stage canvas { opacity: 0.55; }
  .stage::after { background: linear-gradient(180deg, #12110f 18%, rgba(18, 17, 15, 0.78) 48%, transparent 78%); }
  .stage-copy { padding: 3.5rem 24px 3rem; }
  .row { grid-template-columns: 40px 1fr 70px; }
  .tag, .num, .kind { display: none; }
}
@media (max-width: 720px) {
  .top { padding: 4px 12px 8px; gap: 0 12px; }
  .logo { order: 1; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.12em; }
  .logo-mark { width: 30px; height: 30px; }
  .account { order: 2; margin-left: auto; }
  .lang-switch button { min-width: 44px; min-height: 44px; }
  .menu { order: 3; flex: 1 1 100%; flex-wrap: wrap; gap: 0 4px; overflow: visible; min-width: 0; }
  .menu a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
  .store, .detail { padding: 20px 16px 130px; }
  .shop-nav { padding-left: 16px; padding-right: 16px; }
  .foot { padding-left: 16px; padding-right: 16px; }
  .foot div { flex-wrap: wrap; }
  .foot a { min-height: 44px; display: inline-flex; align-items: center; }
  .player { flex-wrap: wrap; }
  #progress { order: 5; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .signup, .play, .get { transition: none; }
}
