:root {
  --bg: #090b10;
  --bg-soft: #11151d;
  --panel: rgba(15, 19, 27, 0.8);
  --panel-strong: rgba(8, 11, 16, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f8fd;
  --muted: #97a7bb;
  --accent: #9fc0ff;
  --accent-strong: #d4e3ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 10%, rgba(159, 192, 255, 0.12), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(113, 139, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #12161f 0%, #090b10 100%);
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -8rem;
  left: -10rem;
  background: rgba(127, 168, 255, 0.28);
}

.page-glow-right {
  right: -12rem;
  top: 8rem;
  background: rgba(99, 127, 255, 0.2);
}

.topbar,
.shell,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
}

.brand-badge::before {
  content: "";
  position: absolute;
  inset: -0.42rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(159, 192, 255, 0.48) 0%, rgba(159, 192, 255, 0.18) 46%, transparent 72%);
  filter: blur(7px);
  opacity: 0.95;
}

.brand-badge img {
  position: relative;
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  filter: brightness(1.22) grayscale(0.08) contrast(1.08);
}

.shell {
  padding: 2rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: #d6e2f2;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 4vw, 4.15rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy p,
.feature-card p,
.premium-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #08111d;
  background: linear-gradient(180deg, #e6efff 0%, #a9c7ff 100%);
  box-shadow: 0 18px 40px rgba(122, 169, 255, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stage,
.feature-card,
.premium-panel {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-stage {
  padding: 1rem;
}

.player-shell {
  display: grid;
  gap: 0;
}

.island-player {
  display: grid;
  grid-template-columns: 4.8rem 1fr 7rem;
  gap: 1rem;
  align-items: center;
  position: relative;
  padding: 1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.96), rgba(9, 11, 15, 0.9));
  overflow: hidden;
  transform: translateX(0);
}

.island-player.is-switching-next {
  animation: islandPushNext 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.island-player.is-loading > *:not(.player-loading) {
  filter: blur(1.2px);
  opacity: 0.16;
  pointer-events: none;
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(2, 4, 8, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.island-player.is-loading .player-loading {
  opacity: 1;
}

.player-loading-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.player-loading-bar span {
  width: 0.34rem;
  height: 1.25rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #edf4ff, #a7c6ff);
  box-shadow: 0 0 18px rgba(167, 198, 255, 0.24);
  animation: loadingPulse 900ms ease-in-out infinite;
}

.player-loading-bar span:nth-child(2) {
  animation-delay: 0.14s;
}

.player-loading-bar span:nth-child(3) {
  animation-delay: 0.28s;
}

.player-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: linear-gradient(135deg, #25324d, #131926 60%, #0a0d12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.03);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 16, 0.06), rgba(8, 11, 16, 0.18)),
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18), transparent 32%);
  pointer-events: none;
}

.cover-shine {
  position: absolute;
  inset: -35%;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.14), transparent 62%);
  transform: translateX(-100%);
  pointer-events: none;
  animation: sweep 4.8s ease-in-out infinite;
}

.track-meta {
  min-width: 0;
}

.track-title {
  font-size: 1.18rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  margin-top: 0.3rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.control-button {
  position: relative;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: var(--text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, background 160ms ease;
}

.control-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.control-button:focus {
  outline: none;
}

.control-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(159, 192, 255, 0.28);
}

.control-button-primary {
  background: linear-gradient(180deg, #edf4ff 0%, #aecbff 100%);
  border-color: transparent;
  color: #06111f;
}

.control-button span {
  position: absolute;
  display: block;
}

.control-button:not(.control-button-primary):not(.control-button-next) span:nth-child(1) {
  left: 0.78rem;
  top: 0.82rem;
  width: 0;
  height: 0;
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
  border-right: 0.8rem solid currentColor;
}

.control-button:not(.control-button-primary):not(.control-button-next) span:nth-child(2) {
  left: 1.48rem;
  top: 0.82rem;
  width: 0;
  height: 0;
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
  border-right: 0.8rem solid currentColor;
}

.control-button-next span:nth-child(1) {
  right: 1.48rem;
  top: 0.82rem;
  width: 0;
  height: 0;
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
  border-left: 0.8rem solid currentColor;
}

.control-button-next span:nth-child(2) {
  right: 0.78rem;
  top: 0.82rem;
  width: 0;
  height: 0;
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
  border-left: 0.8rem solid currentColor;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 1.26rem;
  transform: translate(-50%, -50%);
}

.play-icon::before,
.play-icon::after {
  content: "";
  position: absolute;
  top: 0.02rem;
  width: 0.28rem;
  height: 1.22rem;
  border-radius: 999px;
  background: currentColor;
}

.play-icon::before {
  left: 0.1rem;
}

.play-icon::after {
  right: 0.1rem;
}

.control-button-primary.is-paused .play-icon {
  width: 0.94rem;
  height: 0.94rem;
}

.control-button-primary.is-paused .play-icon::before {
  top: 0.02rem;
  left: 0.18rem;
  width: 0;
  height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.68rem solid currentColor;
  border-radius: 0;
  background: transparent;
}

.control-button-primary.is-paused .play-icon::after {
  display: none;
}

.player-side {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: flex-end;
}

.visualizer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  height: 3rem;
}

.visualizer span {
  width: 0.32rem;
  height: calc(0.5rem + (var(--h, 0.3) * 2rem));
  border-radius: 999px;
  background: linear-gradient(180deg, #f0f6ff, #a7c6ff);
  box-shadow: 0 0 18px rgba(167, 198, 255, 0.16);
  transition: height 90ms linear;
}

.volume-hover {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.32rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: background 180ms ease, border-color 180ms ease;
}

.volume-hover:hover,
.volume-hover:focus-within {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(159, 192, 255, 0.18);
}

.volume-button {
  position: relative;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.volume-glyph,
.volume-glyph::before,
.volume-glyph::after {
  position: absolute;
  content: "";
}

.volume-glyph {
  left: 50%;
  top: 50%;
  width: 0.34rem;
  height: 0.52rem;
  transform: translate(-60%, -50%);
  border-radius: 0.08rem;
  background: currentColor;
}

.volume-glyph::before {
  left: -0.34rem;
  top: 0.02rem;
  width: 0;
  height: 0;
  border-top: 0.24rem solid transparent;
  border-bottom: 0.24rem solid transparent;
  border-right: 0.34rem solid currentColor;
}

.volume-glyph::after {
  left: 0.42rem;
  top: -0.02rem;
  width: 0.5rem;
  height: 0.58rem;
  border-right: 0.11rem solid currentColor;
  border-top: 0.11rem solid transparent;
  border-bottom: 0.11rem solid transparent;
  border-radius: 0 0.55rem 0.55rem 0;
  opacity: 0.8;
}

.volume-slider-wrap {
  display: grid;
  align-items: center;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 220ms ease, opacity 180ms ease;
}

.volume-hover:hover .volume-slider-wrap,
.volume-hover:focus-within .volume-slider-wrap {
  width: 5.4rem;
  opacity: 1;
}

.volume-slider {
  width: 5.4rem;
  height: 0.22rem;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(237, 244, 255, 0.92), rgba(122, 169, 255, 0.88));
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 0.82rem;
  height: 0.82rem;
  border: 0;
  border-radius: 999px;
  background: #f3f8ff;
  box-shadow: 0 0 0 2px rgba(159, 192, 255, 0.14);
}

.volume-slider::-moz-range-thumb {
  width: 0.82rem;
  height: 0.82rem;
  border: 0;
  border-radius: 999px;
  background: #f3f8ff;
  box-shadow: 0 0 0 2px rgba(159, 192, 255, 0.14);
}

.player-note {
  margin: 0.85rem 0 0;
  color: rgba(151, 167, 187, 0.9);
  font-size: 0.86rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-card,
.premium-panel {
  padding: 1.3rem;
}

.feature-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eff6ff, #9bc0ff);
  box-shadow: 0 0 18px rgba(159, 192, 255, 0.38);
}

.feature-card h2 {
  margin: 0.8rem 0 0.65rem;
  font-size: 1.16rem;
}

.premium-panel {
  margin-top: 1.5rem;
}

.section-head {
  margin-bottom: 1rem;
}

.premium-frame {
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 15, 0.76);
  padding: 0.45rem;
}

.premium-scroll {
  max-height: 21rem;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.premium-scroll::-webkit-scrollbar {
  width: 0.42rem;
}

.premium-scroll::-webkit-scrollbar-thumb {
  background: rgba(159, 192, 255, 0.34);
  border-radius: 999px;
}

.premium-item {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  gap: 0.9rem;
  padding: 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}

.premium-item + .premium-item {
  margin-top: 0.6rem;
}

.premium-mark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  margin-top: 0.28rem;
  background: linear-gradient(180deg, #eef6ff, #9bc0ff);
}

.premium-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.6rem;
  padding: 1rem 0.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: inline-flex;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  opacity: 0.86;
}

.footer-links a:hover {
  opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.22s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sweep {
  0%,
  100% {
    transform: translateX(-110%);
  }
  45%,
  65% {
    transform: translateX(110%);
  }
}

@keyframes islandPushNext {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(16px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes loadingPulse {
  0%,
  100% {
    transform: scaleY(0.48);
    opacity: 0.56;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar,
  .shell,
  .site-footer {
    width: calc(100% - 1rem);
  }

  .hero-copy h1,
  .section-head h2 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .island-player {
    grid-template-columns: 1fr;
  }

  .player-side {
    justify-content: flex-start;
  }
  .footer-inner {
    justify-content: flex-start;
  }
}
