/* ============================================================
   mpv Liquid Glass — landing page
   Style: Liquid Glass (glassmorphism) · Pattern: Video-First Hero
   Design tokens from ui-ux-pro-max; accent matched to the product.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --accent: #e8553a;          /* product's liquid_glass_accent */
  --accent-2: #ff8a5b;
  --accent-ink: #ffffff;

  /* Type scale (16 base) */
  --fs-300: 0.8125rem;
  --fs-400: 1rem;
  --fs-500: 1.125rem;
  --fs-600: 1.375rem;
  --fs-700: 1.875rem;
  --fs-800: 2.75rem;
  --fs-900: clamp(2.6rem, 6vw, 4.75rem);

  /* Spacing rhythm (4/8) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;

  --radius: 18px;
  --radius-lg: 26px;
  --container: 1180px;

  /* Motion (Liquid Glass = smooth, 400-600ms) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 520ms;

  /* Z-index scale */
  --z-nav: 100;
  --z-menu: 200;
  --z-lightbox: 1000;
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg: #0a0d14;
  --bg-2: #0e131d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f6fb;
  --text-muted: #aab3c5;
  --text-faint: #7c8499;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  --glow: rgba(232, 85, 58, 0.35);
  --blob-1: rgba(232, 85, 58, 0.42);
  --blob-2: rgba(80, 120, 255, 0.32);
  --blob-3: rgba(255, 160, 90, 0.22);
  --scrim: linear-gradient(180deg, rgba(10,13,20,0.35) 0%, rgba(10,13,20,0.72) 55%, var(--bg) 100%);
}

/* Light theme */
[data-theme="light"] {
  --bg: #f3f5fa;
  --bg-2: #e9edf5;
  --surface: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #131722;
  --text-muted: #495163;
  --text-faint: #6b7385;
  --shadow: 0 22px 50px -24px rgba(20, 30, 60, 0.4);
  --shadow-sm: 0 10px 26px -16px rgba(20, 30, 60, 0.35);
  --glow: rgba(232, 85, 58, 0.28);
  --blob-1: rgba(232, 85, 58, 0.28);
  --blob-2: rgba(70, 110, 255, 0.2);
  --blob-3: rgba(255, 150, 80, 0.18);
  --scrim: linear-gradient(180deg, rgba(243,245,250,0.15) 0%, rgba(243,245,250,0.6) 55%, var(--bg) 100%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-400);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
code, kbd { font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: var(--z-lightbox);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Ambient background ---------- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.9;
  will-change: transform;
}
.blob--a { top: -12vw; left: -8vw; background: var(--blob-1); animation: drift 22s var(--ease-out) infinite alternate; }
.blob--b { top: 22vw; right: -14vw; background: var(--blob-2); animation: drift 28s var(--ease-out) infinite alternate-reverse; }
.blob--c { bottom: -16vw; left: 30vw; background: var(--blob-3); animation: drift 25s var(--ease-out) infinite alternate; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, 5vw, 0) scale(1.12); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: var(--fs-400);
  line-height: 1;
  padding: 0.8rem 1.3rem;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-med) var(--ease-out),
              background var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}
.btn:active { transform: scale(0.96); }
.btn--lg { padding: 1rem 1.7rem; font-size: var(--fs-500); min-height: 52px; }
.btn--sm { padding: 0.55rem 1rem; min-height: 38px; font-size: var(--fs-300, 0.875rem); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn--glass {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn--glass:hover { transform: translateY(-2px); border-color: var(--accent); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--border-strong); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-spring);
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

/* theme toggle icon swap */
.icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--fs-500); }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}
.avatar--sm { width: 22px; height: 22px; }
.brand__name { font-weight: 500; letter-spacing: -0.01em; }
.brand__name strong { font-weight: 700; }

.nav__links {
  display: flex;
  gap: 0.4rem;
  margin-inline: auto;
}
.nav__links a {
  padding: 0.5rem 1.05rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-spring);
}
.nav__links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav__burger { display: none; }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem clamp(1.1rem, 4vw, 2.5rem) 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile-menu a {
  padding: 0.8rem 0.6rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--text); background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: flex;
  align-items: center;
  padding: var(--sp-7) 0 var(--sp-6);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__scrim { position: absolute; inset: 0; background: var(--scrim); }

.hero__inner { position: relative; z-index: 1; max-width: 820px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.eyebrow--center { margin-inline: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.hero h1 {
  font-size: var(--fs-900);
  font-weight: 800;
  margin: var(--sp-3) 0 var(--sp-2);
}
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: var(--fs-500);
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: var(--sp-4);
}
.hero__sub strong { color: var(--text); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.4rem;
  list-style: none;
  padding: 0;
  margin-top: var(--sp-4);
  color: var(--text-faint);
  font-size: var(--fs-300);
  font-weight: 500;
}
.hero__meta li { display: flex; align-items: center; gap: 0.6rem; }
.hero__meta li + li::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-faint);
  margin-right: 0.8rem;
  opacity: 0.6;
}
.pill {
  color: var(--text);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-muted);
  animation: bob 2.4s var(--ease-out) infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* ---------- Demo showcase ---------- */
.demo { padding-top: var(--sp-6); }
.demo__frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--shadow), 0 40px 100px -40px var(--glow);
  overflow: hidden;
  transform: perspective(1600px) rotateX(2.5deg);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.demo__frame:hover {
  transform: perspective(1600px) rotateX(0deg) translateY(-4px);
  box-shadow: var(--shadow), 0 50px 120px -40px var(--glow);
}
.demo__chrome {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-strong);
}
.demo__dots { display: inline-flex; gap: 7px; }
.demo__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.demo__dots i:nth-child(1) { background: #ff5f57; }
.demo__dots i:nth-child(2) { background: #febc2e; }
.demo__dots i:nth-child(3) { background: #28c840; }
.demo__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline: auto;
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--text-muted);
}
.demo__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05070b;
}
/* Hide the audio/volume control from the native player (Chromium + Safari) */
.demo__video::-webkit-media-controls-mute-button,
.demo__video::-webkit-media-controls-volume-control-container,
.demo__video::-webkit-media-controls-volume-slider,
.demo__video::-webkit-media-controls-volume-slider-container { display: none !important; }

/* ---------- Sections ---------- */
.section { padding: var(--sp-7) 0; position: relative; }
.section--alt { background: var(--bg-2); }

.section__head { text-align: center; max-width: 680px; margin: 0 auto var(--sp-5); }
.section__head h2 { font-size: var(--fs-800); margin: var(--sp-2) 0 0.7rem; }
.section__lead { color: var(--text-muted); font-size: var(--fs-500); }

/* ---------- Glass card primitive ---------- */
.glass-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.glass-card[data-badge]::after {
  content: attr(data-badge);
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* ---------- Releases ---------- */
.releases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
  max-width: 820px;
  margin-inline: auto;
}
.release { padding: var(--sp-3); }
.release__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.release__ver { font-size: var(--fs-600); margin: 0; }
.release__tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.release__date { margin-left: auto; color: var(--text-muted); font-size: var(--fs-300, 0.875rem); }
.release__title { font-weight: 600; color: var(--text); margin: 0 0 var(--sp-2); }
.release__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-2);
  display: grid;
  gap: 0.55rem;
}
.release__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
}
.release__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.release__list strong { color: var(--text); font-weight: 600; }
.release__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Feature grid ---------- */
.feature-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.feature-grid .glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.feature-ic {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  margin-bottom: var(--sp-2);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.feature-ic svg { width: 26px; height: 26px; }
.glass-card h3 { font-size: var(--fs-600); margin-bottom: 0.5rem; }
.glass-card p { color: var(--text-muted); }
.glass-card code {
  font-size: 0.85em;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  color: var(--text);
}
kbd {
  font-size: 0.8em;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

/* ---------- Gallery ---------- */
.gallery {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: var(--sp-2);
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.shot {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.shot:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.9rem 0.7rem;
  font-size: var(--fs-300);
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
}

/* ---------- Install steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-4);
}
.step__content { min-width: 0; }
.step__content > h3:first-child { margin-top: 0; }
.step__no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: var(--fs-600);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.step h3 { font-size: var(--fs-600); }
.step p { margin: 0.5rem 0 var(--sp-2); }

/* Detailed sub-steps */
.substeps {
  margin: 0.6rem 0 var(--sp-2);
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-muted);
}
.substeps li { padding-left: 0.25rem; line-height: 1.6; }
.substeps li::marker { color: var(--accent); font-weight: 700; }
.substeps strong { color: var(--text); font-weight: 600; }

.os-block { margin-top: var(--sp-2); }
.os-block + .os-block { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--border); }
.os-block h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-400);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.os-block h4 svg { color: var(--text-muted); }

.copy-btn--inline {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  vertical-align: middle;
  margin: 0 0.15rem;
}

.step__tip {
  margin-top: var(--sp-2);
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--text);
  font-size: var(--fs-300);
  line-height: 1.55;
}
.step__tip strong { color: var(--accent); }

/* Star-the-repo note */
.star-note {
  margin-top: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.star-note__ic {
  margin-bottom: 0;
  flex: 0 0 auto;
  color: #f5b301;
  background: color-mix(in srgb, #f5b301 16%, transparent);
  border-color: color-mix(in srgb, #f5b301 34%, transparent);
}
.star-note__body { flex: 1 1 300px; }
.star-note__body h3 { font-size: var(--fs-500); }
.star-note__body p { color: var(--text-muted); margin-top: 0.3rem; }

.path-list { display: grid; gap: 0.6rem; }
.path-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
}
.path-row .os { font-size: var(--fs-300); font-weight: 600; color: var(--text-faint); }
.path-row code { background: transparent; border: 0; padding: 0; font-size: var(--fs-300); word-break: break-all; }

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: #fff; background: var(--accent); border-color: var(--accent); }
.copy-btn--solid {
  width: auto;
  gap: 0.45rem;
  padding: 0 1.1rem;
  height: 42px;
  font-weight: 600;
  font-size: var(--fs-300);
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 8px 20px -10px var(--glow);
}
.copy-btn--solid:hover {
  color: var(--accent-ink);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px var(--glow);
}
.copy-btn--solid.copied { background: #16a34a; }

.quicktest {
  margin-top: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.quicktest h3 { font-size: var(--fs-500); }
.quicktest p { color: var(--text-muted); margin-top: 0.3rem; }
.code-copy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
}
.code-copy code { background: transparent; border: 0; padding: 0; color: var(--accent-2); font-size: var(--fs-300); }

/* ---------- Contribute ---------- */
.contribute {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
}
.contribute .feature-ic { flex: 0 0 auto; margin-bottom: 0; }
.contribute__body h2 { font-size: var(--fs-700); margin-bottom: 0.6rem; }
.contribute__body p { color: var(--text-muted); max-width: 70ch; margin-bottom: var(--sp-3); }
@media (max-width: 620px) {
  .contribute { flex-direction: column; gap: var(--sp-2); }
}

/* ---------- Final CTA ---------- */
.final-cta__card { text-align: center; padding: var(--sp-6) var(--sp-4); }
.final-cta__card h2 { font-size: var(--fs-800); margin-bottom: 0.6rem; }
.final-cta__card p { color: var(--text-muted); font-size: var(--fs-500); margin-bottom: var(--sp-4); }
.final-cta__card .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--sp-5) 0 var(--sp-4); border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); }
.footer__tag { color: var(--text-muted); margin-top: 0.6rem; font-size: var(--fs-300); }
.footer__author {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: var(--sp-2);
  padding: 0.5rem 0.9rem 0.5rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-300);
  line-height: 1.35;
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-spring);
}
.footer__author:hover { border-color: var(--accent); transform: translateY(-1px); }
.footer__author .avatar { width: 40px; height: 40px; }
.footer__author strong { color: var(--text); font-weight: 700; }
.footer__author-sub { color: var(--text-faint); font-size: 0.78rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: center; }
.footer__links a { color: var(--text-muted); font-weight: 500; transition: color var(--t-fast) var(--ease-out); }
.footer__links a:hover { color: var(--accent); }
.footer__legal { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.footer__legal p { color: var(--text-faint); font-size: var(--fs-300); }
.footer__legal a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade var(--t-med) var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  width: auto;
  height: auto;
  max-width: min(94vw, 1500px);
  max-height: 90vh;
  max-height: 90dvh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.lightbox__close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__github span { display: none; }
  .nav__github { padding: 0.7rem; }
  .nav__burger { display: inline-grid; }
  .feature-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: var(--sp-2); padding: var(--sp-3); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .hero { min-height: auto; padding-top: var(--sp-6); }
  .hero__meta { gap: 0.5rem 1rem; }
  .hero__meta li + li::before { margin-right: 0.5rem; }
  .quicktest { flex-direction: column; align-items: flex-start; }
  .code-copy { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
  .btn--lg { width: 100%; }
  .hero__cta { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media video { display: none; }
  .demo__frame, .demo__frame:hover { transform: none; }
}
