/* =========================================================
   App-aligned theme — Media / SilhouetteRealm
   Blue-violet gradient, glass surfaces, 24 / 16 radii,
   sans typography and shared cards.
   ========================================================= */

:root,
[data-theme="light"] {
  --bg: #fffbfe;
  --bg-deep: #f8f3fb;
  --surface: #ffffff;
  --surface-2: #f2ecf8;
  --fg: #1c1b1f;
  --muted: #49454f;
  --dim: #6f6a78;
  --line: rgba(28, 27, 31, .12);
  --line-strong: rgba(28, 27, 31, .24);
  --accent: #5b7cfa;
  --accent-2: #9a6cff;
  --accent-3: #ff6ca6;
  --acid: #4a63d8;
  --ember: #7a4fd0;
  --sky: #b83268;
  --grad: linear-gradient(115deg, #5b7cfa 0%, #9a6cff 52%, #ff6ca6 100%);
  --grad-ink: linear-gradient(115deg, #4a63d8 0%, #7a4fd0 55%, #b83268 100%);
  --cta-bg: linear-gradient(115deg, #4a63d8, #7a4fd0);
  --cta-fg: #ffffff;
  --glass: rgba(255, 255, 255, .04);
  --glass-strong: rgba(255, 255, 255, .07);
  --glass-border: rgba(255, 255, 255, .68);
  --glass-edge: rgba(255, 255, 255, .82);
  --glass-shadow: 0 16px 48px rgba(91, 124, 250, .10), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(255, 255, 255, .15), inset 1px 0 0 rgba(255, 255, 255, .35), inset -1px 0 0 rgba(255, 255, 255, .18);
  --nav-h: 86px;
  --radius: 24px;
  --radius-sm: 24px;
  --radius-ui: 24px;
  --serif: var(--sans);
  --mono: var(--sans);
}
[data-theme="dark"] {
  --bg: #141218;
  --bg-deep: #0f0d14;
  --surface: #1e1b22;
  --surface-2: #2a2531;
  --fg: #e6e1e5;
  --muted: #c4c0cc;
  --dim: #938f99;
  --line: rgba(230, 225, 229, .13);
  --line-strong: rgba(230, 225, 229, .26);
  --accent: #8fa5ff;
  --accent-2: #b79cff;
  --accent-3: #ff9fc2;
  --acid: #aebcff;
  --ember: #c9b0ff;
  --sky: #ffafd0;
  --grad: linear-gradient(115deg, #8fa5ff 0%, #b79cff 52%, #ff9fc2 100%);
  --grad-ink: linear-gradient(115deg, #aebcff 0%, #c9b0ff 55%, #ffafd0 100%);
  --cta-bg: linear-gradient(115deg, #aebcff, #c9b0ff);
  --cta-fg: #141218;
  --glass: rgba(30, 27, 34, .06);
  --glass-strong: rgba(30, 27, 34, .1);
  --glass-border: rgba(255, 255, 255, .2);
  --glass-edge: rgba(255, 255, 255, .24);
  --glass-shadow: 0 20px 55px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(255, 255, 255, .04), inset 1px 0 0 rgba(255, 255, 255, .08), inset -1px 0 0 rgba(255, 255, 255, .05);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.006em;
  background: var(--bg);
}
body::before {
  background:
    radial-gradient(38% 42% at 78% 8%, rgba(91, 124, 250, .26), transparent 66%),
    radial-gradient(36% 38% at 14% 26%, rgba(154, 108, 255, .2), transparent 68%),
    radial-gradient(40% 42% at 56% 96%, rgba(255, 108, 166, .14), transparent 70%),
    var(--bg);
  background-size: 150% 150%;
  animation: appAurora 22s ease-in-out infinite alternate;
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(38% 42% at 78% 8%, rgba(91, 124, 250, .22), transparent 66%),
    radial-gradient(36% 38% at 14% 26%, rgba(154, 108, 255, .17), transparent 68%),
    radial-gradient(40% 42% at 56% 96%, rgba(255, 108, 166, .1), transparent 70%),
    var(--bg);
  background-size: 150% 150%;
}
@keyframes appAurora {
  0% { background-position: 0% 0%; }
  50% { background-position: 70% 24%; }
  100% { background-position: 100% 80%; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ---------- typography ---------- */
h1, h2, h3, .display, .hero-title, .mp-title, .product-copy h3,
.mp-chapter h3, .manifesto-title, .policy-body h2 {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.display { text-wrap: balance; }
.display--xl { font-size: clamp(3.2rem, 7vw, 6.4rem); }
.display--lg { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.display--md { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.hero-title { font-size: clamp(3rem, 6.6vw, 5.8rem); line-height: 1.02; }
.mp-title { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 1.02; }
.hero-title span:nth-child(2),
.mp-title span:nth-child(2) {
  color: transparent;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
}
.eyebrow, .kicker, .mp-meta, .footer-col b, .listen-top, .listen-foot,
.mp-hero-foot, .mp-micro, .mp-specs span, .mp-index-row small,
.mp-plan-top, .mp-plan-foot, .mp-download-note, .mp-visual-note {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .12em;
}
.eyebrow { font-size: 10px; }
p, .lede, .hero-sub, .mp-hero-sub, .mp-chapter p, .policy-body p { letter-spacing: -.003em; }

/* ---------- floating glass nav ---------- */
.site-nav {
  top: 12px;
  height: auto;
  padding: 0 var(--pad);
  background: transparent;
  border: 0;
}
.site-nav.is-scrolled {
  height: auto;
  background: transparent;
  border: 0;
}
.nav-inner {
  height: 64px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.nav-brand,
.nav-functions {
  height: 64px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-ui);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav-brand {
  padding: 0 18px;
  gap: 11px;
  flex: none;
}
.nav-functions {
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.site-nav.is-scrolled .nav-brand,
.site-nav.is-scrolled .nav-functions { background: var(--glass-strong); }
.nav-functions .nav-links { margin-left: 0; gap: 2px; }
.nav-functions .nav-actions { margin-left: 4px; }
.brand-mark b { font-size: 14px; font-weight: 650; letter-spacing: -.03em; }
.brand-mark span { font-size: 8px; letter-spacing: .14em; color: var(--dim); }
.nav-links a {
  padding: 9px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  border-radius: var(--radius-ui);
}
.nav-links a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.nav-links a.is-active { color: var(--acid); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.nav-links a.is-active::after { display: none; }
.nav-actions { gap: 7px; margin-left: 12px; }
.icon-button {
  width: 36px;
  border-radius: var(--radius-ui);
  height: 36px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
}
[data-theme="dark"] .icon-button { background: rgba(255, 255, 255, .04); }
.icon-button:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--glass-border)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.nav-cta {
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-ui);
  background-color: #4a63d8;
  background-image: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 12px;
  font-weight: 650;
}
.nav-cta:hover { background: var(--grad); border-color: transparent; color: #fff; }
[data-theme="dark"] .nav-cta { background-color: #aebcff; }
[data-theme="dark"] .nav-cta:hover { color: #141218; }
.lang-switch .icon-button { min-width: 44px; padding: 0 10px; border-radius: var(--radius-ui); }
.lang-menu {
  border-radius: var(--radius-ui);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.lang-menu button { border-radius: var(--radius-ui); }

/* ---------- buttons ---------- */
.btn {
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-ui);
  background: color-mix(in srgb, var(--surface) 46%, transparent);
  font-size: 13px;
  font-weight: 600;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.btn--acid {
  border: 0;
  background-color: #4a63d8;
  background-image: var(--cta-bg);
  color: var(--cta-fg);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 24%, transparent);
}
.btn--acid:hover { background: var(--grad); color: #fff; border-color: transparent; }
[data-theme="dark"] .btn--acid { background-color: #aebcff; }
[data-theme="dark"] .btn--acid:hover { color: #141218; }
.text-link {
  border-bottom: 0;
  color: var(--acid);
  font-size: 13px;
  font-weight: 600;
}
.text-link:hover { color: var(--ember); border-color: transparent; }
.skip-link { border-radius: var(--radius-ui); background-color: #4a63d8; background-image: var(--cta-bg); color: #fff; }

/* ---------- shared glass card ---------- */
.glass-panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-ui);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .26), transparent 46%),
    radial-gradient(80% 70% at 100% 100%, rgba(255, 255, 255, .10), transparent 52%),
    color-mix(in srgb, var(--surface) 3%, transparent);
  box-shadow: var(--glass-shadow);
}
[data-theme="dark"] .glass-panel {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .10), transparent 46%),
    radial-gradient(80% 70% at 100% 100%, rgba(255, 255, 255, .04), transparent 52%),
    color-mix(in srgb, var(--surface) 4%, transparent);
  box-shadow: var(--glass-shadow);
}
.glass-panel + .glass-panel { margin-top: 14px; }

/* ---------- brand: group existing content into shared cards ---------- */
.manifesto-grid.glass-panel {
  padding: 8px clamp(18px, 2.8vw, 32px);
  border-top: 0;
  margin-top: clamp(42px, 6vw, 78px);
}
.manifesto-grid.glass-panel .principle { padding: 24px clamp(18px, 2.4vw, 34px) 10px 0; }
.manifesto-grid.glass-panel .principle:last-child { border-right: 0; }
.method-list.glass-panel { padding: 0 clamp(18px, 2.8vw, 30px); border-top: 0; }
.method-list.glass-panel .method-item:last-child { border-bottom: 0; }
.product-feature.glass-panel { padding: clamp(18px, 2.6vw, 30px); margin-top: clamp(36px, 5vw, 64px); }
.product-feature.glass-panel .product-visual {
  min-height: 700px;
  border: 0;
  border-radius: var(--radius-ui);
  background: transparent;
  box-shadow: none;
}
.product-feature.glass-panel .product-visual::after { inset: 16%; border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.product-feature.glass-panel .product-shot { box-shadow: 0 24px 60px rgba(28, 27, 31, .18); }
.design-grid.glass-panel { padding: 8px clamp(18px, 2.8vw, 32px); border-top: 0; }
.design-grid.glass-panel .design-item { padding: 24px clamp(18px, 2.4vw, 34px) 10px 0; }
.design-grid.glass-panel .design-item:last-child { border-right: 0; }
.method-orb { border-radius: var(--radius-ui); }
.design-slats { border-radius: var(--radius-ui); }

/* ---------- media: shared cards ---------- */
.mp-intro-grid.glass-panel { margin-top: 0; }
.mp-chapter-card.glass-panel { padding: 0 clamp(18px, 2.8vw, 34px); }
.mp-chapter-card .mp-chapter { padding: clamp(34px, 5vw, 62px) 0; border-top: 1px solid var(--line); }
.mp-chapter-card .mp-chapter:first-of-type { border-top: 0; margin-top: 0; }
.mp-chapter .mp-visual {
  border: 0;
  background:
    radial-gradient(62% 74% at 72% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 66%),
    color-mix(in srgb, var(--surface-2) 62%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
[data-theme="dark"] .mp-chapter .mp-visual { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.mp-index-grid.glass-panel { padding: 8px clamp(18px, 2.8vw, 30px); margin-top: clamp(30px, 4vw, 50px); border-top: 0; }
.mp-index-grid.glass-panel .mp-index-row:last-child { border-bottom: 0; }
.mp-plans.glass-panel {
  padding: 10px;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 4vw, 52px);
}
.mp-plans.glass-panel .mp-plan {
  min-height: 280px;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: var(--radius-ui);
  background: transparent;
  box-shadow: none;
}
.mp-plans.glass-panel .mp-plan:nth-of-type(3) { border-right: 0; }
.mp-plans.glass-panel .mp-plan--featured { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.mp-plans.glass-panel .mp-noiseless {
  margin: 0;
  padding: 24px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.mp-faq-list.glass-panel { padding: 2px clamp(18px, 2.8vw, 30px); border-top: 0; }
.mp-faq-list.glass-panel .mp-faq-item:last-child { border-bottom: 0; }
.mp-screen-row.glass-panel { padding: clamp(14px, 2.2vw, 22px); margin-top: clamp(30px, 4vw, 46px); }
.mp-download-panel {
  border-radius: var(--radius-ui);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(58% 90% at 88% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 66%),
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .24), transparent 46%),
    color-mix(in srgb, var(--surface) 3%, transparent);
  box-shadow: var(--glass-shadow);
}
.mp-download-panel .mp-play { border-radius: var(--radius-ui); background-color: #4a63d8; background-image: var(--cta-bg); color: var(--cta-fg); border: 0; }
.mp-play-mark { border-radius: 50%; }
.mp-closing-inner { border-top-color: var(--line-strong); }

/* ---------- policy / claim ---------- */
.policy-body.glass-panel { padding: clamp(18px, 2.8vw, 30px); }
.policy-body.glass-panel section:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.claim-panel {
  border-radius: var(--radius-ui);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(80% 70% at 90% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .24), transparent 46%),
    color-mix(in srgb, var(--surface) 3%, transparent);
  box-shadow: var(--glass-shadow);
}
[data-theme="dark"] .mp-download-panel .mp-play { background-color: #aebcff; }
[data-theme="dark"] .claim-panel { background: radial-gradient(80% 70% at 90% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .08), transparent 46%), color-mix(in srgb, var(--surface) 4%, transparent); }
.claim-input { border-radius: var(--radius-ui); border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 42%, transparent); }
.claim-form .btn { border-radius: var(--radius-ui); }
.claim-panel::before { border-color: color-mix(in srgb, var(--accent) 26%, transparent); box-shadow: 0 0 100px color-mix(in srgb, var(--accent) 12%, transparent); }

/* ---------- footer ---------- */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--line);
}
.footer-word { font-family: var(--sans); font-weight: 700; letter-spacing: -.075em; opacity: .045; }
.footer-word--brand { font-size: clamp(2.2rem, 8.6vw, 9.5rem); letter-spacing: -.065em; }
.footer-col b { color: var(--dim); }
.footer-bottom { color: var(--dim); }

@media (max-width: 980px) {
  :root { --nav-h: 76px; }
  .nav-inner { height: 56px; padding: 0 10px 0 14px; }
  .site-nav { top: 10px; }
  .nav-actions { gap: 5px; }
  .icon-button { width: 32px; height: 32px; }
  .lang-switch .icon-button { min-width: 38px; }
}
@media (max-width: 560px) {
  .nav-inner { padding: 0 8px 0 12px; }
  .brand-mark b { font-size: 12.5px; }
  .brand-mark img { width: 26px; height: 26px; }
  .plans, .mp-plans.glass-panel { grid-template-columns: 1fr; }
  .mp-plans.glass-panel .mp-plan { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mp-plans.glass-panel .mp-plan:nth-of-type(3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .mp-plans.glass-panel { grid-template-columns: 1fr; }
  .mp-plans.glass-panel .mp-plan {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .mp-plans.glass-panel .mp-plan:nth-of-type(3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .product-feature.glass-panel .product-visual { min-height: 460px; }
}
.listen-info b { font-weight: 650; letter-spacing: -.035em; }
.listen-card { border-radius: var(--radius-ui); border-color: var(--glass-border); background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .26), transparent 46%), color-mix(in srgb, var(--surface) 3%, transparent); box-shadow: var(--glass-shadow); }
[data-theme="dark"] .listen-card { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .09), transparent 46%), color-mix(in srgb, var(--surface) 4%, transparent); }
.listen-tags i { border-radius: 8px; font-family: var(--sans); }
.listen-wave i { background: var(--accent); opacity: .4; }

/* higher-specificity resets for the older shell rules */
[data-theme="light"] .nav-cta { color: #fff; }
[data-theme="light"] .nav-cta:hover { background-color: #4a63d8; background-image: var(--grad); border-color: transparent; color: #fff; }
[data-theme="light"] .btn--acid { color: #fff; }
[data-theme="light"] .btn--acid:hover { color: #fff; }
[data-theme="dark"] .btn--acid { color: #141218; }
[data-theme="light"] .skip-link { color: #fff; }
[data-theme="light"] .lang-menu { box-shadow: var(--glass-shadow); }

/* ---------- language at the bottom ---------- */
.footer-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.footer-lang-label {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-lang { position: relative; }
.footer-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-ui);
  background: rgba(255, 255, 255, .06);
  color: var(--fg);
  font-size: 12px;
  font-weight: 600;
}
.footer-lang-toggle:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 38%, var(--glass-border)); }
.footer-lang-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer-lang .lang-menu {
  top: auto;
  bottom: calc(100% + 10px);
  right: 0;
  left: auto;
}
[data-theme="dark"] .footer-lang-toggle { background: rgba(255, 255, 255, .04); }

@media (max-width: 980px) {
  .nav-inner { height: 56px; gap: 8px; }
  .nav-brand,
  .nav-functions { height: 56px; }
  .nav-brand { padding: 0 14px; }
  .nav-functions { padding: 0 6px; }
  .nav-actions { margin-left: 2px; }
  .footer-lang-row { padding: 16px 0; }
}
@media (max-width: 560px) {
  .nav-brand { padding: 0 12px; }
  .nav-brand span { display: none; }
  .footer-lang-row { gap: 12px; }
}

/* ---------- visible transparent glass: specular sheen + edge refraction ---------- */
.nav-brand,
.nav-functions,
.glass-panel,
.listen-card,
.mp-download-panel {
  position: relative;
}
.nav-brand,
.nav-functions {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .015) 60%, rgba(255, 255, 255, .18) 100%),
    rgba(255, 255, 255, .025);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .2),
    inset 1px 0 0 rgba(255, 255, 255, .5),
    inset -1px 0 0 rgba(255, 255, 255, .26),
    0 18px 50px rgba(91, 124, 250, .10);
}
.glass-panel {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, .02) 62%, rgba(255, 255, 255, .15) 100%),
    radial-gradient(100% 75% at 0% 0%, rgba(255, 255, 255, .18), transparent 52%),
    color-mix(in srgb, var(--surface) 3%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    inset 1px 0 0 rgba(255, 255, 255, .45),
    inset -1px 0 0 rgba(255, 255, 255, .22),
    0 20px 55px rgba(91, 124, 250, .10);
}
.listen-card,
.mp-download-panel,
.claim-panel {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, .02) 62%, rgba(255, 255, 255, .15) 100%),
    radial-gradient(100% 75% at 0% 0%, rgba(255, 255, 255, .16), transparent 52%),
    color-mix(in srgb, var(--surface) 3%, transparent);
}
[data-theme="dark"] .nav-brand,
[data-theme="dark"] .nav-functions,
[data-theme="dark"] .glass-panel,
[data-theme="dark"] .listen-card,
[data-theme="dark"] .mp-download-panel,
[data-theme="dark"] .claim-panel {
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .025) 30%, rgba(255, 255, 255, .01) 60%, rgba(255, 255, 255, .07) 100%),
    color-mix(in srgb, var(--surface) 4%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 1px 0 0 rgba(255, 255, 255, .1),
    inset -1px 0 0 rgba(255, 255, 255, .06),
    0 20px 55px rgba(0, 0, 0, .35);
}
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .glass-panel::before,
  .listen-card::before,
  .mp-download-panel::before,
  .claim-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .08) 28%, rgba(255, 255, 255, .55) 64%, rgba(255, 255, 255, .12));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: .8;
  }
  [data-theme="dark"] .glass-panel::before,
  [data-theme="dark"] .listen-card::before,
  [data-theme="dark"] .mp-download-panel::before,
  [data-theme="dark"] .claim-panel::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .03) 28%, rgba(255, 255, 255, .25) 64%, rgba(255, 255, 255, .05));
  }
}
/* the claim panel already uses ::before for its ring; ::after is the edge */
.claim-panel::after { z-index: 2; }

/* theme transition */
html.theme-changing,
html.theme-changing body,
html.theme-changing body * {
  transition:
    background-color .4s var(--ease),
    color .4s var(--ease),
    border-color .4s var(--ease),
    box-shadow .4s var(--ease),
    fill .4s var(--ease),
    stroke .4s var(--ease) !important;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .42s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

/* the two nav capsules are hosts for the real liquid-glass layers */
.nav-brand,
.nav-functions {
  border: 0;
  background: transparent;
  box-shadow: none;
  --lg-r: 24px;
  --lg-s: 1.05;
}
[data-theme="dark"] .nav-brand,
[data-theme="dark"] .nav-functions { --lg-dark: 1; }
.nav-brand > .lg-defs,
.nav-functions > .lg-defs { position: absolute; }

/* Keep the reference glass transparent, not a white veil */
.nav-brand,
.nav-functions {
  --lg-underlay: 0.035;
  --lg-shadow-o: 0.18;
  --lg-caustic-o: 0.36;
}
.nav-brand + .lg-cover,
.nav-functions + .lg-cover { --lg-underlay: 0.035; }
[data-theme="dark"] .nav-brand,
[data-theme="dark"] .nav-functions { --lg-underlay: 0.015; --lg-shadow-o: 0.1; --lg-caustic-o: 0.18; }
[data-theme="dark"] .nav-brand + .lg-cover,
[data-theme="dark"] .nav-functions + .lg-cover { --lg-dark: 1; --lg-underlay: 0.015; }

/* No-JS fallback: keep the two capsules visible before the glass layers mount. */
.nav-brand:not(.lg-host),
.nav-functions:not(.lg-host) {
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(255, 255, 255, .18),
    0 16px 40px rgba(91, 124, 250, .08);
}
