/* ──────────────────────────────────────────
   CSS Custom Properties
────────────────────────────────────────── */
:root {
  --bg-base:      #0c0a1e;
  --bg-alt:       #110e28;
  --bg-section:   #160f34;
  --surface:      #1e1840;
  --surface-2:    #261f50;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --accent:       #7c4dff;
  --accent-dim:   rgba(124, 77, 255, 0.2);
  --accent-pink:  #e040fb;
  --accent-teal:  #00bcd4;
  --accent-orange: #ff8c42;
  --accent-green: #2ecc71;

  --grad-purple: linear-gradient(135deg, #7c4dff, #e040fb);
  --grad-hero:   linear-gradient(135deg, #e040fb 0%, #b060ff 100%);

  --text:         #ffffff;
  --text-muted:   rgba(255, 255, 255, 0.6);
  --text-subtle:  rgba(255, 255, 255, 0.35);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(124, 77, 255, 0.25);

  --nav-h: 72px;
  --container: 1200px;
  --gap: clamp(16px, 3vw, 32px);
}

/* ──────────────────────────────────────────
   Reset & Base
────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ──────────────────────────────────────────
   Layout Utilities
────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-header h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 16px);
  max-width: 560px;
  margin-inline: auto;
}

/* ──────────────────────────────────────────
   Navigation
────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background-color: rgba(12, 10, 30, 0.4);
  backdrop-filter: blur(48px) saturate(1.8);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s, backdrop-filter 0.3s;
}
.nav.nav--scrolled {
  background-color: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__links {
  display: none;
  list-style: none;
  gap: 32px;
}

.nav__links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  display: none;
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--text);
  color: var(--bg-base);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.nav__cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav__burger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 99;
}
.nav__drawer.open { display: flex; }
.nav__drawer a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.nav__drawer a:last-child { border-bottom: none; }
.nav__drawer .btn-install {
  margin-top: 8px;
  padding: 14px;
  text-align: center;
  background: var(--text);
  color: var(--bg-base);
  border-radius: 100px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__cta   { display: block; }
  .nav__burger { display: none; }
}

/* ──────────────────────────────────────────
   Hero
────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(124,77,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(224,64,251,0.08) 0%, transparent 50%),
    var(--bg-base);
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 64px);
  align-items: center;
  padding-block: clamp(24px, 3vw, 40px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(124, 77, 255, 0.4);
  background: rgba(124, 77, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #b388ff;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero__headline {
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero__headline .gradient-text {
  background: linear-gradient(135deg, #e040fb, #b060ff, #7c4dff, #e040fb, #ff80ff, #b060ff, #e040fb);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.brand-highlight {
  color: var(--accent-pink);
}

.hero__desc {
  margin-top: 20px;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
}

.hero__cta-group {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-hover);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  min-width: 160px;
}

.btn-store:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-store__icon {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}
.btn-store__text { display: flex; flex-direction: column; }
.btn-store__sub  { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.btn-store__name { font-size: 14px; font-weight: 700; }

@media (max-width: 640px) {
  .hero__cta-group { gap: 8px; flex-wrap: nowrap; }
  .btn-store { flex: 1; min-width: 0; padding: 10px 12px; gap: 7px; }
  .btn-store__icon { width: 16px; height: 16px; flex-shrink: 0; }
  .btn-store__sub  { display: none; }
  .btn-store__name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Phone Mockup ── */
.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-screen {
  width: clamp(240px, 40vw, 320px);
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Floating badges */
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(20,17,40,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
}
.badge-float__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.badge-float__text .label  { font-size: 10px; color: var(--text-muted); }
.badge-float__text .value  { font-size: 13px; font-weight: 700; }

.badge-offline {
  left: -20px;
  top: 30%;
  animation: float-bob 3.5s ease-in-out infinite;
  z-index: 2;
}
.badge-offline .badge-float__icon { background: rgba(46, 204, 113, 0.2); color: var(--accent-green); }

.badge-ai {
  right: -16px;
  bottom: 28%;
  animation: float-bob 3.5s ease-in-out infinite 1.75s;
  z-index: 2;
}
.badge-ai .badge-float__icon { background: var(--accent-dim); color: var(--accent); }

@media (max-width: 480px) {
  .badge-offline { left: -8px; top: 18%; }
  .badge-ai      { right: -8px; bottom: 18%; }
}

/* ──────────────────────────────────────────
   Hero — desktop layout
────────────────────────────────────────── */
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100svh - var(--nav-h));
  }
  .hero__visual { order: 2; }
  .badge-offline { left: -60px; top: 30%; }
  .badge-ai { right: -48px; bottom: 24%; }
}

/* ──────────────────────────────────────────
   Section: Features (Все для ценителей)
────────────────────────────────────────── */
.features {
  padding-block: clamp(40px, 6vw, 72px);
  background: var(--bg-base);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
  position: relative;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-card__icon--purple { background: rgba(124,77,255,0.2); color: var(--accent); }
.feature-card__icon--teal   { background: rgba(0,188,212,0.2);  color: var(--accent-teal); }
.feature-card__icon--green  { background: rgba(46,204,113,0.2); color: var(--accent-green); }
.feature-card__icon--pink   { background: rgba(224,64,251,0.2); color: var(--accent-pink); }
.feature-card__icon--orange { background: rgba(255,140,66,0.2); color: var(--accent-orange); }

.feature-card h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Search demo */
.demo-search {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.demo-search::before { content: '🔍'; font-style: normal; }

/* Download demo */
.demo-download {
  margin-top: 20px;
}
.demo-download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.demo-download-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2c3e6e, #1a1f3a);
  flex-shrink: 0;
}
.demo-download-text { flex: 1; min-width: 0; }
.demo-download-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-download-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.demo-download-check { font-size: 18px; color: var(--accent-green); flex-shrink: 0; }

/* Authors list demo */
.demo-authors {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.demo-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}
.demo-author:last-child { border-bottom: none; }
.demo-author-arrow { color: var(--text-subtle); }

/* Playlist demo */
.demo-playlist {
  margin-top: 20px;
}
.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.demo-tag {
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.demo-playlist-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(124,77,255,0.12);
  border-radius: var(--radius-md);
  border: 1px solid rgba(124,77,255,0.2);
}
.demo-playlist-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124,77,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.demo-playlist-text .name { font-size: 13px; font-weight: 700; }
.demo-playlist-text .sub  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ──────────────────────────────────────────
   Section: Genres
────────────────────────────────────────── */
.genres {
  padding-block: clamp(40px, 6vw, 72px);
  background: var(--bg-alt);
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

@media (min-width: 640px)  { .genres-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .genres-grid { grid-template-columns: repeat(6, 1fr); } }

.genre-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.genre-card:hover {
  border-color: rgba(124,77,255,0.5);
  background: var(--surface-2);
  transform: translateY(-4px);
}

.genre-card__icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent-dim);
  color: var(--accent);
}
.genre-card__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ──────────────────────────────────────────
   Section: Full Control
────────────────────────────────────────── */
.control {
  padding-block: clamp(40px, 6vw, 72px);
  background: var(--bg-base);
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px)  { .control-grid { grid-template-columns: 1fr 1fr; } }

.control-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.control-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.control-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.control-card h3 {
  font-size: clamp(18px, 2.5vw, 21px);
  font-weight: 700;
  margin-bottom: 10px;
}
.control-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CarPlay demo */
.demo-carplay {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 13px;
}
.demo-carplay-left { display: flex; align-items: center; gap: 8px; }
.demo-carplay-status { color: var(--accent-green); font-weight: 600; font-size: 12px; }

/* History demo */
.demo-history {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.demo-history-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.demo-history-bar {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
}
.demo-history-fill {
  height: 100%;
  width: 67%;
  background: var(--grad-purple);
  border-radius: 4px;
}
.demo-history-pct { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ──────────────────────────────────────────
   Section: More Features (bento)
────────────────────────────────────────── */
.more-features {
  padding-block: clamp(40px, 6vw, 72px);
  background: var(--bg-alt);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-card--wide { grid-column: span 2; }
}

.bento-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
  position: relative;
}
.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.bento-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.bento-card h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  margin-bottom: 8px;
}
.bento-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tags demo */
.demo-tags-bento {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tag-chip {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-chip--purple { background: rgba(124,77,255,0.2); color: #b388ff; border: 1px solid rgba(124,77,255,0.3); }
.tag-chip--teal   { background: rgba(0,188,212,0.15); color: #4dd0e1; border: 1px solid rgba(0,188,212,0.25); }
.tag-chip--pink   { background: rgba(224,64,251,0.15); color: #f48fb1; border: 1px solid rgba(224,64,251,0.25); }
.tag-chip--blue   { background: rgba(66,165,245,0.15); color: #82b1ff; border: 1px solid rgba(66,165,245,0.25); }
.tag-chip--green  { background: rgba(46,204,113,0.15); color: #80cbc4; border: 1px solid rgba(46,204,113,0.25); }

/* Sleep timer demo */
.demo-timer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.timer-chip {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.timer-chip:hover,
.timer-chip.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
}

/* Toggle demo */
.demo-toggle {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
}
.toggle-switch {
  width: 48px;
  height: 28px;
  border-radius: 100px;
  background: var(--grad-purple);
  position: relative;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Radio demo */
.demo-radio {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.demo-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(229,57,53,0.4); }
  50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(229,57,53,0); }
}
.demo-radio-text { flex: 1; min-width: 0; }
.demo-radio-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-radio-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.demo-radio-heart { color: var(--accent-pink); font-size: 18px; flex-shrink: 0; }

/* Search filters demo */
.demo-filters {
  margin-top: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.demo-share {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.demo-share-url {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}
.demo-share-copy {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 188, 212, 0.15);
  border: 1px solid rgba(0, 188, 212, 0.3);
  color: #4dd0e1;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.demo-share-copy.copied {
  background: rgba(46, 204, 113, 0.2);
  border-color: rgba(46, 204, 113, 0.4);
  color: var(--accent-green);
}

/* Random story card */
.bento-card--random {
  background: linear-gradient(135deg, #1e1040 0%, #2d1b6e 100%);
  border-color: rgba(124,77,255,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}
.bento-card--random .bento-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: rgba(124,77,255,0.3);
  font-size: 28px;
  margin-inline: auto;
}
.bento-card--random h3 { font-size: clamp(18px, 2.5vw, 22px); }
.bento-card--random p { max-width: 260px; margin-inline: auto; }

/* ──────────────────────────────────────────
   Section: Download CTA
────────────────────────────────────────── */
.cta-section {
  padding-block: clamp(80px, 12vw, 128px);
  background: var(--bg-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(124,77,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin-inline: auto;
}

.cta-section p {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  max-width: 440px;
  margin-inline: auto;
}

.cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ──────────────────────────────────────────
   Footer
────────────────────────────────────────── */
.footer {
  padding-block: clamp(32px, 5vw, 56px);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 13px;
  color: var(--text-subtle);
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ──────────────────────────────────────────
   Scroll reveal animation
────────────────────────────────────────── */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ──────────────────────────────────────────
   Apple-style Glass Effects
────────────────────────────────────────── */

/* Mobile drawer */
.nav__drawer {
  background: rgba(16, 13, 36, 0.85);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
}

/* Hero badge */
.hero__badge {
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 16px rgba(124, 77, 255, 0.15);
}

/* Store buttons */
.btn-store {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Feature / Control / Bento / Genre cards */
.feature-card,
.control-card,
.bento-card,
.genre-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.genre-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 77, 255, 0.35);
}

/* Floating badges */
.badge-float {
  background: rgba(14, 11, 32, 0.65);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}


/* Demo inner elements — subtle glass inlays */
.demo-search,
.demo-download-item,
.demo-carplay,
.demo-history,
.demo-toggle,
.demo-radio,
.demo-playlist-card,
.demo-author {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.07);
}

/* Timer chips */
.timer-chip {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.12);
}
.timer-chip:hover,
.timer-chip.active {
  background: rgba(124, 77, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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