/* Multi-page styles & navigation enhancements */
.download-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.download-actions .download-button { margin-top: 0; }
.button.download-secondary {
  color: #f3f8ff;
  border: 1px solid #9acbff80;
  background: #18385f80;
  box-shadow: inset 0 1px #d4eaff18, 0 8px 28px #00112d30;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.button.download-secondary:hover {
  color: #fff;
  border-color: #c2e4ff;
  background: #244b76b3;
  box-shadow: inset 0 1px #e6f4ff26, 0 10px 32px #00112d40;
}
.button.button-outline {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
}
.button.button-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-header nav a[aria-current="page"] { color: #fff; }
.site-header nav a[aria-current="page"]:after { transform: scaleX(1); }

/* Subpage top banner */
.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 56px;
  background: radial-gradient(ellipse 68% 55% at 50% 100%, #10376c80, transparent 70%), #061932;
  color: #f3f8ff;
  border-bottom: 1px solid #83bfff33;
}
.subpage-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/images/immersive-stage.webp) center 55% / cover;
  opacity: .22;
  pointer-events: none;
}
.subpage-hero-inner { position: relative; z-index: 1; }
.subpage-hero .eyebrow { color: #9fd0ff; margin-bottom: 14px; }
.subpage-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.24;
  letter-spacing: -1.4px;
  margin-top: 0;
  color: #fff;
}
.subpage-lead {
  max-width: 720px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.85;
  color: #cddff8;
}
.subpage-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 22px;
}
.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0d2b52;
  border: 1px solid #7ab9ff4d;
  color: #d7e9ff;
  font-size: 13px;
}

/* Subpage quick switcher bar (desktop + mobile) */
.subpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.subpage-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #d6e7ff;
  background: #0b2447b3;
  border: 1px solid #83bfff38;
  transition: background .2s, border-color .2s, color .2s;
}
.subpage-nav a:hover {
  color: #fff;
  background: #173a69;
  border-color: #a8d2ff80;
}
.subpage-nav a[aria-current="page"] {
  color: #fff;
  background: #0767e5;
  border-color: #53b8ff;
}

/* Download secondary page layout (above the fold) */
.download-page-hero {
  padding-top: 108px;
  padding-bottom: 72px;
}
.download-page-hero .subpage-nav {
  margin-top: 0;
  margin-bottom: 36px;
}
.download-copy h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.24;
  letter-spacing: -1.6px;
  margin-top: 0;
  color: #fff;
}
.channel-notes {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.channel-note {
  padding: 14px 18px;
  border-radius: 12px;
  background: #0c264ab3;
  border: 1px solid #83bfff36;
}
.channel-note strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: #eef6ff;
}
.channel-note p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.75;
  color: #bed1eb;
}
.download-links { margin-top: 22px; }
.hash-cmd-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #071933;
  border: 1px solid #7293bc40;
}
.hash-cmd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #a9c1de;
}
.hash-cmd-box code {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.65;
  color: #e6f1ff;
  overflow-wrap: anywhere;
  user-select: all;
}
.hash-cmd-box .copy-button {
  min-height: 30px;
  padding: 2px 6px;
}

/* Cards & grids on homepage hub and subpages */
.hub-section {
  border-top: 1px solid var(--line);
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.hub-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow: var(--shadow);
}
.hub-card-featured {
  background: linear-gradient(145deg, #092042, #0d2b57);
  border-color: #4ea5ff5c;
  color: #f3f8ff;
}
.hub-card-featured .eyebrow { color: #9fd0ff; }
.hub-card-featured p { color: #c7daf5; }
.hub-card-featured .text-link { color: #9dd1ff; }
.hub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hub-card-top .eyebrow { margin-bottom: 0; }
.hub-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--blue);
  white-space: nowrap;
}
.hub-card-featured .hub-tag {
  background: #2f7bd638;
  color: #cbe6ff;
}
.hub-card h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-top: 10px;
}
.hub-card p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 10px;
}
.hub-card .text-link {
  min-height: 32px;
  font-size: 14px;
  color: var(--blue);
}
.hub-card-featured .text-link { color: #9dd1ff; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.info-card .eyebrow { margin-bottom: 10px; }
.info-card h3 { font-size: 19px; line-height: 1.45; }
.info-card p, .info-card li {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* Changelog timeline cards */
.changelog-wrap #release-history {
  display: grid;
  gap: 20px;
}
.changelog-wrap #release-history article {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.changelog-wrap #release-history article:first-child {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow: var(--shadow);
}
.changelog-wrap #release-history h3 {
  font-size: 20px;
  margin-top: 12px;
}
.changelog-wrap #release-history ul {
  margin: 14px 0 0;
  padding-left: 20px;
}
.changelog-wrap #release-history li {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}

/* Privacy page layout */
.privacy-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.privacy-cards .info-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

/* FAQ subpage adjustments */
.faq-subpage-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 64px;
  align-items: start;
}
.faq-subpage-links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-subpage-grid .faq-list details:first-child {
  border-top: 1px solid var(--line);
}

/* Subpage CTA footer strip */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.cta-band h3 { font-size: 22px; }
.cta-band p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

@media (max-width: 960px) {
  .nav-wrap nav { gap: 12px; font-size: 13px; }
}
@media (max-width: 1024px) {
  .hub-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-subpage-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .subpage-hero { padding: 92px 0 40px; }
  .download-page-hero { padding: 88px 0 52px; }
  .download-page-hero .subpage-nav { margin-bottom: 24px; }
  .hub-grid, .info-grid, .privacy-cards { grid-template-columns: 1fr; }
  .changelog-wrap #release-history article { padding: 22px 20px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .button { width: 100%; }
}
