/* ───────────────────────────────────────────────
   Sapira — Aurora Glass · Premium refinements
   ─────────────────────────────────────────────── */

:root {
  --bg: #04050a;
  --surface-1: #0a0c16;
  --surface-2: #111421;
  --surface-3: #1a1e2e;
  --surface-4: #232842;

  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-3: rgba(255, 255, 255, 0.22);

  --text: #f5f3ff;
  --text-dim: #b4b8cc;
  --text-faint: #6b7080;

  --accent: #abc9ff;
  --accent-rgb: 171, 201, 255;
  --accent-2: #93c5fd;
  --accent-2-rgb: 147, 197, 253;
  --wash: #292448;

  --radius-sm: 0.55rem;
  --radius-md: 0.9rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 4.5rem;
  --container: 78rem;

  color-scheme: dark;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "kern", "liga";
}

[data-theme="violet"] {
  --accent: #e3b4ff;
  --accent-rgb: 227, 180, 255;
  --accent-2: #d8b4fe;
  --accent-2-rgb: 216, 180, 254;
  --wash: #382049;
}
[data-theme="emerald"] {
  --accent: #83f2ca;
  --accent-rgb: 131, 242, 202;
  --accent-2: #5eead4;
  --accent-2-rgb: 94, 234, 212;
  --wash: #163a33;
}
[data-theme="amber"] {
  --accent: #ffd18c;
  --accent-rgb: 255, 209, 140;
  --accent-2: #fde047;
  --accent-2-rgb: 253, 224, 71;
  --wash: #422c1a;
}
[data-theme="monochrome"] {
  --accent: #e1e7ef;
  --accent-rgb: 225, 231, 239;
  --accent-2: #ffffff;
  --accent-2-rgb: 255, 255, 255;
  --wash: #282d36;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      ellipse 1400px 900px at 83% -10%,
      var(--wash),
      transparent 65%
    ),
    var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #0a0c16;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible {
  top: 1rem;
}

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

/* Grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@media (max-width: 768px), (pointer: coarse) {
  .grain-overlay {
    display: none;
  }
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(4, 5, 10, 0.5);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(4, 5, 10, 0.9);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand-logo {
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.3));
  transition: filter 0.3s var(--ease-out);
}
.brand-link:hover .brand-logo {
  filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.65));
}
.brand-name {
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.brand-sub {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.8rem;
  margin-left: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 400;
}
.nav-links a {
  color: var(--text-dim);
  transition: color 0.2s var(--ease-out);
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-web-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-new-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.7);
  }
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-dots {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0 0.35rem;
}
.theme-dot {
  width: 13px;
  height: 13px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--swatch, #abc9ff);
  cursor: pointer;
  transition:
    transform 0.22s var(--ease-spring),
    box-shadow 0.25s var(--ease-out);
}
.theme-dot[data-set-theme="sapphire"] {
  --swatch: #abc9ff;
}
.theme-dot[data-set-theme="violet"] {
  --swatch: #e3b4ff;
}
.theme-dot[data-set-theme="emerald"] {
  --swatch: #83f2ca;
}
.theme-dot[data-set-theme="amber"] {
  --swatch: #ffd18c;
}
.theme-dot[data-set-theme="monochrome"] {
  --swatch: #e1e7ef;
}
.theme-dot:hover {
  transform: scale(1.2);
}
.theme-dot.active {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 3px var(--swatch),
    0 0 16px var(--swatch);
}

.pill-btn {
  padding: 0.5rem 0.85rem;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03))
      padding-box,
    linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.04)
      )
      border-box;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.pill-btn:hover {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08))
      padding-box,
    linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28),
        rgba(255, 255, 255, 0.06)
      )
      border-box;
  transform: translateY(-1px);
}

.github-pill {
  padding-left: 0.7rem;
  padding-right: 0.85rem;
}

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 0;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.nav-mobile-toggle:hover,
.nav-mobile-toggle[aria-expanded="true"] {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.4);
}
.nav-mobile-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}
.nav-mobile-toggle span:first-child {
  transform: translate(-50%, calc(-50% - 3px));
}
.nav-mobile-toggle span:last-child {
  transform: translate(-50%, calc(-50% + 3px));
}
.nav-mobile-toggle[aria-expanded="true"] span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-quick-nav {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem max(1rem, env(safe-area-inset-left, 0px)) 1.1rem
    max(1rem, env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.96);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75);
  animation: mobile-drawer-in 0.25s var(--ease-out);
}
@keyframes mobile-drawer-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.mobile-quick-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.mobile-quick-nav a:hover,
.mobile-quick-nav a:active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-2);
}
.mobile-quick-nav a.mobile-web-link {
  grid-column: 1 / -1;
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.28);
  color: var(--text);
}
.mobile-theme-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.mobile-theme-label {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.mobile-theme-dots {
  display: flex !important;
  gap: 0.65rem;
  padding: 0;
}
.mobile-theme-dots .theme-dot {
  width: 22px;
  height: 22px;
}

@media (max-width: 960px) {
  :root {
    --header-h: 3.85rem;
  }
  .nav-links {
    display: none;
  }
  .nav-controls {
    margin-left: auto;
    gap: 0.4rem;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .nav-controls > .theme-dots {
    display: none;
  }
  .mobile-quick-nav:not([hidden]) {
    display: flex;
  }
  .github-pill {
    padding-inline: 0.65rem;
    min-width: 38px;
    min-height: 38px;
    justify-content: center;
  }
  .github-pill .github-label {
    display: none;
  }
  #lang-toggle {
    min-height: 38px;
    padding-inline: 0.75rem;
  }
}
@media (max-width: 520px) {
  .brand-sub {
    display: none;
  }
  .nav-inner {
    gap: 0.5rem;
  }
}

/* ─── Hero ─── */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(3rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-prism-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 45%;
  will-change: transform;
}
.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(4, 5, 10, 0.97) 0%,
      rgba(4, 5, 10, 0.88) 28%,
      rgba(4, 5, 10, 0.55) 55%,
      rgba(4, 5, 10, 0.25) 78%,
      rgba(4, 5, 10, 0.45) 100%
    ),
    linear-gradient(
      180deg,
      rgba(4, 5, 10, 0.55) 0%,
      transparent 22%,
      transparent 78%,
      rgba(4, 5, 10, 0.92) 100%
    );
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 55% 55% at 72% 45%,
    rgba(var(--accent-rgb), 0.2),
    transparent 65%
  );
  mix-blend-mode: screen;
  animation: glow-breathe 8s ease-in-out infinite alternate;
}
@keyframes glow-breathe {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 1;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr);
  gap: 2rem;
  position: relative;
}
.hero-copy {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  letter-spacing: 0.4em;
  animation: kicker-in 1.1s var(--ease-out) 0.05s forwards;
}
.kicker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
@keyframes kicker-in {
  to {
    opacity: 1;
    letter-spacing: 0.22em;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 6.75rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0.35rem 0 0.5rem;
  font-style: italic;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.08em 0.08em 0;
}
.hero-title .line > span {
  display: inline-block;
  clip-path: inset(0 0 100% 0);
  filter: blur(14px);
  opacity: 0;
  animation: line-in 1.2s var(--ease-out) var(--line-delay, 0s) forwards;
}
@keyframes line-in {
  0% {
    clip-path: inset(0 0 100% 0);
    filter: blur(14px);
    opacity: 0;
    transform: translateY(20px);
  }
  99% {
    clip-path: inset(-10% -10% -15% -5%);
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    clip-path: none;
    filter: none;
    opacity: 1;
    transform: none;
  }
}
.text-prism,
.hero-title .text-prism > span {
  background: linear-gradient(
    110deg,
    #f5d0fe 0%,
    #bae6fd 40%,
    var(--accent) 70%,
    var(--accent-2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
}
.hero-title .text-prism {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: initial;
  color: inherit;
  filter: drop-shadow(0 0 36px rgba(var(--accent-rgb), 0.28));
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 34rem;
  margin: 0.25rem 0;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.6s forwards;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.4rem;
  min-height: 46px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.2s,
    border-color 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0a0c16;
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.5),
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 8px 32px -8px rgba(var(--accent-rgb), 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.7),
    0 2px 4px rgba(0, 0, 0, 0.15),
    0 16px 48px -8px rgba(var(--accent-rgb), 0.8);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-glow {
  isolation: isolate;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.45) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn-glow:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-3);
}
.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.btn-tag {
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.hero-quiet-link:hover {
  color: var(--text);
  border-color: var(--border-3);
}
.hero-quiet-link svg {
  transition: transform 0.2s var(--ease-out);
}
.hero-quiet-link:hover svg {
  transform: translateX(3px);
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin: 0;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1s forwards;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.hero-specs li {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) forwards;
}
.hero-specs li:nth-child(1) {
  animation-delay: 1.1s;
}
.hero-specs li:nth-child(2) {
  animation-delay: 1.2s;
}
.hero-specs li:nth-child(3) {
  animation-delay: 1.3s;
}
.hero-specs li:nth-child(4) {
  animation-delay: 1.4s;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
}
.hero-motion-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  padding: 0.5rem 0.85rem;
  min-height: 36px;
  border-radius: 999px;
  font-size: 0.75rem;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.hero-motion-toggle:hover {
  color: var(--text);
  border-color: var(--border-3);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: -1rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.6s forwards;
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--text-faint), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--accent);
  animation: scroll-dash 2s var(--ease-in-out) infinite;
}
@keyframes scroll-dash {
  0% {
    top: -12px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    top: 44px;
    opacity: 0;
  }
}

.hero-section:has(.hero-inner[data-motion-paused]) .hero-glow,
.hero-section:has(.hero-inner[data-motion-offscreen]) .hero-glow,
.hero-inner[data-motion-paused] .hero-scroll-line::after,
.hero-inner[data-motion-offscreen] .hero-scroll-line::after {
  animation-play-state: paused;
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), 100% - 2rem);
  }
  .hero-section {
    min-height: auto;
    padding: clamp(2.25rem, 6vh, 3.5rem) 0 clamp(2.5rem, 6vh, 3.5rem);
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .hero-copy {
    gap: 1rem;
    min-width: 0;
  }
  .hero-title {
    font-size: clamp(2.75rem, 12vw, 3.85rem);
    line-height: 1.02;
    margin: 0.15rem 0 0.25rem;
  }
  .hero-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(245, 243, 255, 0.8);
  }
  .hero-prism-img {
    object-position: 62% 28%;
  }
  .hero-glow {
    background: radial-gradient(
      ellipse 85% 55% at 62% 28%,
      rgba(var(--accent-rgb), 0.24),
      transparent 70%
    );
  }
  .hero-backdrop::before {
    background:
      linear-gradient(
        180deg,
        rgba(4, 5, 10, 0.62) 0%,
        rgba(4, 5, 10, 0.45) 26%,
        rgba(4, 5, 10, 0.84) 62%,
        rgba(4, 5, 10, 0.98) 100%
      ),
      radial-gradient(
        ellipse 90% 60% at 62% 28%,
        transparent 15%,
        rgba(4, 5, 10, 0.68) 90%
      );
  }
  .hero-controls,
  .hero-scroll {
    display: none;
  }
}
@media (max-width: 520px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.35rem;
  }
  .hero-cta-row .btn {
    width: 100%;
    min-height: 48px;
  }
  .hero-quiet-link {
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-2);
    background: rgba(255, 255, 255, 0.03);
  }
  .hero-note {
    text-align: center;
    font-size: 0.78rem;
  }
  .hero-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.35rem;
  }
  .hero-specs li {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.74rem;
    padding: 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.035);
  }
}

/* ─── Section shared ─── */
section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section-heading {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}
html.js-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}
html.js-ready [data-reveal] {
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
[data-reveal][data-reveal-delay="1"] {
  --reveal-delay: 1;
}
[data-reveal][data-reveal-delay="2"] {
  --reveal-delay: 2;
}
[data-reveal][data-reveal-delay="3"] {
  --reveal-delay: 3;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Web Player Promo ─── */
.web-player-section {
  padding-top: clamp(2rem, 4vw, 3rem);
}
.web-player-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      135deg,
      rgba(var(--accent-rgb), 0.07),
      rgba(255, 255, 255, 0.01) 55%
    ),
    linear-gradient(180deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.3s;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 16px 40px -20px rgba(0, 0, 0, 0.5);
}
.web-player-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 70%;
  height: 200%;
  background: radial-gradient(
    ellipse,
    rgba(var(--accent-rgb), 0.16),
    transparent 60%
  );
  filter: blur(40px);
  pointer-events: none;
  animation: card-glow 12s ease-in-out infinite alternate;
}
@keyframes card-glow {
  0% {
    transform: translate(0, -8%);
    opacity: 0.6;
  }
  100% {
    transform: translate(30%, 6%);
    opacity: 1;
  }
}
.web-player-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.38);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 24px 60px -20px rgba(var(--accent-rgb), 0.35);
}
.web-player-copy {
  position: relative;
  z-index: 1;
}
.web-player-copy .section-eyebrow {
  margin-bottom: 0.8rem;
}
.web-player-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}
.web-player-title em {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.web-player-copy p {
  color: var(--text-dim);
  line-height: 1.65;
  font-size: 0.98rem;
  margin: 0 0 1.4rem;
  max-width: 32rem;
}
.web-player-visual {
  position: relative;
  perspective: 1400px;
}
.web-player-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow:
    0 30px 70px -10px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(var(--accent-rgb), 0.08);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.web-player-card:hover .web-player-frame {
  transform: rotateY(0deg) rotateX(0deg);
}
.web-player-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.web-player-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 1.2s var(--ease-out);
  pointer-events: none;
}
.web-player-card:hover .web-player-shine {
  transform: translateX(100%);
}

@media (max-width: 780px) {
  .web-player-card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--radius-lg);
  }
  .web-player-frame {
    transform: none;
  }
}
@media (max-width: 520px) {
  .web-player-card {
    padding: 1.35rem;
    gap: 1.25rem;
  }
  .web-player-copy .btn {
    width: 100%;
    min-height: 48px;
  }
}

/* ─── Showcase ─── */
.showcase-section {
  position: relative;
}
.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.mode-tabs {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  isolation: isolate;
}
.mode-tabs::-webkit-scrollbar {
  display: none;
}
.mode-tab {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.6rem 1.1rem;
  min-height: 38px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.25s var(--ease-out);
  white-space: nowrap;
}
.mode-tab:hover {
  color: var(--text);
}
.mode-tab.active {
  color: #0a0c16;
}
.tab-indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  box-shadow: 0 4px 20px -4px rgba(var(--accent-rgb), 0.6);
  transition:
    left 0.35s var(--ease-out),
    width 0.35s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}
.showcase-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.showcase-theme-inline {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.showcase-theme-inline .theme-dot {
  width: 18px;
  height: 18px;
}
.showcase-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
  max-width: 22rem;
}
@media (max-width: 960px) {
  .showcase-theme-inline {
    display: inline-flex;
  }
}
@media (max-width: 680px) {
  .showcase-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
  }
  .mode-tabs {
    width: 100%;
  }
  .mode-tab {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }
  .showcase-meta {
    justify-content: space-between;
    padding-inline: 0.2rem;
  }
  .showcase-hint {
    font-size: 0.76rem;
    max-width: none;
    flex: 1;
    min-width: 12rem;
  }
}

.player-frame-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(var(--accent-rgb), 0.35),
    rgba(255, 255, 255, 0.05) 40%,
    rgba(var(--accent-rgb), 0.2)
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.ambilight-halo {
  position: absolute;
  inset: -8%;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--accent-rgb), 0.25),
    transparent 65%
  );
  filter: blur(60px);
  opacity: 0.55;
  transition:
    opacity 0.4s,
    filter 0.4s;
  pointer-events: none;
}
.ambilight-halo.cinema-boost {
  opacity: 0.9;
  filter: blur(80px);
}
.player-window {
  border-radius: calc(var(--radius-xl) - 1px);
  background: var(--surface-1);
  overflow: hidden;
  position: relative;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.traffic-lights {
  display: flex;
  gap: 0.45rem;
  flex-shrink: 0;
}
.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tl-close {
  background: #ff5f57;
}
.tl-min {
  background: #febc2e;
}
.tl-max {
  background: #28c840;
}
.mock-window-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  justify-content: center;
}
.mock-app-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  font-weight: 500;
}
.telemetry-pill {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.mock-window-badges {
  display: flex;
  gap: 0.35rem;
}
.hud-mini-pill {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.6rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.mock-stage {
  position: relative;
  min-height: 420px;
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 45%,
      rgba(var(--accent-rgb), 0.06),
      transparent 70%
    ),
    var(--surface-1);
}
.stage-panel {
  padding: clamp(1rem, 2.5vw, 2rem);
  animation: panel-in 0.55s var(--ease-out);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.audio-sanctuary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.audio-core-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
#spectrum-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.core-disc {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.15),
      transparent 55%
    ),
    linear-gradient(145deg, var(--surface-3), var(--surface-1));
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.15),
    0 0 60px rgba(var(--accent-rgb), 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.core-disc-logo {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.6));
}

.audio-lyrics-pane {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.track-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}
.mock-track-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.mock-track-artist {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: -0.5rem 0 0;
}
.mock-lyrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.5rem 0 1rem;
}
.lyric-line {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-faint);
  transition:
    color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
  line-height: 1.4;
}
.lyric-line.past {
  color: rgba(180, 184, 204, 0.35);
}
.lyric-line.active {
  color: var(--text);
  transform: translateX(6px);
}
.lyric-line.active::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 0.6rem;
  vertical-align: -0.14em;
}

.preview-audio-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.preview-play {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0c16;
  border: none;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  transition:
    transform 0.22s var(--ease-spring),
    box-shadow 0.25s;
  flex-shrink: 0;
}
.preview-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.6);
}
.preview-skip {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: color 0.2s;
}
.preview-skip:hover:not(:disabled) {
  color: var(--text);
}
.preview-skip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
#preview-time,
#preview-duration {
  flex-shrink: 0;
}
#preview-seek {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  min-height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}
#preview-seek:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.preview-audio-error {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: #ff8f8f;
}

@media (max-width: 720px) {
  .player-frame-wrap {
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 100%;
  }
  .ambilight-halo {
    inset: -2%;
    filter: blur(40px);
  }
  .player-window {
    border-radius: calc(var(--radius-lg) - 1px);
  }
  .mock-titlebar {
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
  }
  .mock-window-badges {
    display: none;
  }
  .mock-window-title {
    justify-content: flex-end;
    min-width: 0;
  }
  .stage-panel {
    padding: 1.15rem 1rem 1.2rem;
  }
  .audio-sanctuary-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.1rem;
  }
  .audio-core-visual {
    width: 100%;
    max-width: 192px;
  }
  .audio-lyrics-pane {
    width: 100%;
    min-width: 0;
    text-align: center;
    align-items: center;
    gap: 0.75rem;
  }
  .mock-lyrics-list {
    width: 100%;
    align-items: center;
    margin: 0.2rem 0 0.45rem;
  }
  .lyric-line {
    text-align: center;
    max-width: 100%;
  }
  .lyric-line.active {
    transform: none;
    text-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45);
  }
  .lyric-line.active::before {
    display: none;
  }
  .preview-audio-bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.5rem 0.6rem;
    gap: 0.4rem;
    font-size: 0.76rem;
  }
  .preview-play {
    width: 38px;
    height: 38px;
  }
  .preview-skip {
    width: 30px;
    height: 30px;
  }
  .mock-stage {
    min-height: 0;
  }
}
@media (max-width: 480px) {
  .mock-app-label {
    display: none;
  }
  .audio-core-visual {
    max-width: 172px;
  }
  .preview-audio-bar {
    padding: 0.45rem 0.5rem;
    gap: 0.35rem;
    font-size: 0.73rem;
  }
}

.cinema-viewport {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cinema-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
}
.cinema-bg-art,
.cinema-bg-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cinema-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}
.cinema-top-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  z-index: 1;
}
.cinema-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(4, 5, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: #e0e7ff;
  font-weight: 500;
}
.cinema-subtitle-box {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(4, 5, 10, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: #fff;
  text-align: center;
  line-height: 1.4;
  z-index: 1;
}

.radio-mock {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.radio-header-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.radio-tab-pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 500;
}
.radio-tab-pill.active {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--accent);
}
.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}
.radio-station {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease-out);
  cursor: pointer;
  position: relative;
}
.radio-station:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-2);
  transform: translateY(-1px);
}
.radio-station.active {
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.3);
}
.radio-fav {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.radio-meta {
  flex: 1;
  min-width: 0;
}
.radio-meta strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.radio-meta span {
  font-size: 0.72rem;
  color: var(--text-faint);
}
.radio-play {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-2);
  color: var(--text);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.radio-play:hover {
  background: var(--accent);
  color: #0a0c16;
  border-color: transparent;
}
.radio-now {
  flex: 1 0 100%;
  grid-column: 1 / -1;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--accent);
}
.radio-now-art {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

@media (max-width: 600px) {
  .cinema-scene {
    aspect-ratio: 4 / 3;
    min-height: 225px;
  }
  .cinema-top-hud {
    top: 0.65rem;
    left: 0.65rem;
    right: 0.65rem;
    gap: 0.3rem;
  }
  .cinema-pill {
    padding: 0.26rem 0.55rem;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }
  .cinema-pill:nth-child(3) {
    display: none;
  }
  .cinema-subtitle-box {
    bottom: 0.75rem;
    width: calc(100% - 1.3rem);
    max-width: none;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
  }
  .radio-play {
    width: 34px;
    height: 34px;
  }
}

/* ─── Features bento ─── */
.features-section {
  position: relative;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}
.bento-card {
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 20px -12px rgba(0, 0, 0, 0.4);
}
.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.38);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 24px 50px -20px rgba(var(--accent-rgb), 0.35);
}
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.5),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-card:hover::before {
  opacity: 1;
}
.bento-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.bento-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.5vw, 1.22rem);
  letter-spacing: -0.012em;
  line-height: 1.3;
  margin: 0;
}
.bento-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}
.bento-hero {
  grid-column: span 3;
  grid-row: span 2;
}
.bento-cinema {
  grid-column: span 3;
}
.bento-audio {
  grid-column: span 3;
}
.bento-card:not(.bento-hero):not(.bento-cinema):not(.bento-audio):not(
    .bento-wide
  ) {
  grid-column: span 2;
}
.bento-wide {
  grid-column: span 4;
}

.bento-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.8rem;
}
.bento-formats span {
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.bento-ambilight {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(var(--accent-rgb), 0.25),
    transparent 65%
  );
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.7;
}
.bento-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 32px;
  margin-top: auto;
  padding-top: 0.8rem;
}
.bento-wave span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--accent),
    rgba(var(--accent-rgb), 0.3)
  );
  animation: wave-bar 1.6s ease-in-out infinite;
}
.bento-wave span:nth-child(1) {
  height: 30%;
  animation-delay: -0.9s;
}
.bento-wave span:nth-child(2) {
  height: 60%;
  animation-delay: -0.7s;
}
.bento-wave span:nth-child(3) {
  height: 45%;
  animation-delay: -0.5s;
}
.bento-wave span:nth-child(4) {
  height: 80%;
  animation-delay: -0.3s;
}
.bento-wave span:nth-child(5) {
  height: 55%;
  animation-delay: -0.1s;
}
.bento-wave span:nth-child(6) {
  height: 90%;
  animation-delay: 0.1s;
}
.bento-wave span:nth-child(7) {
  height: 40%;
  animation-delay: 0.3s;
}
.bento-wave span:nth-child(8) {
  height: 65%;
  animation-delay: 0.5s;
}
.bento-wave span:nth-child(9) {
  height: 30%;
  animation-delay: 0.7s;
}
@keyframes wave-bar {
  0%,
  100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1.15);
  }
}
.bento-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.8rem;
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  min-width: 30px;
}

.shortcut-disclosure {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  padding: 0;
  overflow: hidden;
}
.shortcut-disclosure summary {
  padding: 1rem 1.3rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
  position: relative;
  transition: background 0.2s;
}
.shortcut-disclosure summary::-webkit-details-marker {
  display: none;
}
.shortcut-disclosure summary:hover {
  background: rgba(255, 255, 255, 0.03);
}
.shortcut-disclosure summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
}
.shortcut-disclosure[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  padding: 0 1.3rem 1.3rem;
}
.sc {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.84rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-hero {
    grid-column: span 2;
    grid-row: auto;
  }
  .bento-cinema,
  .bento-audio {
    grid-column: span 1;
  }
  .bento-card:not(.bento-hero):not(.bento-cinema):not(.bento-audio):not(
      .bento-wide
    ) {
    grid-column: span 1;
  }
  .bento-wide {
    grid-column: span 1;
  }
}
@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
  .bento-hero,
  .bento-cinema,
  .bento-audio,
  .bento-wide,
  .bento-card {
    grid-column: span 1 !important;
  }
  .shortcut-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0 1rem 1rem;
  }
  .sc {
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .sc:last-child {
    border-bottom: none;
  }
}

/* ─── ANDROID — premium phone mockup ─── */
.android-section {
  position: relative;
}
.android-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.android-copy .section-heading {
  text-align: left;
  margin-left: 0;
}
.android-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.android-perks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.android-perks li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  line-height: 1.5;
}
.android-perks li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: translateY(-3px);
}
.android-perks strong {
  color: var(--text);
  font-weight: 500;
}

/* Phone stage & aura */
.android-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 560px;
  perspective: 1600px;
}
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}
.phone-aura {
  position: absolute;
  inset: 5% -5% -10% -5%;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--accent-rgb), 0.45),
    transparent 60%
  );
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: aura-breathe 6s ease-in-out infinite alternate;
}
@keyframes aura-breathe {
  0% {
    opacity: 0.35;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* ── The phone ── */
.phone {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 9 / 19.2;
  border-radius: 2.8rem;
  padding: 3px;
  background: linear-gradient(
    145deg,
    #3a3e52 0%,
    #1f2335 25%,
    #0f1120 55%,
    #262a3d 85%,
    #15182a 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 2px rgba(0, 0, 0, 0.6),
    0 1px 1px rgba(255, 255, 255, 0.12) inset,
    0 30px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(var(--accent-rgb), 0.2);
  transition: transform 0.7s var(--ease-out);
  transform-style: preserve-3d;
}
.android-visual:hover .phone {
  transform: translateY(-4px) rotateY(-4deg) rotateX(2deg);
}

/* Side buttons */
.phone-side {
  position: absolute;
  background: linear-gradient(180deg, #2f3347, #1a1d30);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
.phone-vol-up,
.phone-vol-down {
  left: -3px;
  width: 3px;
  border-radius: 2px 0 0 2px;
}
.phone-vol-up {
  top: 22%;
  height: 6%;
}
.phone-vol-down {
  top: 30%;
  height: 10%;
}
.phone-power {
  right: -3px;
  width: 3px;
  top: 26%;
  height: 12%;
  border-radius: 0 2px 2px 0;
}

/* Inner rim (fake depth) */
.phone-rim {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.6rem;
  padding: 6px;
  background: linear-gradient(145deg, #0a0d18, #05060c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.8);
}

/* The screen */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2.15rem;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 120% 80% at 50% -10%,
      rgba(var(--accent-rgb), 0.18),
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 60% at 50% 110%,
      rgba(var(--accent-rgb), 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #0a0d1a 0%, #070912 45%, #04060d 100%);
  display: flex;
  flex-direction: column;
  padding: 0 0 0.85rem;
}

/* Screen glare */
.phone-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 22%,
    transparent 62%,
    rgba(255, 255, 255, 0.04) 100%
  );
  z-index: 5;
  mix-blend-mode: screen;
}
.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 6;
}

/* Dynamic island / notch */
.phone-island {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.55rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 8px rgba(0, 0, 0, 0.8);
}
.phone-cam {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a4a7a, #0a0d18 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 2px rgba(0, 0, 0, 0.9);
}

/* Status bar */
.phone-statusbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
}

/* Album & track */
.phone-album-wrap {
  position: relative;
  z-index: 2;
  margin: 1.6rem 1.1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
.phone-album-art {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 1rem;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(var(--accent-rgb), 0.35),
      transparent 55%
    ),
    linear-gradient(145deg, #1e2440, #0c0e1a);
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(var(--accent-rgb), 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.phone-album-art img {
  width: 60%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.7));
  position: relative;
  z-index: 1;
}
.phone-album-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(var(--accent-rgb), 0.3),
    transparent,
    rgba(var(--accent-2-rgb), 0.3),
    transparent
  );
  mix-blend-mode: screen;
  animation: ring-spin 12s linear infinite;
  opacity: 0.7;
}
@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.phone-track-meta {
  text-align: center;
}
.phone-track-kicker {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.phone-track-meta strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}
.phone-track-meta > span:last-child {
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* Waveform */
.phone-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 22px;
  margin: 0 1.1rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}
.phone-wave span {
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--accent),
    rgba(var(--accent-rgb), 0.3)
  );
  animation: phone-wave 1.2s ease-in-out infinite;
}
.phone-wave span:nth-child(1) {
  height: 40%;
  animation-delay: -1s;
}
.phone-wave span:nth-child(2) {
  height: 80%;
  animation-delay: -0.9s;
}
.phone-wave span:nth-child(3) {
  height: 55%;
  animation-delay: -0.8s;
}
.phone-wave span:nth-child(4) {
  height: 100%;
  animation-delay: -0.7s;
}
.phone-wave span:nth-child(5) {
  height: 45%;
  animation-delay: -0.6s;
}
.phone-wave span:nth-child(6) {
  height: 70%;
  animation-delay: -0.5s;
}
.phone-wave span:nth-child(7) {
  height: 90%;
  animation-delay: -0.4s;
}
.phone-wave span:nth-child(8) {
  height: 35%;
  animation-delay: -0.3s;
}
.phone-wave span:nth-child(9) {
  height: 65%;
  animation-delay: -0.2s;
}
.phone-wave span:nth-child(10) {
  height: 100%;
  animation-delay: -0.1s;
}
.phone-wave span:nth-child(11) {
  height: 55%;
  animation-delay: 0s;
}
.phone-wave span:nth-child(12) {
  height: 75%;
  animation-delay: -0.9s;
}
.phone-wave span:nth-child(13) {
  height: 40%;
  animation-delay: -0.8s;
}
.phone-wave span:nth-child(14) {
  height: 90%;
  animation-delay: -0.7s;
}
.phone-wave span:nth-child(15) {
  height: 65%;
  animation-delay: -0.6s;
}
.phone-wave span:nth-child(16) {
  height: 85%;
  animation-delay: -0.5s;
}
.phone-wave span:nth-child(17) {
  height: 45%;
  animation-delay: -0.4s;
}
.phone-wave span:nth-child(18) {
  height: 70%;
  animation-delay: -0.3s;
}
.phone-wave span:nth-child(19) {
  height: 35%;
  animation-delay: -0.2s;
}
.phone-wave span:nth-child(20) {
  height: 95%;
  animation-delay: -0.1s;
}
.phone-wave span:nth-child(21) {
  height: 55%;
  animation-delay: 0s;
}
.phone-wave span:nth-child(22) {
  height: 80%;
  animation-delay: -0.8s;
}
.phone-wave span:nth-child(23) {
  height: 45%;
  animation-delay: -0.7s;
}
.phone-wave span:nth-child(24) {
  height: 100%;
  animation-delay: -0.6s;
}
.phone-wave span:nth-child(25) {
  height: 40%;
  animation-delay: -0.5s;
}
.phone-wave span:nth-child(26) {
  height: 70%;
  animation-delay: -0.4s;
}
.phone-wave span:nth-child(27) {
  height: 55%;
  animation-delay: -0.3s;
}
.phone-wave span:nth-child(28) {
  height: 85%;
  animation-delay: -0.2s;
}
@keyframes phone-wave {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.55;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Progress */
.phone-progress-wrap {
  position: relative;
  z-index: 2;
  margin: 1rem 1.1rem 0;
  padding: 0 0.25rem;
}
.phone-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.phone-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.65);
}
.phone-time {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* Controls */
.phone-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 0.85rem;
  padding: 0 1rem;
}
.phone-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition:
    color 0.2s,
    background 0.2s,
    transform 0.2s var(--ease-spring);
}
.phone-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.phone-btn-play {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0c16;
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.5),
    0 8px 24px -4px rgba(var(--accent-rgb), 0.7);
}
.phone-btn-play:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* Home indicator */
.phone-home-bar {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  z-index: 3;
}

/* Outer screen reflection (on top of bezel) */
.phone-screen-reflection {
  position: absolute;
  inset: 3px;
  border-radius: 2.55rem;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 18%,
    transparent 82%,
    rgba(255, 255, 255, 0.03) 100%
  );
  z-index: 7;
}

/* Ground shadow */
.phone-shadow {
  position: absolute;
  bottom: -3%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.65), transparent 70%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}

.phone-screen.is-paused .phone-wave span,
.phone-screen.is-paused .phone-album-ring {
  animation-play-state: paused;
  opacity: 0.35;
}

/* Responsive phone */
@media (max-width: 780px) {
  .android-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
  .android-visual {
    min-height: 0;
    padding-block: 0.5rem;
  }
  .phone {
    width: min(260px, 78%);
  }
}
@media (max-width: 520px) {
  .android-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .android-actions .btn {
    width: 100%;
    min-height: 48px;
  }
  .android-actions .hero-quiet-link {
    justify-content: center;
    min-height: 42px;
  }
  .phone {
    width: min(240px, 80%);
  }
  .phone-album-wrap {
    margin: 1.2rem 0.9rem 0;
    gap: 0.8rem;
  }
  .phone-album-art {
    width: 58%;
  }
  .phone-track-meta strong {
    font-size: 1.02rem;
  }
  .phone-controls {
    gap: 1rem;
  }
  .phone-btn-play {
    width: 44px;
    height: 44px;
  }
}

/* ─── Download ─── */
.download-section {
  position: relative;
}
.download-stats {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 1.5rem;
}
.download-stats strong {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-2);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1rem;
}
.dl-card {
  padding: clamp(1.3rem, 2vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 20px -12px rgba(0, 0, 0, 0.4);
}
.dl-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 20px 50px -25px rgba(0, 0, 0, 0.7);
}
.dl-card.recommended {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.2),
    0 20px 60px -30px rgba(var(--accent-rgb), 0.5);
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.dl-os-icon {
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.35));
}
.dl-title {
  flex: 1;
  min-width: 0;
}
.dl-title h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0;
}
.dl-badge {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  margin-top: 0.1rem;
}
.recommended-badge {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0c16;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.dl-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.dl-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.dl-actions .btn {
  flex: 1 1 auto;
  padding: 0.68rem 0.9rem;
  min-height: 40px;
  font-size: 0.84rem;
}
.dl-actions-col {
  flex-direction: column;
}
.dl-actions-col > .btn {
  width: 100%;
}
.dl-actions-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.dl-actions-secondary.dl-actions-single {
  grid-template-columns: 1fr;
}
.dl-footnote {
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.5;
  margin: 0.25rem 0 0;
}
.dl-notes {
  margin: 0.25rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
}
.dl-notes summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text-faint);
  list-style: none;
  position: relative;
  padding-right: 1.2rem;
  transition: color 0.2s;
}
.dl-notes summary::-webkit-details-marker {
  display: none;
}
.dl-notes summary:hover {
  color: var(--text-dim);
}
.dl-notes summary::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.dl-notes[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
.dl-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  overflow: hidden;
}
.dl-code code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.dl-code code::-webkit-scrollbar {
  display: none;
}
.copy-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  min-height: 30px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  font-size: 0.68rem;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.copy-btn:hover {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

@media (max-width: 680px) {
  .dl-card.recommended {
    order: -1;
  }
  .dl-actions .btn {
    min-height: 44px;
  }
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  padding-bottom: 2rem;
}
.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.footer-brand img {
  flex-shrink: 0;
}
.footer-brand strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.footer-brand span {
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.5rem;
}
.footer-col a,
.footer-col span {
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.back-top {
  transition: color 0.2s;
}
.back-top:hover {
  color: var(--accent);
}

@media (max-width: 780px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1rem;
  }
  .footer-col:nth-child(3) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-title .line > span {
    clip-path: none;
    filter: none;
    opacity: 1;
    transform: none;
  }
  .hero-kicker,
  .hero-subtitle,
  .hero-cta-row,
  .hero-note,
  .hero-specs li,
  .hero-scroll {
    opacity: 1;
    animation: none;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .phone-wave span,
  .bento-wave span {
    animation: none;
  }
  .phone-album-ring,
  .phone-aura {
    animation: none;
  }
}

/* ─── Interactive Landing Stage Artwork Switcher & Radio Deep-Links (v5) ─── */
.preview-stage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.landing-deck-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.8);
  border: 1px solid var(--border-2);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.landing-deck-switcher::-webkit-scrollbar {
  display: none;
}

.landing-deck-tab {
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.landing-deck-tab:hover {
  color: var(--text);
}
.landing-deck-tab.is-active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.42);
  font-weight: 600;
}

.audio-core-visual[data-preview-deck="cassette"] .core-disc,
.audio-core-visual[data-preview-deck="reel"] .core-disc,
.audio-core-visual[data-preview-deck="aurora"] .core-disc {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
}
.core-disc {
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.audio-core-visual[data-preview-deck="vinyl"] .core-disc {
  width: 54%;
  background:
    radial-gradient(circle at center, #0e111b 0 24%, transparent 25%),
    repeating-radial-gradient(circle at center, #090b12 0px, #090b12 2px, #191e30 3px, #07080e 4.5px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.audio-core-visual[data-preview-deck="vinyl"] .core-disc-logo {
  width: 38%;
  border-radius: 50%;
}
.audio-core-visual[data-preview-deck="cd"] .core-disc {
  width: 54%;
  background:
    conic-gradient(
      from 20deg,
      rgba(56, 189, 248, 0.32),
      rgba(168, 85, 247, 0.34) 55deg,
      rgba(244, 114, 182, 0.28) 95deg,
      transparent 140deg,
      rgba(52, 211, 153, 0.3) 225deg,
      rgba(192, 132, 252, 0.34) 270deg,
      transparent 330deg
    ),
    radial-gradient(circle, #060811 0 16%, #1b2135 20% 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
}
.audio-core-visual[data-preview-deck="cd"] .core-disc-logo {
  width: 34%;
  opacity: 0.72;
}

.preview-open-deck-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.preview-open-deck-link:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.08);
}

.radio-country-link {
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.radio-country-link:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.1);
}
a.radio-station {
  text-decoration: none;
  color: inherit;
}
a.radio-station .radio-fav {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.42rem;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
}
