/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Exact palette from Noah Rigs source */
  --bg-deep:        #0c0418;
  --bg-mid:         #160828;
  --bg-dark:        #1e0c3a;
  --bg-card:        #150622;
  --bg-card2:       #1c0c30;

  /* Brand gradient — matches .brand h1 in the app */
  --shimmer-from:   #ffeeff;
  --shimmer-pink:   #ff55cc;
  --shimmer-violet: #dd44ff;
  --shimmer-purple: #aa77ff;

  /* UI accent colours */
  --pink:           #ff55cc;
  --pink-hot:       #ff2fa4;
  --violet:         #b9a7ff;
  --cyan:           #79eaff;
  --purple:         #8866ff;

  /* Active tab gradient — matches .top-panel .tab.active */
  --grad-active: linear-gradient(130deg, #ee55cc 0%, #bb44ff 38%, #8866ff 68%, #cc99ff 100%);

  /* Text */
  --text:           #f0dcff;
  --text-muted:     #c8a8e8;
  --text-dim:       #6a4a8a;
  --border:         rgba(200, 130, 255, 0.22);

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --transition:     .25s cubic-bezier(.4,0,.2,1);

  /* Typography */
  --font-ui: 'DM Sans', Inter, 'Segoe UI', Arial, sans-serif;
  --font-ui-strong: 'DM Sans', Inter, 'Segoe UI', Arial, sans-serif;
  --font-brand-display: 'Cinzel Decorative', Georgia, serif;
  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-display-tight: 'Cinzel Decorative', Georgia, serif;
  --font-body-tracking: 0;
  --font-display-tracking: 0.12em;
  --font-ui-tracking: 0.02em;
}

/* ── Per-language typography (hero title + brand logo always stay Cinzel) ── */
:lang(ja) {
  --font-ui:              'Shippori Mincho', serif;
  --font-ui-strong:       'Shippori Mincho', serif;
  --font-display:         'Shippori Mincho', serif;
  --font-display-tight:   'Shippori Mincho', serif;
  --font-display-tracking: 0.06em;
  --font-body-tracking:    0.04em;
}

:lang(zh-TW) {
  --font-ui:              'Noto Serif SC', serif;
  --font-ui-strong:       'Noto Serif SC', serif;
  --font-display:         'Noto Serif SC', serif;
  --font-display-tight:   'Noto Serif SC', serif;
  --font-display-tracking: 0.06em;
  --font-body-tracking:    0.04em;
}

:lang(ta) {
  --font-ui:              'Noto Sans Tamil', sans-serif;
  --font-ui-strong:       'Noto Sans Tamil', sans-serif;
  --font-display:         'Noto Sans Tamil', sans-serif;
  --font-display-tight:   'Noto Sans Tamil', sans-serif;
  --font-display-tracking: 0.04em;
  --font-body-tracking:    0.01em;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-ui);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: var(--font-body-tracking);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(168, 76, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #120421 0%, #0b0416 38%, #07020f 100%);
}

.legal-hero {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(10, 4, 18, 0.8);
  border-bottom: 1px solid rgba(200, 130, 255, 0.16);
}

.legal-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.legal-hero__brand img {
  height: 34px;
  width: auto;
  filter:
    drop-shadow(0 0 16px rgba(220,80,255,.24))
    drop-shadow(0 0 28px rgba(255,60,200,.16));
}

.legal-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.legal-hero__link {
  padding: .62rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(200,130,255,.18);
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: var(--transition);
}

.legal-hero__link:hover,
.legal-hero__link:focus-visible,
.legal-hero__link--active {
  color: #fff;
  border-color: rgba(200,130,255,.42);
  background:
    linear-gradient(135deg, rgba(255,85,204,.18), rgba(136,102,255,.14)),
    rgba(255,255,255,.04);
  box-shadow: 0 0 20px rgba(180,80,255,.14);
  outline: none;
}

.legal-main {
  padding: 3.5rem 0 5rem;
}

.legal-shell {
  display: grid;
  gap: 1.25rem;
}

.legal-card {
  padding: 1.4rem 1.4rem 1.45rem;
  border: 1px solid rgba(200,130,255,.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(18, 6, 34, 0.88);
  box-shadow:
    0 22px 50px rgba(5, 0, 12, 0.38),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.legal-card--intro {
  padding: 1.75rem 1.5rem 1.8rem;
}

.legal-kicker {
  margin-bottom: .35rem;
  color: var(--pink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-card h1,
.legal-card h2,
.legal-card h3 {
  color: #fff;
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}

.legal-card h2 {
  font-size: 1.08rem;
  margin-bottom: .7rem;
}

.legal-card h3 {
  font-size: .95rem;
  margin-bottom: .4rem;
}

.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: .8rem;
}

.legal-card a {
  color: #ffd2ff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 170, 238, 0.55);
  text-underline-offset: .16em;
}

.legal-card code {
  padding: .14rem .34rem;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: .92em;
}

.legal-updated {
  margin-bottom: .95rem;
  color: var(--text-muted);
  font-size: .88rem;
  letter-spacing: .03em;
}

.legal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legal-list {
  display: grid;
  gap: .55rem;
  padding-left: 1.15rem;
  list-style: disc;
}

.legal-list li::marker {
  color: var(--pink);
}

.legal-note {
  color: var(--text-muted);
  font-size: .92rem;
}

.privacy-choice-box {
  display: grid;
  gap: .9rem;
  align-items: start;
}

.privacy-choice-button {
  justify-self: start;
}

.privacy-choice-status {
  color: var(--text-muted);
  font-size: .92rem;
}

/* ── Brand logo text — Cinzel Decorative shimmer ───────────── */
.brand-logo {
  font-family: var(--font-brand-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  background: linear-gradient(105deg,
    #ffeeff  0%,
    #ffaaee 12%,
    #ff55cc 26%,
    #dd44ff 42%,
    #aa77ff 56%,
    #ffbbff 68%,
    #ff88dd 82%,
    #ffeeff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 0 14px rgba(220, 80, 255, 0.65))
    drop-shadow(0 0 32px rgba(255, 60, 200, 0.35));
  animation: shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 0%; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui-strong);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.btn--sm  { padding: .45rem 1.1rem;  font-size: .85rem; }
.btn--lg  { padding: .8rem  2rem;    font-size: 1rem; }

.btn--primary {
  background: var(--grad-active);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 0 24px rgba(220,80,255,.45),
    0 0 8px  rgba(255,60,200,.25);
  text-shadow: 0 1px 2px rgba(20,0,50,.5);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 0 40px rgba(220,80,255,.6),
    0 0 16px rgba(255,60,200,.35);
}
.btn--primary:active { transform: translateY(1px); }

.nav-cta__icon {
  display: none;
}

.nav-cta__icon svg {
  width: 1rem;
  height: 1rem;
}

.btn--ghost {
  background: rgba(70,15,110,.32);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(200,130,255,.52);
  color: #fff;
  background: rgba(100,30,160,.42);
  box-shadow: 0 0 14px rgba(160,60,255,.28);
}

/* ── Section common ─────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
  text-shadow: 0 0 10px rgba(121,234,255,.4);
}

.section-header {
  position: relative;
}

.section-header::before {
  content: "";
  display: block;
  width: 78px;
  height: 7px;
  margin: 0 auto .9rem;
  border-radius: 9999px;
  background:
    linear-gradient(90deg, #ff55cc 0 34%, #ffeeff 34% 43%, #79eaff 43% 70%, #8866ff 70% 100%);
  box-shadow: 0 0 18px rgba(255,85,204,.42);
}

.section-title {
  font-family: var(--font-display-tight);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: var(--font-display-tracking);
  color: #fff;
  margin-bottom: .75rem;
  filter: drop-shadow(0 0 18px rgba(220,80,255,.4));
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto;
}

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(12,4,24,.65);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,180,240,.16);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(12,4,24,.88);
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
  max-width: 1160px;
  margin-inline: auto;
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-width: 0;
}
.nav__logo img {
  width: auto;
  height: 29px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(220,80,255,.28))
    drop-shadow(0 0 30px rgba(255,60,200,.18));
}

.lang-switcher {
  margin-left: auto;
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #080214 0%, #110626 45%, #0c0418 100%);
}

/* Canvas — twinkling particles */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Aurora blobs */
.hero__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero__aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__aurora-blob--a {
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(200,40,200,.55) 0%, transparent 70%);
  top: -25%; left: -15%;
  animation: aurora-a 14s ease-in-out infinite alternate;
}
.hero__aurora-blob--b {
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(80,40,255,.50) 0%, transparent 70%);
  top: -20%; right: -10%;
  animation: aurora-b 18s ease-in-out infinite alternate;
}
.hero__aurora-blob--c {
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,30,130,.30) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation: aurora-c 11s ease-in-out infinite alternate;
}

@keyframes aurora-a {
  0%   { transform: translate(0,0)       scale(1);    opacity: .7; }
  50%  { transform: translate(12%,8%)    scale(1.15); opacity: 1;  }
  100% { transform: translate(4%,-6%)    scale(0.95); opacity: .6; }
}
@keyframes aurora-b {
  0%   { transform: translate(0,0)       scale(1);    opacity: .6; }
  50%  { transform: translate(-8%,12%)   scale(1.2);  opacity: .9; }
  100% { transform: translate(6%,4%)     scale(1.05); opacity: .7; }
}
@keyframes aurora-c {
  0%   { transform: translate(0,0)       scale(1);    opacity: .4; }
  50%  { transform: translate(-6%,-8%)   scale(1.1);  opacity: .7; }
  100% { transform: translate(8%,4%)     scale(0.9);  opacity: .3; }
}

/* Spotlight cones on top */
.hero__aurora::before {
  content: "";
  position: absolute;
  inset: -8% -14%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% -4%, rgba(255,255,255,.15) 0%, rgba(255,255,255,0) 14%),
    radial-gradient(ellipse at 50% -6%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 12%),
    radial-gradient(ellipse at 82% -4%, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 13%),
    conic-gradient(from 170deg at 18% 0%, transparent 0deg, rgba(255,105,210,.24) 4deg, rgba(255,105,210,.12) 7deg, transparent 11deg),
    conic-gradient(from 178deg at 50% 0%, transparent 0deg, rgba(200,110,255,.20) 5deg, rgba(200,110,255,.10) 8deg, transparent 12deg),
    conic-gradient(from 186deg at 82% 0%, transparent 0deg, rgba(110,160,255,.22) 4deg, rgba(110,160,255,.11) 7deg, transparent 11deg);
  filter: blur(1px);
  mix-blend-mode: screen;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
  animation: stage-sweep 12s ease-in-out infinite alternate;
}

@keyframes stage-sweep {
  0% {
    opacity: .5;
    transform: translate3d(-5%, 0, 0) rotate(-6deg) scale(1.03);
  }
  28% {
    opacity: .95;
    transform: translate3d(-1.5%, 1.2%, 0) rotate(-2.2deg) scale(1.07);
  }
  62% {
    opacity: .78;
    transform: translate3d(4%, -1.2%, 0) rotate(2.8deg) scale(1.08);
  }
  100% {
    opacity: .58;
    transform: translate3d(8%, .6%, 0) rotate(5.8deg) scale(1.04);
  }
}

/* Inner layout */
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
  padding: 106px 1rem 5rem;
}

/* Version badge */
.hero__badge {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .38rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(200,130,255,.35);
  background: rgba(60,10,100,.50);
  backdrop-filter: blur(10px);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--text-muted);
  transform: translate3d(0, var(--hero-badge-shift, 0px), 0);
  opacity: var(--hero-badge-opacity, 1);
  transition: transform .14s linear, opacity .14s linear;
}

.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.9), 0 0 18px rgba(34,197,94,.45);
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: .75; }
}

/* Hero title */
.hero__title {
  position: relative;
  z-index: 3;
  font-family: var(--font-brand-display);
  font-size: clamp(3.9rem, 8vw, 7.2rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: .06em;
  color: transparent;
  background: linear-gradient(105deg,
    #ffeeff  0%,
    #ffaaee 12%,
    #ff55cc 26%,
    #dd44ff 42%,
    #aa77ff 56%,
    #ffbbff 68%,
    #ff88dd 82%,
    #ffeeff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0 28px rgba(220,80,255,.80))
    drop-shadow(0 0 60px rgba(255,60,200,.45))
    drop-shadow(0 4px 4px rgba(0,0,0,.7));
  animation: shimmer 6s ease-in-out infinite alternate;
  transform: translate3d(0, var(--hero-title-shift, 0px), 0) scale(var(--hero-title-scale, 1));
  opacity: var(--hero-title-opacity, 1);
  transition: transform .14s linear, opacity .14s linear;
  margin: .55rem 0 .2rem;
}

.hero__keyvisual {
  position: absolute;
  z-index: 1;
  top: clamp(88px, 9vw, 124px);
  right: max(18px, calc((100vw - 1160px) / 2 - 28px));
  width: min(62vw, 820px);
  height: clamp(340px, 48vw, 560px);
  border-radius: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .74;
  filter:
    drop-shadow(0 0 34px rgba(255,85,204,.34))
    drop-shadow(0 0 58px rgba(121,234,255,.16));
  animation: keyvisual-float 9s ease-in-out infinite alternate;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 12%, #000 34%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 12%, #000 34%, #000 88%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero__keyvisual::before {
  display: none;
}

.hero__keyvisual picture,
.hero__keyvisual img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__keyvisual img {
  object-fit: cover;
  object-position: 50% center;
  filter: saturate(1.1) brightness(1.02) contrast(1.04);
}

.hero__keyvisual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,4,24,.92), transparent 35%, rgba(12,4,24,.22) 100%),
    radial-gradient(circle at 72% 28%, rgba(255,85,204,.16), transparent 32%),
    repeating-linear-gradient(-9deg, transparent 0 13px, rgba(255,255,255,.03) 14px, transparent 15px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

@keyframes keyvisual-float {
  0%   { transform: translate3d(0, 8px, 0) scale(1.01); }
  100% { transform: translate3d(-14px, -8px, 0) scale(1.025); }
}

/* "by Noah Audio" line */
.hero__by {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(121,234,255,.6);
  transform: translate3d(0, var(--hero-by-shift, 0px), 0);
  opacity: var(--hero-by-opacity, 1);
  transition: transform .14s linear, opacity .14s linear;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
  transform: translate3d(0, var(--hero-subtitle-shift, 0px), 0);
  opacity: var(--hero-subtitle-opacity, 1);
  transition: transform .14s linear, opacity .14s linear;
}

/* CTAs */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  transform: translate3d(0, var(--hero-cta-shift, 0px), 0);
  opacity: var(--hero-cta-opacity, 1);
  transition: transform .14s linear, opacity .14s linear;
}

.hero__cta-main {
  position: relative;
}
.hero__cta-main::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 9999px;
  background: var(--grad-active);
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  animation: cta-glow 2.8s ease-in-out infinite;
}
@keyframes cta-glow {
  0%, 100% { opacity: 0;   transform: scale(.95); }
  50%       { opacity: .55; transform: scale(1.05); }
}

/* Mockup */
.hero__mockup {
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding-bottom: 80px;
  margin-top: 1rem;
  transform: translate3d(0, var(--hero-mockup-shift, 0px), 0) scale(var(--hero-mockup-scale, 1));
  opacity: var(--hero-mockup-opacity, 1);
  transition: transform .14s linear, opacity .14s linear;
}

.hero__mockup-glow {
  position: absolute;
  inset: -10px 4% 72px;
  background: radial-gradient(ellipse at 50% 48%, rgba(200,60,255,.22) 0%, transparent 62%);
  filter: blur(34px);
  pointer-events: none;
  animation: mockup-glow 5s ease-in-out infinite alternate;
}
@keyframes mockup-glow {
  0%   { opacity: .45; transform: scale(.98); }
  100% { opacity: .68; transform: scale(1.02); }
}

.hero__mockup-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200,130,255,.40);
  box-shadow:
    0 0 0 1px rgba(200,130,255,.15),
    0 26px 58px rgba(0,0,0,.48),
    0 0 46px rgba(200,60,255,.16);
  transform:
    perspective(2000px)
    rotateX(calc(4deg + var(--hero-mockup-tilt-x, 0deg)))
    rotateY(var(--hero-mockup-tilt-y, 0deg))
    scale(var(--hero-mockup-frame-scale, 1));
  transform-origin: center bottom;
  transition: transform .14s linear;
}
.hero__mockup-frame img {
  width: 100%;
  display: block;
  filter: saturate(1.04) brightness(1.05);
  transform:
    scale(calc(1.06 + var(--hero-mockup-image-scale, 0)))
    translate3d(0, var(--hero-mockup-image-shift, 0px), 0);
  transform-origin: center center;
  transition: transform .14s linear;
}

/* Hero scan overlay */
.hero__mockup-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.04) 3px,
    rgba(0,0,0,.04) 4px
  );
  pointer-events: none;
  z-index: 2;
}
.hero__mockup-scan::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.06) 50%, transparent);
  animation: scan-sweep 10s linear infinite;
}

/* Floor reflection */
.hero__mockup-reflection {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(200,60,255,.07) 0%, transparent 100%);
  transform: scaleY(-1);
  filter: blur(2px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.22) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.22) 0%, transparent 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  pointer-events: none;
  overflow: hidden;
}
.hero__mockup-reflection::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--reflection-url) center top / 100% auto no-repeat;
  transform: scaleY(-1);
  opacity: .14;
}

/* ── Scroll reveal ───────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  filter: blur(16px);
  transform: translate3d(0, 72px, 0) scale(.965);
  transition:
    opacity 1.15s cubic-bezier(.16,1,.3,1),
    transform 1.15s cubic-bezier(.16,1,.3,1),
    filter 1.15s cubic-bezier(.16,1,.3,1);
}
[data-reveal].revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

[data-reveal="soft"] {
  transform: translate3d(0, 46px, 0) scale(.978);
}

@media (prefers-reduced-motion: reduce) {
  .hero__badge,
  .hero__title,
  .hero__by,
  .hero__subtitle,
  .hero__cta,
  .hero__mockup,
  .hero__keyvisual {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
  }
  [data-reveal] {
    filter: none;
    transform: none;
    transition: opacity .2s ease;
  }
}

/* ── FEATURES ───────────────────────────────────────────────── */
.features {
  overflow: clip;
  padding: 6rem 0 2rem;
  background:
    linear-gradient(135deg, rgba(255,85,204,.055) 0 25%, transparent 25% 50%, rgba(121,234,255,.045) 50% 75%, transparent 75% 100%),
    radial-gradient(ellipse at 15% 65%, rgba(130,30,180,.18) 0%, transparent 28%),
    radial-gradient(ellipse at 85% 60%, rgba(200,20,70,.14)  0%, transparent 26%),
    linear-gradient(180deg, #100520 0%, #0c0418 100%);
  background-size: auto, 54px 54px, auto, auto, auto;
}

.features__swap {
  position: relative;
  margin-top: 3.25rem;
}

.feature-swap__stage {
  position: relative;
  min-height: clamp(420px, 48vw, 560px);
  perspective: 1100px;
}

.feature-swap__stage::before,
.feature-swap__stage::after {
  content: "";
  position: absolute;
  inset: 7% 4% auto;
  height: 92%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.035);
  transform: translate3d(18px, 18px, -60px) rotate(-1deg);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  pointer-events: none;
}

.feature-swap__stage::after {
  inset: 10% 8% auto;
  transform: translate3d(34px, 34px, -110px) rotate(1.5deg);
  opacity: .48;
}

.feature-swap__card {
  --feature-accent: #bb44ff;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr);
  gap: clamp(1.25rem, 3vw, 2.4rem);
  align-items: center;
  padding: clamp(1.1rem, 2.6vw, 2rem) clamp(1.1rem, 2.6vw, 2rem) clamp(3.7rem, 5vw, 4.6rem);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 22%, color-mix(in srgb, var(--feature-accent) 34%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow:
    0 0 70px color-mix(in srgb, var(--feature-accent) 26%, transparent),
    0 34px 90px rgba(0,0,0,.62);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(38px, 18px, 0) rotateY(-9deg) scale(.96);
  transition:
    opacity .34s ease,
    transform .5s cubic-bezier(.16,1,.3,1);
}

.feature-swap__card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateY(0) scale(1);
  z-index: 2;
}

.feature-swap__card--amp { --feature-accent: #bb44ff; }
.feature-swap__card--cab { --feature-accent: #79eaff; }
.feature-swap__card--eq { --feature-accent: #79eaff; }
.feature-swap__card--prefx { --feature-accent: #ff6633; }
.feature-swap__card--postfx { --feature-accent: #ffd23c; }
.feature-swap__card--filter { --feature-accent: #ff55cc; }
.feature-swap__card--tuner { --feature-accent: #8cf7cb; }

.feature-swap__media {
  position: relative;
  overflow: hidden;
  padding: 2px;
  border-radius: calc(var(--radius-lg) - 4px);
  background: linear-gradient(135deg, #ff55cc, var(--feature-accent), #79eaff, #8866ff, #ff55cc);
  background-size: 300% 300%;
  animation: border-flow 6s ease infinite;
}

.feature-swap__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  transform: scale(1.045);
  transition: transform .55s ease;
}

.feature-swap__card.active:hover .feature-swap__media img { transform: scale(1.075); }

@keyframes border-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.feature-swap__scan {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.055) 3px,
    rgba(0,0,0,.055) 4px
  );
  pointer-events: none;
  z-index: 2;
}
.feature-swap__scan::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.07) 50%, transparent);
  animation: scan-sweep 8s linear infinite;
}
@keyframes scan-sweep {
  0%   { top: -80px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.feature-swap__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-swap__tag {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .28rem .85rem;
  border-radius: 9999px;
  width: fit-content;
  color: var(--feature-accent);
  background: color-mix(in srgb, var(--feature-accent) 18%, transparent);
}

.feature-swap__body h3 {
  font-family: var(--font-ui-strong);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  line-height: 1.12;
  text-shadow: 0 0 40px rgba(220,80,255,.22);
}

.feature-swap__body p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.78;
  max-width: 430px;
}

.feature-swap__indicators {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .46rem;
  padding: .5rem .64rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9999px;
  background: rgba(10,4,22,.54);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.feature-swap__indicator {
  width: 2rem;
  height: 1rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  transition:
    width .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.feature-swap__indicator::before {
  content: "";
  display: block;
  width: .58rem;
  height: .58rem;
  margin: auto;
  border-radius: 9999px;
  background: rgba(255,255,255,.32);
  transition:
    width .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.feature-swap__indicator:hover,
.feature-swap__indicator:focus-visible {
  outline: none;
}

.feature-swap__indicator:hover::before,
.feature-swap__indicator:focus-visible::before {
  background: rgba(255,255,255,.62);
}

.feature-swap__indicator:focus-visible {
  box-shadow: 0 0 0 3px rgba(121,234,255,.28);
}

.feature-swap__indicator.active {
  width: 2.65rem;
}

.feature-swap__indicator.active::before {
  width: 2.1rem;
  background: #79eaff;
  box-shadow: 0 0 18px rgba(121,234,255,.75);
}

/* ── SHOWCASE ───────────────────────────────────────────────── */
.showcase {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 10%,  rgba(200,80,255,.22)  0%, transparent 40%),
    radial-gradient(ellipse at 20% 80%,  rgba(255,30,110,.14)  0%, transparent 30%),
    linear-gradient(180deg, #0c0418 0%, #160828 50%, #0c0418 100%);
}

/* Stage spotlight animation on showcase section */
.showcase::before {
  content: "";
  position: absolute;
  inset: -8% -14%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% -4%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 14%),
    radial-gradient(ellipse at 50% -6%, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 12%),
    radial-gradient(ellipse at 82% -4%, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 13%),
    conic-gradient(from 170deg at 18% 0%, transparent 0deg, rgba(255,105,210,.16) 4deg, rgba(255,105,210,.08) 7deg, transparent 11deg),
    conic-gradient(from 178deg at 50% 0%, transparent 0deg, rgba(200,110,255,.14) 5deg, rgba(200,110,255,.07) 8deg, transparent 12deg),
    conic-gradient(from 186deg at 82% 0%, transparent 0deg, rgba(110,160,255,.15) 4deg, rgba(110,160,255,.07) 7deg, transparent 11deg);
  filter: blur(1px);
  mix-blend-mode: screen;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
  animation: stage-sweep 12s ease-in-out infinite alternate;
}

.tabs { position: relative; z-index: 1; }

.showcase__app {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeUp .3s ease;
}

.tabs__img-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(200,130,255,.22);
  box-shadow:
    0 0 0 1px rgba(200,130,255,.12),
    0 20px 60px rgba(0,0,0,.7),
    0 0 40px rgba(220,80,255,.25);
}
.tabs__img-wrap img {
  width: 100%;
  display: block;
  transform: scale(1.05);
  transform-origin: center center;
}

.tabs__img-wrap--app {
  --showcase-width: 1280px;
  --showcase-height: 720px;
  --showcase-scale: 1;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: var(--showcase-width);
  margin-inline: auto;
  height: calc(var(--showcase-height) * var(--showcase-scale));
  min-height: 0;
}

.tabs__app-frame {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--showcase-width);
  height: var(--showcase-height);
  transform: scale(var(--showcase-scale));
  transform-origin: top left;
  min-height: 0;
  border: 0;
  background: linear-gradient(180deg, #080214 0%, #110626 45%, #0c0418 100%);
}

.tabs__caption {
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 640px;
  margin-inline: auto;
}
.tabs__caption strong { color: #fff; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SPECS ──────────────────────────────────────────────────── */
.specs {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(130,30,180,.16) 0%, transparent 28%),
    linear-gradient(180deg, #0c0418 0%, #100520 100%);
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) and (min-width: 601px) {
  .specs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-item {
  background:
    linear-gradient(160deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.01) 55%, transparent 100%),
    rgba(30,10,55,.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 20px rgba(20,0,50,.3);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.spec-item:hover {
  transform: translateY(-4px);
  border-color: rgba(200,130,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 20px rgba(220,80,255,.22),
    0 8px 30px rgba(20,0,50,.4);
}

.spec-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.spec-item__icon svg {
  width: 100%;
  height: 100%;
}

.spec-item h4 {
  font-family: var(--font-ui-strong);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(255,255,255,.08),
    0 0 8px rgba(255,95,183,.14);
}
.spec-item p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── DOWNLOAD ───────────────────────────────────────────────── */
.download {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%,  rgba(200,80,255,.20) 0%, transparent 40%),
    radial-gradient(ellipse at 15% 80%, rgba(255,30,110,.12) 0%, transparent 30%),
    linear-gradient(180deg, #100520 0%, #0c0418 100%);
}

.download__bg {
  position: absolute;
  inset: 1.25rem 0 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 12%, rgba(255,105,210,.12) 0%, rgba(255,105,210,0) 34%),
    radial-gradient(ellipse at 50% 8%, rgba(200,110,255,.13) 0%, rgba(200,110,255,0) 32%),
    radial-gradient(ellipse at 82% 14%, rgba(110,160,255,.11) 0%, rgba(110,160,255,0) 30%);
  filter: blur(1px);
  mix-blend-mode: screen;
  opacity: .9;
}

/* Latest release card */
.dl-latest {
  background:
    linear-gradient(160deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.01) 55%, transparent 100%),
    rgba(30,10,55,.80);
  border: 1px solid rgba(200,130,255,.32);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 60px rgba(220,80,255,.18),
    0 20px 60px rgba(0,0,0,.5);
  margin-bottom: 1.5rem;
}

.dl-latest__badge {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .28rem .85rem;
  border-radius: 9999px;
  background: var(--grad-active);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 16px rgba(220,80,255,.45);
  text-shadow: 0 1px 2px rgba(20,0,50,.5);
}

.dl-latest__version {
  font-family: var(--font-display-tight);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: var(--font-display-tracking);
  color: transparent;
  background: linear-gradient(105deg,
    #ffeeff 0%, #ffaaee 12%, #ff55cc 26%,
    #dd44ff 42%, #aa77ff 56%, #ffbbff 68%,
    #ff88dd 82%, #ffeeff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0 18px rgba(220,80,255,.65))
    drop-shadow(0 0 36px rgba(255,60,200,.35));
  animation: shimmer 6s ease-in-out infinite alternate;
}

.dl-latest__note {
  font-size: .88rem;
  color: var(--text-muted);
}

.dl-latest__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: .5rem;
  width: min(100%, 600px);
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  padding: .75rem 1.75rem;
  width: 100%;
  border-radius: 9999px;
  font-family: var(--font-ui-strong);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.dl-platform {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .08rem;
  line-height: 1.1;
  flex: 1 1 auto;
  min-width: 0;
}

.dl-platform__name {
  display: block;
  white-space: nowrap;
}

.dl-platform__subtitle {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .74;
}

.dl-btn__ext {
  font-size: .78rem;
  font-weight: 600;
  opacity: .7;
  letter-spacing: .08em;
  flex-shrink: 0;
  text-align: right;
}

.dl-btn--win {
  background: var(--grad-active);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 24px rgba(220,80,255,.45),
    0 0 8px  rgba(255,60,200,.25);
  text-shadow: 0 1px 2px rgba(20,0,50,.5);
}
.dl-btn--win:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 0 40px rgba(220,80,255,.60),
    0 0 16px rgba(255,60,200,.35);
}
.dl-btn--win:active { transform: translateY(1px); }

.dl-btn--mac {
  background:
    linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 55%, transparent 100%),
    rgba(70,15,110,.42);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.dl-btn--mac:not(.dl-btn--disabled):hover {
  border-color: rgba(200,130,255,.52);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 55%, transparent 100%),
    rgba(100,30,160,.52);
  box-shadow: 0 0 14px rgba(160,60,255,.28);
}

.dl-btn--ipad {
  background:
    linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 55%, transparent 100%),
    rgba(70,15,110,.42);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.dl-btn--ipad:not(.dl-btn--disabled):hover {
  border-color: rgba(200,130,255,.52);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 55%, transparent 100%),
    rgba(100,30,160,.52);
  box-shadow: 0 0 14px rgba(160,60,255,.28);
}

.dl-btn--cc {
  background:
    linear-gradient(160deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 55%, transparent 100%),
    rgba(60,10,90,.42);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.dl-btn--cc:hover {
  border-color: rgba(255,85,204,.5);
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 55%, transparent 100%),
    rgba(90,20,130,.52);
  box-shadow: 0 0 14px rgba(255,85,204,.22);
}

.dl-btn--disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.3);
}

@media (max-width: 480px) {
  .dl-latest__buttons {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .dl-btn {
    padding: .7rem 1.25rem;
    font-size: .88rem;
  }
}

.dl-requirements {
  margin: 0 0 1.5rem;
  padding: 1.35rem;
  border: 1px solid rgba(200,130,255,.22);
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
    rgba(24,8,46,.64);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 44px rgba(0,0,0,.28);
}

.dl-requirements__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dl-requirements__header span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.dl-requirements__header h3 {
  font-family: var(--font-ui-strong);
  font-size: 1.05rem;
  color: #fff;
}

.dl-requirements__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.dl-requirement {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.dl-requirement svg {
  flex: 0 0 auto;
  margin-top: .12rem;
}

.dl-requirement strong {
  display: block;
  font-family: var(--font-ui-strong);
  font-size: .9rem;
  color: #fff;
  margin-bottom: .18rem;
}

.dl-requirement p {
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.48;
}

/* Loading spinner */
.dl-loading {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.dl-loading__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(200, 130, 255, .2);
  border-top-color: #bb44ff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Download content wrapper */
.dl-content { width: 100%; }

/* Version history */
.dl-history {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,255,255,.04) 0%, transparent 55%),
    rgba(20,6,38,.70);
}

.dl-history__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui-strong);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.dl-history__toggle:hover {
  color: #fff;
  background: rgba(100,30,160,.22);
}
.dl-history__toggle[aria-expanded="true"] { color: #fff; }

.dl-history__chevron {
  transition: transform var(--transition);
  flex-shrink: 0;
}
.dl-history__toggle[aria-expanded="true"] .dl-history__chevron {
  transform: rotate(180deg);
}

.dl-history__table-wrap {
  padding: 0 1.5rem 1.5rem;
  animation: fadeUp .25s ease;
}

.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui-strong);
  font-size: .88rem;
}

.dl-table th {
  text-align: left;
  padding: .55rem .75rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}

.dl-table td {
  padding: .7rem .75rem;
  border-bottom: 1px solid rgba(200,130,255,.08);
  color: var(--text-muted);
  vertical-align: middle;
}
.dl-table tr:last-child td { border-bottom: none; }

.dl-table__ver {
  font-family: var(--font-brand-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: transparent;
  background: linear-gradient(105deg, #ff55cc, #dd44ff, #aa77ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.dl-table__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: 9999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(70,15,110,.28);
  transition: var(--transition);
  text-decoration: none;
}
.dl-table__link:hover {
  color: #fff;
  border-color: rgba(200,130,255,.52);
  background: rgba(100,30,160,.42);
  box-shadow: 0 0 12px rgba(160,60,255,.25);
  transform: translateY(-1px);
}

.dl-table__link .dl-platform__subtitle {
  font-size: .62rem;
  letter-spacing: .12em;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-deep);
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(255,180,240,.12);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer__brand img {
  width: auto;
  height: 32px;
  object-fit: contain;
  align-self: flex-start;
  filter:
    drop-shadow(0 0 16px rgba(220,80,255,.24))
    drop-shadow(0 0 28px rgba(255,60,200,.16));
}
.footer__brand p {
  font-size: .82rem;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .95rem 1.2rem;
  margin-left: auto;
}

.footer__links a {
  color: var(--text-muted);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .03em;
  transition: color var(--transition), text-shadow var(--transition);
}

.footer__links a:hover,
.footer__links a:focus-visible {
  color: #fff;
  text-shadow: 0 0 14px rgba(220,80,255,.3);
  outline: none;
}

.footer__email {
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .03em;
  transition: color var(--transition), text-shadow var(--transition);
}

.footer__email:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(220,80,255,.36);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: .78rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200,130,255,.12);
}

.footer--legal {
  margin-top: 0;
}

/* ── Language switcher ──────────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border-radius: 9999px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.01) 55%, transparent 100%),
    rgba(70,15,110,.32);
  border: 1px solid rgba(200,130,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 14px rgba(130,50,220,.12);
  overflow: visible;
}

.lang-switcher__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switcher__icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  width: .95rem;
  height: .95rem;
  color: rgba(240,220,255,.78);
  transform: translateY(-50%);
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(220,80,255,.18));
}

.lang-switcher__icon svg {
  width: 100%;
  height: 100%;
}

.lang-dropdown__trigger {
  min-width: 176px;
  padding: .52rem 2.6rem .52rem 2.35rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui-strong);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: var(--font-ui-tracking);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
}

.lang-switcher:hover {
  border-color: rgba(200,130,255,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 16px rgba(160,60,255,.24);
}

.lang-dropdown__trigger:hover,
.lang-dropdown__trigger:focus {
  color: #fff;
  outline: none;
  box-shadow: none;
}

.lang-dropdown__value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switcher::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: .45rem;
  height: .45rem;
  border-right: 2px solid rgba(240,220,255,.82);
  border-bottom: 2px solid rgba(240,220,255,.82);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(220,80,255,.2));
}

.lang-switcher.open::after {
  transform: translateY(-25%) rotate(225deg);
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  min-width: 220px;
  display: grid;
  gap: .35rem;
  padding: .65rem;
  border-radius: 18px;
  border: 1px solid rgba(200,130,255,.28);
  background:
    linear-gradient(160deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.01) 55%, transparent 100%),
    rgba(30,10,55,.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 40px rgba(0,0,0,.45),
    0 0 22px rgba(160,60,255,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 120;
}

.lang-switcher.open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .72rem .9rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(70,15,110,.18);
  color: var(--text-muted);
  font-family: var(--font-ui-strong);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.lang-option:hover,
.lang-option:focus {
  color: #fff;
  border-color: rgba(220,155,255,.38);
  background:
    linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.02) 55%, transparent 100%),
    rgba(100,30,160,.42);
  outline: none;
}

.lang-option.active {
  background: var(--grad-active);
  color: #fff;
  border-color: rgba(210,140,255,.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 16px rgba(160,70,255,.28);
}

.lang-option.active::after {
  content: "•";
  font-size: 1rem;
  line-height: 1;
}

/* ── Language-specific type systems ─────────────────────────── */
html:lang(en) {
  --font-ui: 'DM Sans', Inter, 'Segoe UI', Arial, sans-serif;
  --font-ui-strong: 'DM Sans', Inter, 'Segoe UI', Arial, sans-serif;
  --font-brand-display: 'Cinzel Decorative', Georgia, serif;
  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-display-tight: 'Cinzel Decorative', Georgia, serif;
  --font-body-tracking: 0;
  --font-display-tracking: 0.12em;
  --font-ui-tracking: 0.02em;
}

html:lang(ja) {
  --font-ui: 'Shippori Mincho', serif;
  --font-ui-strong: 'Shippori Mincho', serif;
  --font-brand-display: 'Cinzel Decorative', Georgia, serif;
  --font-display: 'Shippori Mincho', serif;
  --font-display-tight: 'Shippori Mincho', serif;
  --font-body-tracking: 0.01em;
  --font-display-tracking: 0.08em;
  --font-ui-tracking: 0.03em;
}

html:lang(zh-tw) {
  --font-ui: 'Microsoft JhengHei', 'PingFang TC', 'Noto Serif SC', serif;
  --font-ui-strong: 'Microsoft JhengHei', 'PingFang TC', 'Noto Serif SC', serif;
  --font-brand-display: 'Cinzel Decorative', Georgia, serif;
  --font-display: 'Noto Serif SC', 'Microsoft JhengHei', 'PingFang TC', serif;
  --font-display-tight: 'Noto Serif SC', 'Microsoft JhengHei', 'PingFang TC', serif;
  --font-body-tracking: 0.005em;
  --font-display-tracking: 0.06em;
  --font-ui-tracking: 0.02em;
}

html:lang(ms) {
  --font-ui: 'DM Sans', Inter, 'Segoe UI', Arial, sans-serif;
  --font-ui-strong: 'DM Sans', Inter, 'Segoe UI', Arial, sans-serif;
  --font-brand-display: 'Cinzel Decorative', Georgia, serif;
  --font-display: 'Cinzel Decorative', Georgia, serif;
  --font-display-tight: 'Cinzel Decorative', Georgia, serif;
  --font-body-tracking: 0.002em;
  --font-display-tracking: 0.11em;
  --font-ui-tracking: 0.025em;
}

html:lang(ta) {
  --font-ui: 'Nirmala UI', 'Latha', 'Vijaya', sans-serif;
  --font-ui-strong: 'Nirmala UI', 'Latha', 'Vijaya', sans-serif;
  --font-brand-display: 'Cinzel Decorative', Georgia, serif;
  --font-display: 'Nirmala UI', 'Latha', 'Vijaya', sans-serif;
  --font-display-tight: 'Nirmala UI', 'Latha', 'Vijaya', sans-serif;
  --font-body-tracking: 0.003em;
  --font-display-tracking: 0.035em;
  --font-ui-tracking: 0.02em;
}

button,
input,
select,
textarea {
  font: inherit;
}

.lang-dropdown__value:lang(ja),
.lang-option:lang(ja) {
  font-family: 'Shippori Mincho', serif;
}

.lang-dropdown__value:lang(zh-tw),
.lang-option:lang(zh-tw) {
  font-family: 'Noto Serif SC', 'Microsoft JhengHei', 'PingFang TC', serif;
}

.lang-dropdown__value:lang(ms),
.lang-option:lang(ms) {
  font-family: 'DM Sans', Inter, 'Segoe UI', Arial, sans-serif;
}

.lang-dropdown__value:lang(ta),
.lang-option:lang(ta) {
  font-family: 'Nirmala UI', 'Latha', 'Vijaya', sans-serif;
}

/* Hero title "NOAH RIGS" is a Latin brand name, so keep the brand display face. */

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #bb44ff, #ee55cc);
  border-radius: 9999px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .feature-swap__stage { min-height: 640px; }

  .feature-swap__card {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .feature-swap__body p { max-width: 100%; }
}

@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .nav,
  .hero,
  .features,
  .showcase,
  .specs,
  .download,
  .footer,
  .legal-main,
  .legal-hero {
    overflow-x: clip;
  }
  .container,
  .nav__inner,
  .hero__inner,
  .tabs,
  .specs__grid,
  .download__panel,
  .footer__inner,
  .legal-hero__inner,
  .legal-shell {
    max-width: 100%;
  }
  .nav {
    position: fixed;
    padding: calc(env(safe-area-inset-top, 0px) + .42rem) .78rem .42rem;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(18,6,36,.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
    box-shadow: none;
    will-change: auto;
  }
  .nav.scrolled {
    background: rgba(18,6,36,.97);
    box-shadow: none;
  }
  .hero {
    padding-top: calc(env(safe-area-inset-top, 0px) + 50px);
    min-height: auto;
  }
  .hero__keyvisual {
    position: absolute;
    inset: calc(env(safe-area-inset-top, 0px) + 38px) 0 auto 0;
    width: 100%;
    height: min(74svh, 620px);
    margin: 0;
    border: 0;
    border-radius: 0;
    opacity: .58;
    transform: none;
    animation: none;
    filter: saturate(1.1) brightness(.98);
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.2) 10%, #000 38%, #000 100%),
      linear-gradient(180deg, #000 0%, #000 64%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0,0,0,.2) 10%, #000 38%, #000 100%),
      linear-gradient(180deg, #000 0%, #000 64%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hero__keyvisual::before {
    display: none;
  }
  .hero__keyvisual::after {
    background:
      linear-gradient(90deg, rgba(12,4,24,.9), rgba(12,4,24,.34) 42%, transparent 100%),
      linear-gradient(180deg, rgba(12,4,24,.1), rgba(12,4,24,.88) 84%),
      repeating-linear-gradient(-9deg, transparent 0 13px, rgba(255,255,255,.03) 14px, transparent 15px);
  }
  .hero__keyvisual img {
    object-position: center center;
  }
  .hero__inner {
    align-items: center;
    text-align: center;
    padding: 1rem 1rem 1.75rem;
    gap: .78rem;
  }
  .hero__badge {
    margin-top: 0;
    align-self: center;
  }
  .hero__title {
    font-size: clamp(2.95rem, 16vw, 4.1rem);
    line-height: .9;
    filter:
      drop-shadow(0 0 20px rgba(220,80,255,.72))
      drop-shadow(0 0 40px rgba(255,60,200,.34))
      drop-shadow(0 3px 4px rgba(0,0,0,.8));
  }
  .hero__cta {
    justify-content: center;
  }
  .feature-swap__stage {
    min-height: 620px;
  }
  .features {
    padding-top: 1.25rem;
  }
  .features .section-header[data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .features .section-title {
    font-size: 1.24rem;
    line-height: 1.24;
    max-width: 300px;
    margin-inline: auto;
  }
  .features .section-sub {
    max-width: 330px;
    font-size: .92rem;
  }
  .feature-swap__card {
    gap: 1rem;
    padding: .84rem;
  }
  .feature-swap__body {
    align-items: center;
    text-align: center;
  }
  .feature-swap__body p {
    margin-inline: auto;
    font-size: .94rem;
    line-height: 1.62;
  }
  .specs {
    padding: 4.5rem 0 4rem;
  }
  .specs .container {
    padding-inline: 0;
  }
  .specs .section-header {
    padding-inline: 1rem;
  }
  .specs__grid {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    padding: .25rem 1rem 1rem;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .specs__grid::-webkit-scrollbar {
    height: 4px;
  }
  .specs__grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,.06);
    border-radius: 9999px;
    margin-inline: 1rem;
  }
  .specs__grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #ff55cc, #79eaff);
    border-radius: 9999px;
  }
  .spec-item {
    flex: 0 0 min(82vw, 320px);
    min-height: 250px;
    scroll-snap-align: center;
    padding: 1.35rem 1.15rem;
    border-radius: 10px;
  }
  .spec-item:hover {
    transform: none;
  }
  .spec-item__icon {
    width: 42px;
    height: 42px;
  }
  .spec-item h4 {
    font-size: 1rem;
    line-height: 1.25;
  }
  .spec-item p {
    font-size: .85rem;
    line-height: 1.58;
  }
  .hero__mockup-frame { transform: none; }
  .hero__mockup {
    max-width: min(100%, 330px);
    margin-top: .35rem;
    padding-bottom: 0;
  }
  .hero__mockup-glow {
    inset: -8px 2% 8px;
    filter: blur(20px);
  }
  .hero__mockup-frame {
    border-radius: 12px;
  }
  .hero__mockup-frame img {
    transform: scale(1.02);
  }
  .hero__mockup-reflection {
    display: none;
  }
  .hero__cta {
    width: min(100%, 288px);
    flex-direction: column;
    align-items: stretch;
    gap: .72rem;
    max-width: calc(100vw - 2rem);
  }
  .hero__cta .btn {
    justify-content: center;
    padding: .68rem 1rem;
    font-size: .9rem;
  }
  .dl-requirements {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
  }
  .dl-requirements__header {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  .dl-requirements__grid {
    grid-template-columns: 1fr;
    gap: .62rem;
  }
  .dl-requirement {
    padding: .82rem;
  }
  .hero__subtitle {
    display: none;
  }
  .nav__inner {
    display: flex;
    gap: .35rem;
    height: 40px;
    padding: 0;
    align-items: center;
  }
  .nav__logo {
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-start;
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
    min-width: 0;
    overflow: hidden;
  }
  .nav__logo img {
    width: auto;
    height: 18px;
  }
  .nav__inner > .btn--sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
    gap: 0;
    border-radius: 50%;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.28),
      0 0 18px rgba(220,80,255,.42),
      0 0 8px rgba(255,60,200,.22);
  }
  .nav-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-cta__icon svg {
    width: .92rem;
    height: .92rem;
  }
  .nav-cta__label {
    display: none;
  }
  .lang-switcher {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    max-width: 36px;
    min-width: 36px;
    border-radius: 50%;
  }
  .lang-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
  }
  .lang-dropdown__menu {
    left: auto;
    right: 0;
    min-width: 132px;
  }
  .lang-switcher__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: .82rem;
    height: .82rem;
    margin: auto;
    transform: none;
  }
  .lang-switcher::after {
    display: none;
  }
  .lang-dropdown__value {
    display: none;
  }
  .lang-option {
    justify-content: center;
    padding: .68rem .72rem;
  }
  .dl-history__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dl-table th:not(:first-child),
  .dl-table td:not(:first-child) {
    text-align: center;
  }
  .dl-table__link {
    justify-content: center;
    gap: 0;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 9999px;
  }
  .dl-table__link .dl-platform {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .legal-main {
    padding: 2.2rem 0 4rem;
  }

  .legal-card,
  .legal-card--intro {
    padding: 1.2rem 1rem 1.25rem;
  }

  .legal-hero__inner {
    align-items: flex-start;
  }

  .legal-hero__nav {
    width: 100%;
  }

  .legal-hero__link {
    flex: 1 1 100%;
    text-align: center;
  }
}


/* ══════════════════════════════════════════════════════════════════
   MIDI CC MANUAL PAGE  (.cc-page)
   ══════════════════════════════════════════════════════════════════ */

/* ── Page base ───────────────────────────────────────────────── */
.cc-page {
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
}

/* ── Hero ────────────────────────────────────────────────────── */
.cc-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 64px;
}

.cc-hero__aurora { position: absolute; inset: 0; pointer-events: none; }

.cc-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .26;
}

.cc-hero__blob--a {
  width: 560px; height: 380px;
  background: radial-gradient(ellipse, #dd44ff 0%, transparent 70%);
  top: -60px; left: -80px;
  animation: cc-blob-a 14s ease-in-out infinite alternate;
}

.cc-hero__blob--b {
  width: 480px; height: 320px;
  background: radial-gradient(ellipse, #ff55cc 0%, transparent 70%);
  top: 20px; right: -60px;
  animation: cc-blob-b 18s ease-in-out infinite alternate;
}

@keyframes cc-blob-a {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.08); }
}
@keyframes cc-blob-b {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-20px,14px) scale(.94); }
}

.cc-hero__inner { position: relative; z-index: 1; }

.cc-hero__eyebrow {
  font-family: var(--font-brand-display);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

.cc-hero__title {
  font-family: var(--font-brand-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.15;
  background: var(--grad-active);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.cc-hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.cc-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cc-pdf-btn { display: inline-flex; align-items: center; gap: 7px; }

.cc-pdf-btn::before {
  content: '';
  display: inline-block;
  width: 15px; height: 15px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10'/%3E%3Cpath d='M8.5 11.5 12 15l3.5-3.5'/%3E%3Cpath d='M5 18.5h14'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10'/%3E%3Cpath d='M8.5 11.5 12 15l3.5-3.5'/%3E%3Cpath d='M5 18.5h14'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  flex-shrink: 0;
}

/* ── btn--ghost (nav back button) ────────────────────────────── */
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(200,168,232,.08);
  color: var(--text);
  border-color: rgba(200,168,232,.4);
}

/* ── Main content ─────────────────────────────────────────────── */
.cc-main { padding: 0 0 96px; }

/* ── Sticky section nav ───────────────────────────────────────── */
.cc-snav {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0;
  margin-bottom: 40px;
  background: linear-gradient(to bottom, var(--bg-deep) 60%, transparent);
  /* fade the scroll edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.cc-snav::-webkit-scrollbar { display: none; }

.cc-snav__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.cc-snav__btn:hover {
  color: var(--text-muted);
  border-color: rgba(200,168,232,.35);
}

.cc-snav__btn.active {
  color: var(--pink);
  background: rgba(255,85,204,.1);
  border-color: rgba(255,85,204,.4);
}

/* ── Legend strip ─────────────────────────────────────────────── */
.cc-leg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  padding: 12px 20px;
  margin-bottom: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: var(--font-body-tracking);
}

.cc-leg__label {
  font-weight: 700;
  color: var(--pink);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cc-leg__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cc-leg__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cc-leg__dot--on   { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.cc-leg__dot--off  { background: var(--pink-hot); box-shadow: 0 0 6px var(--pink-hot); }
.cc-leg__dot--zone { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.cc-leg__dot--bump { background: var(--violet); box-shadow: 0 0 6px var(--violet); }

/* ── Section card ─────────────────────────────────────────────── */
.cc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  scroll-margin-top: 120px;  /* offset for sticky nav */
}

.cc-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card2);
}

.cc-card__num {
  font-family: var(--font-brand-display);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--text-dim);
}

.cc-card__title {
  font-family: var(--font-brand-display);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  flex: 1;
}

.cc-card__count {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 9px;
}

/* ── Parameter rows ───────────────────────────────────────────── */
.cc-card__rows { display: flex; flex-direction: column; }

.cc-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(58,26,90,.5);
  transition: background var(--transition);
}

.cc-row:last-child { border-bottom: none; }
.cc-row:hover { background: rgba(170,119,255,.05); }

/* ── CC badge ────────────────────────────────────────────────── */
.cc-row__badge { flex-shrink: 0; padding-top: 2px; }

.cc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(121,234,255,.08);
  border: 1px solid rgba(121,234,255,.25);
  font-family: 'DM Sans', monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cyan);
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(121,234,255,.1);
}

/* ── Row body ─────────────────────────────────────────────────── */
.cc-row__body { flex: 1; min-width: 0; }

.cc-row__name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: var(--font-body-tracking);
}

/* ── Value chip groups ────────────────────────────────────────── */
.cc-vals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cc-vals--2 { gap: 8px; }

.cc-vals--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}

.cc-vals--grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.cc-vals--rsize { flex-direction: column; gap: 8px; }

/* ── Individual pair  [range] [value] ─────────────────────────── */
.cc-pair {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Chips ────────────────────────────────────────────────────── */
.cc-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  line-height: 1.6;
}

.cc-chip--range {
  background: rgba(185,167,255,.12);
  border: 1px solid rgba(185,167,255,.35);
  color: rgba(210,195,255,.85);
  font-size: .72rem;
}

.cc-chip--on {
  background: rgba(121,234,255,.1);
  border: 1px solid rgba(121,234,255,.25);
  color: var(--cyan);
}

.cc-chip--off {
  background: rgba(255,47,164,.1);
  border: 1px solid rgba(255,47,164,.25);
  color: var(--pink-hot);
}

.cc-chip--zone {
  background: rgba(121,234,255,.1);
  border: 1px solid rgba(121,234,255,.25);
  color: var(--cyan);
}

.cc-chip--bump {
  background: rgba(185,167,255,.1);
  border: 1px solid rgba(185,167,255,.25);
  color: var(--violet);
}

/* ── Reverb size detail ───────────────────────────────────────── */
.cc-rsize {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cc-rsize__detail {
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .02em;
}

/* ── PC / CC-1 panel ──────────────────────────────────────────── */
.cc-card--pc .cc-pc-grid { display: flex; flex-direction: column; }

.cc-pc-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 20px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(58,26,90,.5);
  font-size: .88rem;
  line-height: 1.65;
  transition: background var(--transition);
}
.cc-pc-row:last-child { border-bottom: none; }
.cc-pc-row:hover { background: rgba(170,119,255,.05); }

.cc-pc-row__label {
  font-weight: 600;
  color: var(--cyan);
  font-size: .82rem;
  letter-spacing: .04em;
  padding-top: 2px;
}

.cc-pc-row__body {
  color: var(--text-muted);
  letter-spacing: var(--font-body-tracking);
}

.cc-pc-row__body strong { color: var(--text); }

/* shared inline colour helpers used inside pc_rows and notes HTML */
.cc-cyan  { color: var(--cyan); }
.cc-faint { color: var(--text-dim); }

/* ── Notes grid ───────────────────────────────────────────────── */
.cc-notes-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(58,26,90,.4);    /* gap colour */
}

.cc-note-card {
  background: var(--bg-card);
  padding: 18px 22px;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--text-muted);
  letter-spacing: var(--font-body-tracking);
  transition: background var(--transition);
}

.cc-note-card:hover { background: rgba(170,119,255,.04); }
.cc-note-card:first-child { border-radius: 0; }

.cc-note-card strong { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cc-hero { padding: 96px 0 48px; }
  .cc-card__head  { padding: 14px 18px 12px; }
  .cc-row         { padding: 14px 18px; gap: 14px; }
  .cc-pc-row      { grid-template-columns: 120px 1fr; padding: 12px 18px; }
  .cc-note-card   { padding: 16px 18px; }
  .cc-vals--grid  { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 600px) {
  .cc-hero { padding: 88px 0 40px; }
  .cc-hero__title { font-size: 1.6rem; }

  .cc-snav { top: 56px; padding: 8px 0; margin-bottom: 28px; }

  .cc-card { border-radius: var(--radius-md); margin-bottom: 16px; }
  .cc-card__head { padding: 12px 14px 10px; gap: 10px; }
  .cc-card__title { font-size: .82rem; }

  .cc-row { flex-direction: column; gap: 8px; padding: 12px 14px; }
  .cc-row__name { margin-bottom: 6px; font-size: .86rem; }

  .cc-vals--grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .cc-pc-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .cc-pc-row__label { font-size: .78rem; }

  .cc-notes-grid { grid-template-columns: 1fr; }
  .cc-note-card { padding: 14px 14px; }

  .cc-leg { gap: 6px 14px; font-size: .76rem; padding: 10px 14px; }
}

@media print {
  .nav, .cc-snav, .cc-hero__actions, .footer { display: none !important; }
  .cc-hero { padding: 24px 0 16px; background: none; }
  .cc-hero .aurora-blob { display: none; }
  .cc-main { padding: 0 0 24px; }
  .cc-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    box-shadow: none;
    margin-bottom: 16px;
  }
  .cc-card__head { background: #f0eaff; }
  .cc-card__num, .cc-card__title, .cc-row__name, .cc-row__desc,
  .cc-chip, .cc-badge { color: #000 !important; }
  .cc-chip--range { background: #ede8ff; border-color: #bbb; }
  .cc-chip--on    { background: #e0f8ff; border-color: #7dd; }
  .cc-chip--off   { background: #ffe0f4; border-color: #e9a; }
  .cc-chip--zone  { background: #e0f8ff; border-color: #7dd; }
  .cc-chip--bump  { background: #ede8ff; border-color: #bbb; }
  .cc-leg { background: #f8f5ff; border-color: #ccc; color: #000; }
  .cc-snav__btn, .btn--ghost { display: none; }
  a { color: inherit; text-decoration: none; }
}

