:root {
  --bg: #1a1426;
  --bg-2: #241a36;
  --card: #2c2142;
  --card-2: #34284f;
  --pink: #ffb3d9;
  --pink-deep: #ff77c2;
  --lilac: #c8a9ff;
  --lilac-deep: #a679ff;
  --text: #f3ecff;
  --muted: #c3b6dd;
  --line: #4a3a68;
  --shadow: 0 18px 40px -18px rgba(120, 70, 200, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Quicksand", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 720px at 82% -8%, rgba(166, 121, 255, 0.32), transparent 60%),
    radial-gradient(820px 620px at 6% 6%, rgba(255, 119, 194, 0.22), transparent 55%),
    radial-gradient(780px 720px at 96% 90%, rgba(124, 108, 255, 0.24), transparent 60%),
    radial-gradient(640px 560px at 10% 104%, rgba(99, 91, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #170d26 0%, #1e1332 46%, #281a3c 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* slow drifting aurora glow, behind all content */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at 28% 30%, rgba(255, 119, 194, 0.16), transparent 70%),
    radial-gradient(42% 42% at 76% 66%, rgba(124, 108, 255, 0.18), transparent 70%),
    radial-gradient(34% 34% at 62% 14%, rgba(166, 121, 255, 0.14), transparent 70%);
  filter: blur(60px);
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-2.5%, -1.5%, 0) scale(1.05) rotate(0deg); }
  100% { transform: translate3d(2.5%, 2%, 0) scale(1.18) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff7, transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, #fff5, transparent),
    radial-gradient(1px 1px at 50% 60%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 35% 80%, #fff4, transparent),
    radial-gradient(1px 1px at 65% 75%, #fff5, transparent);
  background-repeat: repeat;
  opacity: 0.6;
  z-index: 0;
}

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

h1, h2, h3, .price, .badge { font-family: "Baloo 2", "Quicksand", sans-serif; }

/* hero */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 90px 22px 40px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--pink);
  background: rgba(255, 119, 194, 0.12);
  border: 1px solid rgba(255, 119, 194, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.hero h1 span { color: var(--pink-deep); }
.hero h1 .tm { color: var(--lilac); font-size: 0.4em; vertical-align: super; }

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--muted);
  margin: 22px auto 0;
  max-width: 540px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-strip {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-family: "Quicksand", sans-serif;
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: #2a1438;
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: 0 22px 46px -16px rgba(255, 119, 194, 0.6); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--lilac); }

.btn-card {
  margin-top: auto;
  text-align: center;
  color: var(--lilac);
  border: 1px solid var(--line);
  background: rgba(166, 121, 255, 0.08);
}
.btn-card:hover { background: rgba(166, 121, 255, 0.18); border-color: var(--lilac); }

/* sections */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 38px;
}
.section-title small {
  display: block;
  font-size: 0.95rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  color: var(--muted);
  margin-top: 6px;
}

.shop { max-width: 1080px; margin: 40px auto; padding: 30px 22px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--lilac); }

.card-featured {
  border-color: var(--pink-deep);
  background: linear-gradient(180deg, #3a2552, var(--card));
}

.ribbon {
  position: absolute;
  top: 16px;
  right: -6px;
  background: linear-gradient(135deg, var(--pink-deep), var(--lilac-deep));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 6px 0 0 6px;
  text-transform: uppercase;
}

.card-emoji { font-size: 2.4rem; margin-bottom: 10px; }

.card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }

.features { list-style: none; margin-bottom: 18px; }
.features li {
  font-size: 0.9rem;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
}
.features li:last-child { border-bottom: none; }

.price {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.price strong { color: var(--pink); font-size: 1.5rem; }

/* bundle */
.bundle { max-width: 760px; margin: 30px auto; padding: 0 22px; }
.bundle-inner {
  text-align: center;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(255, 119, 194, 0.2), transparent 70%),
    linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--lilac-deep);
  border-radius: 26px;
  padding: 44px 28px;
  box-shadow: var(--shadow);
}
.bundle-inner h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 6px 0 12px; }
.bundle-inner p { color: var(--muted); max-width: 440px; margin: 0 auto 22px; }
.price.big { font-size: 2.4rem; color: var(--pink); font-weight: 700; margin-bottom: 24px; }
.price.big span { font-size: 1rem; color: var(--lilac); font-weight: 600; }

/* order */
.order { max-width: 760px; margin: 60px auto; padding: 0 22px; }
.steps { list-style: none; display: grid; gap: 14px; margin-bottom: 34px; }
.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  font-weight: 600;
}
.steps li span {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--lilac));
  color: #2a1438;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
}

.order-cta { text-align: center; }
.fineprint { color: var(--muted); font-size: 0.82rem; margin-top: 16px; }

.fineprint a { color: var(--pink); text-decoration: none; }
.fineprint a:hover { text-decoration: underline; }

/* highlighted discord link */
.discord-link {
  color: #d6dcff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.discord-link:visited { color: #d6dcff !important; }
.discord-link:hover { color: #ffffff !important; }

/* footer */
footer { text-align: center; padding: 40px 22px 50px; color: var(--muted); font-size: 0.9rem; }
footer a { color: var(--pink); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* background music toggle */
#viz {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== checkout ===== */
.checkout-head {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--pink-deep); }
.logo .tm { color: var(--lilac); font-size: 0.55em; vertical-align: super; }
.back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.back:hover { color: var(--pink); }

.checkout {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 22px 60px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.panel h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 22px; }

fieldset { border: none; margin-bottom: 26px; }
fieldset:last-child { margin-bottom: 0; }
legend {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--lilac);
  margin-bottom: 14px;
  padding: 0;
}

.checkout label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 6px;
}
.req { color: var(--pink-deep); }
.opt { color: var(--muted); font-weight: 500; font-size: 0.8rem; }

.checkout input,
.checkout select,
.checkout textarea {
  width: 100%;
  font-family: "Quicksand", sans-serif;
  font-size: 0.98rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout textarea { resize: vertical; }
.checkout input:focus,
.checkout select:focus,
.checkout textarea:focus {
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(166, 121, 255, 0.18);
}
.checkout select { appearance: none; cursor: pointer; }

.pay-note {
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(166, 121, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 4px;
}
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.summary { position: sticky; top: 24px; }
.summary h2 { font-size: 1.3rem; margin-bottom: 18px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  padding: 6px 0;
}
.summary-line.muted { color: var(--muted); font-weight: 500; font-size: 0.92rem; }
.summary-line.total { font-size: 1.25rem; font-family: "Baloo 2", sans-serif; }
.summary-line.total span:last-child { color: var(--pink); }
.summary-divider { height: 1px; background: var(--line); margin: 12px 0; }

.btn.full { width: 100%; text-align: center; margin-top: 20px; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.secure-note { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 14px; }
.form-error {
  margin-top: 14px;
  color: #ffd0e4;
  background: rgba(255, 77, 130, 0.15);
  border: 1px solid rgba(255, 119, 194, 0.5);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 10, 28, 0.82);
  backdrop-filter: blur(4px);
}
.overlay-card {
  text-align: center;
  max-width: 420px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--lilac-deep);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: var(--shadow);
}
.overlay-emoji { font-size: 3rem; margin-bottom: 10px; }
.overlay-card h2 { font-size: 1.8rem; margin-bottom: 12px; }
.overlay-card p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 720px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
