﻿:root {
  color-scheme: light dark;
  --bg: #121212;
  --bg-muted: #151515;
  --text: #e6e2dc;
  --text-soft: #b9b5ae;
  --accent: #c8b089;
  --accent-soft: rgba(200, 176, 137, 0.35);
  --shadow: rgba(0, 0, 0, 0.35);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.04);
  --nav-bg: rgba(22, 22, 22, 0.66);
  --nav-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.02);
  --transition: 1.2s cubic-bezier(0.22, 0.7, 0.2, 1);
  --song-h: 32;
  --song-s: 18%;
  --song-l: 52%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.75;
  letter-spacing: 0.012em;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

body.mode-mute {
  filter: grayscale(0.88) saturate(0.6);
}

body:not(.is-ready) .hero,
body:not(.is-ready) .card,
body:not(.is-ready) .nav,
body:not(.is-ready) .now-playing {
  opacity: 0;
  transform: translateY(16px);
}

.page {
  padding: 88px 8vw 180px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.paper {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.03), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.02), transparent 55%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.hero {
  max-width: 620px;
  display: grid;
  gap: 18px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: var(--text-soft);
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.lede {
  color: var(--text-soft);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}

.cta {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.cta:hover {
  border-color: var(--line-soft);
}

.grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(
      120deg,
      hsla(var(--song-h), var(--song-s), var(--song-l), 0.08),
      transparent 60%
    ),
    var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: 140px;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  transition: transform 0.6s ease, box-shadow var(--transition), border-color var(--transition), background var(--transition), opacity 0.8s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.5;
}

.card h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  /* position: sticky; */
  display: flex;
  gap: 18px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(18px) saturate(130%);
  z-index: 99;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
  min-width: min(620px, 90vw);
  justify-content: space-between;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    180px 80px at 25% 0%,
    hsla(var(--song-h), var(--song-s), var(--song-l), 0.22),
    transparent 70%
  );
  opacity: 0.26;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.6s ease;
}

.nav__item.is-active {
  color: var(--text);
}

.nav__item:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav__item:active {
  transform: translateY(0);
}

.nav__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}

.nav__theme .icon-sun,
.nav__theme .icon-moon {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

body.theme-light .nav__theme .icon-sun {
  opacity: 1;
  transform: translateY(0);
}

body.theme-light .nav__theme .icon-moon {
  opacity: 0;
  transform: translateY(2px);
  position: absolute;
}

body.theme-dark .nav__theme .icon-moon {
  opacity: 1;
  transform: translateY(0);
}

body.theme-dark .nav__theme .icon-sun {
  opacity: 0;
  transform: translateY(-2px);
  position: absolute;
}

.now-playing {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(18px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(120%);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 98;
  min-width: min(420px, 82vw);
  justify-content: center;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out, box-shadow 0.8s ease;
}

.now-playing.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.now-playing__cover {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(
    140deg,
    hsla(var(--song-h), var(--song-s), var(--song-l), 0.45),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-size: cover;
  background-position: center;
}

.now-playing__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-soft);
}

.now-playing__title {
  font-size: 0.9rem;
}

.now-playing__artist {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.leaf {
  position: fixed;
  width: 46px;
  height: 70px;
  border-radius: 60% 40% 60% 40%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.12;
  filter: blur(0.3px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.leaf--left {
  left: 6vw;
  top: 30vh;
  animation-delay: -5s;
}

.leaf--right {
  right: 8vw;
  top: 18vh;
  animation-delay: -12s;
}

.leaf--bottom {
  right: 22vw;
  bottom: 22vh;
  animation-delay: -18s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  100% {
    transform: translate3d(10px, -6px, 0) rotate(2deg);
  }
}

.firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 206, 140, 0.6);
  box-shadow: 0 0 14px rgba(255, 206, 140, 0.35);
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity var(--transition), box-shadow var(--transition);
  animation: pulse 7s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 206, 140, 0.28);
  }
  50% {
    box-shadow: 0 0 18px rgba(255, 206, 140, 0.45);
  }
}

.theme-dark .firefly {
  opacity: 0.65;
}

.nav__item.is-active .firefly {
  opacity: 0.6;
}

body.theme-color {
  filter: grayscale(0) saturate(1);
}

body.theme-color {
  --bg: #141212;
  --text: #f1ede6;
  --text-soft: #d0c8bf;
  --accent: #d8c39c;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(24, 22, 21, 0.7);
  --nav-border: rgba(255, 255, 255, 0.12);
}

body.theme-color .nav::before {
  opacity: 0.6;
}

body.theme-color .card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 32px rgba(0, 0, 0, 0.18);
}

body.theme-color .cta {
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

body.theme-color .paper {
  opacity: 0.9;
}

body.theme-color .firefly {
  opacity: 0.9;
}

body.theme-light {
  --bg: #f4f1ea;
  --bg-muted: #efebe4;
  --text: #1f1c19;
  --text-soft: #5a514a;
  --accent: #b7956a;
  --line: rgba(10, 10, 10, 0.12);
  --line-soft: rgba(10, 10, 10, 0.08);
  --card-bg: rgba(255, 255, 255, 0.6);
  --nav-bg: rgba(245, 240, 234, 0.78);
  --nav-border: rgba(10, 10, 10, 0.12);
}

body.theme-light .paper {
  opacity: 0.4;
}

body.theme-light .nav::before {
  opacity: 0.18;
}

body.theme-light .hero__hint {
  color: rgba(0, 0, 0, 0.45);
}

body.theme-light .card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 26px rgba(38, 34, 30, 0.12);
}

body.theme-light .cta {
  background: rgba(255, 255, 255, 0.65);
}

body.theme-light .now-playing {
  background: linear-gradient(
      120deg,
      hsla(var(--song-h), var(--song-s), var(--song-l), 0.16),
      rgba(248, 244, 238, 0.9)
    );
  color: var(--text);
}

body.theme-light .firefly {
  background: rgba(191, 149, 106, 0.55);
  box-shadow: 0 0 10px rgba(191, 149, 106, 0.32);
}

body.theme-light .socials-pop {
  background: linear-gradient(
      120deg,
      hsla(var(--song-h), var(--song-s), var(--song-l), 0.14),
      rgba(248, 244, 238, 0.92)
    );
  color: var(--text);
}

body.theme-light .card {
  background: linear-gradient(
      120deg,
      hsla(var(--song-h), var(--song-s), var(--song-l), 0.12),
      rgba(255, 255, 255, 0.7)
    );
}

.nav__item,
.cta,
.card {
  transition: transform 0.6s ease, box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.card:hover {
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .page {
    padding: 76px 7vw 190px;
  }

  .nav {
    min-width: min(520px, 92vw);
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 64px 7vw 200px;
  }

  .hero {
    gap: 14px;
  }

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

  .hero__hint {
    font-size: 0.78rem;
  }

  .nav {
    min-width: min(100%, 94vw);
    padding: 12px 18px;
    justify-content: space-around;
  }

  .nav__label {
    display: none;
  }

  .now-playing {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    min-width: min(90vw, 360px);
  }

  .now-playing__cover {
    width: 54px;
    height: 54px;
  }

  .socials-pop {
    min-width: min(88vw, 320px);
  }
}
.socials-pop {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(12px);
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
  z-index: 97;
  min-width: min(240px, 70vw);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
  background: linear-gradient(
      120deg,
      hsla(var(--song-h), var(--song-s), var(--song-l), 0.12),
      rgba(20, 20, 20, 0.86)
    );
}

.socials-pop.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.socials-pop__item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color 0.6s ease, background 0.6s ease, transform 0.6s ease;
}

.socials-pop__item:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.socials-pop__icon {
  font-size: 0.9rem;
  opacity: 0.6;
}

.theme-dark.theme-shift .card {
  animation: cardGlow 1s ease-in-out;
}

@keyframes cardGlow {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 32px rgba(0, 0, 0, 0.22);
  }
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 32px rgba(0, 0, 0, 0.18);
  }
}
