:root {
  --bg: #0A1222;
  --bg-2: #101A2E;
  --panel: #121C31;
  --ink: #F4F7FB;
  --muted: #8FA0B8;
  --blue: #236BFF;
  --cyan: #00D4FF;
  --line: rgba(244, 247, 251, 0.12);
  --danger: #FF6B6B;
  --font: "Aspekta", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(35, 107, 255, 0.22), transparent 55%),
    radial-gradient(700px 420px at 10% 20%, rgba(0, 212, 255, 0.10), transparent 50%),
    linear-gradient(180deg, #0A1222 0%, #0B1424 50%, #090F1C 100%);
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header, .site-footer, main {
  width: min(1120px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; }
.brand-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
}
.brand-text span { color: var(--blue); font-weight: 600; }

.site-header nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--ink); }

.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.nav-cta, .btn.primary {
  background: var(--blue);
  color: #fff !important;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }

main { margin-bottom: 4rem; }

.hero {
  min-height: calc(100vh - 7rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.55;
  margin: 0;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-meta { color: var(--muted); margin-top: 1rem; font-size: 0.95rem; }

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(35,107,255,0.25), rgba(10,18,34,0.2) 45%, rgba(0,212,255,0.12)),
    #0E1830;
}

.phone-mock {
  position: absolute;
  inset: 10% 18% 8% 18%;
  border-radius: 1.4rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, #0D1628, #0A1222);
  padding: 1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.phone-mock .now {
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #142244, #0B1730);
  border: 1px solid rgba(35,107,255,0.35);
}
.phone-mock .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.phone-mock h3 { margin: 0.7rem 0 0.3rem; font-size: 1.15rem; }
.phone-mock p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.wave-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 36px;
  margin-top: 1rem;
}
.wave-bars span {
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  animation: pulse 1.4s ease-in-out infinite;
}
.wave-bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.wave-bars span:nth-child(2) { height: 60%; animation-delay: .1s; }
.wave-bars span:nth-child(3) { height: 45%; animation-delay: .2s; }
.wave-bars span:nth-child(4) { height: 80%; animation-delay: .3s; }
.wave-bars span:nth-child(5) { height: 50%; animation-delay: .4s; }
.wave-bars span:nth-child(6) { height: 70%; animation-delay: .15s; }
.wave-bars span:nth-child(7) { height: 40%; animation-delay: .25s; }
.wave-bars span:nth-child(8) { height: 90%; animation-delay: .35s; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.7); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.features, .page-band { padding: 2rem 0 4rem; }
.features h2, .page-band h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-lead { color: var(--muted); max-width: 40rem; }

.feature-grid, .download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.feature-grid article, .download-grid article {
  background: rgba(18, 28, 49, 0.7);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem;
}
.feature-grid .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(35,107,255,0.15);
  color: var(--cyan);
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.feature-grid h3, .download-grid h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.feature-grid p, .download-grid p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.badge-soft {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.8rem;
}

.prose { max-width: 42rem; color: var(--muted); line-height: 1.65; }
.prose p { margin: 0 0 1rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 2rem;
}
.footer-links { display: flex; gap: 1rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 320px; }
  .feature-grid, .download-grid { grid-template-columns: 1fr 1fr; }
  .site-header nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .download-grid { grid-template-columns: 1fr; }
}

/* —— Listen / web player —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.listen-page { padding: 1rem 0 7rem; }
.listen-head { margin-bottom: 1.5rem; }
.listen-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.listen-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.listen-toolbar input[type="search"] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 28, 49, 0.75);
  color: var(--ink);
  padding: 0.75rem 1.1rem;
  font: inherit;
  outline: none;
}
.listen-toolbar input[type="search"]:focus {
  border-color: rgba(35, 107, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(35, 107, 255, 0.18);
}

.listen-status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.listen-status.error { color: var(--danger); }

.listen-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: start;
}

.listen-now {
  position: sticky;
  top: 1rem;
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: linear-gradient(145deg, #142244, #0B1730);
  border: 1px solid rgba(35, 107, 255, 0.35);
  min-height: 220px;
}
.listen-now .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}
.listen-now .badge.live {
  background: var(--blue);
  border-color: transparent;
}
.listen-now h2 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.listen-now p { margin: 0; color: var(--muted); }

.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  margin-top: 1.25rem;
}
.viz span {
  flex: 1;
  max-width: 6px;
  height: 18%;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: 0.45;
  transform-origin: bottom;
  transition: height 120ms linear;
}
.viz.mini {
  width: 56px;
  height: 28px;
  margin: 0;
  flex: 0 0 auto;
}
body.is-playing .viz span {
  animation: pulse 1.15s ease-in-out infinite;
  opacity: 1;
}
body.is-playing .viz span:nth-child(odd) { animation-duration: 0.95s; }
body.is-playing .viz span:nth-child(3n) { animation-duration: 1.35s; }

.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-height: min(70vh, 640px);
  overflow: auto;
  padding-right: 0.25rem;
}
.station-empty {
  color: var(--muted);
  padding: 1rem 0;
}
.station-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(18, 28, 49, 0.55);
  color: var(--ink);
  border-radius: 1rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font: inherit;
}
.station-btn:hover {
  border-color: rgba(35, 107, 255, 0.45);
  background: rgba(20, 34, 68, 0.8);
}
.station-item.active .station-btn {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.2);
}
.station-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(35, 107, 255, 0.14);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.station-copy { display: grid; gap: 0.15rem; min-width: 0; }
.station-copy strong {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-copy small { color: var(--muted); font-size: 0.82rem; }
.station-play { color: var(--blue); font-size: 1rem; }

.web-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(9, 15, 28, 0.92) 28%, #090F1C);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.web-player-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  background: rgba(18, 28, 49, 0.92);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.7rem 0.9rem;
}
.web-player-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.web-player-title {
  margin: 0.1rem 0 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.web-player-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.web-player-controls input[type="range"] {
  width: 90px;
  accent-color: var(--blue);
}
.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}
.play-btn:hover { filter: brightness(1.08); }

body.has-player .site-footer { padding-bottom: 6rem; }

@media (max-width: 900px) {
  .listen-layout { grid-template-columns: 1fr; }
  .listen-now { position: static; }
  .web-player-controls input[type="range"] { width: 64px; }
}
@media (max-width: 560px) {
  .listen-toolbar { flex-direction: column; }
  .web-player-inner { grid-template-columns: auto 1fr; }
  .web-player-controls { grid-column: 1 / -1; justify-content: space-between; }
}
