/* ── 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:       #a58abc;
  --border:         rgba(200, 130, 255, 0.22);

  /* Shared dropdown surface */
  --select-surface: rgba(22, 8, 40, .98);
  --select-border: rgba(200, 130, 255, .28);
  --select-border-hover: rgba(220, 145, 255, .52);
  --select-ring: rgba(255, 85, 204, .16);
  --select-option-hover: rgba(150, 55, 225, .34);

  --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) ── */
html: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;
}

html: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;
}

html: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; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 12000;
  padding: .7rem 1rem;
  border-radius: 9999px;
  background: #fff;
  color: #25063d;
  font-weight: 800;
  transform: translateY(calc(-100% - 1rem));
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #79eaff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(12, 4, 24, .88), 0 0 0 8px rgba(121, 234, 255, .34) !important;
}

.spa-view:focus,
.legal-main:focus,
.cc-main:focus {
  outline: none !important;
  box-shadow: none !important;
}

.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;
}

/* ── Account pages (acct-*) ────────────────────────────────── */
.acct {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 85, 204, 0.18), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(121, 234, 255, 0.10), transparent 26%),
    linear-gradient(180deg, #120421 0%, #0b0416 48%, #07020f 100%);
}

.acct__aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.acct__blob { position: absolute; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(34px); opacity: .3; pointer-events: none; }
.acct__blob--a { top: -4rem; left: -7rem; background: radial-gradient(circle, rgba(255,85,204,.85), transparent 68%); }
.acct__blob--b { right: -8rem; top: 6rem; background: radial-gradient(circle, rgba(136,102,255,.82), transparent 72%); }

.acct__shell {
  position: relative;
  z-index: 1;
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
  padding: 64px 0 3rem;
}

/* ── Centered auth card (login / register / verify / reset) ── */
.acct-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 2rem 0;
}

.acct-card {
  width: 100%;
  max-width: 440px;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid rgba(200,130,255,.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    rgba(20, 8, 34, 0.92);
  box-shadow:
    0 28px 70px rgba(4,0,12,.45),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.acct-card__head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.acct-card__head h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  margin-top: .65rem;
}

.acct-card__head p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-top: .4rem;
}

.acct-sso-context {
  width: fit-content;
  margin: .85rem auto 0;
  padding: .35rem .7rem;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  border: 1px solid rgba(213, 157, 255, .24);
  border-radius: 999px;
  background: rgba(160, 85, 235, .1);
  color: #ddc5f4;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.acct-sso-context span {
  color: #df66d3;
  filter: drop-shadow(0 0 6px rgba(223, 102, 211, .55));
}

.acct-logo {
  display: block;
  margin: 0 auto;
}

/* ── Forms ──────────────────────────────────────────────────── */
.acct-form {
  display: grid;
  gap: .95rem;
}

.acct-field {
  display: grid;
  gap: .38rem;
}

.acct-field span {
  color: #f7eeff;
  font-size: .85rem;
  font-weight: 700;
}

.acct-field__hint {
  margin: -.2rem 0 .1rem;
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.4;
}

.acct-field input,
.acct-field select {
  width: 100%;
  min-height: 48px;
  padding: .82rem 1rem;
  border: 1px solid rgba(200,130,255,.16);
  border-radius: 14px;
  background: rgba(9,4,18,.82);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.acct-field input::placeholder {
  color: rgba(240,220,255,.42);
}

.acct-field input:focus,
.acct-field select:focus {
  border-color: rgba(255,85,204,.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,85,204,.12);
}

.acct-otp-input {
  font-size: 1.4rem !important;
  letter-spacing: .4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.acct-submit {
  width: 100%;
  justify-content: center;
  margin-top: .25rem;
}

.btn.acct-resend-btn {
  width: 100%;
  min-width: 0;
  padding-inline: 1rem;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
}

.acct-resend-btn:disabled,
.acct-resend-btn[aria-disabled="true"],
.acct-resend-btn:disabled:hover,
.acct-resend-btn[aria-disabled="true"]:hover {
  cursor: not-allowed;
  opacity: .58;
  color: rgba(231, 210, 245, .72);
  border-color: rgba(200, 130, 255, .14);
  background: rgba(44, 18, 65, .3);
  box-shadow: none;
  transform: none;
}

.acct-resend-status {
  display: block;
  min-height: 1.5em;
  margin: .15rem .5rem 0;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.acct-resend-btn + .acct-resend-status {
  margin: .3rem .5rem 0;
}

.acct-passkey-otp__resend {
  margin-top: .8rem;
}

.acct-passkey-otp__feedback {
  min-height: 1.2em;
  margin: .45rem 0 0;
  color: #b9f3ff;
  font-size: .8rem;
  line-height: 1.4;
  text-align: center;
}

.acct-passkey-otp__feedback--error {
  color: #ff9fc2;
}

.acct-auth-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1rem 0 .75rem;
  color: var(--text-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.acct-auth-divider::before,
.acct-auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(200,130,255,.14);
}

.acct-passkey-login {
  border-color: rgba(255,85,204,.28);
  background: rgba(255,85,204,.08);
}

.acct-passkey-login:hover {
  border-color: rgba(255,85,204,.48);
  background: rgba(255,85,204,.14);
}

.acct-passkey-login--unavailable,
.acct-passkey-login--unavailable:hover {
  opacity: .72;
  box-shadow: none;
  transform: none;
  cursor: help;
}

.acct-recaptcha {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  margin: .15rem 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.acct-recaptcha::before {
  content: none;
}

.acct-recaptcha-section {
  display: none;
}

.acct-recaptcha-section--visible {
  display: block;
}

.acct-recaptcha__slot {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 78px;
  align-items: center;
  justify-content: center;
}

.acct-recaptcha__slot[data-widget-size="compact"] {
  width: 164px;
  min-height: 144px;
}

.acct-recaptcha__slot[data-widget-size="normal"] {
  width: 304px;
  max-width: 100%;
}

.acct-recaptcha__hint {
  margin: -.15rem 0 .15rem;
  color: var(--text-muted);
  font-size: .8rem;
  text-align: center;
}

body.acct-modal-open {
  overflow: hidden;
}

.acct-recaptcha-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.acct-recaptcha-modal[hidden] {
  display: none;
}

.acct-recaptcha-modal [hidden] {
  display: none;
}

.acct-recaptcha-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 0, 12, .76);
  backdrop-filter: blur(12px);
}

.acct-recaptcha-modal__dialog {
  position: relative;
  width: min(420px, calc(100vw - 2rem));
  padding: 2rem;
  overflow: visible;
  border: 1px solid rgba(200, 130, 255, .28);
  border-radius: 26px;
  outline: none;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 85, 204, .13), transparent 38%),
    linear-gradient(145deg, rgba(34, 17, 50, .99), rgba(17, 7, 29, .99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .64), 0 0 42px rgba(166, 76, 255, .1);
  text-align: center;
}

.acct-recaptcha-modal__dialog:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 85, 204, .18), 0 28px 90px rgba(0, 0, 0, .64);
}

.acct-recaptcha-modal__close {
  position: absolute;
  top: .75rem;
  right: .8rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.acct-recaptcha-modal__close:hover,
.acct-recaptcha-modal__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  outline: none;
}

.acct-recaptcha-modal__logo .acct-logo {
  width: 38px;
  height: 38px;
  margin-bottom: .75rem;
}

.acct-recaptcha-modal__dialog h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.acct-recaptcha-modal__dialog > p {
  margin: .55rem auto 1.25rem;
  max-width: 30ch;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.acct-recaptcha-modal .acct-recaptcha {
  margin: 0 auto;
}

.acct-recaptcha-modal__status {
  min-height: 1.35em;
  margin: .8rem 0 0 !important;
  color: var(--text-muted) !important;
  font-size: .8rem !important;
}

.acct-recaptcha-modal[data-state="error"] .acct-recaptcha-modal__status,
.acct-recaptcha-modal[data-state="expired"] .acct-recaptcha-modal__status {
  color: #ff9fc2 !important;
}

.acct-recaptcha-modal__actions {
  display: flex;
  gap: .65rem;
  margin-top: .9rem;
}

.acct-recaptcha-modal__actions .btn {
  flex: 1;
}

@media (max-width: 390px) {
  .acct-recaptcha-modal__dialog {
    padding: 1.7rem 1rem 1.25rem;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acct-recaptcha-modal__backdrop {
    backdrop-filter: none;
  }
}

.acct-card__links {
  text-align: center;
  margin-top: .75rem;
}

.acct-card__links a {
  color: var(--pink);
  font-size: .88rem;
  font-weight: 600;
  transition: color var(--transition);
}

.acct-card__links a:hover { color: #fff; }

.acct-card__footer {
  text-align: center;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(200,130,255,.12);
  color: var(--text-muted);
  font-size: .88rem;
}

.acct-card__footer a {
  color: var(--pink);
  font-weight: 700;
  transition: color var(--transition);
}

.acct-card__footer a:hover { color: #fff; }

/* ── Alert ──────────────────────────────────────────────────── */
.acct-alert {
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(200,130,255,.18);
  background: rgba(255,255,255,.04);
  color: #f8ecff;
  font-size: .9rem;
  margin-bottom: 1rem;
}

.acct-alert--success {
  border-color: rgba(121,234,255,.3);
  background: rgba(18,58,68,.45);
}

.acct-alert--error {
  border-color: rgba(255,95,150,.28);
  background: rgba(66,16,36,.45);
}

/* ── Dashboard ──────────────────────────────────────────────── */
.acct-dash {
  padding-top: 2rem;
}

.acct-dash__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.acct-dash__head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
}

.acct-dash__email {
  color: var(--text-muted);
  font-size: .95rem;
  margin-top: .25rem;
}

.acct-dash__grid {
  display: grid;
  gap: 1.5rem;
}

.acct-dash__section {
  padding: 1.35rem;
  border: 1px solid rgba(200,130,255,.15);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    rgba(20,8,34,.85);
  box-shadow: 0 18px 50px rgba(4,0,12,.3);
}

.acct-dash__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.acct-dash__section-head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.acct-passkeys__description {
  max-width: 680px;
  margin-top: .3rem;
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.5;
}

.btn--primary.acct-passkey-add--unavailable,
.btn--primary.acct-passkey-add--unavailable:hover {
  opacity: .72;
  box-shadow: none;
  transform: none;
  cursor: help;
}

.acct-passkey-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(200,130,255,.1);
  border-radius: 14px;
  background: rgba(10,4,18,.45);
}

.acct-passkey-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(255,85,204,.24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,85,204,.16), rgba(136,102,255,.12));
  color: #ff8ddb;
  font-size: .75rem;
}

.acct-passkey-card__body {
  flex: 1;
  min-width: 0;
}

.acct-passkey-card__body strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-passkey-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-top: .25rem;
  color: var(--text-muted);
  font-size: .78rem;
}

.acct-dash__section-tabs {
  display: flex;
  gap: .4rem;
}

.acct-tab-btn {
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(200,130,255,.16);
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.acct-tab-btn:hover,
.acct-tab-btn--active {
  color: #fff;
  border-color: rgba(255,85,204,.35);
  background: rgba(255,85,204,.12);
}

.acct-dash__list {
  display: grid;
  gap: .75rem;
}

.acct-dash__empty {
  color: var(--text-muted);
  font-size: .92rem;
  padding: .5rem 0;
}

.acct-dash__loading {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
}

.acct-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(200,130,255,.2);
  border-top-color: #bb44ff;
  animation: spin .8s linear infinite;
}

/* ── Product cards ──────────────────────────────────────────── */
.acct-product-card {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(200,130,255,.13);
  border-radius: 16px;
  background: rgba(10,4,18,.55);
  transition: border-color var(--transition);
}

.acct-product-card:hover {
  border-color: rgba(200,130,255,.28);
}

.acct-product-card__top {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.acct-product-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(200,130,255,.12);
}

.acct-product-card__info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: .1rem;
}

.acct-product-card__info strong {
  color: #fff;
  font-size: 1rem;
}

.acct-product-card__plan {
  color: var(--text-muted);
  font-size: .82rem;
}

.acct-badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .62rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.acct-badge--active {
  background: rgba(34,197,94,.18);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.3);
}

.acct-badge--expired {
  background: rgba(255,95,150,.14);
  color: #ff6b8a;
  border: 1px solid rgba(255,95,150,.25);
}

.acct-product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: .65rem;
  color: var(--text-muted);
  font-size: .82rem;
}

.acct-device-bar {
  margin-top: .55rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(200,130,255,.1);
  overflow: hidden;
}

.acct-device-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transition: width .3s ease;
}

/* ── Device cards ───────────────────────────────────────────── */
.acct-device-card {
  padding: .9rem 1rem;
  border: 1px solid rgba(200,130,255,.1);
  border-radius: 14px;
  background: rgba(10,4,18,.45);
}

.acct-device-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.acct-device-card__top strong {
  color: #fff;
  font-size: .95rem;
}

.acct-device-card__platform {
  display: block;
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: .1rem;
}

.acct-device-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: .5rem;
  color: var(--text-muted);
  font-size: .8rem;
}

/* ── Dashboard link card ────────────────────────────────────── */
.acct-dash__section--link {
  padding: 0;
}

.acct-dash__link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  color: var(--text);
  transition: background var(--transition);
}

.acct-dash__link-card:hover {
  background: rgba(255,255,255,.03);
}

.acct-dash__link-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.acct-dash__link-card p {
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: .2rem;
}

.acct-dash__link-card svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Back link ─────────────────────────────────────────────── */
.acct-back {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: .5rem;
  transition: color var(--transition);
}

.acct-back:hover {
  color: #fff;
}

/* ── Presets toolbar ───────────────────────────────────────── */
.acct-presets-toolbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ── Presets grid ──────────────────────────────────────────── */
.acct-presets-grid {
  display: grid;
  gap: .65rem;
}

/* ── Preset card (dedicated page) ──────────────────────────── */
.acct-preset-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(200,130,255,.1);
  border-radius: 14px;
  background: rgba(10,4,18,.45);
  transition: border-color var(--transition);
}

.acct-preset-card:hover {
  border-color: rgba(200,130,255,.25);
}

.acct-preset-card__head {
  min-width: 0;
  flex: 1;
}

.acct-preset-card__head strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-preset-card__meta {
  display: block;
  margin-top: .15rem;
  color: var(--text-muted);
  font-size: .78rem;
}

.acct-preset-card__desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: .35rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.acct-preset-card__desc--empty {
  font-style: italic;
  opacity: .4;
}

.acct-preset__tag {
  display: inline-block;
  padding: .12rem .45rem;
  margin: .25rem .2rem 0 0;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  font-size: .7rem;
}

.acct-preset-card__actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

/* ── Pagination ────────────────────────────────────────────── */
.acct-pagination {
  display: flex;
  gap: .35rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.acct-page-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(200,130,255,.14);
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.acct-page-btn:hover {
  border-color: rgba(255,85,204,.35);
  color: #fff;
}

.acct-page-btn--active {
  background: rgba(255,85,204,.15);
  border-color: rgba(255,85,204,.4);
  color: #fff;
}

/* ── Preset cards (dashboard, kept for compatibility) ───────── */
.acct-preset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(200,130,255,.1);
  border-radius: 14px;
  background: rgba(10,4,18,.45);
  transition: border-color var(--transition);
}

.acct-preset:hover {
  border-color: rgba(200,130,255,.25);
}

.acct-preset--fav {
  border-color: rgba(255,200,60,.2);
}

.acct-preset__info {
  min-width: 0;
  flex: 1;
}

.acct-preset__info strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-preset__meta {
  display: block;
  margin-top: .15rem;
  color: var(--text-muted);
  font-size: .78rem;
}

.acct-preset__actions {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.acct-preset__delete {
  color: #ff6b8a !important;
  border-color: rgba(255,95,150,.2) !important;
}

.acct-preset__delete:hover {
  background: rgba(255,95,150,.1) !important;
}

/* ── Custom modal ──────────────────────────────────────────── */
.acct-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acct-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}

.acct-modal__box {
  position: relative;
  width: min(400px, calc(100% - 2rem));
  padding: 1.75rem;
  border-radius: 22px;
  border: 1px solid rgba(200,130,255,.2);
  background: rgba(20,8,34,.97);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}

.acct-modal__box h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.acct-modal__body p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.acct-modal__field {
  display: grid;
  gap: .35rem;
  margin-bottom: 1rem;
}

.acct-modal__field span {
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 700;
}

.acct-modal__input {
  width: 100%;
  min-height: 44px;
  padding: .7rem 1rem;
  border: 1px solid rgba(200,130,255,.16);
  border-radius: 12px;
  background: rgba(9,4,18,.82);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.acct-modal__input:focus {
  border-color: rgba(255,85,204,.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,85,204,.12);
}

.acct-modal__actions {
  display: flex;
  gap: .5rem;
}

.acct-modal__actions .btn {
  flex: 1;
}

.acct-share-code {
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-align: center;
  color: #fff;
  padding: .75rem;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,130,255,.18);
  margin-bottom: 1rem;
  user-select: all;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .acct__shell {
    padding-top: 56px;
    width: calc(100% - 2rem);
  }

  .acct-center {
    padding: 1rem 0;
    min-height: calc(100dvh - 56px);
  }

  .acct-card {
    padding: 1.5rem 1.25rem 1.35rem;
    border-radius: 22px;
    max-width: 100%;
  }

  .acct-dash__head {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .acct-dash__head h1 { font-size: 1.3rem; }
  .acct-dash__email { font-size: .82rem; }

  .acct-device-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .acct-passkey-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .acct-passkey-card__body {
    width: calc(100% - 50px);
  }

  .acct-passkey-card > .btn {
    width: 100%;
    justify-content: center;
  }

  .acct-preset,
  .acct-preset-card {
    flex-direction: column;
    align-items: stretch;
  }

  .acct-preset-card__actions {
    flex-wrap: wrap;
    gap: .35rem;
  }

  .acct-preset-card__actions .btn {
    font-size: .75rem;
    padding: .3rem .55rem;
  }

  .acct-preset__actions,
  .acct-preset-card__actions {
    flex-wrap: wrap;
  }

  .acct-presets-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Nickname display ─────────────────────────────────────── */

.acct-dash__nickname {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
}

.acct-nickname__display {
  font-size: .95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff55cc, #8866ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn--xs {
  padding: .2rem .5rem;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 6px;
}

/* ── Account sidebar layout ───────────────────────────────── */

.acct-layout {
  display: flex;
  gap: 0;
  min-height: 60vh;
}

.acct-sidebar {
  position: sticky;
  top: 5rem;
  align-self: flex-start;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .5rem;
  border-right: 1px solid rgba(255,255,255,.06);
  margin-right: 1.5rem;
}

.acct-sidebar__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .85rem;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.acct-sidebar__link svg {
  flex-shrink: 0;
  opacity: .5;
  transition: opacity .15s;
}

.acct-sidebar__link:hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.75);
}

.acct-sidebar__link:hover svg { opacity: .75; }

.acct-sidebar__link--active {
  background: rgba(136,102,255,.12);
  color: #c4b5fd;
}

.acct-sidebar__link--active svg { opacity: 1; color: #c4b5fd; }

.acct-layout__main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .acct-layout {
    flex-direction: column;
  }

  .acct-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin-right: 0;
    margin-bottom: 1rem;
    padding: .25rem 0;
    gap: .15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .acct-sidebar::-webkit-scrollbar { display: none; }

  .acct-sidebar__link {
    padding: .45rem .65rem;
    font-size: .78rem;
    flex-shrink: 0;
  }

  .acct-sidebar__link svg { width: 15px; height: 15px; }
}

/* ── Community landing section (on homepage) ─────────────── */

.community-landing {
  padding: 7rem 0 8rem;
  text-align: center;
}

.community-landing__desc {
  max-width: 560px;
  margin: 1rem auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.community-landing__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Presets page — packs & community ─────────────────────── */

.presets-subtitle {
  font-size: .92rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* ── Pack cards ────────────────────────────────────────────── */

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.pack-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, transform .15s;
}

.pack-card:hover {
  border-color: rgba(136,102,255,.3);
  transform: translateY(-2px);
}

.pack-card__cover {
  height: 80px;
  background: linear-gradient(135deg, rgba(136,102,255,.2), rgba(187,68,255,.15));
}

.pack-card__body { padding: 1rem; }

.pack-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .35rem;
}

.pack-card__desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pack-card__meta {
  display: flex;
  gap: .75rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  margin-bottom: .75rem;
}

.pack-card__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.pack-card__installed {
  opacity: .6;
  cursor: default;
}

.pack-detail__items {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .75rem;
}

.pack-detail__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .4rem .6rem;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  font-size: .85rem;
}

.pack-detail__size {
  margin-left: auto;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ── Community cards ───────────────────────────────────────── */

.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.community-toolbar__right {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.community-search {
  padding: .45rem .75rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #e0e0e8;
  font-size: .85rem;
  min-width: 180px;
}

.community-search:focus { outline: none; border-color: #8866ff; }
.community-search::placeholder { color: rgba(255,255,255,.3); }

/* ── Branded select/listbox ─────────────────────────────────── */

.noah-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.noah-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.noah-select__trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .75rem 1rem;
  border: 1px solid var(--select-border);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.055), transparent 55%),
    rgba(8, 3, 15, .82);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.noah-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noah-select__arrow {
  width: .55rem;
  height: .55rem;
  flex: 0 0 auto;
  margin: -.2rem .15rem .1rem 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: rgba(240, 220, 255, .82);
  transform: rotate(45deg);
  transition: transform var(--transition);
  filter: drop-shadow(0 0 7px rgba(220,80,255,.22));
}

.noah-select__trigger:hover {
  border-color: var(--select-border-hover);
  background:
    linear-gradient(160deg, rgba(255,255,255,.075), transparent 55%),
    rgba(18, 7, 31, .9);
}

.noah-select__trigger:focus-visible,
.noah-select--open .noah-select__trigger {
  border-color: rgba(255, 85, 204, .62);
  outline: none;
  box-shadow: 0 0 0 3px var(--select-ring), 0 0 20px rgba(170, 70, 255, .12);
}

.noah-select--open .noah-select__arrow { transform: translateY(.22rem) rotate(225deg); }
.noah-select--disabled .noah-select__trigger { opacity: .46; cursor: not-allowed; }
.noah-select--invalid .noah-select__trigger { border-color: rgba(248, 113, 113, .65); }

.noah-select__menu {
  position: fixed;
  z-index: 1500;
  display: grid;
  gap: .3rem;
  padding: .5rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--select-border);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.085), rgba(255,255,255,.015) 55%, transparent),
    var(--select-surface);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.075),
    0 20px 48px rgba(0,0,0,.55),
    0 0 24px rgba(155,55,235,.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(.985);
  transform-origin: top center;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  scrollbar-color: rgba(200,130,255,.5) transparent;
  color-scheme: dark;
}

.noah-select__menu--above { transform-origin: bottom center; }
.noah-select__menu--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.noah-select__option {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .64rem .78rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}

.noah-select__option:hover,
.noah-select__option:focus-visible,
.noah-select__option--highlighted {
  border-color: rgba(220, 155, 255, .35);
  outline: none;
  background:
    linear-gradient(160deg, rgba(255,255,255,.08), transparent 60%),
    var(--select-option-hover);
  color: #fff;
}

.noah-select__option[aria-selected="true"] {
  border-color: rgba(210, 140, 255, .64);
  background: linear-gradient(130deg, rgba(238,85,204,.28), rgba(187,68,255,.26) 45%, rgba(136,102,255,.24));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.noah-select__check { opacity: 0; color: #ffe9ff; font-size: .9rem; }
.noah-select__option[aria-selected="true"] .noah-select__check { opacity: 1; }
.noah-select__option:disabled { opacity: .38; cursor: not-allowed; }

.noah-select--compact { min-width: 170px; width: auto; }
.noah-select--compact .noah-select__trigger {
  min-height: 40px;
  padding: .5rem .75rem;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .noah-select__trigger,
  .noah-select__arrow,
  .noah-select__menu,
  .noah-select__option { transition: none; }
}

@media (forced-colors: active) {
  .noah-select__trigger,
  .noah-select__menu,
  .noah-select__option {
    border: 1px solid ButtonText;
    background: Canvas;
    color: CanvasText;
    forced-color-adjust: auto;
  }
  .noah-select__trigger:focus-visible,
  .noah-select__option:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
  .noah-select__option[aria-selected="true"] { background: Highlight; color: HighlightText; }
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.community-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1rem;
  transition: border-color .2s;
}

.community-card:hover { border-color: rgba(136,102,255,.25); }

.community-card__head { margin-bottom: .5rem; }

.community-card__name {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}

.community-card__author {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

.community-card__tags {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}

.community-card__stats {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .6rem;
}

.community-card__dl { font-size: .78rem; }

.community-card__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.community-card__heart {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  transition: color .15s, transform .1s;
  padding: .15rem .3rem;
}

.community-card__heart:hover { color: #ff55cc; transform: scale(1.15); }
.community-card__heart--liked { color: #ff55cc; }

/* ── Star rating widget ────────────────────────────────────── */

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
}

.star-rating__star {
  font-size: 1rem;
  color: rgba(255,255,255,.2);
  cursor: default;
  transition: color .1s;
}

.star-rating__star--filled { color: #f5a623; }

.star-rating--interactive .star-rating__star {
  cursor: pointer;
  font-size: 1.5rem;
}

.star-rating--interactive .star-rating__star:hover { color: #f5a623; }

.star-rating__avg {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-left: .3rem;
}

.star-rating__count {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  margin-left: .15rem;
}

/* ── Published badge on personal presets ───────────────────── */

.acct-preset-card--imported {
  border-color: rgba(136,102,255,.15);
}

.acct-preset__origin {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(136,102,255,.12);
  color: #c4b5fd;
  font-size: .72rem;
  font-weight: 600;
}

.acct-preset__published {
  color: #86efac;
  border-color: rgba(134,239,172,.2);
}

@media (max-width: 640px) {
  .packs-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-toolbar { flex-direction: column; align-items: stretch; gap: .5rem; }
  .community-toolbar__right { flex-direction: column; }
  .community-search { min-width: unset; width: 100%; }
  .community-toolbar__right .noah-select { min-width: 0; width: 100%; }

  .community-card { padding: .85rem; }
  .community-card__name { font-size: .9rem; }
  .community-card__actions { gap: .35rem; }
  .community-card__actions .btn { font-size: .75rem; padding: .3rem .6rem; }
  .community-card__heart { font-size: 1.1rem; padding: .1rem .25rem; }

  .star-rating__star { font-size: .9rem; }
  .star-rating--interactive .star-rating__star { font-size: 1.3rem; }

  .pack-card__body { padding: .85rem; }
  .pack-card__cover { height: 60px; }
  .pack-card__actions { gap: .35rem; }
  .pack-card__actions .btn { font-size: .75rem; }

  .acct-dash h1 { font-size: 1.3rem; }
  .presets-subtitle { font-size: .82rem; }
  .acct-dash__section { padding: 1rem; }
}

/* ── 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-user {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(200,130,255,.2);
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-user:hover,
.nav-user:focus-visible {
  color: #fff;
  border-color: rgba(255,85,204,.45);
  background: rgba(255,85,204,.12);
  box-shadow: 0 0 14px rgba(255,85,204,.2);
  outline: none;
}

.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: 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(2.1rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 18px rgba(220,80,255,.4));
}

.section-sub {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 600px;
  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.scrolled .nav__inner {
  height: 52px;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
  max-width: 1160px;
  margin-inline: auto;
  transition: height var(--transition);
}

.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));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  margin-left: auto;
}
.nav-menu-toggle { display: none; }
.nav-link {
  position: relative;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .02em;
  padding: .3rem 0;
  transition: var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-active);
  box-shadow: 0 0 10px rgba(220,80,255,.5);
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  outline: none;
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  right: 0;
}
.nav-link.active {
  color: #fff;
}

.not-found {
  position: relative;
  z-index: 3;
  width: min(680px, 100%);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid rgba(200, 130, 255, .3);
  border-radius: var(--radius-lg);
  background: rgba(18, 6, 36, .86);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}
.not-found__eyebrow {
  margin-bottom: .55rem;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.not-found__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: #fff;
}
.not-found__description { max-width: 58ch; margin-top: 1rem; color: var(--text-muted); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

.lang-switcher {
  margin-left: 0;
}

/* ── 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; }
}

/* "Coming soon" badge variant — amber dot instead of live-green */
.hero__badge--soon .hero__badge-dot {
  background: #f2c94c;
  box-shadow: 0 0 8px rgba(242,201,76,.9), 0 0 18px rgba(242,201,76,.45);
}

/* Landing hero — no mockup below the fold, so vertically center the
   copy block within the hero instead of top-aligning it. */
.hero--landing {
  justify-content: center;
}
@media (min-width: 901px) {
  .hero--landing {
    min-height: 78svh;
  }
}

/* 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;
}

/* Landing-page wordmark (Noah Audio logo image, replaces text title) */
.hero__logo {
  position: relative;
  z-index: 3;
  display: block;
  width: min(78vw, 620px);
  margin: .55rem 0 .2rem;
  filter:
    drop-shadow(0 0 28px rgba(220,80,255,.55))
    drop-shadow(0 0 60px rgba(255,60,200,.30))
    drop-shadow(0 4px 4px rgba(0,0,0,.6));
}
.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.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); }
}

/* Landing hero — compact product navigator */
.landing-product-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  width: min(100%, 620px);
  margin-top: .35rem;
}

.landing-product-nav__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .72rem .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(44,16,70,.78), rgba(20,8,39,.72));
  backdrop-filter: blur(12px);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.landing-product-nav__item:hover {
  transform: translateY(-2px);
  border-color: rgba(226,117,255,.44);
  background: linear-gradient(135deg, rgba(78,23,111,.84), rgba(28,10,50,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 8px 22px rgba(10,0,25,.26);
}
.landing-product-nav__copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: .18rem;
  text-align: left;
}
.landing-product-nav__copy strong {
  overflow: hidden;
  color: #fff;
  font-family: var(--font-ui-strong);
  font-size: .92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.landing-product-nav__copy small {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .38rem;
  color: rgba(230,210,245,.62);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.2;
}
.landing-product-nav__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
}
.landing-product-nav__dot--live {
  background: #22c55e;
  box-shadow: 0 0 7px rgba(34,197,94,.85), 0 0 14px rgba(34,197,94,.35);
}
.landing-product-nav__dot--soon {
  background: #f2c94c;
  box-shadow: 0 0 7px rgba(242,201,76,.85), 0 0 14px rgba(242,201,76,.32);
}
.landing-product-nav__arrow {
  flex-shrink: 0;
  color: rgba(235,194,255,.52);
  font-size: 1rem;
}

/* 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);
}

/* Staggered cascade for grid items — same trigger, offset transition start */
.specs__grid .spec-item:nth-child(2) { transition-delay: .07s; }
.specs__grid .spec-item:nth-child(3) { transition-delay: .14s; }
.specs__grid .spec-item:nth-child(4) { transition-delay: .21s; }
.specs__grid .spec-item:nth-child(5) { transition-delay: .28s; }
.specs__grid .spec-item:nth-child(6) { transition-delay: .35s; }
.specs__grid .spec-item:nth-child(7) { transition-delay: .42s; }
.specs__grid .spec-item:nth-child(8) { transition-delay: .49s; }

.product-grid .product-card:nth-child(2) { transition-delay: .12s; }
.product-grid .product-card:nth-child(3) { transition-delay: .24s; }
.product-grid .product-card:nth-child(4) { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__canvas { display: none; }
  .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] {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* ── FEATURES ───────────────────────────────────────────────── */
.features {
  overflow: clip;
  padding: 9rem 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;
}

/* ── Feature quick-nav (jump pills) ────────────────────────── */
.feature-quicknav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin: 2.5rem 0 1rem;
}

.feature-quicknav__link {
  padding: .5rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(70,15,110,.28);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}
.feature-quicknav__link:hover,
.feature-quicknav__link:focus-visible {
  color: #fff;
  border-color: rgba(200,130,255,.5);
  background: rgba(100,30,160,.4);
  outline: none;
}

/* ── Feature deep-dive blocks ──────────────────────────────── */
.feature-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 9vw, 7rem);
  margin-top: 3rem;
}

.feature-block {
  --feature-accent: #bb44ff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  scroll-margin-top: 96px;
}

.feature-block:nth-child(even) .feature-block__media { order: 2; }
.feature-block:nth-child(even) .feature-block__body  { order: 1; }

.feature-block--amp    { --feature-accent: #bb44ff; }
.feature-block--cab    { --feature-accent: #79eaff; }
.feature-block--eq     { --feature-accent: #79eaff; }
.feature-block--prefx  { --feature-accent: #ff6633; }
.feature-block--postfx { --feature-accent: #ffd23c; }
.feature-block--filter { --feature-accent: #ff55cc; }
.feature-block--tuner  { --feature-accent: #8cf7cb; }

.feature-block__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;
  box-shadow:
    0 0 60px color-mix(in srgb, var(--feature-accent) 22%, transparent),
    0 28px 80px rgba(0,0,0,.5);
}

.feature-block__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  transform: scale(1.02);
  transition: transform .55s ease;
}

.feature-block__media:hover img { transform: scale(1.05); }

@keyframes border-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.feature-block__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-block__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-block__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-block__eyebrow {
  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-block__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-block__body p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.78;
  max-width: 460px;
}

.feature-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .25rem;
}

.feature-tag {
  padding: .42rem 1rem;
  border-radius: 9999px;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--feature-accent) 45%, transparent);
  background: color-mix(in srgb, var(--feature-accent) 20%, transparent);
}

@media (max-width: 860px) {
  .feature-block {
    grid-template-columns: 1fr;
  }
  .feature-block:nth-child(even) .feature-block__media,
  .feature-block:nth-child(even) .feature-block__body {
    order: initial;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SPECS ──────────────────────────────────────────────────── */
.specs {
  padding: 9rem 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: 2rem;
}
@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: 20px;
  padding: 2.5rem 2.15rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  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(-3px);
  border-color: rgba(200,130,255,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 14px rgba(220,80,255,.14),
    0 10px 28px rgba(20,0,50,.42);
}

.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;
}

/* ── PRODUCTS (landing page) ───────────────────────────────── */
.products {
  padding: 7rem 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(130,30,180,.16) 0%, transparent 28%),
    linear-gradient(180deg, #0c0418 0%, #100520 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}

@media (max-width: 1000px) and (min-width: 601px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-card {
  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: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  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);
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,130,255,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 0 14px rgba(220,80,255,.14),
    0 12px 32px rgba(20,0,50,.42);
}

.product-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10,2,22,.6);
}
.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .62rem;
  flex: 1;
  padding: 1.45rem 1.55rem 1.6rem;
}

.product-card__tag {
  display: inline-flex;
  align-items: center;
  padding: .26rem .72rem;
  border-radius: 9999px;
  border: 1px solid rgba(200,130,255,.35);
  background: rgba(60,10,100,.50);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-card__tag--soon {
  border-color: rgba(121,234,255,.35);
  color: var(--cyan);
}

.product-card__title {
  font-family: var(--font-ui-strong);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(255,255,255,.08),
    0 0 8px rgba(255,95,183,.14);
}

.product-card__body p {
  display: -webkit-box;
  min-height: 4.5em;
  overflow: hidden;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: .15rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  color: #eea9ff;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}
.product-card__link:hover {
  gap: .62rem;
  color: #fff;
}

/* ── NOAH STAGE ─────────────────────────────────────────────── */
.hero--stage {
  background:
    radial-gradient(ellipse at 78% 22%, rgba(78,110,255,.22) 0%, transparent 34%),
    radial-gradient(ellipse at 22% 38%, rgba(221,60,255,.18) 0%, transparent 32%),
    linear-gradient(180deg, #060316 0%, #0d0828 46%, #09041a 100%);
}

.hero--stage .hero__mockup-glow {
  background: radial-gradient(ellipse at 50% 48%, rgba(92,190,255,.28) 0%, rgba(190,65,255,.12) 42%, transparent 70%);
}

.hero--stage .hero__mockup-frame {
  border-color: rgba(110,210,255,.45);
  box-shadow:
    0 0 0 1px rgba(195,105,255,.16),
    0 26px 68px rgba(0,0,0,.58),
    0 0 58px rgba(85,165,255,.19);
}

.hero__mockup--stage {
  max-width: 1200px;
}

.hero__mockup--stage .hero__mockup-frame img {
  aspect-ratio: 1600 / 935;
  object-fit: cover;
  transform: none;
}

.stage-features {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(76,126,255,.16) 0%, transparent 30%),
    radial-gradient(ellipse at 82% 72%, rgba(216,55,255,.14) 0%, transparent 28%),
    linear-gradient(180deg, #09041a 0%, #100520 100%);
}

.stage-features__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) and (min-width: 601px) {
  .stage-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stage-release {
  padding: 8rem 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(90,170,255,.16) 0%, transparent 42%),
    linear-gradient(180deg, #100520 0%, #0c0418 100%);
}

.stage-release__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stage-release__inner .section-sub {
  margin-bottom: 2rem;
}

/* ── NOAH BAND ──────────────────────────────────────────────── */
.spa-view--band {
  --band-accent: var(--shimmer-violet);
  --band-accent-soft: var(--violet);
  --band-surface: var(--bg-card);
  background: var(--bg-deep);
}

.hero--band {
  min-height: auto;
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
  background:
    radial-gradient(circle at 78% 18%, rgba(200,130,255,.12) 0%, transparent 28%),
    radial-gradient(circle at 18% 42%, rgba(255,30,110,.12) 0%, transparent 30%),
    linear-gradient(180deg, #0c0418 0%, #160828 58%, #0c0418 100%);
}

.band-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(200,130,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,130,255,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.hero--band .hero__inner {
  align-items: center;
  text-align: center;
}

.hero__badge--band {
  border-color: rgba(200,130,255,.38);
  background: rgba(60,10,100,.50);
  color: var(--band-accent-soft);
}

.hero__by--band {
  color: rgba(200,168,232,.66);
  text-shadow: none;
}

.hero__title--band {
  margin: 0;
  font-family: var(--font-ui-strong);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .88;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.55));
  animation: none;
}

.hero__title--band em {
  color: var(--band-accent);
  -webkit-text-fill-color: var(--band-accent);
  font-style: normal;
}

.hero__subtitle--band {
  max-width: 760px;
  color: rgba(200,168,232,.72);
}

.hero--band .hero__cta {
  justify-content: center;
}

.btn--band {
  border: 1px solid transparent;
  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--band:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 0 32px rgba(220,80,255,.55),
    0 0 12px rgba(255,60,200,.35);
}
.btn--band-ghost {
  border: 1px solid rgba(200,130,255,.38);
  color: var(--band-accent-soft);
  background: rgba(200,130,255,.04);
}
.btn--band-ghost:hover {
  border-color: rgba(200,130,255,.72);
  color: #fff;
  background: rgba(200,130,255,.10);
}

.hero__mockup--band {
  max-width: 1250px;
  padding-bottom: 0;
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
}
.hero__mockup--band .hero__mockup-glow {
  inset: -18px 3%;
  background: radial-gradient(ellipse at 50% 50%, rgba(200,130,255,.16), transparent 68%);
}
.hero__mockup--band .hero__mockup-frame {
  border-color: rgba(200,130,255,.38);
  border-radius: 18px;
  background: #150622;
  box-shadow: 0 30px 80px rgba(0,0,0,.62), 0 0 54px rgba(200,130,255,.11);
}
.hero__mockup--band .hero__mockup-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1602 / 991;
  object-fit: cover;
  transform: none;
}

.band-features {
  background:
    radial-gradient(circle at 12% 12%, rgba(200,130,255,.08), transparent 27%),
    linear-gradient(180deg, #0c0418 0%, #160828 100%);
}
.band-features__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.section-tag--band {
  color: var(--band-accent);
}
.spec-item--band {
  border-color: rgba(200,130,255,.17);
  background: linear-gradient(155deg, rgba(200,130,255,.055), rgba(255,255,255,.018));
}
.spec-item--band:hover {
  border-color: rgba(200,130,255,.38);
}
.spec-item--band .spec-item__icon {
  color: var(--band-accent);
  border-color: rgba(200,130,255,.22);
  background: rgba(200,130,255,.07);
}

.band-download {
  padding: 8rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(200,130,255,.10), transparent 32%),
    linear-gradient(180deg, #160828 0%, #0c0418 100%);
}
.band-download__waiting {
  max-width: 760px;
  margin: 2.5rem auto 0;
  color: var(--band-accent-soft);
  text-align: center;
  line-height: 1.6;
}
.band-requirements {
  max-width: 920px;
  margin: 3.25rem auto 0;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.band-requirements h3 {
  margin: 0 0 1.25rem;
  color: #fff;
  font-family: var(--font-ui-strong);
}
.band-requirements__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.band-requirements__grid > div {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  border-left: 2px solid rgba(200,130,255,.48);
  background: rgba(200,130,255,.025);
}
.band-requirements__grid strong { color: var(--band-accent-soft); }
.band-requirements__grid span { color: rgba(200,168,232,.60); font-size: .88rem; line-height: 1.55; }

@media (max-width: 900px) and (min-width: 601px) {
  .band-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── DOWNLOAD ───────────────────────────────────────────────── */
.download {
  position: relative;
  padding: 9rem 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-latest__buttons--single {
  grid-template-columns: minmax(0, 300px);
  justify-content: center;
}

.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--offline {
  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--offline: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--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__push {
  appearance: none;
  border: 1px solid rgba(210, 130, 255, .22);
  border-radius: 999px;
  padding: .42rem .8rem;
  background: rgba(170, 60, 255, .09);
  color: var(--text-muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.footer__push[hidden] { display: none; }
.footer__push:hover,
.footer__push:focus-visible {
  color: #fff;
  border-color: rgba(220, 100, 255, .52);
  background: rgba(180, 70, 255, .16);
  outline: none;
}

body.push-modal-open { overflow: hidden; }
.push-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.push-modal[hidden] { display: none; }
.push-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(5, 1, 12, .82);
  backdrop-filter: blur(12px);
  cursor: default;
}
.push-modal__card {
  position: relative;
  width: min(100%, 470px);
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid rgba(220, 120, 255, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(25, 8, 42, .98), rgba(10, 3, 22, .99));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 70px rgba(165, 55, 255, .12);
}
.push-modal__close {
  position: absolute;
  top: .8rem;
  right: .9rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: rgba(235, 205, 255, .55);
  font-size: 1.35rem;
  cursor: pointer;
}
.push-modal__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(185, 70, 255, .14);
  font-size: 1.25rem;
}
.push-modal h2 { margin: 0 2rem .55rem 0; color: #f5eaff; font-size: 1.35rem; }
.push-modal__description { color: var(--text-muted); font-size: .88rem; line-height: 1.6; }
.push-modal__hint {
  margin-top: .9rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(250, 190, 90, .2);
  border-radius: 9px;
  background: rgba(250, 170, 50, .07);
  color: rgba(255, 220, 165, .78);
  font-size: .78rem;
  line-height: 1.5;
}
.push-modal__products { margin-top: 1.25rem; border: 0; }
.push-modal__products legend {
  margin-bottom: .6rem;
  color: rgba(230, 200, 255, .65);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#pushProductChoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.push-product {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .75rem;
  border: 1px solid rgba(210, 150, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: rgba(240, 220, 255, .75);
  font-size: .82rem;
  cursor: pointer;
}
.push-product:has(input:checked) { border-color: rgba(190, 80, 255, .42); background: rgba(170, 55, 255, .1); }
.push-product input { accent-color: #bb44ff; }
.push-modal__status {
  min-height: 1.3rem;
  margin: .85rem 0 0;
  color: rgba(125, 235, 155, .8);
  font-size: .78rem;
  line-height: 1.5;
}
.push-modal__status:empty { display: none; }
.push-modal__status--error { color: rgba(255, 150, 130, .88); }
.push-modal__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.push-modal__status:empty + .push-modal__actions { margin-top: 1rem; }
.push-modal__actions .btn:disabled,
.push-modal__actions .btn:disabled:hover {
  opacity: .52;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.push-modal__disable {
  border: 0;
  background: transparent;
  color: rgba(255, 150, 140, .65);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.push-modal__disable:hover { color: rgba(255, 175, 165, .95); }

@media (max-width: 520px) {
  .push-modal__card { padding: 1.5rem 1.15rem; border-radius: 16px; }
  #pushProductChoices { grid-template-columns: 1fr; }
}

.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%;
  display: grid;
  place-items: center;
  width: .95rem;
  height: .95rem;
  line-height: 0;
  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 {
  display: block;
  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(zh-cn) {
  --font-ui: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --font-ui-strong: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --font-brand-display: 'Cinzel Decorative', Georgia, serif;
  --font-display: 'Noto Serif SC', 'Microsoft YaHei', 'PingFang SC', serif;
  --font-display-tight: 'Noto Serif SC', 'Microsoft YaHei', 'PingFang SC', 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(zh-cn),
.lang-option:lang(zh-cn) {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-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-block__body p { max-width: 100%; }
  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(200, 130, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    color: var(--text-muted);
    cursor: pointer;
  }
  .nav-menu-toggle__icon { display: grid; gap: 4px; width: 18px; }
  .nav-menu-toggle__icon i { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: var(--transition); }
  .nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon i:nth-child(2) { opacity: 0; }
  .nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: calc(100% + .65rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: .25rem;
    margin: 0;
    padding: .65rem;
    border: 1px solid rgba(200, 130, 255, .28);
    border-radius: 18px;
    background: rgba(24, 7, 44, .98);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { display: block; min-height: 44px; padding: .7rem .85rem; border-radius: 12px; }
  .nav-link:hover, .nav-link:focus-visible, .nav-link.active { background: rgba(170, 55, 255, .16); }
  .nav-link::after { display: none; }
  .lang-switcher { margin-left: auto; }
}

@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .hero,
  .features,
  .specs,
  .download,
  .footer,
  .legal-main,
  .legal-hero {
    overflow-x: clip;
  }
  .container,
  .nav__inner,
  .hero__inner,
  .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;
    /* iOS Safari can paint elements with their own compositing layer
       (e.g. .hero__keyvisual, which has a `filter`) above a fixed-position
       element that has no layer of its own, regardless of z-index. Force
       .nav onto its own layer so it (and the lang dropdown inside it)
       always stacks correctly above the hero. */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
  }
  .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--landing {
    min-height: min(68svh, 560px);
  }
  .hero__keyvisual {
    position: absolute;
    inset: calc(env(safe-area-inset-top, 0px) + 38px) 0 auto 0;
    width: 100%;
    height: min(68svh, 560px);
    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;
  }
  .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-blocks {
    gap: 3rem;
  }
  .feature-block {
    gap: 1rem;
  }
  .feature-block__body {
    align-items: center;
    text-align: center;
  }
  .feature-block__body p {
    margin-inline: auto;
    font-size: .94rem;
    line-height: 1.62;
  }
  .feature-block__tags {
    justify-content: center;
  }
  .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;
  }
  .products {
    padding: 3.75rem 0;
  }
  .download {
    padding: 4.5rem 0;
  }
  .community-landing {
    padding: 4.5rem 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .hero__title--band {
    font-size: clamp(3rem, 15vw, 4.5rem);
    white-space: nowrap;
  }
  .hero__mockup--band {
    max-width: 100%;
  }
  .band-download {
    padding: 4.5rem 0;
  }
  .band-requirements__grid {
    grid-template-columns: 1fr;
  }
  .band-requirements {
    padding: 1rem;
  }
  .product-card__media {
    aspect-ratio: 16 / 11;
  }
  .product-card__body {
    gap: .42rem;
    padding: .78rem .7rem .88rem;
  }
  .product-card__title {
    font-size: .98rem;
    line-height: 1.15;
  }
  .product-card {
    border-radius: 15px;
  }
  .product-card__tag {
    max-width: 100%;
    padding: .2rem .42rem;
    font-size: .54rem;
    letter-spacing: .035em;
    line-height: 1.15;
  }
  .product-card__body p {
    display: none;
  }
  .product-card__link {
    gap: .28rem;
    font-size: .68rem;
    line-height: 1.2;
  }
  .product-card__link:hover {
    gap: .28rem;
  }
  .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;
  }
  .landing-product-nav {
    width: min(100%, 350px);
    gap: .52rem;
    margin-top: .1rem;
  }
  .landing-product-nav__item {
    min-height: 57px;
    padding: .58rem .62rem;
    border-radius: 12px;
  }
  .landing-product-nav__copy strong { font-size: .8rem; }
  .landing-product-nav__copy small { font-size: .59rem; }
  .landing-product-nav__arrow { display: none; }
  .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: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .9rem;
    line-height: 1.55;
  }
  .hero--landing .hero__subtitle {
    display: block;
  }
  .nav__inner {
    display: flex;
    gap: .35rem;
    height: 44px;
    padding: 0;
    align-items: center;
  }
  .nav.scrolled .nav__inner {
    height: 44px;
  }
  .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: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    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-user {
    width: 44px;
    height: 44px;
  }
  .lang-switcher {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    max-width: 44px;
    min-width: 44px;
    border-radius: 50%;
  }
  .lang-dropdown__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    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; }
}

/* ── Page loading cover ──────────────────────────────────────── */
#page-cover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0c0418;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#page-cover.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-cover__logo {
  height: 38px;
  width: auto;
  filter:
    drop-shadow(0 0 14px rgba(220, 80, 255, 0.32))
    drop-shadow(0 0 30px rgba(255, 60, 200, 0.16));
  animation: cover-pulse 2.4s ease-in-out infinite;
}

@keyframes cover-pulse {
  0%, 100% { opacity: 0.82; transform: scale(1);    }
  50%       { opacity: 1;    transform: scale(1.04); }
}

.page-cover__spinner {
  position: relative;
  width: 40px;
  height: 40px;
}

/* Faint background track */
.page-cover__track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid rgba(200, 130, 255, 0.13);
}

/* Gradient arc — conic-gradient clipped to a ring via mask */
.page-cover__arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff55cc 0%,
    #bb44ff 46%,
    #8866ff 72%,
    transparent 74%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3.5px));
  animation: cover-spin 0.88s linear infinite;
}

@keyframes cover-spin {
  to { transform: rotate(360deg); }
}

/* ── SPA views ───────────────────────────────────────────────── */
.spa-view {
  display: none;
}

.spa-view.is-active {
  display: block;
  animation: spa-fade-in 0.28s ease forwards;
}

@keyframes spa-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Download dialog ─────────────────────────────────────────── */
.dl-dialog {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  visibility: hidden; opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.dl-dialog.is-open { visibility: visible; opacity: 1; }

.dl-dialog__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 1, 16, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dl-dialog__box {
  position: relative; z-index: 1;
  background: linear-gradient(150deg, #1c0b32 0%, #110518 100%);
  border: 1px solid rgba(190, 90, 255, .2);
  border-radius: 18px; padding: 1.75rem 2rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset,
              0 0 60px rgba(160, 60, 255, .1),
              0 24px 64px rgba(0, 0, 0, .55);
  transform: translateY(16px) scale(.97);
  transition: transform .32s cubic-bezier(.22,.68,0,1.18);
}
.dl-dialog.is-open .dl-dialog__box { transform: translateY(0) scale(1); }

.dl-dialog__header {
  display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.4rem;
}
.dl-dialog__icon {
  flex-shrink: 0; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(170, 70, 255, .14); border-radius: 10px;
  color: #cc66ff;
}
.dl-dialog__meta { flex: 1; min-width: 0; padding-top: 2px; }
.dl-dialog__label {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(200, 140, 255, .55); margin: 0 0 .3rem;
  transition: color .3s;
}
.dl-dialog__name {
  font-size: .92rem; color: #ead8ff; font-weight: 500; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dl-dialog__close {
  flex-shrink: 0; margin-top: -2px;
  background: none; border: none; cursor: pointer;
  color: rgba(190, 130, 255, .4); font-size: 1.3rem; line-height: 1;
  padding: .25rem .45rem; border-radius: 8px;
  transition: color .2s, background .2s;
}
.dl-dialog__close:hover { color: #e0c8ff; background: rgba(160, 60, 255, .14); }

/* Progress bar */
.dl-dialog__bar {
  height: 5px; background: rgba(160, 60, 255, .15);
  border-radius: 99px; overflow: hidden; margin-bottom: .7rem;
}
.dl-dialog__fill {
  height: 100%; border-radius: 99px; width: 0%;
  background: linear-gradient(90deg, #ff55cc 0%, #bb44ff 50%, #7755ff 100%);
  background-size: 200% 100%;
  transition: width .18s linear;
}
.dl-dialog__stats {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .76rem;
}
.dl-dialog__pct { color: #e0ccff; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-dialog__size { color: rgba(190, 140, 255, .45); font-variant-numeric: tabular-nums; }

/* Indeterminate — shimmer when Content-Length is unknown */
.dl-dialog--indeterminate .dl-dialog__bar { overflow: hidden; }
.dl-dialog--indeterminate .dl-dialog__fill {
  width: 35% !important; transition: none;
  animation: dl-shimmer 1.5s ease-in-out infinite;
}
@keyframes dl-shimmer {
  0%   { transform: translateX(-200%); }
  100% { transform: translateX(500%); }
}
.dl-dialog--indeterminate .dl-dialog__pct { opacity: 0; }

/* Complete state */
.dl-dialog__complete { display: none; text-align: center; padding: .25rem 0 .1rem; }
.dl-dialog--done .dl-dialog__progress { display: none; }
.dl-dialog--done .dl-dialog__complete { display: block; }
.dl-dialog--done .dl-dialog__label { color: rgba(120, 230, 150, .7); }
.dl-dialog__check {
  width: 46px; height: 46px; margin: 0 auto .8rem;
  background: rgba(80, 220, 120, .12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #72e896;
  animation: dl-check-pop .4s cubic-bezier(.22,.68,0,1.4) forwards;
}
@keyframes dl-check-pop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.dl-dialog__complete-text {
  font-size: .88rem; color: rgba(180, 240, 195, .8); margin: 0;
}

/* Error state */
.dl-dialog__error { display: none; text-align: center; padding: .25rem 0 .1rem; }
.dl-dialog--error .dl-dialog__progress { display: none; }
.dl-dialog--error .dl-dialog__error { display: block; }
.dl-dialog--error .dl-dialog__label { color: rgba(255, 120, 100, .7); }
.dl-dialog__error-text {
  font-size: .85rem; color: rgba(255, 160, 140, .8); margin: 0 0 .9rem;
}
.dl-dialog__retry-btn {
  background: rgba(255, 80, 60, .12); border: 1px solid rgba(255, 100, 80, .28);
  color: rgba(255, 160, 140, .9); font-size: .8rem; border-radius: 9px;
  padding: .45rem 1.2rem; cursor: pointer; transition: background .2s, border-color .2s;
}
.dl-dialog__retry-btn:hover { background: rgba(255, 80, 60, .22); border-color: rgba(255,100,80,.5); }

/* Text-only TONVERA wordmarks preserve the existing visual system and assets. */
.tonvera-wordmark,
.tonvera-display {
  color: var(--text);
  font-family: var(--font-brand-display);
  font-weight: 700;
  letter-spacing: var(--font-display-tracking);
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.tonvera-wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

.hero__logo.tonvera-display {
  width: auto;
  margin: .5rem 0 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

@media (max-width: 600px) {
  .tonvera-wordmark { font-size: .78rem; }
  .hero__logo.tonvera-display { font-size: clamp(2.3rem, 12vw, 3.6rem); }
}
