:root {
  --bg: #050506;
  --bg-elevated: #0e0e12;
  --bg-card: rgba(255, 255, 255, 0.04);
  --text: #fafafa;
  --muted: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #e91429;
  --accent-glow: rgba(233, 20, 41, 0.45);
  --accent-soft: rgba(233, 20, 41, 0.14);
  --purple: #6c5ce7;
  --purple-glow: rgba(108, 92, 231, 0.35);
  --discord: #5865f2;
  --radius: 20px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
  --nav-h: 72px;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

em {
  font-style: normal;
  color: #fff;
  text-shadow: 0 0 32px var(--accent-glow);
}

/* Background */
.aurora {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 18s ease-in-out infinite;
}

.orb-a {
  width: 55vw;
  height: 55vw;
  max-width: 620px;
  max-height: 620px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}

.orb-b {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  top: 30%;
  right: -15%;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  animation-delay: -6s;
}

.orb-c {
  width: 35vw;
  height: 35vw;
  max-width: 400px;
  max-height: 400px;
  bottom: -5%;
  left: 35%;
  background: radial-gradient(circle, rgba(233, 20, 41, 0.2), transparent 70%);
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.05);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.96);
  }
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

main,
.nav,
.marquee,
.footer,
.float-cta {
  position: relative;
  z-index: 2;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 6, 0.75);
  backdrop-filter: blur(20px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-logo {
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.nav-brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.nav-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nav {
    padding: 0 2rem;
  }
  .nav-links {
    display: flex;
  }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: marquee 32s linear infinite;
}

.marquee-track span:nth-child(odd) {
  color: rgba(255, 255, 255, 0.35);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.25s,
    background 0.2s,
    border-color 0.2s;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c41025 100%);
  color: #fff;
  box-shadow: 0 0 40px var(--accent-soft);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px var(--accent-glow);
}

.btn-glass {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

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

.btn-discord {
  background: var(--discord);
  color: #fff;
  box-shadow: 0 0 32px rgba(88, 101, 242, 0.35);
}

.btn-xl {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.btn-nav {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
}

.btn.disabled,
.btn.disabled:hover {
  opacity: 0.4;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.lang-toggle {
  min-width: 2.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 52rem;
  margin: 0 auto;
}

.pill {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill-hero {
  animation: pulse-pill 3s ease-in-out infinite;
}

@keyframes pulse-pill {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 24px var(--accent-soft);
  }
}

.pill-live {
  border-color: rgba(233, 20, 41, 0.4);
  color: #ff7a88;
  background: var(--accent-soft);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-line {
  display: block;
}

.hero-line-accent {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line-glow {
  background: linear-gradient(90deg, var(--accent) 0%, #ff6b7a 45%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.hero-lead {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-cta .btn-xl {
  width: auto;
  min-width: 200px;
}

/* Hero stage mockup */
.hero-stage {
  position: relative;
  max-width: 380px;
  margin: 0 auto 3rem;
  perspective: 1200px;
}

.stage-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

.stage-card {
  position: relative;
  padding: 1rem 1.25rem 1.35rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  transform: rotateX(8deg) rotateY(-4deg);
  animation: stage-float 5s ease-in-out infinite;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

@keyframes stage-float {
  0%,
  100% {
    transform: rotateX(8deg) rotateY(-4deg) translateY(0);
  }
  50% {
    transform: rotateX(6deg) rotateY(2deg) translateY(-8px);
  }
}

.stage-top {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.stage-dot:first-child {
  background: var(--accent);
}

.stage-art {
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}

.stage-vinyl {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #111 12%, transparent 13%),
    repeating-radial-gradient(circle at 50% 50%, #1a1a1a 0 2px, #0d0d0d 2px 4px);
  box-shadow: 0 0 60px var(--accent-soft);
  animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.stage-meta {
  text-align: center;
  margin-bottom: 1rem;
}

.stage-track {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage-artist {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
}

.stage-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 32px;
}

.stage-wave span {
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--accent), var(--purple));
  animation: wave 1.2s ease-in-out infinite;
}

.stage-wave span:nth-child(1) {
  animation-delay: 0s;
  height: 12px;
}
.stage-wave span:nth-child(2) {
  animation-delay: 0.1s;
  height: 20px;
}
.stage-wave span:nth-child(3) {
  animation-delay: 0.2s;
  height: 28px;
}
.stage-wave span:nth-child(4) {
  animation-delay: 0.3s;
  height: 18px;
}
.stage-wave span:nth-child(5) {
  animation-delay: 0.4s;
  height: 24px;
}
.stage-wave span:nth-child(6) {
  animation-delay: 0.15s;
  height: 16px;
}
.stage-wave span:nth-child(7) {
  animation-delay: 0.25s;
  height: 26px;
}
.stage-wave span:nth-child(8) {
  animation-delay: 0.35s;
  height: 14px;
}
.stage-wave span:nth-child(9) {
  animation-delay: 0.45s;
  height: 22px;
}
.stage-wave span:nth-child(10) {
  animation-delay: 0.55s;
  height: 10px;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.45);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  padding: 1.1rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.stat-card:hover {
  border-color: rgba(233, 20, 41, 0.3);
  transform: translateY(-3px);
}

.hero-stats dt {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Manifesto */
.manifesto {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  text-align: center;
}

.manifesto-quote {
  margin: 0 auto 1.25rem;
  max-width: 44rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
}

.manifesto-sub {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-title-sm {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
  line-height: 1.6;
}

.section-head {
  margin-bottom: 2.5rem;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* Cards */
.grid.features {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid.features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid.features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(233, 20, 41, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(233, 20, 41, 0.85);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Download */
.download-panel {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(233, 20, 41, 0.2);
  background: linear-gradient(160deg, rgba(233, 20, 41, 0.08), rgba(108, 92, 231, 0.05));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .download-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    padding: 2.5rem;
  }
}

.download-tagline {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.version-line {
  margin: 0.5rem 0;
  font-size: 1.15rem;
}

.release-notes {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.release-notes li {
  margin-bottom: 0.4rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fine-print {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.changelog {
  margin-top: 1.5rem;
}

.changelog h3 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 1.35rem;
}

.changelog-cols {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .changelog-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.changelog-cols h4 {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ff7a88;
}

.changelog-cols ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Flow */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flow li {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.25s;
}

.flow li:hover {
  transform: translateY(-4px);
}

.flow-n {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #ff8a96;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
}

.flow strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.flow p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Community */
.community-panel {
  text-align: center;
  padding: 2rem;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.channel-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, color 0.2s;
}

.channel-pill:hover {
  border-color: rgba(88, 101, 242, 0.4);
  color: var(--text);
}

.community-panel .btn-xl {
  max-width: 320px;
  margin: 0 auto;
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .roadmap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.roadmap-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.roadmap-card.active {
  border-color: rgba(233, 20, 41, 0.35);
  box-shadow: 0 0 60px var(--accent-soft);
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
}

/* Float CTA mobile */
.float-cta {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.85rem 2rem;
  box-shadow: 0 12px 40px var(--accent-glow);
  animation: float-cta-in 0.6s var(--ease-out) 1s both;
}

@keyframes float-cta-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (min-width: 768px) {
  .float-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
}
