:root {
  --bg: #0c0a10;
  --bg-elev: #17131f;
  --text: #f3ead8;
  --muted: rgba(243, 234, 216, 0.62);
  --line: rgba(243, 234, 216, 0.14);
  --gold: #e0b33a;
  --gold-ink: #1a1208;
  --purple: #a855f7;
  --gold-glow: rgba(224, 179, 58, 0.22);
  --purple-glow: rgba(168, 85, 247, 0.28);
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --logo-size: 64px;
  --wordmark-size: 52px;
  --bg-image: none;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

.bg-photo {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  z-index: 0;
}

.bg-photo:not([data-active]) {
  display: none;
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, var(--purple-glow), transparent 58%),
    radial-gradient(720px 420px at 92% 6%, var(--gold-glow), transparent 52%),
    radial-gradient(600px 380px at 50% 110%, var(--purple-glow), transparent 60%);
  z-index: 0;
}

.bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 22px;
}

.brand-icon {
  height: var(--logo-size);
  width: auto;
  max-width: 28vw;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  height: var(--wordmark-size);
  width: auto;
  max-width: min(420px, 58vw);
  object-fit: contain;
  display: block;
  mix-blend-mode: lighten;
}

.brand-wordmark-text {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-login {
  background: var(--discord);
  color: white;
  padding: 10px 18px;
}

.btn-login:hover {
  background: var(--discord-hover);
}

.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 0 24px var(--gold-glow);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--bg) 4%,
      color-mix(in srgb, var(--bg) 88%, transparent) 28%,
      color-mix(in srgb, var(--bg) 42%, transparent) 62%,
      color-mix(in srgb, var(--bg) 55%, transparent) 100%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 35%, transparent) 0%,
      transparent 28%,
      transparent 72%,
      var(--bg) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero.has-bg .hero-inner {
  min-height: 560px;
}

.hero.solo .hero-inner {
  grid-template-columns: 1fr;
}

.kicker {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.price {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  text-shadow: 0 0 28px var(--purple-glow);
}

.lede {
  margin: 24px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.beats {
  margin: 28px 0 0;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual img {
  width: 100%;
  border-radius: 0;
  border: none;
  display: block;
  background: transparent;
  object-fit: contain;
  max-height: 560px;
  filter: drop-shadow(0 22px 48px var(--purple-glow));
}

.pricing {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 96px;
}

.pricing h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-top: 4px;
}

.section-copy {
  margin: 12px 0 36px;
  color: var(--muted);
  font-size: 18px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.price-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 36px var(--gold-glow);
}

.price-card h3 {
  margin: 0;
  font-size: 22px;
}

.price {
  margin: 16px 0 8px;
  font-size: 48px;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gold);
}

.pay-emoji {
  width: 0.72em;
  height: 0.72em;
  display: inline-block;
  object-fit: contain;
  border-radius: 8px;
  vertical-align: middle;
}

.price-currency {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.period {
  color: var(--muted);
  font-size: 14px;
}

.price-card p {
  color: var(--muted);
  line-height: 1.5;
}

.price-card ul {
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--text);
}

.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple-glow);
}

.price-card .btn {
  width: 100%;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-inner,
  .hero.solo .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 28px;
    min-height: 0;
  }

  .hero-bg {
    background-position: center top;
  }

  .hero-bg::after {
    background:
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--bg) 78%, transparent) 0%,
        color-mix(in srgb, var(--bg) 55%, transparent) 42%,
        var(--bg) 100%
      );
  }

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