: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;
}

.logo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease-out;
}

.logo-bg.is-ready {
  opacity: 1;
}

.logo-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.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: 0;
  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%;
  perspective: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 3vw, 14px);
}

.platform-card {
  --accent: #fff;
  --mx: 50%;
  --my: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --scale: 1;
  --shine-x: -130%;
  position: relative;
  isolation: isolate;
  width: 100%;
  display: grid;
  grid-template-rows: auto auto;
  gap: clamp(7px, 2vw, 10px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.18));
  border-radius: 0;
  padding: 0 0 clamp(9px, 2.8vw, 14px);
  background: transparent;
  box-shadow:
    0 15px 28px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  -webkit-tap-highlight-color: transparent;
  animation: cardIn 620ms cubic-bezier(0.2, 0.78, 0.18, 1) both;
  animation-delay: var(--delay, 0ms);
  transform-origin: center bottom;
  transform:
    translate3d(0, var(--lift), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    scale(var(--scale));
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    filter 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.82, 0.18, 1);
  will-change: transform, filter;
}

.platform-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 42%, transparent) 0 12%, transparent 34%),
    linear-gradient(115deg, transparent 24%, rgba(255, 255, 255, 0.4) 43%, transparent 58%);
  background-position:
    center,
    var(--shine-x) 0;
  background-size:
    100% 100%,
    62% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
  transition:
    background-position 620ms cubic-bezier(0.2, 0.82, 0.18, 1),
    opacity 180ms ease;
}

.platform-card::after {
  position: absolute;
  inset: -2px;
  z-index: 0;
  content: "";
  pointer-events: none;
  border-radius: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 72%, transparent), transparent 28% 72%, rgba(255, 255, 255, 0.34));
  opacity: 0.42;
  filter: blur(12px);
  transform: scale(0.98);
  animation: auraPulse 5.5s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 220ms ease;
}

.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: transparent;
  transform: scale(1);
  transition:
    filter 220ms ease,
    transform 300ms cubic-bezier(0.2, 0.82, 0.18, 1);
  will-change: transform;
}

.platform-cta {
  position: relative;
  width: calc(100% - clamp(20px, 7vw, 32px));
  margin: 0 auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(32px, 8.2vw, 42px);
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.24));
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.82)),
    color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.42),
    0 0 18px color-mix(in srgb, var(--accent) 26%, transparent);
  color: #fff;
  font-size: clamp(0.66rem, 2.7vw, 0.82rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.72);
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(1.35);
  transform: translateY(0) scale(1);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.82, 0.18, 1);
}

.platform-card:hover {
  --lift: -7px;
  --scale: 1.018;
  --shine-x: 170%;
  border-color: color-mix(in srgb, var(--accent) 72%, rgba(255, 255, 255, 0.26));
  filter: brightness(1.08) saturate(1.08);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.58),
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent) inset,
    0 0 34px color-mix(in srgb, var(--accent) 30%, transparent);
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-card:hover::after {
  opacity: 0.82;
  filter: blur(18px);
  transform: scale(1.03);
}

.platform-card:hover .card-art {
  filter: saturate(1.14) contrast(1.05);
  transform: scale(1.055);
}

.platform-card:hover .platform-cta {
  border-color: color-mix(in srgb, var(--accent) 72%, rgba(255, 255, 255, 0.3));
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.5), rgba(0, 0, 0, 0.8)),
    color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.52),
    0 0 24px color-mix(in srgb, var(--accent) 42%, transparent);
  transform: translateY(-3px) scale(1.02);
}

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

.platform-card:active {
  --lift: 1px;
  --scale: 0.985;
}

.platform-card.is-pressed {
  --lift: 1px;
  --scale: 0.982;
}

.tap-ripple {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 0;
  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 {
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(30, 215, 96, 0.18) inset,
    0 0 28px rgba(30, 215, 96, 0.2);
}

.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;
}

.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: 0;
  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: 0;
  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 {
    clip-path: inset(9%);
    opacity: 0;
  }

  to {
    clip-path: inset(0);
    opacity: 1;
  }
}

@keyframes auraPulse {
  0%,
  100% {
    opacity: 0.34;
    filter: blur(10px);
  }

  50% {
    opacity: 0.58;
    filter: blur(16px);
  }
}

@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: 30px;
    font-size: clamp(0.6rem, 2.55vw, 0.74rem);
  }
}

@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;
  }

  .platform-card {
    transform: none !important;
  }
}
