/* ─────────────────────────────────────────────────────────────
   ANANTAR ULTIMATE — migrated components, re-skinned to the
   Infinity black/gold theme.

   These classes originate from the old anantarultimate.com
   single-page site. Their LAYOUT is preserved; every blue/purple
   accent has been remapped to the Infinity palette so the merged
   site reads as one design language.

   Depends on style.css for the root variables:
     --bg-dark #070709  --bg-surface #121218
     --text-main #fff   --text-dim #A0A0A8
     --accent-blue #2CB1F3  --accent-gold #D4AF37
   ───────────────────────────────────────────────────────────── */

/* Local aliases so the ported markup keeps reading naturally.
   Map the old glass/blue surfaces onto Infinity's surfaces. */
:root {
  --lg-surface:      #121218;
  --lg-surface-2:    #16161d;
  --lg-border:       rgba(255, 255, 255, 0.07);
  --lg-border-hover: rgba(212, 175, 55, 0.35);
  --lg-text-2:       #A0A0A8;
  --lg-gold:         #D4AF37;
  --lg-gold-soft:    rgba(212, 175, 55, 0.12);
  /* Harmonic series accents — kept distinct but tuned warmer/quieter
     to sit inside the black/gold theme rather than fight it. */
  --lg-water: #5BC8F3;
  --lg-sky:   #9DB0F5;
  --lg-fire:  #F0944C;
}

/* ── Section sub-heading helper (old .section-sub) ── */
.section-sub {
  font-size: 1.15rem;
  color: var(--lg-text-2);
  max-width: 720px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .section-sub { font-size: 0.95rem; margin-bottom: 28px; }
}

/* ── Feature grid + cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.feature-card {
  position: relative;
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--lg-border-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--lg-text-2);
  line-height: 1.65;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
/* Hero feature card (PowerScope intro etc.) spans two columns when room */
.feature-card-hero { grid-column: span 2; }
@media (max-width: 720px) { .feature-card-hero { grid-column: span 1; } }

.feature-card.card-glow:hover {
  box-shadow: 0 18px 50px rgba(212, 175, 55, 0.12);
}

.feature-badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #FFDF73, var(--lg-gold));
  color: #000;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Inline PowerScope screenshot strip inside a feature card */
.powerscope-screenshots {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.powerscope-screenshots img {
  flex: 1 1 0;
  min-width: 90px;
  max-width: 160px;
  border-radius: 10px;
  border: 1px solid var(--lg-border);
}

/* ── Profiles layout ── */
.profiles-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}
@media (max-width: 760px) { .profiles-layout { grid-template-columns: 1fr; } }

.profile-group-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-item {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 14px;
  transition: border-color 0.2s;
  text-align: left;
}
.profile-item:hover { border-color: var(--lg-border-hover); }
.profile-item strong {
  font-size: 0.95rem;
  color: #fff;
  display: block;
  margin-bottom: 3px;
}
.profile-item p {
  font-size: 0.85rem;
  color: var(--lg-text-2);
  margin: 0;
  line-height: 1.5;
}
.profile-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--lg-gold);
  background: var(--lg-gold-soft);
  border-radius: 8px;
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tag-small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lg-gold);
  background: var(--lg-gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 3px 10px;
  border-radius: 99px;
}

/* ── Harmonic series cards ── */
.harmonic-section { margin-top: 56px; }
.harmonic-desc {
  font-size: 0.95rem;
  color: var(--lg-text-2);
  max-width: 760px;
  margin: 12px auto 28px;
  line-height: 1.65;
}
.harmonic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.harmonic-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--lg-border);
  background: var(--lg-surface);
  text-align: left;
}
.harmonic-card h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.harmonic-icon { font-size: 1.4rem; }
.harmonic-card.water { border-color: rgba(91, 200, 243, 0.3); }
.harmonic-card.sky   { border-color: rgba(157, 176, 245, 0.3); }
.harmonic-card.fire  { border-color: rgba(240, 148, 76, 0.3); }
.harmonic-card.water h4 span:first-child { color: var(--lg-water); }
.harmonic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.harmonic-tags span {
  font-size: 0.74rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--lg-text-2);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Architecture explanation cards ── */
.arch-img-wrap {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  margin: 8px auto 0;
  max-width: 900px;
}
.arch-img-wrap img { width: 100%; max-width: 760px; height: auto; border-radius: 12px; }
.arch-img-credit {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--lg-text-2);
  letter-spacing: 0.04em;
}
.arch-explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 860px) { .arch-explain-grid { grid-template-columns: 1fr; } }
.arch-explain-card {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 24px;
  padding: 32px;
  text-align: left;
  transition: border-color 0.3s ease;
}
.arch-explain-card:hover { border-color: var(--lg-border-hover); }
.arch-explain-icon { font-size: 1.8rem; margin-bottom: 14px; }
.arch-explain-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
}
.arch-explain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}
.arch-explain-list li {
  font-size: 0.9rem;
  color: var(--lg-text-2);
  line-height: 1.6;
}
.arch-explain-list strong {
  display: block;
  font-size: 1rem;
  color: var(--lg-gold);
  margin-bottom: 6px;
}
.arch-source-note {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--lg-text-2);
  text-align: center;
}
.arch-source-note a { color: var(--accent-blue); text-decoration: none; }
.arch-source-note a:hover { text-decoration: underline; }

/* ── Tuning-guide image card ── */
.orig-img-card {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 24px;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}
.orig-img-header { padding: 28px 32px 8px; text-align: left; }
.orig-img-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lg-gold);
  background: var(--lg-gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.orig-img-header h3 { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; margin-bottom: 8px; }
.orig-img-header p { color: var(--lg-text-2); font-size: 0.92rem; line-height: 1.6; }
.orig-img-wrap { padding: 24px 32px 32px; }
.orig-img-wrap img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--lg-border); }

/* ── DeepSleep card ── */
.deepsleep-card {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 24px;
  padding: 32px;
  margin-top: 48px;
  text-align: left;
}
.ds-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.ds-icon { font-size: 2rem; }
.ds-header h3 { font-family: var(--font-heading); font-size: 1.3rem; color: #fff; }
.ds-header p { color: var(--lg-text-2); font-size: 0.9rem; }
.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.ds-item {
  background: var(--lg-surface-2);
  border: 1px solid var(--lg-border);
  border-radius: 14px;
  padding: 18px;
}
.ds-item strong { display: block; color: var(--lg-gold); font-size: 0.92rem; margin-bottom: 6px; }
.ds-item p { color: var(--lg-text-2); font-size: 0.85rem; line-height: 1.55; margin: 0; }

/* ── Install steps ── */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin: 20px auto 0;
}
.install-step {
  display: flex;
  gap: 20px;
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 18px;
  padding: 26px 28px;
  text-align: left;
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #000;
  background: linear-gradient(135deg, #FFDF73, var(--lg-gold));
  border-radius: 12px;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.install-step h3 { font-family: var(--font-heading); font-size: 1.15rem; color: #fff; margin-bottom: 8px; }
.install-step p  { color: var(--lg-text-2); font-size: 0.92rem; line-height: 1.65; margin-bottom: 8px; }
.install-step p:last-child { margin-bottom: 0; }
.install-step code {
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--lg-border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.85rem;
  color: var(--lg-gold);
  word-break: break-all;
}

/* Sub-steps inside an install step (clean, scannable; no nested numbering) */
.substeps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 4px;
}
.substep {
  border-left: 2px solid rgba(212, 175, 55, 0.4);
  padding: 2px 0 2px 16px;
}
.substep-head {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 4px;
}
.substep-path {
  font-size: 0.92rem;
  color: var(--text-main);
  margin: 0 0 3px;
  line-height: 1.5;
}
.substep-note {
  font-size: 0.85rem;
  color: var(--lg-text-2);
  margin: 0;
  line-height: 1.55;
}

/* ── Screenshot thumbnail strip + lightbox (install walkthrough) ── */
.shot-strip-label {
  font-size: 0.85rem;
  color: var(--lg-text-2);
  margin: 18px 0 10px;
  font-weight: 600;
}
.shot-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.shot-strip::-webkit-scrollbar { height: 6px; }
.shot-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
.shot-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 84px;
  padding: 0;
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shot-thumb:hover,
.shot-thumb:focus-visible {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  outline: none;
}
.shot-thumb img { width: 100%; height: 150px; object-fit: cover; object-position: top; display: block; }
/* Wide (landscape) thumbnail — e.g. the Chrome "Keep" screenshot */
.shot-thumb--wide { width: auto; max-width: 340px; }
.shot-thumb--wide img { height: auto; object-fit: contain; }
.shot-num {
  position: absolute;
  top: 6px; left: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 44px; height: 44px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* OS chips inside an install step */
.os-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.os-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--lg-border);
  border-radius: 99px;
  padding: 6px 14px;
}

/* ── Checklist / requirement box ── */
.req-box {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-left: 3px solid var(--lg-gold);
  border-radius: 14px;
  padding: 22px 26px;
  max-width: 880px;
  margin: 0 auto 28px;
  text-align: left;
}
.req-box h3 { font-family: var(--font-heading); font-size: 1.05rem; color: #fff; margin-bottom: 14px; }
.req-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.req-list li { color: var(--lg-text-2); font-size: 0.92rem; padding-left: 26px; position: relative; line-height: 1.55; }
.req-list li::before { content: '✓'; position: absolute; left: 0; color: var(--lg-gold); font-weight: 800; }
.req-list li strong { color: var(--text-main); }

/* ── Warning / safety callout ── */
.callout {
  border-radius: 16px;
  padding: 22px 26px;
  max-width: 880px;
  margin: 0 auto 24px;
  text-align: left;
  line-height: 1.6;
}
.callout-warn {
  background: rgba(245, 179, 0, 0.07);
  border: 1px solid rgba(245, 179, 0, 0.3);
  color: #f3d9a0;
}
.callout-info {
  background: rgba(44, 177, 243, 0.06);
  border: 1px solid rgba(44, 177, 243, 0.25);
  color: #b8e3f7;
}
.callout strong { color: #fff; }

/* ── Collapsible <details> (EXT4 / Recovery / FAQ) ── */
.collapsible {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 16px;
  margin: 0 auto 16px;
  max-width: 880px;
  overflow: hidden;
}
.collapsible > summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background 0.2s;
}
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary:hover { background: rgba(255, 255, 255, 0.02); }
.collapsible > summary::after {
  content: '+';
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--lg-gold);
  font-weight: 400;
  transition: transform 0.2s;
  line-height: 1;
}
.collapsible[open] > summary::after { transform: rotate(45deg); }
.collapsible-body {
  padding: 0 26px 24px;
  color: var(--lg-text-2);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: left;
}
.collapsible-body strong { color: var(--text-main); }
.collapsible-body ol, .collapsible-body ul { margin: 10px 0 10px 20px; }
.collapsible-body li { margin-bottom: 8px; }
.collapsible-body code {
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--lg-border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.85rem;
  color: var(--lg-gold);
}

/* ── Hub: ecosystem pillar cards ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.pillar-card {
  display: block;
  text-decoration: none;
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 22px;
  padding: 32px 28px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--lg-border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.pillar-icon { font-size: 2.2rem; margin-bottom: 16px; }
.pillar-card h3 { font-family: var(--font-heading); font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.pillar-card p { color: var(--lg-text-2); font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px; }
.pillar-link { color: var(--lg-gold); font-weight: 700; font-size: 0.9rem; }
.pillar-card--feature { border-color: rgba(212, 175, 55, 0.28); }

/* ── Community cards ── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 20px auto 0;
}
.community-card {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 18px;
  padding: 26px;
  text-align: left;
  transition: border-color 0.2s;
}
.community-card:hover { border-color: var(--lg-border-hover); }
.community-card-icon { font-size: 1.6rem; margin-bottom: 12px; }
.community-card h3 { font-family: var(--font-heading); font-size: 1.05rem; color: #fff; margin-bottom: 8px; }
.community-card p { color: var(--lg-text-2); font-size: 0.88rem; line-height: 1.55; margin-bottom: 12px; }
.community-card a { color: var(--accent-blue); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.community-card a:hover { text-decoration: underline; }

/* ── Mobile nav links (ported pattern; hub uses a links list) ── */
.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--lg-text-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a.active { color: var(--lg-gold); }
/* The Download item lives inside the slide-in menu and only appears on mobile,
   where the in-navbar Download button is hidden. Hidden on desktop. */
.nav-mobile-download { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 300px);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 90px 32px 32px;
    background: #0d0d12;
    border-left: 1px solid var(--lg-border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1500;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; z-index: 1600; }

  /* Keep the navbar from overflowing on phones so the ☰ toggle is always
     reachable. The brand cursive + lang switcher + Download button + toggle
     were too wide together and pushed the toggle off-screen. */
  .nav-inner { flex-wrap: nowrap; gap: 10px; }
  .nav-left { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .nav-left .brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-right { flex: 0 0 auto; }
  /* The in-navbar Download button is redundant on mobile (the menu has Install
     and pages have their own CTAs); hide it so the toggle has room. */
  .navbar .nav-right .btn-nav { display: none; }

  /* Show the Download CTA inside the slide-in menu, styled as a gold button
     so the mobile user still has a clear download entry point. */
  .nav-links .nav-mobile-download {
    display: block;
    width: 100%;
    margin-top: 8px;
    border-top: 1px solid var(--lg-border);
    padding-top: 20px;
  }
  .nav-links .nav-mobile-download a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFDF73, var(--lg-gold));
    color: #000;
    font-weight: 800;
    font-size: 0.95rem;
  }
  .nav-links .nav-mobile-download a:hover { color: #000; filter: brightness(1.05); }
  .nav-links .nav-mobile-download a .ic { width: 18px; height: 18px; }
}

/* On phones, guarantee the ☰ toggle is always on-screen and tappable.
   The original site has several overlapping @media(max-width:600px) brand
   rules with conflicting font sizes; these high-specificity rules (in
   legacy.css, which loads last) are the single source of truth for the
   mobile navbar so nothing pushes the toggle off the right edge. */
@media (max-width: 600px) {
  .navbar .nav-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
  .navbar .nav-left  { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .navbar .nav-left .brand { min-width: 0; overflow: hidden; }
  .navbar .nav-left .brand-text.nav-title,
  .navbar span.nav-title { font-size: 1.25rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .navbar .nav-right { flex: 0 0 auto; gap: 8px !important; }
  /* flag-only language switcher to save width */
  .navbar .lang-trigger .lang-current,
  .navbar .lang-trigger .lang-arrow { display: none; }
  .navbar .lang-trigger { padding: 6px 9px; }
  /* Download button is redundant on mobile (menu + page CTAs cover it) */
  .navbar .nav-right .btn-nav { display: none !important; }
  /* The toggle is PINNED to the top-right of the fixed navbar so it can
     never be pushed off-screen by the brand or anything else in the row.
     The navbar is position:fixed, so absolute positioning anchors to it. */
  .navbar .nav-toggle {
    display: block !important;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 1.6rem;
    line-height: 1;
    padding: 6px 8px;
    margin: 0;
    z-index: 1700;
  }
  /* reserve space on the right so nav-right content doesn't sit under the
     pinned toggle */
  .navbar .nav-right { padding-right: 40px; }
}

/* ── Language switcher (shared; original pages also define this inline) ──
   Without these rules the .lang-dropdown renders fully expanded inline.
   .active uses gold here to match the black/gold theme. */
.lang-switcher { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-body);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
}
.lang-trigger:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--text-main); }
.lang-arrow { font-size: 0.6rem; opacity: 0.6; transition: transform 0.2s; }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  min-width: 130px;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
  white-space: nowrap;
}
.lang-option:hover { background: rgba(255, 255, 255, 0.07); color: var(--text-main); }
.lang-option.active { color: var(--accent-gold); background: rgba(212, 175, 55, 0.1); }

/* ── Icon treatment ──────────────────────────────────────────────
   Emoji icons clash with the black/gold theme when shown at full
   multicolor saturation. Desaturate + dim them so they read as
   quiet on-theme glyphs rather than loud stickers. Applied to the
   card/section icon containers (the decorative ones only — never to
   buttons or banners). */
.feature-icon,
.pillar-icon,
.value-icon,
.community-card-icon,
.arch-explain-icon,
.harmonic-icon,
.ds-icon {
  filter: saturate(0.55) brightness(1.05);
  opacity: 0.92;
}
.feature-icon { font-size: 1.7rem; margin-bottom: 12px; }
.pillar-icon  { font-size: 1.9rem; }

/* Section-tag eyebrow pills: keep them, but let the emoji sit quietly
   (the pill already carries the gold accent). */
.section-tag { filter: saturate(0.7); }

/* ── Infinity DSP grouped section ── */
.dsp-sub-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.dsp-sub-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  max-width: 640px;
}
.dsp-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 36px auto 0;
}
@media (max-width: 820px) { .dsp-color-grid { grid-template-columns: 1fr; } }
.dsp-color-card {
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: 22px;
  padding: 26px 24px 28px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.dsp-color-card:hover { border-color: var(--lg-border-hover); transform: translateY(-3px); }
.dsp-color-card .dap-frame { max-width: 260px; }
.dsp-color-meta { margin-top: 20px; text-align: left; }
.dsp-color-meta h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}
.dsp-color-meta p {
  color: var(--lg-text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Device feature matrix (moved from player.html inline) ── */
.device-table-wrap {
  max-width: 820px;
  margin: 36px auto 0;
  border-radius: 18px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
}
.device-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.device-table thead th {
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.device-table thead th:nth-child(2),
.device-table thead th:nth-child(3),
.device-table thead th:nth-child(4) {
  text-align: center;
  width: 100px;
}
.device-table thead th.col-dx340 { color: var(--accent-gold); }
.device-table thead th.col-dx270 { color: var(--accent-blue); }
.device-table tbody td {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #dfe2ea;
}
.device-table tbody td:nth-child(2),
.device-table tbody td:nth-child(3),
.device-table tbody td:nth-child(4) {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
}
.device-table .yes { color: #4ade80; }
.device-table .no  { color: #555; }
.device-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
@media (max-width: 768px) {
  .device-table thead th,
  .device-table tbody td { padding: 12px 14px; font-size: 0.88rem; }
  .device-table thead th:nth-child(2),
  .device-table thead th:nth-child(3),
  .device-table thead th:nth-child(4) { width: 64px; }
}
