:root {
  color-scheme: dark;
  --bg: #050711;
  --panel: rgba(9, 16, 31, 0.72);
  --panel-strong: rgba(12, 21, 39, 0.9);
  --glass: rgba(255, 255, 255, 0.075);
  --glass-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f3f7ff;
  --muted: rgba(232, 240, 255, 0.72);
  --soft: rgba(232, 240, 255, 0.54);
  --blue: #59d3ff;
  --blue-2: #2f83ff;
  --violet: #a98bff;
  --danger: #ff6d83;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
img { max-width: 100%; display: block; }

.site-shell { position: relative; min-height: 100vh; isolation: isolate; }
.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(180deg, rgba(5, 7, 17, .28), #050711 72%),
    url("img/bg_studio_dark.webp") center top / cover no-repeat;
  transform: translateZ(0);
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 3px 3px;
}
.ambient { position: fixed; border-radius: 999px; filter: blur(80px); opacity: .5; z-index: -2; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; left: -130px; top: 140px; background: rgba(35, 170, 255, .36); }
.ambient-two { width: 520px; height: 520px; right: -200px; top: 420px; background: rgba(151, 104, 255, .28); }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; position: relative; }

.nav {
  position: fixed;
  inset: 18px 0 auto 0;
  z-index: 20;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7, 14, 27, .58);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 20px 70px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.08);
  border-radius: 999px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.nav.scrolled .nav-inner {
  background: rgba(7, 14, 27, .78);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 48px; height: 48px; border-radius: 16px; filter: drop-shadow(0 10px 22px rgba(67, 191, 255, .22)); }
.brand strong { display: block; font-size: 15px; letter-spacing: .01em; line-height: 1.1; }
.brand small { display: block; margin-top: 3px; font-size: 11px; color: var(--soft); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; background: rgba(255,255,255,.045); }
.nav-links a { padding: 11px 15px; border-radius: 999px; color: var(--muted); font-size: 13px; transition: color .2s ease, background .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.09); }
.nav-cta, .button, .chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav-cta { height: 48px; padding: 0 20px; border-radius: 999px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 14px 35px rgba(47, 131, 255, .28); font-size: 13px; font-weight: 800; }
.nav-cta:hover, .button:hover, .chip-button:hover { transform: translateY(-2px); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.08); align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.menu-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 999px; transition: transform .2s ease; }
body.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.hero { min-height: 100vh; display: flex; align-items: center; padding: 142px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 30%, rgba(89,211,255,.18), transparent 30%), radial-gradient(circle at 75% 42%, rgba(169,139,255,.18), transparent 28%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 16px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 800; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(89,211,255,.7); animation: pulse 1.6s infinite; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.75rem, 4.75rem, 5.125rem); line-height: .98; letter-spacing: 0; }
h2 { margin-bottom: 18px; font-size: clamp(2.125rem, 3.35rem, 3.625rem); line-height: 1.03; letter-spacing: 0; }
h3 { font-size: 22px; letter-spacing: 0; }
.hero-subtitle, .section-head p, .learn-copy > p, .seo-card > p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-subtitle { max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { min-height: 54px; padding: 0 24px; border-radius: 999px; font-weight: 850; }
.button-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: white; box-shadow: 0 18px 44px rgba(47, 131, 255, .30); }
.button-ghost { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); backdrop-filter: blur(16px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 560px; margin-top: 36px; }
.hero-stats div { padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.055); backdrop-filter: blur(18px); }
.hero-stats strong { display: block; font-size: 30px; line-height: 1; }
.hero-stats span { display: block; margin-top: 8px; color: var(--soft); font-size: 12px; }

.hero-visual { position: relative; }
.visual-card {
  position: relative;
  min-height: 640px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 44px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.10);
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(140%);
  transform-style: preserve-3d;
}
.visual-card::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 120deg, transparent, rgba(89,211,255,.20), transparent, rgba(169,139,255,.18), transparent); animation: spin 10s linear infinite; opacity: .8; }
.visual-card::after { content: ""; position: absolute; inset: 1px; border-radius: 43px; background: linear-gradient(180deg, rgba(8,14,28,.35), rgba(6,10,21,.82)); }
.visual-topbar { position: relative; z-index: 2; height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.11); }
.visual-topbar span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.28); }
.visual-topbar span:nth-child(1) { background: #ff6d83; }
.visual-topbar span:nth-child(2) { background: #ffd166; }
.visual-topbar span:nth-child(3) { background: #35f2a1; }
.visual-topbar p { margin: 0 0 0 auto; font-size: 12px; color: var(--soft); }
.hero-character { position: absolute; z-index: 3; inset: 34px -95px -30px -75px; width: calc(100% + 170px); max-width: none; filter: drop-shadow(0 40px 60px rgba(0,0,0,.4)); animation: floaty 4.8s ease-in-out infinite; }
.floating-widget { position: absolute; z-index: 4; padding: 15px 17px; border-radius: 20px; background: rgba(7, 14, 27, .66); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(20px); box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.floating-widget b, .floating-widget small { display: block; }
.floating-widget small { margin-top: 4px; color: var(--soft); }
.widget-one { left: 30px; bottom: 124px; }
.widget-two { right: 26px; top: 116px; }

.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head p { max-width: 720px; }
.studio-panel { border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-xl); background: rgba(7, 13, 26, .68); backdrop-filter: blur(26px) saturate(140%); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.studio-toolbar { display: grid; grid-template-columns: 250px minmax(230px, 1fr) auto; gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.11); }
.tool-group { min-height: 62px; padding: 10px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.045); }
.tool-label { display: block; color: var(--soft); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
select { width: 100%; color: #fff; background: transparent; border: 0; outline: 0; font-weight: 780; }
select option, select optgroup { color: #0a1020; }
.tempo-group { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.tempo-group .tool-label { grid-column: 1 / -1; margin-bottom: -3px; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.chip-button { min-height: 40px; padding: 0 13px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 800; }
.chip-button.active, .chip-button[aria-pressed="true"] { background: rgba(89,211,255,.18); border-color: rgba(89,211,255,.4); color: #cbf3ff; box-shadow: 0 0 0 4px rgba(89,211,255,.08); }
.chip-button.danger { color: #ffd1d8; }
.status-strip { display: flex; justify-content: space-between; gap: 18px; padding: 16px 22px; color: var(--soft); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08); }
.status-strip span:first-child { color: #c8f1ff; font-weight: 800; }
.piano-stage { padding: 36px 22px 28px; overflow-x: auto; }
.piano { position: relative; min-width: 980px; height: 310px; margin: 0 auto; display: flex; justify-content: center; align-items: flex-start; padding: 18px 18px 28px; border-radius: 34px; background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 26px 60px rgba(0,0,0,.34); }
.key { position: relative; user-select: none; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px; transition: transform .08s ease, filter .08s ease, box-shadow .08s ease; }
.key.white { width: 70px; height: 250px; margin: 0 2px; border-radius: 0 0 18px 18px; color: rgba(6,10,20,.72); background: linear-gradient(180deg, #fcfdff, #d9e7f6 82%, #b9c7d9); box-shadow: inset 0 -10px 20px rgba(0,0,0,.10), inset 0 1px 0 #fff; z-index: 1; }
.key.black { position: absolute; top: 18px; width: 44px; height: 154px; border-radius: 0 0 14px 14px; color: rgba(255,255,255,.66); background: linear-gradient(180deg, #172036, #04070f 82%); box-shadow: inset 0 -12px 22px rgba(255,255,255,.04), 0 14px 24px rgba(0,0,0,.45); z-index: 3; }
.key small { display: block; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; opacity: .88; }
.key.active { transform: translateY(5px); filter: brightness(1.08); box-shadow: 0 0 0 4px rgba(89,211,255,.14), 0 0 26px rgba(89,211,255,.38); }
.key.black.active { transform: translateY(4px); }
.chord-section { display: grid; grid-template-columns: .65fr 1fr; gap: 20px; padding: 24px; border-top: 1px solid rgba(255,255,255,.10); }
.chord-section h3 { margin-bottom: 6px; }
.chord-section p { margin-bottom: 0; color: var(--soft); line-height: 1.6; }
.chord-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.chord-pad { min-height: 76px; border-radius: 20px; border: 1px solid rgba(255,255,255,.13); background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); color: var(--text); cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.chord-pad:hover, .chord-pad.active { transform: translateY(-2px); border-color: rgba(89,211,255,.42); background: rgba(89,211,255,.12); }
.chord-pad strong, .chord-pad small { display: block; }
.chord-pad strong { font-size: 21px; }
.chord-pad small { margin-top: 5px; color: var(--soft); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card, .practice-card, .seo-card, .faq-list details { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); backdrop-filter: blur(22px) saturate(140%); box-shadow: 0 18px 60px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08); }
.feature-card { min-height: 260px; border-radius: 30px; padding: 24px; }
.feature-card p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 28px; color: #d9f7ff; background: rgba(89,211,255,.14); border: 1px solid rgba(89,211,255,.24); font-size: 27px; }

.learn-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 48px; }
.lesson-list { display: grid; gap: 12px; margin-top: 30px; }
.lesson-item { text-align: left; padding: 18px; border-radius: 22px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); color: var(--text); cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.lesson-item:hover, .lesson-item.active { transform: translateY(-2px); background: rgba(89,211,255,.11); border-color: rgba(89,211,255,.32); }
.lesson-item strong, .lesson-item span { display: block; }
.lesson-item span { margin-top: 6px; color: var(--soft); }
.practice-card { border-radius: 34px; overflow: hidden; }
.practice-card img { width: 100%; aspect-ratio: 1200 / 620; object-fit: cover; }
.practice-content { padding: 24px; }
.practice-content span { display: inline-flex; margin-bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(89,211,255,.13); color: #c8f2ff; border: 1px solid rgba(89,211,255,.26); font-size: 12px; font-weight: 850; }
.practice-content p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }

.seo-card { display: grid; grid-template-columns: .82fr 1fr; gap: 32px; align-items: center; border-radius: 34px; padding: 32px; }
.seo-card h2 { font-size: clamp(1.875rem, 2.45rem, 2.875rem); }

.faq-list { display: grid; gap: 12px; max-width: 860px; }
details { border-radius: 24px; overflow: hidden; }
summary { cursor: pointer; padding: 20px 22px; font-weight: 850; }
details p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.7; }

.footer { padding: 50px 0 70px; border-top: 1px solid rgba(255,255,255,.10); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--soft); }
.footer-brand img { width: 44px; height: 44px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pulse { 70% { box-shadow: 0 0 0 11px rgba(89,211,255,0); } 100% { box-shadow: 0 0 0 0 rgba(89,211,255,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translate3d(0,0,0) rotate(.2deg); } 50% { transform: translate3d(0,-14px,0) rotate(-.6deg); } }

@media (max-width: 1040px) {
  .hero-grid, .learn-grid, .seo-card { grid-template-columns: 1fr; }
  .hero-visual { max-width: 680px; margin: 0 auto; width: 100%; }
  .studio-toolbar { grid-template-columns: 1fr; }
  .tool-actions { justify-content: flex-start; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .chord-section { grid-template-columns: 1fr; }
  .chord-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 80px 0; }
  .nav { inset: 12px 0 auto 0; }
  .nav-inner { width: calc(100% - 24px); height: 64px; padding: 8px 9px 8px 12px; }
  .brand img { width: 44px; height: 44px; }
  .nav-links { position: fixed; left: 12px; right: 12px; top: 86px; display: grid; gap: 8px; padding: 14px; border-radius: 26px; background: rgba(7, 14, 27, .92); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  body.menu-open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 14px 16px; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding-top: 112px; }
  h1 { font-size: clamp(2.35rem, 3.15rem, 3.875rem); }
  .hero-stats { grid-template-columns: 1fr; }
  .visual-card { min-height: 520px; border-radius: 32px; }
  .visual-card::after { border-radius: 31px; }
  .hero-character { inset: 54px -95px -20px -95px; width: calc(100% + 200px); }
  .floating-widget { transform: scale(.88); transform-origin: center; }
  .widget-one { left: 14px; bottom: 96px; }
  .widget-two { right: 8px; top: 84px; }
  .feature-grid { grid-template-columns: 1fr; }
  .studio-panel { border-radius: 28px; }
  .piano-stage { padding: 22px 14px; }
  .piano { min-width: 820px; height: 270px; }
  .key.white { width: 58px; height: 215px; }
  .key.black { width: 38px; height: 132px; }
  .chord-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-card { padding: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
/* Studio-only revision overrides */
/* Studio-only revision overrides */
.studio-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(89, 211, 255, .14), transparent 36%),
    radial-gradient(circle at 85% 28%, rgba(169, 139, 255, .13), transparent 30%);
}

.instrument-nav {
  max-width: 640px;
  overflow: hidden;
}

.nav-placeholder {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(232, 240, 255, .48);
  font-size: 13px;
  font-weight: 760;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.nav-placeholder::after {
  content: "Soon";
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(232, 240, 255, .42);
  background: rgba(255,255,255,.045);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.studio-only {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 138px 0 76px;
}

.studio-hero {
  display: block;
  margin-bottom: 30px;
}

.studio-copy { max-width: 920px; }
.studio-copy h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.625rem, 4.35rem, 4.75rem);
  line-height: .98;
}

.studio-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 720px;
  margin-top: 8px;
}

.studio-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(232, 240, 255, .78);
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  font-size: 12px;
  font-weight: 820;
}

.footer-minimal {
  padding: 28px 0 42px;
  background: linear-gradient(180deg, rgba(5,7,17,0), rgba(5,7,17,.44));
}
.footer-minimal p { margin: 0; }

@media (max-width: 1120px) {
  .instrument-nav { max-width: 520px; }
  .nav-placeholder::after { display: none; }
}

@media (max-width: 900px) {
  .instrument-nav { max-width: none; }
  .studio-badges { max-width: none; }
}

@media (max-width: 780px) {
  .nav-links span.nav-placeholder { padding: 14px 16px; justify-content: space-between; min-height: auto; }
  .nav-placeholder::after { display: inline-flex; }
  .studio-only { display: block; padding: 116px 0 64px; }
  .studio-copy h1 { font-size: clamp(2.25rem, 2.95rem, 3.625rem); }
  .studio-badges { display: flex; gap: 8px; }
  .studio-badges span { min-height: 34px; padding: 0 11px; font-size: 11px; }
  .footer-minimal { padding-bottom: 32px; }
}

/* Header menu cleanup revision: no CTA, no cropped instrument items */
.nav-inner {
  width: min(1240px, calc(100% - 40px));
  padding-right: 16px;
}

.instrument-nav {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  overflow: visible;
  justify-content: center;
  gap: 4px;
}

.nav-links a,
.nav-placeholder {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-links a {
  padding: 0 14px;
  font-weight: 800;
}

.nav-placeholder {
  padding: 0 12px;
}

.nav-cta {
  display: none !important;
}

@media (max-width: 1120px) {
  .instrument-nav { gap: 2px; }
  .nav-links a { padding: 0 12px; }
  .nav-placeholder { padding: 0 11px; }
}

@media (max-width: 780px) {
  .nav-links a,
  .nav-placeholder {
    justify-content: space-between;
  }
}


/* Guitar studio page */
.guitar-section {
  padding-top: 132px;
}
.guitar-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .58fr);
  align-items: center;
  gap: 30px;
}
.guitar-toolbar {
  grid-template-columns: 250px 250px minmax(260px, 1fr);
}
.guitar-stage {
  padding: 28px 22px 30px;
  overflow-x: auto;
}
.fretboard {
  position: relative;
  min-width: 980px;
  padding: 24px 20px 22px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    linear-gradient(90deg, rgba(65, 34, 20, .72), rgba(22, 14, 15, .94)),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -24px 55px rgba(0,0,0,.35), 0 26px 70px rgba(0,0,0,.32);
}
.fretboard::before {
  content: "";
  position: absolute;
  inset: 24px 20px 22px 92px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc((100% / 13) - 2px), rgba(255,255,255,.28) calc((100% / 13) - 2px) calc(100% / 13));
  opacity: .8;
}
.guitar-string {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 62px repeat(13, minmax(56px, 1fr));
  align-items: center;
  min-height: 46px;
}
.guitar-string + .guitar-string { margin-top: 7px; }
.string-name {
  color: rgba(232,240,255,.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.string-name::after {
  content: "";
  position: absolute;
  left: 86px;
  right: 18px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.58), rgba(89,211,255,.32));
  box-shadow: 0 0 14px rgba(89,211,255,.16);
  transform: translateY(-50%);
}
.fret-button {
  position: relative;
  z-index: 3;
  width: 38px;
  height: 34px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(232,240,255,.76);
  background: rgba(255,255,255,.045);
  cursor: pointer;
  transition: transform .13s ease, background .13s ease, border-color .13s ease, box-shadow .13s ease;
  font-size: 10px;
  font-weight: 900;
}
.fret-button:hover,
.fret-button.active {
  transform: translateY(-2px) scale(1.04);
  color: #d9f9ff;
  background: rgba(89,211,255,.15);
  border-color: rgba(89,211,255,.42);
  box-shadow: 0 0 0 4px rgba(89,211,255,.08), 0 12px 22px rgba(0,0,0,.20);
}
.guitar-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.09);
}
.guitar-card-section {
  grid-template-columns: 1fr;
  border-top: 0;
  border-right: 1px solid rgba(255,255,255,.09);
}
.guitar-card-section:last-child { border-right: 0; }
.guitar-card-section p { max-width: 520px; }
.guitar-chord-grid,
.guitar-riff-grid {
  grid-template-columns: repeat(3, 1fr);
}
.guitar-chord-grid .chord-pad,
.guitar-riff-grid .chord-pad { min-height: 82px; }
.guitar-riff-grid .chord-pad strong { font-size: 18px; }
.guitar-riff-grid .chord-pad small { font-size: 11px; line-height: 1.35; }
.guitar-status-strip span:first-child { color: #d9f8ff; }

@media (max-width: 1040px) {
  .guitar-hero { grid-template-columns: 1fr; }
  .guitar-toolbar { grid-template-columns: 1fr; }
  .guitar-bottom-grid { grid-template-columns: 1fr; }
  .guitar-card-section { border-right: 0; border-top: 1px solid rgba(255,255,255,.09); }
}

@media (max-width: 780px) {
  .guitar-section { padding-top: 116px; }
  .guitar-stage { padding: 20px 14px; }
  .fretboard { min-width: 860px; border-radius: 28px; }
  .guitar-chord-grid,
  .guitar-riff-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Routed instrument-page revision: one focused page visible at a time */
.instrument-page:not(.is-active) {
  display: none !important;
}

.nav-links a.nav-placeholder {
  color: rgba(232, 240, 255, .58);
  cursor: pointer;
}

.nav-links a.nav-placeholder:hover,
.nav-links a.nav-placeholder.active {
  color: rgba(243, 247, 255, .92);
  background: rgba(255,255,255,.075);
}

.guitar-hero {
  display: block;
}

.guitar-hero .studio-copy {
  max-width: 940px;
}

.coming-panel {
  width: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 18% 20%, rgba(89,211,255,.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(169,139,255,.14), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  padding: clamp(26px, 5vw, 58px);
  overflow: hidden;
  position: relative;
}

.coming-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 135deg, transparent, rgba(89,211,255,.14), transparent, rgba(169,139,255,.14), transparent);
  opacity: .72;
  animation: spin 18s linear infinite;
  pointer-events: none;
}

.coming-panel > * {
  position: relative;
  z-index: 1;
}

.coming-panel h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.625rem, 4.35rem, 4.75rem);
  line-height: .98;
}

.coming-note {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

@media (max-width: 780px) {
  .coming-panel {
    min-height: 520px;
    border-radius: 28px;
  }

  .coming-panel h1 {
    font-size: clamp(2.25rem, 2.95rem, 3.625rem);
  }
}


/* Bass studio page */
.bass-section {
  padding-top: 132px;
}

.bass-hero {
  display: block;
}

.bass-hero .studio-copy {
  max-width: 980px;
}

.bass-toolbar {
  grid-template-columns: 270px 270px minmax(280px, 1fr);
}

.bass-stage {
  padding: 28px 22px 30px;
  overflow-x: auto;
}

.bass-fretboard {
  position: relative;
  min-width: 980px;
  padding: 26px 20px 24px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 18% 22%, rgba(89,211,255,.16), transparent 28%),
    radial-gradient(circle at 84% 28%, rgba(169,139,255,.12), transparent 34%),
    linear-gradient(90deg, rgba(20, 25, 35, .95), rgba(11, 13, 22, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -24px 55px rgba(0,0,0,.38), 0 26px 70px rgba(0,0,0,.32);
}

.bass-fretboard::before {
  content: "";
  position: absolute;
  inset: 26px 20px 24px 92px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc((100% / 13) - 2px), rgba(255,255,255,.24) calc((100% / 13) - 2px) calc(100% / 13));
  opacity: .72;
}

.bass-fretboard::after {
  content: "";
  position: absolute;
  left: 92px;
  right: 22px;
  top: 50%;
  height: 72%;
  transform: translateY(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, rgba(89,211,255,.10), transparent 32%, rgba(169,139,255,.08));
  filter: blur(18px);
  opacity: .7;
}

.bass-string {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 62px repeat(13, minmax(56px, 1fr));
  align-items: center;
  min-height: 56px;
}

.bass-string + .bass-string { margin-top: 9px; }

.bass-string-name {
  color: rgba(232,240,255,.84);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bass-string-name::after {
  content: "";
  position: absolute;
  left: 86px;
  right: 18px;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(206,230,255,.62), rgba(89,211,255,.30));
  box-shadow: 0 0 20px rgba(89,211,255,.15), inset 0 1px 0 rgba(255,255,255,.55);
  transform: translateY(-50%);
}

.bass-fret-button {
  position: relative;
  z-index: 3;
  width: 40px;
  height: 36px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(232,240,255,.76);
  background: rgba(255,255,255,.045);
  cursor: pointer;
  transition: transform .13s ease, background .13s ease, border-color .13s ease, box-shadow .13s ease;
  font-size: 10px;
  font-weight: 900;
}

.bass-fret-button:hover,
.bass-fret-button.active {
  transform: translateY(-2px) scale(1.05);
  color: #d9f9ff;
  background: rgba(89,211,255,.16);
  border-color: rgba(89,211,255,.44);
  box-shadow: 0 0 0 4px rgba(89,211,255,.08), 0 14px 24px rgba(0,0,0,.22);
}

.bass-bottom-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  border-top: 1px solid rgba(255,255,255,.09);
}

.bass-card-section {
  grid-template-columns: 1fr;
  border-top: 0;
  border-right: 1px solid rgba(255,255,255,.09);
}

.bass-card-section:last-child { border-right: 0; }
.bass-card-section p { max-width: 540px; }

.bass-note-grid {
  grid-template-columns: repeat(4, 1fr);
}

.bass-groove-grid {
  grid-template-columns: repeat(4, 1fr);
}

.bass-pad {
  min-height: 84px;
}

.bass-pad strong { font-size: 18px; }
.bass-pad small { font-size: 11px; line-height: 1.35; }
.bass-status-strip span:first-child { color: #d9f8ff; }

@media (max-width: 1040px) {
  .bass-toolbar { grid-template-columns: 1fr; }
  .bass-bottom-grid { grid-template-columns: 1fr; }
  .bass-card-section { border-right: 0; border-top: 1px solid rgba(255,255,255,.09); }
}

@media (max-width: 780px) {
  .bass-section { padding-top: 116px; }
  .bass-stage { padding: 20px 14px; }
  .bass-fretboard { min-width: 860px; border-radius: 28px; }
  .bass-note-grid,
  .bass-groove-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Drum studio page */
.drums-section {
  padding-top: 132px;
}

.drums-hero {
  display: block;
}

.drums-hero .studio-copy {
  max-width: 980px;
}

.drums-toolbar {
  grid-template-columns: 290px minmax(230px, 280px) minmax(320px, 1fr);
}

.drums-panel {
  overflow: hidden;
}

.drum-machine {
  padding: 28px 22px 30px;
  border-top: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 20% 10%, rgba(89,211,255,.12), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(169,139,255,.13), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.008));
}

.drum-pad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 14px;
}

.drum-pad {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(243,247,255,.90);
  background:
    radial-gradient(circle at 20% 14%, rgba(255,255,255,.16), transparent 22%),
    radial-gradient(circle at 78% 78%, rgba(89,211,255,.11), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.032));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 18px 42px rgba(0,0,0,.22);
  cursor: pointer;
  text-align: left;
  padding: 18px;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.drum-pad::before {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(89,211,255,.82), rgba(169,139,255,.72));
  opacity: .38;
  transform: scaleX(.72);
  transform-origin: left center;
  transition: transform .14s ease, opacity .14s ease;
}

.drum-pad::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 110deg, transparent, rgba(89,211,255,.14), transparent, rgba(169,139,255,.12), transparent);
  opacity: 0;
  transition: opacity .14s ease;
}

.drum-pad strong,
.drum-pad small,
.drum-pad kbd {
  position: relative;
  z-index: 1;
}

.drum-pad strong {
  display: block;
  font-size: 19px;
  font-weight: 920;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.drum-pad small {
  display: block;
  color: rgba(232,240,255,.58);
  font-size: 12px;
  line-height: 1.45;
  max-width: 170px;
}

.drum-pad kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(217,248,255,.86);
  background: rgba(8,15,28,.62);
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.drum-pad:hover,
.drum-pad.active {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(89,211,255,.38);
  box-shadow: 0 0 0 5px rgba(89,211,255,.07), 0 24px 50px rgba(0,0,0,.30);
  background:
    radial-gradient(circle at 20% 14%, rgba(255,255,255,.22), transparent 23%),
    radial-gradient(circle at 78% 78%, rgba(89,211,255,.20), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.046));
}

.drum-pad:hover::before,
.drum-pad.active::before {
  opacity: .9;
  transform: scaleX(1);
}

.drum-pad.active::after { opacity: .72; }

.drums-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  border-top: 1px solid rgba(255,255,255,.09);
}

.drums-card-section {
  grid-template-columns: 1fr;
  border-top: 0;
  border-right: 1px solid rgba(255,255,255,.09);
}

.drums-card-section:last-child { border-right: 0; }
.drums-card-section p { max-width: 560px; }

.drum-pattern-grid {
  grid-template-columns: repeat(3, 1fr);
}

.drum-pattern-grid .chord-pad {
  min-height: 84px;
}

.drum-pattern-grid .chord-pad strong {
  font-size: 17px;
}

.drum-pattern-grid .chord-pad small {
  font-size: 11px;
  line-height: 1.35;
}

.drum-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.drum-shortcuts span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(232,240,255,.68);
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 820;
}

.drums-status-strip span:first-child { color: #d9f8ff; }

@media (max-width: 1040px) {
  .drums-toolbar { grid-template-columns: 1fr; }
  .drum-pad-grid { grid-template-columns: repeat(2, 1fr); }
  .drums-bottom-grid { grid-template-columns: 1fr; }
  .drums-card-section { border-right: 0; border-top: 1px solid rgba(255,255,255,.09); }
}

@media (max-width: 780px) {
  .drums-section { padding-top: 116px; }
  .drum-machine { padding: 20px 14px; }
  .drum-pad-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .drum-pad { min-height: 112px; border-radius: 22px; padding: 15px; }
  .drum-pattern-grid,
  .drum-shortcuts { grid-template-columns: repeat(2, 1fr); }
}


/* Turntable Lab */
.turntable-section {
  padding-top: 132px;
}

.turntable-hero {
  display: block;
}

.turntable-hero .studio-copy {
  max-width: 1060px;
}

.turntable-toolbar {
  grid-template-columns: 300px minmax(230px, 280px) minmax(420px, 1fr);
}

.turntable-panel {
  overflow: hidden;
}

.turntable-stage {
  display: grid;
  grid-template-columns: minmax(380px, 0.94fr) minmax(300px, 0.66fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px 22px 30px;
  border-top: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 22% 18%, rgba(89,211,255,.15), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(169,139,255,.16), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.008));
}

.turntable-deck {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 42px;
  overflow: hidden;
  color: rgba(243,247,255,.94);
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)),
    radial-gradient(circle at 50% 50%, rgba(89,211,255,.12), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 28px 72px rgba(0,0,0,.30);
  cursor: pointer;
  isolation: isolate;
}

.turntable-deck::before {
  content: "";
  position: absolute;
  width: min(72%, 360px);
  aspect-ratio: 1;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(255,255,255,.16) 0 8%, transparent 8.5% 11%),
    repeating-radial-gradient(circle at center, rgba(255,255,255,.075) 0 1px, transparent 1px 13px),
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.08), transparent 24%),
    radial-gradient(circle, #050a14 0 54%, #101827 55% 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 68px rgba(0,0,0,.42), inset 0 0 36px rgba(89,211,255,.08);
  transition: transform .24s ease, filter .24s ease;
  z-index: 1;
}

.turntable-deck::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 16px;
  right: 12%;
  top: 25%;
  border-radius: 999px;
  transform: rotate(-18deg);
  transform-origin: right center;
  background: linear-gradient(90deg, rgba(230,242,255,.16), rgba(230,242,255,.82), rgba(89,211,255,.38));
  box-shadow: 0 18px 36px rgba(0,0,0,.30);
  z-index: 4;
}

.turntable-deck:hover::before,
.turntable-deck.is-spinning::before {
  transform: translate(-50%, -50%) rotate(18deg) scale(1.015);
  filter: drop-shadow(0 0 18px rgba(89,211,255,.16));
}

.turntable-deck.is-scratching::before {
  animation: scratchDeck .42s cubic-bezier(.2,.9,.2,1) both;
}

.turntable-deck.is-looping::before {
  animation: deckSpin 2.7s linear infinite;
}

.deck-ring {
  position: absolute;
  inset: 34px;
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,.10);
  z-index: 0;
}

.deck-ring-one {
  background: linear-gradient(135deg, rgba(89,211,255,.08), transparent 42%, rgba(169,139,255,.10));
}

.deck-ring-two {
  inset: 72px;
  border-radius: 34px;
  background: radial-gradient(circle at 24% 26%, rgba(255,255,255,.08), transparent 28%);
}

.deck-label,
.deck-spindle {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.deck-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: rgba(10,18,32,.84);
  background: linear-gradient(135deg, rgba(217,248,255,.92), rgba(169,139,255,.78));
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .08em;
  box-shadow: 0 0 0 8px rgba(255,255,255,.05);
}

.deck-spindle {
  width: 12px;
  height: 12px;
  margin-top: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 28px rgba(89,211,255,.42);
}

.turntable-mixer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.026));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 54px rgba(0,0,0,.22);
}

.mixer-readout {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 20% 15%, rgba(89,211,255,.14), transparent 32%),
    linear-gradient(180deg, rgba(5,11,21,.72), rgba(7,13,26,.34));
}

.mixer-readout span,
.mixer-slider span {
  color: rgba(217,230,255,.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mixer-readout strong {
  color: rgba(242,247,255,.94);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0;
}

.mixer-slider {
  display: grid;
  gap: 10px;
}

.mixer-slider input {
  width: 100%;
  accent-color: #59d3ff;
}

.turntable-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.06);
}

.turntable-card-section {
  border-top: 0;
  border-right: 1px solid rgba(255,255,255,.06);
}

.turntable-card-section:last-child {
  border-right: 0;
}

.turntable-pad-grid,
.turntable-loop-grid {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.turntable-pad,
.turntable-loop-pad {
  min-height: 92px;
}

.turntable-pad strong,
.turntable-loop-pad strong {
  font-size: 18px;
}

.turntable-pad small,
.turntable-loop-pad small {
  font-size: 11px;
  line-height: 1.35;
}

.turntable-pad kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(217,248,255,.86);
  background: rgba(8,15,28,.58);
  font-size: 10px;
  font-weight: 900;
}

.turntable-status-strip span:first-child {
  color: #d9f8ff;
}

@keyframes deckSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scratchDeck {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.01); }
  24% { transform: translate(-50%, -50%) rotate(-32deg) scale(1.02); }
  52% { transform: translate(-50%, -50%) rotate(22deg) scale(1.015); }
  78% { transform: translate(-50%, -50%) rotate(-10deg) scale(1.01); }
  100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

@media (max-width: 980px) {
  .turntable-toolbar { grid-template-columns: 1fr; }
  .turntable-stage { grid-template-columns: 1fr; }
  .turntable-bottom-grid { grid-template-columns: 1fr; }
  .turntable-card-section { border-right: 0; border-top: 1px solid rgba(255,255,255,.09); }
}

@media (max-width: 640px) {
  .turntable-section { padding-top: 116px; }
  .turntable-stage { padding: 20px 14px; }
  .turntable-deck { min-height: 330px; border-radius: 34px; }
  .turntable-mixer { padding: 16px; border-radius: 28px; }
  .turntable-pad-grid,
  .turntable-loop-grid { grid-template-columns: repeat(2, 1fr); }
}


/* Sound FX Lab */
.soundfx-section {
  padding-top: 132px;
}

.soundfx-hero {
  display: block;
}

.soundfx-hero .studio-copy {
  max-width: 1100px;
}

.soundfx-toolbar {
  grid-template-columns: 300px minmax(220px, 280px) minmax(480px, 1fr);
}

.soundfx-panel {
  overflow: hidden;
}

.soundfx-stage {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(300px, 0.65fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px 22px 30px;
  border-top: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 18% 18%, rgba(89,211,255,.18), transparent 35%),
    radial-gradient(circle at 82% 20%, rgba(169,139,255,.19), transparent 36%),
    radial-gradient(circle at 48% 84%, rgba(255,213,128,.09), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.026), rgba(255,255,255,.008));
}

.soundfx-core {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 42px;
  overflow: hidden;
  color: rgba(243,247,255,.94);
  background:
    linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.024)),
    radial-gradient(circle at 50% 50%, rgba(89,211,255,.14), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 28px 72px rgba(0,0,0,.30);
  cursor: pointer;
  isolation: isolate;
}

.soundfx-core::before {
  content: "";
  position: absolute;
  width: min(70%, 360px);
  aspect-ratio: 1;
  inset: 50% auto auto 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at center, rgba(255,255,255,.20) 0 8%, transparent 8.5% 12%),
    repeating-radial-gradient(circle at center, rgba(255,255,255,.07) 0 1px, transparent 1px 18px),
    conic-gradient(from 90deg, rgba(89,211,255,.20), rgba(169,139,255,.20), rgba(255,213,128,.13), rgba(89,211,255,.20)),
    radial-gradient(circle, #050a14 0 54%, #101827 55% 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 68px rgba(0,0,0,.42), inset 0 0 46px rgba(89,211,255,.10);
  transition: transform .24s ease, filter .24s ease;
  z-index: 1;
}

.soundfx-core::after {
  content: "";
  position: absolute;
  inset: 36px;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(89,211,255,.16) 49% 51%, transparent 52% 100%),
    linear-gradient(0deg, transparent 0 48%, rgba(169,139,255,.14) 49% 51%, transparent 52% 100%);
  opacity: .7;
  z-index: 0;
}

.soundfx-core:hover::before,
.soundfx-core.is-playing::before {
  transform: translate(-50%, -50%) scale(1.025) rotate(10deg);
  filter: drop-shadow(0 0 20px rgba(89,211,255,.20));
}

.soundfx-core.is-triggered::before {
  animation: sfxPulse .54s cubic-bezier(.2,.9,.2,1) both;
}

.soundfx-core.is-scene::before {
  animation: sfxScene 2.9s linear infinite;
}

.sfx-orbit {
  position: absolute;
  inset: 38px;
  border-radius: 38px;
  border: 1px solid rgba(255,255,255,.10);
  z-index: 2;
  pointer-events: none;
}

.sfx-orbit-one {
  background: linear-gradient(135deg, rgba(89,211,255,.07), transparent 42%, rgba(169,139,255,.10));
}

.sfx-orbit-two {
  inset: 74px;
  border-radius: 34px;
  background: radial-gradient(circle at 24% 26%, rgba(255,255,255,.08), transparent 30%);
}

.sfx-core-label,
.sfx-core-wave {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.sfx-core-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: rgba(8,15,28,.86);
  background: linear-gradient(135deg, rgba(217,248,255,.94), rgba(169,139,255,.80));
  font-size: 18px;
  font-weight: 950;
  letter-spacing: .08em;
  box-shadow: 0 0 0 10px rgba(255,255,255,.05), 0 24px 54px rgba(0,0,0,.26);
}

.sfx-core-wave {
  width: min(62%, 320px);
  height: 78px;
  margin-top: 112px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(89,211,255,.35), rgba(255,255,255,.55), rgba(169,139,255,.34), transparent);
  filter: blur(1px);
  opacity: .62;
  z-index: 3;
}

.soundfx-console {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.026));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 22px 54px rgba(0,0,0,.22);
}

.soundfx-readout {
  background:
    radial-gradient(circle at 20% 15%, rgba(89,211,255,.16), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(169,139,255,.14), transparent 34%),
    linear-gradient(180deg, rgba(5,11,21,.72), rgba(7,13,26,.34));
}

.soundfx-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.06);
}

.soundfx-card-section {
  border-top: 0;
  border-right: 1px solid rgba(255,255,255,.06);
}

.soundfx-card-section:last-child {
  border-right: 0;
}

.soundfx-pad-grid,
.soundfx-scene-grid {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.soundfx-pad,
.soundfx-scene-pad {
  min-height: 96px;
}

.soundfx-pad strong,
.soundfx-scene-pad strong {
  font-size: 17px;
}

.soundfx-pad small,
.soundfx-scene-pad small {
  font-size: 11px;
  line-height: 1.35;
}

.soundfx-pad kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(217,248,255,.86);
  background: rgba(8,15,28,.58);
  font-size: 10px;
  font-weight: 900;
}

.soundfx-status-strip span:first-child {
  color: #d9f8ff;
}

@keyframes sfxPulse {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  28% { transform: translate(-50%, -50%) scale(1.08) rotate(-8deg); }
  58% { transform: translate(-50%, -50%) scale(.98) rotate(12deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

@keyframes sfxScene {
  from { transform: translate(-50%, -50%) rotate(0deg) scale(1.01); }
  to { transform: translate(-50%, -50%) rotate(360deg) scale(1.01); }
}

@media (max-width: 980px) {
  .soundfx-toolbar { grid-template-columns: 1fr; }
  .soundfx-stage { grid-template-columns: 1fr; }
  .soundfx-bottom-grid { grid-template-columns: 1fr; }
  .soundfx-card-section { border-right: 0; border-top: 1px solid rgba(255,255,255,.09); }
}

@media (max-width: 640px) {
  .soundfx-section { padding-top: 116px; }
  .soundfx-stage { padding: 20px 14px; }
  .soundfx-core { min-height: 330px; border-radius: 34px; }
  .soundfx-console { padding: 16px; border-radius: 28px; }
  .soundfx-pad-grid,
  .soundfx-scene-grid { grid-template-columns: repeat(2, 1fr); }
}


/* Professional footer + policy pages revision */
.footer-pro {
  display: grid;
  gap: 22px;
}
.footer-mainline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(232, 240, 255, .72);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.footer-menu a:hover,
.footer-menu a.active {
  color: #ffffff;
  transform: translateY(-1px);
  border-color: rgba(89,211,255,.32);
  background: rgba(89,211,255,.10);
}
.footer-bottomline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(232,240,255,.56);
}
.footer-bottomline a {
  color: rgba(200,242,255,.82);
  font-weight: 760;
  text-decoration: none;
}
.footer-bottomline a:hover { color: #ffffff; }
.legal-page {
  min-height: 100vh;
  padding: 150px 0 86px;
}
.legal-container {
  max-width: 1080px;
}
.legal-hero {
  max-width: 900px;
  margin-bottom: 30px;
}
.legal-hero h1 {
  max-width: 940px;
  margin-bottom: 16px;
  font-size: clamp(2.625rem, 4rem, 4.375rem);
  line-height: .98;
  letter-spacing: 0;
}
.legal-hero p {
  max-width: 760px;
  color: rgba(232,240,255,.68);
  font-size: 16px;
  line-height: 1.78;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.glass-card {
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.032)),
    rgba(8,14,28,.62);
  box-shadow: 0 24px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.legal-card {
  min-height: 245px;
  padding: 24px;
  border-radius: 30px;
}
.legal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #c8f2ff;
  border: 1px solid rgba(89,211,255,.20);
  background: rgba(89,211,255,.10);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-card h2,
.policy-card h2,
.contact-panel h2 {
  margin: 0 0 12px;
  color: #f7fbff;
  letter-spacing: 0;
}
.legal-card p,
.policy-card p,
.help-row p,
.contact-panel p {
  margin: 0;
  color: rgba(232,240,255,.66);
  line-height: 1.74;
}
.legal-list {
  display: grid;
  gap: 14px;
}
.help-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 28px;
}
.help-row strong {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0;
}
.legal-page a {
  color: #c8f2ff;
  text-decoration: none;
  font-weight: 820;
}
.legal-page a:hover { color: #ffffff; }
.policy-card {
  padding: 30px;
  border-radius: 34px;
}
.policy-card h2:not(:first-child) { margin-top: 28px; }
.policy-card h2 { font-size: 22px; }
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: 34px;
}
.contact-panel h2 {
  font-size: clamp(1.75rem, 2.45rem, 3rem);
  word-break: break-word;
}
.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.contact-meta span {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 18px;
  color: rgba(232,240,255,.76);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  font-size: 13px;
  font-weight: 820;
  text-align: center;
}
@media (max-width: 920px) {
  .footer-mainline,
  .footer-bottomline,
  .contact-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-menu { justify-content: flex-start; }
  .legal-grid { grid-template-columns: 1fr; }
  .help-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-panel { display: grid; }
}
@media (max-width: 780px) {
  .legal-page { padding: 122px 0 64px; }
  .legal-hero h1 { font-size: clamp(2.25rem, 2.85rem, 3.5rem); }
  .legal-card,
  .policy-card,
  .contact-panel { border-radius: 26px; padding: 22px; }
  .footer-menu { width: 100%; gap: 8px; }
  .footer-menu a { flex: 1 1 calc(50% - 8px); }
  .contact-meta { grid-template-columns: 1fr; width: 100%; }
}

/* Footer container alignment fix: keep the entire footer inside one premium card */
/* Width sync: footer shell now follows the exact header nav width rhythm. */
.footer.footer-minimal {
  padding: 34px 0 46px;
  border-top: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 18% 0%, rgba(89,211,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(5,7,17,0), rgba(5,7,17,.58));
}

.footer.footer-minimal .footer-pro {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 24px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.028)),
    rgba(8,14,28,.62);
  box-shadow:
    0 24px 90px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  display: grid;
  gap: 18px;
  color: var(--soft);
}

.footer.footer-minimal .footer-mainline {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.footer.footer-minimal .footer-brand {
  min-width: 0;
}

.footer.footer-minimal .footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(89,211,255,.10);
}

.footer.footer-minimal .footer-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.footer.footer-minimal .footer-menu a {
  min-height: 40px;
  padding: 0 15px;
  white-space: nowrap;
}

.footer.footer-minimal .footer-bottomline {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer.footer-minimal .footer-bottomline p {
  min-width: 0;
  line-height: 1.55;
}

.footer.footer-minimal .footer-bottomline a {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .footer.footer-minimal .footer-pro {
    width: calc(100% - 24px);
    padding: 20px;
    border-radius: 26px;
  }

  .footer.footer-minimal .footer-mainline,
  .footer.footer-minimal .footer-bottomline {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }

  .footer.footer-minimal .footer-menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .footer.footer-minimal {
    padding: 28px 0 34px;
  }

  .footer.footer-minimal .footer-pro {
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 24px;
  }

  .footer.footer-minimal .footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer.footer-minimal .footer-menu a {
    width: 100%;
    padding: 0 10px;
  }

  .footer.footer-minimal .footer-menu a:last-child {
    grid-column: 1 / -1;
  }
}

/* Footer inner full-width revision: stretch brand/menu/bottom content across the whole shell */
.footer.footer-minimal .footer-pro {
  width: min(1240px, calc(100% - 40px));
  padding: 28px 30px 26px;
}

.footer.footer-minimal .footer-mainline {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  width: 100%;
}

.footer.footer-minimal .footer-menu {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  justify-content: stretch;
  align-items: center;
}

.footer.footer-minimal .footer-menu a {
  width: 100%;
  padding: 0 18px;
}

.footer.footer-minimal .footer-bottomline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  width: 100%;
  gap: 30px;
  padding-top: 20px;
}

.footer.footer-minimal .footer-bottomline p {
  width: 100%;
}

.footer.footer-minimal .footer-bottomline a {
  justify-self: end;
}

@media (max-width: 960px) {
  .footer.footer-minimal .footer-pro {
    width: calc(100% - 24px);
    padding: 22px;
  }

  .footer.footer-minimal .footer-mainline {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer.footer-minimal .footer-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer.footer-minimal .footer-bottomline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer.footer-minimal .footer-bottomline a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .footer.footer-minimal .footer-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer.footer-minimal .footer-menu a:last-child {
    grid-column: 1 / -1;
  }
}


/* Footer final spread fix: use the full footer card width so the right side is not empty */
.footer.footer-minimal .footer-pro {
  width: min(1920px, calc(100% - 56px));
  max-width: none;
  padding: 34px 40px 30px;
}

.footer.footer-minimal .footer-mainline {
  grid-template-columns: minmax(270px, 360px) minmax(520px, 1fr) minmax(280px, 380px);
  gap: 32px;
  align-items: center;
}

.footer.footer-minimal .footer-menu {
  width: 100%;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  justify-self: stretch;
}

.footer.footer-minimal .footer-contact-mini {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  padding: 13px 18px;
  border-radius: 22px;
  border: 1px solid rgba(89,211,255,.18);
  background:
    radial-gradient(circle at 12% 15%, rgba(89,211,255,.14), transparent 42%),
    rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.footer.footer-minimal .footer-contact-mini span {
  color: rgba(232,240,255,.52);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer.footer-minimal .footer-contact-mini a {
  color: rgba(200,242,255,.92);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.footer.footer-minimal .footer-contact-mini a:hover { color: #ffffff; }

.footer.footer-minimal .footer-bottomline {
  grid-template-columns: minmax(360px, 1.15fr) minmax(420px, 1.35fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: center;
}

.footer.footer-minimal .footer-note {
  justify-self: center;
  color: rgba(232,240,255,.50);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.55;
  text-align: center;
}

.footer.footer-minimal .footer-bottomline a {
  justify-self: end;
}

@media (max-width: 1280px) {
  .footer.footer-minimal .footer-pro {
    width: min(1240px, calc(100% - 40px));
    padding: 28px 30px 26px;
  }

  .footer.footer-minimal .footer-mainline {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }

  .footer.footer-minimal .footer-contact-mini {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
    min-height: 58px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer.footer-minimal .footer-bottomline {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .footer.footer-minimal .footer-note {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 960px) {
  .footer.footer-minimal .footer-pro {
    width: calc(100% - 24px);
    padding: 22px;
  }

  .footer.footer-minimal .footer-mainline {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer.footer-minimal .footer-contact-mini {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer.footer-minimal .footer-bottomline {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer.footer-minimal .footer-note,
  .footer.footer-minimal .footer-bottomline a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .footer.footer-minimal .footer-contact-mini a {
    white-space: normal;
    word-break: break-word;
  }
}

/* Final footer shell sync: match the header container width exactly */
.footer.footer-minimal .footer-pro {
  width: min(1180px, calc(100% - 40px));
  max-width: 1180px;
  padding: 30px 32px 28px;
}

.footer.footer-minimal .footer-mainline {
  grid-template-columns: minmax(220px, 280px) minmax(430px, 1fr) minmax(230px, 300px);
  gap: 22px;
}

.footer.footer-minimal .footer-menu {
  grid-template-columns: repeat(5, minmax(82px, 1fr));
  gap: 8px;
}

.footer.footer-minimal .footer-menu a {
  min-height: 42px;
  padding: 0 12px;
}

.footer.footer-minimal .footer-contact-mini {
  max-width: 300px;
  padding: 12px 16px;
}

.footer.footer-minimal .footer-bottomline {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr) max-content;
  gap: 18px;
}

@media (max-width: 1280px) {
  .footer.footer-minimal .footer-pro {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
  }
}

@media (max-width: 1100px) {
  .footer.footer-minimal .footer-mainline {
    grid-template-columns: 1fr;
  }

  .footer.footer-minimal .footer-menu {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer.footer-minimal .footer-contact-mini {
    max-width: none;
    width: 100%;
  }

  .footer.footer-minimal .footer-bottomline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .footer.footer-minimal .footer-pro {
    width: calc(100% - 24px);
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .footer.footer-minimal .footer-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Footer bottomline clean fix: prevent cramped/overlapping copy, note and email */
.footer.footer-minimal .footer-bottomline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "copyright email"
    "note note";
  align-items: center;
  column-gap: 26px;
  row-gap: 14px;
  padding-top: 20px;
}

.footer.footer-minimal .footer-bottomline p {
  grid-area: copyright;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  line-height: 1.45;
  text-align: left;
}

.footer.footer-minimal .footer-note {
  grid-area: note;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.028);
  color: rgba(232,240,255,.54);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
}

.footer.footer-minimal .footer-bottomline > a {
  grid-area: email;
  justify-self: end;
  min-width: max-content;
  margin: 0;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(89,211,255,.16);
  background: rgba(89,211,255,.055);
  color: rgba(200,242,255,.92);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .footer.footer-minimal .footer-bottomline {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copyright"
      "note"
      "email";
    justify-items: start;
    row-gap: 12px;
  }

  .footer.footer-minimal .footer-note {
    justify-content: flex-start;
    text-align: left;
    border-radius: 18px;
  }

  .footer.footer-minimal .footer-bottomline > a {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .footer.footer-minimal .footer-bottomline > a {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }
}


/* Premium inline SVG instrument icons - no emoji */
.instrument-nav a {
  gap: 8px;
}

.instrument-nav .nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  opacity: .72;
  color: rgba(220, 235, 255, .82);
  filter: drop-shadow(0 0 0 rgba(80, 192, 255, 0));
  transition: opacity .2s ease, color .2s ease, transform .2s ease, filter .2s ease;
}

.instrument-nav .nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.instrument-nav .nav-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instrument-nav a:hover .nav-icon,
.instrument-nav a.active .nav-icon {
  opacity: 1;
  color: rgba(190, 237, 255, .98);
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(83, 198, 255, .28));
}

.instrument-nav a.active {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 12px 28px rgba(83, 198, 255, .10);
}

.instrument-nav .nav-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

@media (max-width: 1120px) {
  .instrument-nav a { gap: 6px; }
  .instrument-nav .nav-icon,
  .instrument-nav .nav-icon svg { width: 16px; height: 16px; }
  .nav-links a { padding: 0 10px; }
}

@media (max-width: 780px) {
  .instrument-nav a {
    justify-content: flex-start !important;
    gap: 10px;
  }
  .instrument-nav .nav-icon,
  .instrument-nav .nav-icon svg { width: 18px; height: 18px; }
}


/* Footer bottom final cleanup: remove duplicate email chip and center copyright copy */
.footer.footer-minimal .footer-bottomline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
  text-align: center;
}

.footer.footer-minimal .footer-bottomline p {
  width: 100%;
  margin: 0;
  text-align: center;
  justify-self: center;
  color: rgba(232,240,255,.62);
}

.footer.footer-minimal .footer-note {
  width: min(100%, 760px);
  justify-self: center;
  justify-content: center;
  text-align: center;
}

.footer.footer-minimal .footer-bottomline > a {
  display: none !important;
}

@media (max-width: 820px) {
  .footer.footer-minimal .footer-bottomline {
    justify-items: center;
    align-items: center;
  }

  .footer.footer-minimal .footer-note {
    justify-content: center;
    text-align: center;
  }
}

/* Footer balance refinement: equal left/right visual weight inside the footer container */
.footer.footer-minimal .footer-mainline {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(480px, auto) minmax(300px, 1fr);
  align-items: center;
  gap: 24px;
}

.footer.footer-minimal .footer-brand,
.footer.footer-minimal .footer-contact-mini {
  min-height: 74px;
  width: 100%;
  max-width: 340px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 42px rgba(0,0,0,.16);
}

.footer.footer-minimal .footer-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
}

.footer.footer-minimal .footer-contact-mini {
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 18px;
}

.footer.footer-minimal .footer-menu {
  justify-self: center;
  width: min(100%, 560px);
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 10px;
}

.footer.footer-minimal .footer-menu a {
  min-height: 44px;
  padding: 0 14px;
}

.footer.footer-minimal .footer-bottomline {
  align-items: center;
  text-align: center;
}

.footer.footer-minimal .footer-bottomline p,
.footer.footer-minimal .footer-note {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1180px) {
  .footer.footer-minimal .footer-mainline {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .footer.footer-minimal .footer-brand,
  .footer.footer-minimal .footer-contact-mini,
  .footer.footer-minimal .footer-menu {
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .footer.footer-minimal .footer-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer.footer-minimal .footer-menu a:last-child {
    grid-column: 1 / -1;
  }
}


/* Ads-ready safe placement and consent UI */
.ad-container,
.desktop-ad-rail {
  display: none;
}

html[data-ads-ready="true"] .ad-container {
  display: block;
}

.ad-container {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(26px, 5vw, 56px) auto 0;
}

.ad-shell {
  min-height: 118px;
  padding: 18px;
  border-radius: 26px;
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(190, 220, 255, .12);
  background: linear-gradient(135deg, rgba(13, 25, 43, .44), rgba(20, 21, 42, .38));
}

.ad-label {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .62rem;
  color: rgba(199, 222, 244, .42);
  font-weight: 800;
}

.ad-slot {
  width: 100%;
  min-height: 72px;
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.ad-slot ins.adsbygoogle {
  width: 100%;
  min-height: 90px;
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 32px));
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(183, 219, 255, .24);
  background: linear-gradient(135deg, rgba(10, 20, 34, .92), rgba(22, 22, 42, .9));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px);
}

.consent-banner[hidden],
.consent-modal[hidden] {
  display: none !important;
}

.consent-copy strong {
  display: block;
  color: #ffffff;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.consent-copy p {
  margin: 0;
  color: rgba(220, 232, 248, .72);
  line-height: 1.55;
  font-size: .94rem;
}

.consent-actions,
.consent-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 13, .72);
  backdrop-filter: blur(10px);
}

.consent-dialog {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
  z-index: 1;
}

.consent-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.consent-dialog h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 2.3rem, 2.65rem);
  line-height: 1;
}

.icon-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .86);
  font-size: 1.45rem;
  cursor: pointer;
}

.consent-intro,
.consent-footnote {
  color: rgba(220, 232, 248, .72);
  line-height: 1.6;
}

.preference-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.preference-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
}

.preference-row strong,
.preference-row small {
  display: block;
}

.preference-row strong {
  color: #ffffff;
  margin-bottom: 3px;
}

.preference-row small {
  color: rgba(218, 231, 249, .64);
  line-height: 1.45;
}

.preference-row input {
  width: 24px;
  height: 24px;
  accent-color: #7fc9ff;
}

.preference-row.is-required {
  opacity: .82;
}

.soft-link-button {
  border: 1px solid rgba(130, 204, 255, .35);
  background: rgba(66, 180, 255, .11);
  color: #bfeaff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 860px) {
  .consent-banner {
    grid-template-columns: 1fr;
  }

  .consent-actions,
  .consent-dialog-actions {
    justify-content: stretch;
  }

  .consent-actions .btn,
  .consent-dialog-actions .btn {
    flex: 1 1 100%;
  }
}


/* Desktop side ad rails: uses the safe empty left/right whitespace only on wide screens. */
html[data-ads-ready="true"] .desktop-ad-rail {
  position: fixed;
  top: 126px;
  width: 168px;
  min-height: min(560px, calc(100vh - 190px));
  z-index: 4;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 26px;
  border: 1px solid rgba(190, 220, 255, .10);
  background: linear-gradient(145deg, rgba(9, 17, 31, .34), rgba(21, 21, 43, .28));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  pointer-events: auto;
}

.desktop-ad-rail-left {
  left: max(24px, calc((100vw - var(--container)) / 2 - 208px));
}

.desktop-ad-rail-right {
  right: max(24px, calc((100vw - var(--container)) / 2 - 208px));
}

.desktop-ad-rail .ad-label {
  justify-self: center;
}

.desktop-ad-rail .ad-slot {
  min-height: 470px;
  height: 100%;
  padding: 12px;
  align-content: center;
  line-height: 1.45;
}

.desktop-ad-rail .ad-slot ins.adsbygoogle {
  min-height: 470px;
}

@media (max-width: 1580px), (max-height: 690px) {
  html[data-ads-ready="true"] .desktop-ad-rail { display: none; }
}

@media (max-width: 780px) {
  .container,
  .ad-container {
    width: min(100% - 24px, var(--container));
  }

  .studio-only,
  .legal-page {
    padding-top: 104px;
  }

  .brand {
    min-width: 0;
  }

  .brand span {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .studio-hero {
    margin-bottom: 20px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: .12em;
  }

  .studio-copy h1,
  .coming-panel h1,
  .legal-hero h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 2.8rem, 3.4rem);
    line-height: 1.04;
  }

  .studio-badges {
    gap: 7px;
  }

  .studio-badges span {
    min-height: 32px;
    padding: 0 10px;
  }

  .studio-toolbar,
  .status-strip,
  .chord-section,
  .legal-card,
  .policy-card,
  .contact-panel {
    padding: 16px;
  }

  .tool-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .chip-button {
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    white-space: normal;
  }

  .status-strip {
    gap: 8px;
  }

  .status-strip span {
    overflow-wrap: anywhere;
  }

  .consent-banner {
    bottom: 10px;
    width: calc(100% - 20px);
    max-height: min(70vh, 420px);
    overflow: auto;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }

  .consent-copy strong {
    font-size: .98rem;
  }

  .consent-copy p,
  .consent-intro,
  .consent-footnote {
    font-size: .88rem;
    line-height: 1.5;
  }

  .consent-actions,
  .consent-dialog-actions {
    gap: 8px;
  }

  .consent-modal {
    align-items: end;
    padding: 12px;
  }

  .consent-dialog {
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 18px;
    border-radius: 24px;
  }

  .consent-dialog h2 {
    font-size: clamp(1.65rem, 2rem, 2.3rem);
  }

  .preference-list {
    gap: 8px;
    margin: 14px 0;
  }

  .preference-row {
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .nav-inner {
    height: 60px;
  }

  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
  }

  .studio-copy h1,
  .coming-panel h1,
  .legal-hero h1 {
    font-size: clamp(2rem, 2.4rem, 2.9rem);
  }

  .tool-actions,
  .chord-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .desktop-ad-rail,
  .ad-container,
  .consent-banner,
  .consent-modal { display: none !important; }
}
