:root {
  --bg: #06070a;
  --surface: rgba(11, 13, 18, 0.48);
  --surface-strong: rgba(16, 20, 28, 0.82);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f7fb;
  --muted: rgba(247, 247, 251, 0.68);
  --accent: #9cf2d6;
  --accent-2: #7e89ff;
  --accent-3: #ffd278;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] {
  --bg: #efe4d7;
  --surface: rgba(255, 249, 241, 0.55);
  --surface-strong: rgba(255, 250, 242, 0.87);
  --line: rgba(22, 19, 14, 0.12);
  --text: #15110e;
  --muted: rgba(21, 17, 14, 0.68);
  --accent: #ff6f4d;
  --accent-2: #3552ff;
  --accent-3: #11805d;
  --shadow: 0 28px 70px rgba(85, 54, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.preloader,
.background-video,
.video-tint,
.video-grid,
.video-glow,
.grain {
  position: fixed;
  inset: 0;
}

.preloader {
  z-index: 20;
  display: grid;
  place-items: center;
  gap: 18px;
  background:
    radial-gradient(circle at center, rgba(126, 137, 255, 0.16), transparent 26%),
    rgba(5, 7, 10, 0.92);
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__core {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at center, rgba(156, 242, 214, 0.52), rgba(126, 137, 255, 0.14) 55%, transparent 70%);
  box-shadow: 0 0 80px rgba(126, 137, 255, 0.28);
  animation: pulse 1.8s infinite ease-in-out;
}

.preloader__label {
  font-family: "Unbounded", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 247, 251, 0.78);
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.02) contrast(1.03) brightness(0.58);
}

.video-tint {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.18) 0%, rgba(5, 7, 10, 0.84) 86%),
    radial-gradient(circle at top right, rgba(126, 137, 255, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(156, 242, 214, 0.18), transparent 28%);
}

.video-grid {
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 88%);
}

.video-glow {
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 210, 120, 0.15), transparent 20%),
    radial-gradient(circle at 84% 24%, rgba(126, 137, 255, 0.16), transparent 24%),
    radial-gradient(circle at 45% 70%, rgba(156, 242, 214, 0.08), transparent 22%);
}

.grain {
  z-index: 4;
  opacity: 0.08;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-shell {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.premium-card {
  width: min(1140px, 100%);
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  margin-inline: auto;
  overflow: clip;
}

.premium-card__head,
.hero-grid,
.stats-grid,
.link-grid,
.feature-strip,
.cta-row,
.floating-band,
.footer-actions {
  display: grid;
  gap: 16px;
}

.premium-card__head {
  grid-template-columns: repeat(2, max-content);
  margin-bottom: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(156, 242, 214, 0.12);
  border: 1px solid rgba(156, 242, 214, 0.18);
  color: var(--accent);
  font-family: "Unbounded", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.hero-grid {
  grid-template-columns: 1.18fr 0.82fr;
  align-items: start;
}

.hero-copy,
.hero-panel,
.floating-band,
.link-grid,
.premium-footer,
.stats-grid,
.ticker,
.status-line {
  min-width: 0;
  max-width: 100%;
}

.eyebrow,
.link-tile__label,
.now-playing__label {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-3);
}

h1,
h2,
p,
strong,
small,
span {
  margin: 0;
}

h1,
h2,
.identity-line__name {
  font-family: "Unbounded", sans-serif;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 5vw, 5.8rem);
  line-height: 0.98;
  margin-bottom: 20px;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 42%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.12;
  margin-bottom: 12px;
}

.lead,
.offer-note,
.identity-line__meta,
.stat-card span,
.link-tile small,
.feature-card p,
.premium-footer p,
.float-card span {
  color: var(--muted);
}

.lead {
  max-width: 690px;
  font-size: 1.07rem;
  line-height: 1.78;
}

.offer-note {
  max-width: 620px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(156, 242, 214, 0.18);
  border-radius: 18px;
  background: rgba(156, 242, 214, 0.07);
  line-height: 1.7;
}

.cta-row {
  grid-template-columns: repeat(2, max-content);
  margin-top: 28px;
}

.cta,
.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.cta:hover,
.theme-toggle:hover,
.link-tile:hover {
  transform: translateY(-3px);
}

.cta--solid {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.cta--ghost.is-active {
  background: rgba(156, 242, 214, 0.14);
  border-color: rgba(156, 242, 214, 0.35);
  color: var(--accent);
}

.ticker {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.ticker__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: ticker 18s linear infinite;
}

.ticker__track span {
  font-family: "Unbounded", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 247, 251, 0.7);
}

.hero-panel,
.stat-card,
.link-tile,
.feature-card,
.float-card,
.now-playing {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.hero-panel {
  padding: 22px;
  height: 100%;
}

.identity-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.identity-line__avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #070c13;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 0 40px rgba(126, 137, 255, 0.24);
}

.identity-line__name {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.stats-grid {
  grid-template-columns: 1fr;
}

.stat-card {
  padding: 18px 20px;
}

.stat-card span {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.now-playing {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.equalizer {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 28px;
}

.equalizer span {
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  transform-origin: bottom center;
  animation: bounce 1s infinite ease-in-out;
  opacity: 0.35;
}

.equalizer span:nth-child(2) {
  animation-delay: 0.15s;
}

.equalizer span:nth-child(3) {
  animation-delay: 0.3s;
}

.equalizer span:nth-child(4) {
  animation-delay: 0.45s;
}

.floating-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.float-card {
  padding: 18px 20px;
  backdrop-filter: blur(16px);
}

.float-card strong {
  display: block;
  margin-top: 8px;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.link-tile {
  padding: 22px;
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.link-tile__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(156, 242, 214, 0.12), rgba(126, 137, 255, 0.1)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.link-tile__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
  opacity: 0.95;
}

.link-tile--accent {
  background:
    linear-gradient(135deg, rgba(156, 242, 214, 0.12), rgba(126, 137, 255, 0.08)),
    var(--surface-strong);
}

.link-tile--accent .link-tile__icon {
  background:
    linear-gradient(135deg, rgba(156, 242, 214, 0.2), rgba(126, 137, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
}

.link-tile:hover {
  border-color: rgba(156, 242, 214, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.feature-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.feature-card {
  padding: 22px;
}

.feature-card p {
  line-height: 1.72;
}

.premium-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.status-line span {
  color: var(--accent);
}

.status-line {
  overflow-wrap: anywhere;
}

.footer-actions {
  grid-template-columns: repeat(2, max-content);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: scaleY(0.32);
  }
  50% {
    transform: scaleY(1);
  }
}

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

  .premium-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 14px;
  }

  .premium-card {
    padding: 18px;
    border-radius: 24px;
    width: 100%;
  }

  .premium-card__head,
  .cta-row,
  .footer-actions {
    grid-template-columns: 1fr;
  }

  .cta,
  .theme-toggle {
    width: 100%;
    text-align: center;
  }

  .now-playing {
    align-items: start;
    flex-direction: column;
  }
}

@media (min-width: 981px) {
  .hero-copy,
  .hero-panel,
  .floating-band,
  .link-grid,
  .premium-footer {
    width: 100%;
    margin-inline: auto;
  }
}
