:root {
  --bg: #020617;
  --bg-elevated: #02081f;
  --accent: #a855f7;
  --accent-soft: rgba(168, 85, 247, 0.18);
  --accent-strong: rgba(168, 85, 247, 0.32);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.4);
  --error: #f97373;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.6s ease;
  background-size: 160% 160%;
  animation: bg-move 22s ease-in-out infinite alternate;
}

.page-loaded {
  opacity: 1;
}

/* First-load: header and hero */
.header {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.page-loaded .header {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  opacity: 0;
  transform: translateY(28px);
}
@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-loaded .hero {
  animation: hero-in 0.6s ease 0.12s forwards;
}

/* Sections animate in on load (staggered) */
.section {
  opacity: 0;
  transform: translateY(24px);
}
@keyframes section-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-loaded .section {
  animation: section-in 0.5s ease forwards;
}
.page-loaded #pricing.section { animation-delay: 0.22s; }
.page-loaded #how-it-works.section { animation-delay: 0.34s; }
.page-loaded #faq.section { animation-delay: 0.46s; }
.page-loaded #preview.section { animation-delay: 0.52s; }
.page-loaded #join.section { animation-delay: 0.58s; }

/* Smooth scroll: leave space for sticky header */
#pricing,
#how-it-works,
#faq,
#preview,
#join {
  scroll-margin-top: 88px;
}

@keyframes bg-move {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 100% 0%;
  }
}

.page {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin-bottom: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
  position: sticky;
  top: 16px;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
}

.hero {
  padding: 32px 20px 16px;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.hero h1 span {
  font-size: 0.82em;
  background: linear-gradient(135deg, #a855f7, #c084fc);
  -webkit-background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  color: var(--text);
  transition: 0.16s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.6);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.8);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn.tiny {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* Discord icon SVG */
.discord-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.discord-icon-sm {
  width: 1.1rem;
  height: 1.1rem;
}
.discord-btn .discord-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.discord-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.discord-link .discord-icon {
  width: 1.35rem;
  height: 1.35rem;
}
.btn.ghost .discord-icon-sm {
  margin-right: 6px;
}
.btn.tiny .discord-icon-sm {
  margin-right: 0;
}

.note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.section {
  margin-top: 26px;
  padding: 22px 20px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #0b1120, #020617 55%, #000);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
}

.section h2 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}

.section-subtitle {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.pricing .plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.plan-card {
  padding: 16px 14px 14px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, #02081f, #020617 65%, #000);
  border: 1px solid var(--border-soft);
  position: relative;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.hero,
.section,
.plan-card,
.step {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.4s ease,
    opacity 0.45s ease;
}

.plan-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.price {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.description {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.plan-card .btn {
  width: 100%;
  font-size: 0.9rem;
}

/* Purple neon glow on duration selection buttons */
.plan-card .btn.select-plan {
  border: 1px solid rgba(168, 85, 247, 0.7);
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.5), rgba(126, 34, 206, 0.4));
  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.6),
    0 0 24px rgba(168, 85, 247, 0.4),
    inset 0 0 12px rgba(168, 85, 247, 0.1);
}
.plan-card .btn.select-plan:hover {
  box-shadow:
    0 0 18px rgba(168, 85, 247, 0.8),
    0 0 36px rgba(168, 85, 247, 0.5),
    inset 0 0 16px rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 1);
}

.plan-card.highlight {
  border-color: var(--accent-strong);
  box-shadow: 0 22px 60px rgba(124, 58, 237, 0.6);
}

.plan-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.96);
  border-color: var(--accent-strong);
}

.plan-card.highlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--accent-soft);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
  color: #e9d5ff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.payment-info {
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step {
  padding: 12px 12px 10px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, #02081f, #020617 60%, #000);
  border: 1px solid rgba(51, 65, 85, 0.9);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-strong);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.9);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.76rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 6px;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 0.94rem;
}

.step p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.faq-item + .faq-item {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
}

.faq-item h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.join {
  text-align: center;
}

.discord-btn {
  padding-inline: 26px;
}

.small-note {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

/* Soptic Priv Preview section */
.preview {
  text-align: center;
}
.preview-media {
  margin-top: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.2);
  max-width: 100%;
  display: inline-block;
}
.preview-gif {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.footer {
  margin-top: 26px;
  padding: 14px 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
  border-top: 1px solid rgba(30, 64, 175, 0.9);
}

.selected-plan-toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(120%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-soft);
  backdrop-filter: blur(20px);
  z-index: 20;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  opacity: 0;
}

.selected-plan-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#selected-plan-text {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pricing .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header {
    padding-inline: 16px;
  }

  .nav {
    display: none;
  }

  .section {
    padding-inline: 16px;
  }
}

@media (max-width: 540px) {
  .pricing .plans {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .page {
    padding-inline: 14px;
  }

  .hero {
    padding-inline: 14px;
  }
}

