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

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --border: #2a2a3a;
  --text: #f0f0f5;
  --text-muted: #8b8b9e;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --success: #22c55e;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow), transparent 65%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* Access flow (Discord link + checkout) */
.access-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.access-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.access-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.access-status.linked {
  color: var(--success);
}

.access-status.linked::before {
  background: var(--success);
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:disabled,
.btn-primary.btn-disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--discord);
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--discord-hover);
  transform: translateY(-2px);
}

.btn-secondary.btn-linked {
  background: var(--bg-elevated);
  color: var(--success);
  cursor: default;
  transform: none;
}

.btn-large {
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
}

/* Pricing */
.pricing {
  padding: 4rem 0 5rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 48px rgba(124, 58, 237, 0.12);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.plan-price {
  text-align: center;
  margin-bottom: 1.75rem;
}

.plan-price .amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-price .interval {
  color: var(--text-muted);
  font-size: 1rem;
}

.benefits {
  list-style: none;
  margin-bottom: 2rem;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.benefits li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--success);
  font-weight: 700;
}

.pricing-card .access-flow {
  align-items: stretch;
}

.pricing-card .access-actions {
  flex-direction: column;
}

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

.pricing-card .access-status {
  justify-content: center;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Success page */
.success-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.success-card {
  max-width: 520px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--success);
}

.success-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.next-steps {
  text-align: left;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.next-steps h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.next-steps ol {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.next-steps li {
  padding: 0.3rem 0;
}

.fallback-note {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.fallback-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.success-card .btn {
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .access-actions {
    flex-direction: column;
    width: 100%;
  }

  .access-actions .btn {
    width: 100%;
  }
}
