:root {
  color-scheme: dark;
  --deep-space: #080513;
  --nebula-purple: #a98bff;
  --starlit-blue: #4f6fff;
  --soft-white: #f4f6ff;
  --fog-violet: rgba(169, 139, 255, 0.18);
  --glass: rgba(15, 14, 30, 0.55);
  --border-glow: rgba(255, 255, 255, 0.14);
  --gradient-1: linear-gradient(135deg, rgba(96, 76, 255, 0.4), rgba(201, 160, 255, 0.15));
  --gradient-2: linear-gradient(145deg, rgba(16, 63, 138, 0.5), rgba(186, 123, 255, 0.2));
  --font-base: "Space Grotesk", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: radial-gradient(circle at 20% 20%, rgba(132, 106, 238, 0.35), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(74, 102, 255, 0.25), transparent 60%),
    var(--deep-space);
  color: var(--soft-white);
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  position: relative;
  z-index: 1;
}

canvas#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.music-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(9, 9, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  color: var(--soft-white);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 15px 35px rgba(5, 8, 22, 0.55);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(8, 12, 30, 0.55);
}

.music-toggle.is-playing {
  border-color: rgba(169, 139, 255, 0.8);
  box-shadow: 0 25px 45px rgba(80, 69, 178, 0.55);
}

.music-label {
  font-weight: 500;
  letter-spacing: 0.12em;
}

.music-status {
  font-size: 0.7rem;
  opacity: 0.7;
}

.music-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nebula-purple);
  box-shadow: 0 0 10px rgba(169, 139, 255, 0.9);
  position: relative;
}

.music-toggle.is-playing .music-pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(169, 139, 255, 0.6);
  animation: pulseRing 1.6s ease-out infinite;
}

.glow-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.orb-one {
  background: rgba(154, 122, 255, 0.5);
  top: 15%;
  left: 10%;
}

.orb-two {
  background: rgba(61, 101, 255, 0.45);
  bottom: 10%;
  right: 5%;
}

.hero {
  text-align: center;
  padding: 4rem 2rem 5rem;
  background: var(--gradient-1);
  border-radius: 26px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 60px rgba(18, 8, 38, 0.65);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.floating-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.floating-tags span {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(244, 246, 255, 0.9);
  box-shadow: 0 8px 20px rgba(10, 11, 32, 0.5);
  backdrop-filter: blur(8px);
  animation: drift 10s ease-in-out infinite;
}

.floating-tags span:nth-child(2) {
  animation-delay: 1s;
}

.floating-tags span:nth-child(3) {
  animation-delay: 2s;
}

.floating-tags span:nth-child(4) {
  animation-delay: 3s;
}

.floating-tags span:nth-child(5) {
  animation-delay: 4s;
}

.soul-marquee {
  margin: 2.5rem auto 0;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 9, 22, 0.6);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(6, 9, 26, 0.45);
  backdrop-filter: blur(14px);
  display: flex;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  padding: 0.9rem 1.5rem;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.7);
}

.soul-marquee .marquee-track:nth-child(2) {
  animation-delay: -13s;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  pointer-events: none;
}

.eyebrow {
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(244, 246, 255, 0.7);
}

h1 {
  font-weight: 500;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 1rem 0 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

h2 {
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 0.5rem;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(244, 246, 255, 0.86);
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.sub-lede {
  margin-top: 1rem;
  color: rgba(244, 246, 255, 0.6);
  font-size: 0.95rem;
}

.cta {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), rgba(71, 73, 255, 0.65));
  color: var(--soft-white);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.8rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(19, 39, 122, 0.55);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(53, 75, 206, 0.6);
}

.cta.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

section {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 30px;
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.section-glass {
  background: var(--glass);
}

.section-gradient {
  background: var(--gradient-2);
}

.section-header .tag {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.section-header p {
  color: rgba(244, 246, 255, 0.7);
  margin: 0.3rem 0 0;
}

.dual-columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.column {
  background: rgba(9, 9, 22, 0.55);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.column-title {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.column-title.accent {
  color: var(--soft-white);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin: 0.65rem 0;
  padding-left: 0.2rem;
  line-height: 1.7;
  color: rgba(244, 246, 255, 0.9);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  padding: 1.6rem;
  border-radius: 24px;
  background: rgba(9, 9, 22, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(6, 9, 26, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(11, 13, 40, 0.5);
}

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

.model div {
  background: rgba(9, 9, 22, 0.55);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(244, 246, 255, 0.8);
}

.list-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
  margin-top: 2rem;
}

.list-cards article {
  background: rgba(9, 9, 22, 0.6);
  border-radius: 24px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(8, 13, 35, 0.45);
}

.quote-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 1.08rem;
  line-height: 1.9;
}

.closing-words {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.1rem;
  line-height: 1.9;
}

footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  color: rgba(244, 246, 255, 0.7);
}

@media (max-width: 720px) {
  main {
    padding: 3rem 1rem 4rem;
  }

  section {
    padding: 2rem;
  }

  .hero {
    padding: 3rem 1.5rem 4rem;
  }

  .music-toggle {
    top: auto;
    right: 1rem;
    bottom: 1.5rem;
    left: 1rem;
    justify-content: center;
  }
}

/* Scroll reveal */
.section,
.hero {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes drift {
  0% {
    transform: translateY(0px) translateX(0);
  }
  50% {
    transform: translateY(-6px) translateX(4px);
  }
  100% {
    transform: translateY(0px) translateX(0);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  80% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

