/* ==========================================================================
   SVPlayer Official Website — Glacier Glass Design System v2
   Directly derived from SVPlayer Apple App (GlassTheme.swift, CinemaTheme.swift,
   SVPlatformMetrics.swift, Design/UI/system.html & player.html).
   Zero external fonts or CDN dependencies. Dark Cinema default + Light Glacier.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Native Apple + CJK system font stack (zero external CDN) */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Dark Cinema Canvas & Halos (GlassTheme.swift dark) */
  --bg-canvas: #090b10;
  --bg-surface: #141720;
  --bg-elevated: #1e222e;
  --bg-cinema: #05070b;
  --bg-halo-blue: rgba(40, 110, 255, 0.24);
  --bg-halo-violet: rgba(130, 90, 255, 0.16);
  --bg-halo-glacier: rgba(53, 200, 255, 0.11);

  /* Typography Ink (WCAG AA+ on dark cinema canvas & glass) */
  --text-primary: #f4f6fb;
  --text-secondary: #a4aabc;
  --text-tertiary: #8790a3;

  /* Glacier Brand & Semantic Accents (SVTheme) */
  --accent: #2f7bff;
  --accent-ink: #6ea8ff;
  --accent-hover: #9bc4ff;
  --accent-cyan: #35c8ff;
  --accent-violet: #7b6bff;
  --accent-grad: linear-gradient(135deg, #3d8bff 0%, #1f5fff 55%, #5b6bff 100%);
  --accent-text-grad: linear-gradient(125deg, #88d6ff 0%, #589cff 48%, #a699ff 100%);
  --accent-glow: rgba(31, 95, 255, 0.42);
  --selection-fill: rgba(80, 150, 255, 0.18);
  --hover-fill: rgba(255, 255, 255, 0.08);
  --active-fill: rgba(255, 255, 255, 0.14);

  /* Status Colors (SVTheme) */
  --status-green: #30d158;
  --status-green-ink: #63e688;
  --status-green-bg: rgba(48, 209, 88, 0.10);
  --status-green-border: rgba(48, 209, 88, 0.30);
  --status-amber: #ff9f0a;
  --status-red: #ff453a;
  --rating-star: #ffcf6c;

  /* Hairlines & Dividers */
  --divider: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.12);

  /* 3-Layer Glacier Glass Materials (SVGlassLayer L1 / L2 / L3) */
  --glass-l1-bg: rgba(32, 36, 48, 0.56);
  --glass-l1-bg-hover: rgba(40, 46, 62, 0.66);
  --glass-l1-border: rgba(255, 255, 255, 0.12);
  --glass-l1-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --glass-l1-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);

  --glass-l2-bg: rgba(40, 42, 48, 0.56);
  --glass-l2-border: rgba(255, 255, 255, 0.15);
  --glass-l2-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.18);

  --glass-l3-bg: rgba(24, 26, 34, 0.84);
  --glass-l3-border: rgba(255, 255, 255, 0.14);
  --glass-l3-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --glass-l3-shadow: 0 24px 56px rgba(0, 0, 0, 0.50);

  /* Navigation & Chrome */
  --nav-bg: rgba(15, 18, 27, 0.72);
  --nav-bg-scrolled: rgba(15, 18, 27, 0.86);
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);

  /* Code, Callout & Footer */
  --code-bg: rgba(80, 150, 255, 0.13);
  --code-border: rgba(110, 168, 255, 0.25);
  --code-ink: #c2dcff;
  --callout-quote-bg: rgba(9, 12, 20, 0.72);
  --callout-body-ink: #d4e8dc;
  --footer-bg: rgba(7, 9, 14, 0.84);

  /* Segmented Control */
  --seg-bg: rgba(255, 255, 255, 0.06);
  --seg-active-bg: rgba(255, 255, 255, 0.16);
  --seg-active-ink: #f4f6fb;
  --seg-active-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);

  /* Hardware Frame Shell (always cinema-grade titanium/aluminum) */
  --hw-bezel: #11131a;
  --hw-rim: rgba(255, 255, 255, 0.18);
  --hw-rim-outer: rgba(255, 255, 255, 0.08);
  --hw-deck: linear-gradient(180deg, #2d3240 0%, #171a23 100%);
  --hw-shadow: 0 32px 80px rgba(0, 0, 0, 0.58), 0 8px 24px rgba(0, 0, 0, 0.36);

  /* Tiered Corner Radii (SVPlatformMetrics.swift) */
  --radius-stage: 28px;
  --radius-card: 22px;
  --radius-panel: 18px;
  --radius-media: 14px;
  --radius-control: 12px;
  --radius-badge: 9px;
  --radius-pill: 999px;

  /* Layout Metrics */
  --maxw: 1180px;
  --maxw-narrow: 920px;
  --nav-offset: 86px;

  /* Back-compat variable aliases for unmodified <main> inline styles */
  --bg: var(--bg-canvas);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --subtle: var(--text-tertiary);
  --line: var(--divider);
  --cyan: var(--accent-ink);
  --emerald: var(--status-green);
}

/* Light Glacier Theme (GlassTheme.swift light — high-contrast charcoal on frosted glacier white) */
html[data-theme="light"] {
  color-scheme: light;

  --bg-canvas: #f2f5fa;
  --bg-surface: #ffffff;
  --bg-elevated: #e8edf6;
  --bg-halo-blue: rgba(120, 170, 255, 0.32);
  --bg-halo-violet: rgba(170, 140, 255, 0.22);
  --bg-halo-glacier: rgba(53, 200, 255, 0.14);

  --text-primary: #0d1220;
  --text-secondary: #485266;
  --text-tertiary: #606b80;

  --accent: #2f7bff;
  --accent-ink: #1958d6;
  --accent-hover: #1246b3;
  --accent-text-grad: linear-gradient(125deg, #1b63eb 0%, #2f7bff 50%, #6248ff 100%);
  --accent-glow: rgba(31, 95, 255, 0.30);
  --selection-fill: rgba(47, 123, 255, 0.11);
  --hover-fill: rgba(47, 123, 255, 0.08);
  --active-fill: rgba(47, 123, 255, 0.14);

  --status-green: #24a148;
  --status-green-ink: #146330;
  --status-green-bg: rgba(52, 199, 89, 0.10);
  --status-green-border: rgba(36, 161, 72, 0.30);
  --status-amber: #cc7700;
  --status-red: #d92d20;
  --rating-star: #a46508;

  --divider: rgba(40, 60, 110, 0.10);
  --hairline: rgba(40, 60, 110, 0.13);

  --glass-l1-bg: rgba(255, 255, 255, 0.68);
  --glass-l1-bg-hover: rgba(255, 255, 255, 0.84);
  --glass-l1-border: rgba(255, 255, 255, 0.94);
  --glass-l1-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --glass-l1-shadow: 0 8px 26px rgba(40, 60, 110, 0.09), 0 0 0 1px rgba(40, 60, 110, 0.07);

  --glass-l3-bg: rgba(255, 255, 255, 0.86);
  --glass-l3-border: rgba(255, 255, 255, 0.98);
  --glass-l3-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.98);
  --glass-l3-shadow: 0 20px 48px rgba(30, 50, 110, 0.12), 0 0 0 1px rgba(40, 60, 110, 0.08);

  --nav-bg: rgba(247, 249, 253, 0.74);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.86);
  --nav-border: rgba(255, 255, 255, 0.95);
  --nav-shadow: 0 10px 28px rgba(40, 60, 110, 0.11), 0 0 0 1px rgba(40, 60, 110, 0.07);

  --code-bg: rgba(47, 123, 255, 0.09);
  --code-border: rgba(47, 123, 255, 0.22);
  --code-ink: #1649b0;
  --callout-quote-bg: rgba(255, 255, 255, 0.88);
  --callout-body-ink: #254231;
  --footer-bg: rgba(235, 240, 248, 0.82);

  --seg-bg: rgba(40, 60, 110, 0.06);
  --seg-active-bg: #ffffff;
  --seg-active-ink: #0d1220;
  --seg-active-shadow: 0 2px 10px rgba(40, 60, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);

  --hw-deck: linear-gradient(180deg, #cfd6e3 0%, #a8b2c4 100%);
  --hw-shadow: 0 28px 68px rgba(30, 50, 110, 0.20), 0 6px 18px rgba(30, 50, 110, 0.10);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(ellipse 72% 44% at 12% 0%, var(--bg-halo-blue), transparent 70%),
    radial-gradient(ellipse 62% 38% at 96% 10%, var(--bg-halo-violet), transparent 68%),
    radial-gradient(ellipse 56% 32% at 50% 34%, var(--bg-halo-glacier), transparent 72%);
  background-repeat: no-repeat;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  padding: 0.14em 0.44em;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  color: var(--code-ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Bilingual Toggle Utility (never hides legal <main> without explicit data-lang-only) */
html[data-lang="zh"] [data-lang-only="en"],
html[data-lang="zh"] .lang-en {
  display: none !important;
}

html[data-lang="en"] [data-lang-only="zh"],
html[data-lang="en"] .lang-zh {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.skip-link:focus {
  top: 14px;
}

/* Containers */
.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(var(--maxw-narrow), calc(100% - 40px));
  margin-inline: auto;
}

/* ==========================================================================
   Glacier Glass Material Primitives (L1 Regular / L2 Control / L3 Panel)
   ========================================================================== */

.glass-l1 {
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
}

.glass-l2 {
  background: var(--glass-l2-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-l2-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), var(--glass-l2-highlight);
  color: #f4f6fb;
}

.glass-l3 {
  background: var(--glass-l3-bg);
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  border: 1px solid var(--glass-l3-border);
  box-shadow: var(--glass-l3-shadow), var(--glass-l3-highlight);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-l1,
  .glass-l3 {
    background: var(--bg-surface);
  }
  .glass-l2 {
    background: #232630;
  }
}

/* ==========================================================================
   Buttons & Interactive Pills (App Primary Capsule & Glacier Glass)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 650;
  font-size: 0.94rem;
  line-height: 1.2;
  letter-spacing: -0.006em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.18s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm {
  min-height: 36px;
  padding: 0 15px;
  font-size: 0.84rem;
  gap: 6px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

/* Primary Glacier Blue Capsule CTA (matches system.html .pbtn & SVTheme.glacierBlueGradient) */
.btn-primary {
  background: var(--accent-grad);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 26px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 32px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.50);
}

/* Frosted Glacier Glass Secondary CTA */
.btn-glass,
.btn-secondary {
  background: var(--glass-l1-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  color: var(--text-primary) !important;
}

.btn-glass:hover,
.btn-secondary:hover {
  background: var(--glass-l1-bg-hover);
  border-color: var(--hairline);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--hover-fill);
  color: var(--text-primary) !important;
}

/* Circular Glass Icon Button (matches system.html .gb) */
.glass-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-l1-border);
  background: var(--glass-l1-bg);
  box-shadow: var(--glass-l1-highlight);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.glass-icon-btn:hover {
  background: var(--glass-l1-bg-hover);
  color: var(--accent-ink);
}

.glass-icon-btn svg {
  width: 17px;
  height: 17px;
}

/* App Format Badge Capsule (always dark cinema glass, v2.1 Plan B: 4K | Dolby Vision | Atmos) */
.format-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(20, 24, 34, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  white-space: nowrap;
}

.format-badge-sep {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.28);
}

.format-badge-accent {
  background-image: linear-gradient(90deg, #e8e4ff 0%, #a9c8ff 55%, #d9f3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.format-badge-muted {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
}

/* App Colored Icon Squares (exact SVTheme.iconGradient palette) */
.icon-sq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-badge);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 4px 12px rgba(0, 0, 0, 0.22);
}

.icon-sq svg {
  width: 18px;
  height: 18px;
}

.icon-sq-lg {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.icon-sq-lg svg {
  width: 21px;
  height: 21px;
}

.sq-blue   { background: linear-gradient(135deg, #4f9bff, #2563ff); }
.sq-violet { background: linear-gradient(135deg, #8f7bff, #6248ff); }
.sq-cyan   { background: linear-gradient(135deg, #3ed1ff, #139be8); }
.sq-amber  { background: linear-gradient(135deg, #ff9f5a, #ff6b3d); }
.sq-green  { background: linear-gradient(135deg, #7ad88f, #27b067); }
.sq-slate  { background: linear-gradient(135deg, #9aa4b6, #6b7486); }
.sq-rose   { background: linear-gradient(135deg, #ff7aa8, #ff4f7b); }

/* Status Dot */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.55);
  flex-shrink: 0;
}

/* Segmented Control (matches system.html .seg) */
.seg-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--seg-bg);
  border: 1px solid var(--divider);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease;
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.is-active,
.seg-btn[aria-selected="true"],
.seg-btn[aria-pressed="true"] {
  background: var(--seg-active-bg);
  color: var(--seg-active-ink);
  box-shadow: var(--seg-active-shadow);
}

/* ==========================================================================
   Floating Glacier Glass Header Navigation
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 0 0;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 7px 10px 7px 14px;
  border-radius: var(--radius-card);
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  border: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow), var(--glass-l1-highlight);
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.site-nav.is-scrolled .nav-bar {
  background: var(--nav-bg-scrolled);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 760;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text-primary);
  opacity: 0.9;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  flex-shrink: 0;
}

.brand-sub {
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 560;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--hover-fill);
}

.nav-links a[aria-current="page"] {
  color: var(--accent-ink);
  background: var(--selection-fill);
  font-weight: 640;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Language Toggle Pill inside Navbar */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 36px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-l1-border);
  background: var(--glass-l1-bg);
  box-shadow: var(--glass-l1-highlight);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: var(--glass-l1-bg-hover);
  color: var(--accent-ink);
}

.lang-toggle .lang-sep {
  opacity: 0.35;
  margin: 0 3px;
}

.lang-toggle .lang-opt {
  opacity: 0.48;
  transition: opacity 0.16s ease, color 0.16s ease;
}

html[data-lang="zh"] .lang-toggle .lang-opt-zh,
html[data-lang="en"] .lang-toggle .lang-opt-en {
  opacity: 1;
  color: var(--accent-ink);
}

/* Theme Toggle Icons (Sun shown in Dark Mode -> switch to Light; Moon shown in Light Mode -> switch to Dark) */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 17px;
  height: 17px;
}

html:not([data-theme="light"]) .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 650;
  color: #ffffff !important;
  background: var(--accent-grad);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.nav-cta:hover {
  filter: brightness(1.06);
}

/* Mobile Menu Button (hidden on desktop) */
.nav-menu-btn {
  display: none;
}

/* ==========================================================================
   Hero Cinema Stage & Hardware Showcase Frames (index.html)
   ========================================================================== */

.hero-cinema {
  position: relative;
  padding: 58px 0 68px;
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-highlight);
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.hero-kicker img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero-title {
  margin: 0 0 18px;
  max-width: 22ch;
  font-size: clamp(2.15rem, 4.5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--text-primary);
}

.hero-split .hero-title {
  max-width: 15ch;
}

.glacier-accent-text {
  background-image: var(--accent-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 58ch;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.66;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-split .hero-actions {
  justify-content: flex-start;
}

.hero-meta-strip {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  font-size: 0.84rem;
  color: var(--text-tertiary);
}

.hero-split .hero-meta-strip {
  justify-content: flex-start;
}

.hero-meta-strip a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
}

.hero-meta-strip a:hover {
  color: var(--accent-ink);
}

/* Hero Multi-Device Hardware Stage */
.hero-stage {
  position: relative;
  width: 100%;
  margin-top: 48px;
  padding: 28px 18px 20px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 10% 6%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 65% 58% at 38% 45%, rgba(47, 123, 255, 0.24), transparent 72%),
    radial-gradient(ellipse 55% 50% at 68% 50%, rgba(123, 107, 255, 0.18), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="light"] .hero-stage::before {
  opacity: 0.55;
}

.hero-device-ensemble {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 1020px;
  margin-inline: auto;
  padding-bottom: 36px;
}

.hero-device-ensemble .ensemble-primary {
  width: min(760px, 82%);
  margin-inline: auto;
}

.hero-device-ensemble .ensemble-ipad {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(168px, 23.5%, 238px);
  z-index: 2;
}

.hero-device-ensemble .ensemble-iphone {
  position: absolute;
  right: 1.5%;
  bottom: -2px;
  width: clamp(106px, 15.2%, 156px);
  z-index: 3;
}

/* Precision CSS Apple Hardware Device Frames */
.device-frame {
  position: relative;
  margin: 0;
  user-select: none;
}

.device-screen {
  position: relative;
  overflow: hidden;
  background: var(--bg-cinema);
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* MacBook Pro Frame */
.device-mac .device-lid {
  position: relative;
  padding: 11px 11px 14px;
  border-radius: 20px 20px 6px 6px;
  background: var(--hw-bezel);
  border: 1px solid var(--hw-rim);
  box-shadow: var(--hw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.device-mac .device-lid::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #232836;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.device-mac .device-screen {
  aspect-ratio: 16 / 10;
  border-radius: 10px 10px 3px 3px;
}

.device-mac .device-deck {
  position: relative;
  width: 108%;
  margin-left: -4%;
  height: 14px;
  border-radius: 2px 2px 12px 12px;
  background: var(--hw-deck);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
}

.device-mac .device-deck::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 13%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: rgba(0, 0, 0, 0.35);
}

/* Apple TV 4K Living-Room Cinema Display */
.device-tv .device-bezel {
  position: relative;
  padding: 10px;
  border-radius: 18px;
  background: #0b0d12;
  border: 1px solid var(--hw-rim);
  box-shadow: var(--hw-shadow), 0 0 70px rgba(47, 123, 255, 0.16);
}

.device-tv .device-screen {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.device-tv .device-stand {
  width: 34%;
  height: 8px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  opacity: 0.65;
}

html[data-theme="light"] .device-tv .device-stand {
  background: linear-gradient(90deg, transparent, rgba(40, 60, 110, 0.28), transparent);
}

/* iPad Pro Landscape Frame */
.device-ipad .device-bezel {
  position: relative;
  padding: 10px;
  border-radius: 24px;
  background: var(--hw-bezel);
  border: 1px solid var(--hw-rim);
  box-shadow: var(--hw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.device-ipad .device-screen {
  aspect-ratio: 4 / 3;
  border-radius: 15px;
}

/* iPad Pro Portrait Frame (exact 3:4 match for 1080x1441 screenshots) */
.device-ipad--portrait .device-bezel {
  padding: 9px;
  border-radius: 22px;
}

.device-ipad--portrait .device-screen {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

/* iPhone Pro Frame (Portrait default, .device-iphone--landscape for Player) */
.device-iphone .device-bezel {
  position: relative;
  padding: 8px;
  border-radius: 36px;
  background: var(--hw-bezel);
  border: 1.5px solid var(--hw-rim);
  box-shadow: var(--hw-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.device-iphone .device-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
}

.device-iphone--landscape .device-bezel {
  padding: 9px;
  border-radius: 38px;
}

.device-iphone--landscape .device-screen {
  aspect-ratio: 19.5 / 9;
  border-radius: 30px;
}

.device-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Page Sections & Editorial Rhythm (Anti-SaaS-Template)
   ========================================================================== */

.section {
  position: relative;
  padding: 84px 0;
  scroll-margin-top: var(--nav-offset);
}

.section-tight {
  padding: 60px 0;
}

.section + .section {
  border-top: 1px solid var(--divider);
}

.section-head {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 620;
  color: var(--accent-ink);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.68rem, 3.1vw, 2.45rem);
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--text-primary);
}

.section-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.66;
  color: var(--text-secondary);
}

/* ==========================================================================
   Alternating Cinema Feature Bands & Asymmetric Bento
   ========================================================================== */

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 44px;
  align-items: center;
}

.feature-band--reverse {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.feature-band--reverse .feature-media {
  order: 2;
}

.feature-band--reverse .feature-copy {
  order: 1;
}

.feature-media {
  position: relative;
}

.feature-media-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-stage);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  overflow: hidden;
}

/* Cinema-dark spotlight card (stays dark cinema even in Light Mode, mirroring Player UI) */
.feature-media-card--cinema {
  background:
    radial-gradient(ellipse 64% 56% at 74% 30%, rgba(47, 123, 255, 0.22), transparent 72%),
    radial-gradient(ellipse 52% 48% at 24% 74%, rgba(123, 107, 255, 0.16), transparent 70%),
    linear-gradient(165deg, #121622 0%, #090b10 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #f4f6fb;
}

.feature-media-card img.feature-shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-media);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.feature-copy {
  max-width: 52ch;
}

.feature-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.38rem, 2.3vw, 1.82rem);
  font-weight: 760;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.feature-copy p {
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.feature-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  line-height: 1.56;
  color: var(--text-secondary);
}

.feature-points li strong {
  color: var(--text-primary);
  font-weight: 640;
}

.feature-point-dot {
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex-shrink: 0;
}

/* Asymmetric 12-Column Editorial Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 720;
  line-height: 1.32;
  letter-spacing: -0.014em;
  color: var(--text-primary);
}

.bento-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.64;
  color: var(--text-secondary);
}

.span-12 { grid-column: span 12; }
.span-8  { grid-column: span 8; }
.span-7  { grid-column: span 7; }
.span-6  { grid-column: span 6; }
.span-5  { grid-column: span 5; }
.span-4  { grid-column: span 4; }

/* ==========================================================================
   Interactive Four-Platform Stage (data-platform-tab / data-platform-panel)
   ========================================================================== */

.platform-stage {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.platform-tabs-wrap {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}

.platform-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.platform-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.91rem;
  font-weight: 620;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.platform-tab svg {
  width: 17px;
  height: 17px;
  opacity: 0.85;
}

.platform-tab:hover {
  color: var(--text-primary);
}

.platform-tab.is-active,
.platform-tab[aria-selected="true"] {
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: 0 6px 18px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.platform-tab.is-active svg,
.platform-tab[aria-selected="true"] svg {
  opacity: 1;
}

.platform-panel {
  border-radius: var(--radius-stage);
  padding: 36px;
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
}

.platform-panel[hidden] {
  display: none !important;
}

.platform-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: center;
}

.platform-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.platform-visual .device-iphone {
  width: min(272px, 78%);
}

.platform-visual .device-iphone--landscape {
  width: min(560px, 100%);
}

.platform-visual .device-ipad,
.platform-visual .device-mac,
.platform-visual .device-tv {
  width: 100%;
  max-width: 600px;
}

.platform-visual .device-ipad--portrait {
  width: min(356px, 86%);
  max-width: 356px;
}

/* Editorial Multi-Device Compositions inside Feature & Platform Cards */
.dual-device-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.dual-device-stage .device-ipad--portrait {
  width: 58%;
  max-width: 320px;
}

.dual-device-stage .device-iphone {
  width: 34%;
  max-width: 186px;
}

.cinema-pair-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cinema-pair-stage .cinema-shot-wide {
  flex: 1 1 74%;
  min-width: 0;
}

.cinema-pair-stage .cinema-shot-wide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-media);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.44);
}

.cinema-pair-stage .device-iphone {
  flex: 0 0 24%;
  max-width: 152px;
}

.cinema-pair-stage .device-iphone .device-bezel {
  padding: 5px;
  border-radius: 22px;
}

.cinema-pair-stage .device-iphone .device-screen {
  border-radius: 17px;
}

.dual-iphone-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.dual-iphone-stage .device-iphone {
  width: min(218px, 46%);
}

.feature-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.feature-media-card--cinema .feature-badge-row {
  margin-top: 14px;
  margin-bottom: 0;
}

.btn-coming-soon {
  cursor: default;
}

.btn-coming-soon:hover {
  background: var(--glass-l1-bg);
}

.btn-status-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--selection-fill);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-highlights {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sources-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
}

.sources-phone-stage {
  display: flex;
  justify-content: center;
}

.sources-phone-stage .device-iphone {
  width: min(264px, 82%);
}

.sources-panels-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sources-panels-stack .source-panel {
  padding: 24px;
}

.sources-panels-stack .protocol-grid {
  grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
}

.bento-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bento-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.pricing-pro-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 22px;
  border-radius: var(--radius-panel);
  background: var(--selection-fill);
  border: 1px solid rgba(80, 150, 255, 0.22);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.pricing-pro-banner strong {
  color: var(--accent-ink);
}

.platform-info h3 {
  margin: 0 0 10px;
  font-size: clamp(1.38rem, 2.2vw, 1.72rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.platform-info p {
  margin: 0 0 20px;
  font-size: 0.96rem;
  line-height: 1.66;
  color: var(--text-secondary);
}

.platform-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.81rem;
  font-weight: 580;
  background: var(--selection-fill);
  color: var(--accent-ink);
  border: 1px solid rgba(80, 150, 255, 0.22);
}

/* ==========================================================================
   Unified Glacier Glass Protocol & Source Badges (Zero 3rd-Party Logos)
   ========================================================================== */

.source-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.source-panel {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.source-panel-head h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 740;
  color: var(--text-primary);
}

.source-panel-head p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 11px;
}

.protocol-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--radius-media);
  background: var(--hover-fill);
  border: 1px solid var(--divider);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.protocol-tile:hover {
  border-color: var(--hairline);
  background: var(--active-fill);
}

.protocol-tile-text {
  min-width: 0;
}

.protocol-tile-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 660;
  color: var(--text-primary);
  line-height: 1.28;
}

.protocol-tile-text span {
  display: block;
  font-size: 0.77rem;
  color: var(--text-tertiary);
  line-height: 1.3;
  margin-top: 2px;
}

/* ==========================================================================
   Local-Only Privacy & Architecture Showcase
   ========================================================================== */

.privacy-panel {
  padding: 36px;
  border-radius: var(--radius-stage);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
}

.arch-flow {
  margin: 24px 0 28px;
  padding: 18px 22px;
  border-radius: var(--radius-panel);
  background: var(--hover-fill);
  border: 1px solid var(--divider);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.arch-node {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arch-node strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-node small {
  display: block;
  font-size: 0.81rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.arch-bridge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  color: var(--status-green-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.privacy-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.privacy-pillar {
  padding: 18px 20px;
  border-radius: var(--radius-media);
  background: var(--hover-fill);
  border: 1px solid var(--divider);
}

.privacy-pillar h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.privacy-pillar p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

/* ==========================================================================
   Pricing: Free Core + SVPlayer Pro (App Store 4.10 Clear Hierarchy)
   ========================================================================== */

.pricing-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-free {
  padding: 26px 30px;
  border-radius: var(--radius-card);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.pricing-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--status-green-bg);
  border: 1px solid var(--status-green-border);
  color: var(--status-green-ink);
  font-size: 0.78rem;
  font-weight: 660;
  margin-bottom: 10px;
}

.pricing-free h3 {
  margin: 0 0 6px;
  font-size: 1.24rem;
  font-weight: 760;
  color: var(--text-primary);
}

.pricing-free p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.pricing-check-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.pricing-check-grid li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.pricing-check-grid svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--status-green);
  flex-shrink: 0;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius-card);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card--featured {
  background:
    linear-gradient(155deg, rgba(61, 139, 255, 0.16) 0%, rgba(123, 107, 255, 0.10) 100%),
    var(--glass-l1-bg);
  border-color: rgba(88, 156, 255, 0.48);
  box-shadow: 0 18px 46px rgba(31, 95, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-theme="light"] .pricing-card--featured {
  background:
    linear-gradient(155deg, rgba(61, 139, 255, 0.10) 0%, rgba(123, 107, 255, 0.07) 100%),
    rgba(255, 255, 255, 0.86);
  border-color: rgba(47, 123, 255, 0.44);
  box-shadow: 0 18px 42px rgba(31, 95, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 740;
  color: var(--text-primary);
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-pill--soft {
  background: var(--selection-fill);
  color: var(--accent-ink);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.pricing-amount {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-alt {
  font-size: 0.83rem;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  margin-top: -8px;
}

.pricing-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 1025px) {
  .pricing-desc {
    min-height: 4.8em;
  }
}

.pricing-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--divider);
  display: grid;
  gap: 8px;
  flex: 1;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pricing-list svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--accent-ink);
  flex-shrink: 0;
}

.pricing-footnotes {
  padding: 18px 22px;
  border-radius: var(--radius-panel);
  background: var(--hover-fill);
  border: 1px solid var(--divider);
  font-size: 0.84rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.pricing-footnotes p {
  margin: 0;
}

.pricing-footnotes p + p {
  margin-top: 6px;
}

/* ==========================================================================
   FAQ Native <details> / <summary> Glacier Glass Accordion (Works without JS)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border-radius: var(--radius-panel);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.faq-item[open] {
  border-color: rgba(88, 156, 255, 0.34);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-size: 1rem;
  font-weight: 660;
  line-height: 1.42;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--hover-fill);
  border: 1px solid var(--divider);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ea8ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  transition: transform 0.22s ease, background-color 0.18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--selection-fill);
}

.faq-body {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.faq-body p {
  margin: 0;
  max-width: 68ch;
}

.faq-body p + p {
  margin-top: 10px;
}

/* ==========================================================================
   Download & Support Closing Band
   ========================================================================== */

.download-card {
  position: relative;
  padding: 46px 36px;
  border-radius: var(--radius-stage);
  background:
    radial-gradient(ellipse 64% 62% at 50% 0%, rgba(47, 123, 255, 0.22), transparent 70%),
    var(--glass-l1-bg);
  backdrop-filter: blur(26px) saturate(175%);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  text-align: center;
  overflow: hidden;
}

.download-card .app-squircle {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow: 0 16px 38px rgba(31, 95, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.20);
}

.download-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 780;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.download-card p {
  margin: 0 auto 26px;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.66;
  color: var(--text-secondary);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.download-card .download-reqs {
  margin: 22px auto 0;
  font-size: 0.84rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Legal Document Pages (privacy.html & terms.html — <main> untouched!)
   ========================================================================== */

.doc-hero {
  padding: 52px 0 34px;
}

.doc-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--selection-fill);
  border: 1px solid rgba(80, 150, 255, 0.24);
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent-ink);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.doc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.024em;
  color: var(--text-primary);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.doc-meta > span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--glass-l1-bg);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-highlight);
  overflow-wrap: anywhere;
}

.doc-meta strong {
  color: var(--text-primary);
  font-weight: 640;
}

.limited-use-callout {
  margin: 28px 0 6px;
  padding: 24px 26px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, var(--status-green-bg), rgba(53, 200, 255, 0.08)),
    var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--status-green-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  scroll-margin-top: var(--nav-offset);
}

.limited-use-callout .callout-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--status-green-ink);
  margin-bottom: 10px;
}

.limited-use-callout blockquote {
  margin: 0 0 12px;
  padding: 14px 18px;
  background: var(--callout-quote-bg);
  border: 1px solid var(--divider);
  border-left: 3.5px solid var(--status-green);
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.62;
  color: var(--text-primary);
}

.limited-use-callout p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--callout-body-ink);
}

.clause-list {
  padding: 8px 0 72px;
}

.clause-list .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.clause {
  padding: 28px 30px;
  border-radius: var(--radius-card);
  background: var(--glass-l1-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-l1-border);
  box-shadow: var(--glass-l1-shadow), var(--glass-l1-highlight);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  scroll-margin-top: var(--nav-offset);
}

.clause-col {
  min-width: 0;
  overflow-wrap: break-word;
}

.clause-col:last-child {
  padding-left: 28px;
  border-left: 1px solid var(--divider);
}

.clause-col h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 740;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--text-primary);
}

.clause-col p,
.clause-col li {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.72;
}

.clause-col p {
  margin: 0 0 11px;
}

.clause-col p:last-child {
  margin-bottom: 0;
}

.clause-col ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.clause-col li {
  margin-bottom: 8px;
}

.clause-col strong {
  color: var(--text-primary);
  font-weight: 650;
}

/* ==========================================================================
   Unified Glacier Glass Footer
   ========================================================================== */

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--divider);
  background: var(--footer-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 36px 0 46px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 740;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.footer-brand:hover {
  color: var(--text-primary);
  opacity: 0.9;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 0.87rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-ink);
}

.footer-legal {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.72;
  color: var(--text-tertiary);
}

.footer-legal a {
  color: var(--text-secondary);
}

.footer-legal a:hover {
  color: var(--accent-ink);
}

/* ==========================================================================
   Micro-Interactions (Respecting prefers-reduced-motion)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .btn:active,
  .glass-icon-btn:active,
  .lang-toggle:active,
  .nav-cta:active,
  .platform-tab:active,
  .seg-btn:active {
    transform: scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1080px) {
  .brand-sub {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-split,
  .feature-band,
  .feature-band--reverse,
  .platform-panel-grid,
  .pricing-free,
  .sources-feature-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-band--reverse .feature-media,
  .feature-band--reverse .feature-copy {
    order: initial;
  }

  .feature-copy {
    max-width: 64ch;
  }

  .pricing-tiers,
  .privacy-pillars {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 920px) {
  .nav-bar {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 4px 4px;
    margin-top: 6px;
    border-top: 1px solid var(--divider);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 9px 14px;
    border-radius: var(--radius-control);
  }

  .source-groups,
  .clause {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .clause-col:last-child {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--divider);
  }

  .arch-flow {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .wrap,
  .wrap-narrow {
    width: calc(100% - 28px);
  }

  .site-nav {
    padding-top: 8px;
  }

  .nav-bar {
    padding: 6px 8px 6px 12px;
  }

  .brand-sub {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero-cinema {
    padding: 36px 0 46px;
  }

  .hero-stage {
    margin-top: 32px;
    padding: 14px 4px 12px;
  }

  .hero-device-ensemble {
    padding-bottom: 24px;
  }

  .hero-device-ensemble .ensemble-primary {
    width: 96%;
  }

  .hero-device-ensemble .ensemble-ipad {
    width: 30%;
    left: 0;
    bottom: 0;
  }

  .hero-device-ensemble .ensemble-ipad .device-bezel {
    padding: 4px;
    border-radius: 12px;
  }

  .hero-device-ensemble .ensemble-ipad .device-screen {
    border-radius: 8px;
  }

  .hero-device-ensemble .ensemble-iphone {
    width: 20%;
    right: 0;
    bottom: -2px;
  }

  .hero-device-ensemble .ensemble-iphone .device-bezel {
    padding: 4px;
    border-radius: 15px;
  }

  .hero-device-ensemble .ensemble-iphone .device-screen {
    border-radius: 11px;
  }

  .cinema-pair-stage {
    flex-direction: column;
  }

  .cinema-pair-stage .device-iphone {
    width: 48%;
    max-width: 170px;
  }

  .dual-iphone-stage {
    gap: 12px;
  }

  .dual-iphone-stage .device-iphone {
    width: 47%;
  }

  .section {
    padding: 58px 0;
  }

  .platform-panel,
  .privacy-panel,
  .source-panel,
  .pricing-free,
  .download-card,
  .clause {
    padding: 22px 18px;
  }

  .pricing-check-grid {
    grid-template-columns: 1fr;
  }

  .protocol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .limited-use-callout {
    padding: 18px;
  }

  .doc-hero {
    padding: 34px 0 24px;
  }
}
