:root {
  color-scheme: dark;
  --bg: #030303;
  --text: #f7f7f7;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --spotify: #1ed760;
  --youtube: #ff0033;
  --apple: #f5f5f7;
  --soundcloud: #ff6a1f;
  --discord: #5865f2;
  --instagram: #e44486;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.particle-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.particle {
  position: absolute;
  left: var(--x);
  bottom: -12px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.38);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  animation: particleRise var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px calc(34px + var(--safe-bottom));
}

.hero {
  min-height: auto;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(14px, 2.3svh, 20px);
  padding-top: clamp(4px, 1.5svh, 14px);
}

.hero-copy,
.section-heading {
  width: 100%;
  text-align: center;
}

.hero-copy {
  animation: enterUp 520ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(0.68rem, 2.9vw, 0.8rem);
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
.platform-cta {
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(2.12rem, 10.4vw, 4rem);
  font-weight: 950;
  line-height: 0.88;
  text-transform: uppercase;
}

.subtitle {
  margin: 9px 0 0;
  color: #c8c8c8;
  font-size: clamp(0.95rem, 3.85vw, 1.08rem);
  font-weight: 700;
}

.stream-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 3vw, 14px);
}

.platform-card {
  --accent: #fff;
  position: relative;
  isolation: isolate;
  width: 100%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0a0a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  -webkit-tap-highlight-color: transparent;
  animation: cardIn 560ms cubic-bezier(0.2, 0.78, 0.18, 1) both;
  animation-delay: var(--delay, 0ms);
  transform-origin: center bottom;
  transition:
    transform 220ms cubic-bezier(0.2, 0.82, 0.18, 1),
    border-color 180ms ease,
    box-shadow 220ms ease,
    filter 180ms ease;
}

.platform-card::before {
  position: absolute;
  inset: -35% -18%;
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  opacity: 0;
  transform: translate3d(-70%, 0, 0);
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(0.2, 0.82, 0.18, 1);
}

.platform-card:nth-child(1) {
  --delay: 90ms;
}

.platform-card:nth-child(2) {
  --delay: 160ms;
}

.platform-card:nth-child(3) {
  --delay: 230ms;
}

.platform-card:nth-child(4) {
  --delay: 300ms;
}

.card-art {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1476 / 803;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #050505;
  transform: scale(1);
  transition:
    transform 260ms cubic-bezier(0.2, 0.82, 0.18, 1),
    filter 220ms ease;
  will-change: transform;
}

.platform-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.14));
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: clamp(0.68rem, 2.85vw, 0.82rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background 180ms ease,
    color 180ms ease,
    letter-spacing 180ms ease,
    transform 180ms ease;
}

.platform-card:hover {
  border-color: var(--line-strong);
  filter: brightness(1.09) saturate(1.05);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent),
    0 18px 42px rgba(0, 0, 0, 0.58);
  transform: translateY(-4px) scale(1.012);
}

.platform-card:hover::before {
  opacity: 1;
  transform: translate3d(70%, 0, 0);
}

.platform-card:hover .card-art {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.018);
}

.platform-card:hover .platform-cta {
  letter-spacing: 0.02em;
  transform: translateY(-1px);
}

.platform-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 4px;
}

.platform-card:active {
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.52);
  transform: scale(0.975);
}

.platform-card.is-pressed {
  transform: scale(0.972);
}

.tap-ripple {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  background: color-mix(in srgb, var(--accent) 42%, white);
  opacity: 0.36;
  transform: translate(-50%, -50%) scale(1);
  animation: rippleOut 520ms cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
}

.platform-card--spotify {
  --accent: var(--spotify);
}

.platform-card--youtube {
  --accent: var(--youtube);
}

.platform-card--apple {
  --accent: var(--apple);
}

.platform-card--soundcloud {
  --accent: var(--soundcloud);
}

.platform-card--discord {
  --accent: var(--discord);
}

.platform-card--instagram {
  --accent: var(--instagram);
}

.is-featured {
  border-color: color-mix(in srgb, var(--spotify) 68%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 0 0 1px rgba(30, 215, 96, 0.18),
    0 14px 30px rgba(30, 215, 96, 0.13),
    0 14px 30px rgba(0, 0, 0, 0.48);
}

.is-featured .platform-cta {
  background: var(--spotify);
  border-color: rgba(255, 255, 255, 0.14);
  color: #021106;
}

.secondary-section {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 22px 0 calc(74px + var(--safe-bottom));
}

.secondary-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 8.5vw, 3rem);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.secondary-streams .platform-card {
  opacity: 0.82;
}

.secondary-streams .platform-card:hover,
.secondary-streams .platform-card:focus-visible {
  opacity: 1;
}

.browser-warning {
  position: fixed;
  right: 10px;
  bottom: calc(10px + var(--safe-bottom));
  left: 10px;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: min(calc(100% - 20px), 460px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
}

.browser-warning[hidden] {
  display: none;
}

.browser-warning p {
  margin: 0;
  color: #dddddd;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.copy-domain {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.copy-domain:active {
  transform: scale(0.97);
}

@keyframes enterUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes particleRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.75);
  }

  12% {
    opacity: var(--opacity);
  }

  88% {
    opacity: var(--opacity);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -112svh, 0) scale(1);
  }
}

@keyframes rippleOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
  }
}

@media (max-height: 700px) and (max-width: 430px) {
  .page-shell {
    padding-inline: 14px;
  }

  .hero {
    gap: 11px;
    padding-top: 0;
  }

  h1 {
    font-size: clamp(1.9rem, 9.6vw, 3.1rem);
  }

  .subtitle {
    margin-top: 7px;
  }

  .stream-grid {
    gap: 9px;
  }

  .platform-cta {
    min-height: 29px;
    padding-inline: 7px;
    font-size: clamp(0.62rem, 2.65vw, 0.76rem);
  }
}

@media (min-width: 720px) {
  .page-shell {
    width: min(100%, 640px);
    padding-inline: 24px;
  }
  .primary-streams {
    grid-template-columns: repeat(2, 1fr);
  }
  .secondary-streams {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-shell {
    width: min(100%, 1080px);
    padding-top: clamp(40px, 8svh, 80px);
  }
  .primary-streams {
    grid-template-columns: repeat(4, 1fr);
  }
  .secondary-streams {
    width: min(100%, 540px);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle-layer {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
