/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #050508;
  --bg2:       #0a0a12;
  --bg3:       #0f0f1a;
  --card:      rgba(255,255,255,0.03);
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --purple:    #8b5cf6;
  --purple-d:  #6d28d9;
  --blue:      #3b82f6;
  --cyan:      #06b6d4;
  --white:     #f8fafc;
  --muted:     #64748b;
  --muted2:    #94a3b8;
  --success:   #22c55e;
  --danger:    #ef4444;
  --warn:      #f59e0b;
  --radius:    12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: rgba(139,92,246,.35); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--purple-d); border-radius: 3px; }

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

/* ── Aurora Background ────────────────────────────────────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-bg::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,.25) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: blob1 14s ease-in-out infinite;
  border-radius: 50%;
  filter: blur(40px);
}
.aurora-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,.2) 0%, transparent 70%);
  top: 50px; right: -100px;
  animation: blob2 18s ease-in-out infinite;
  border-radius: 50%;
  filter: blur(50px);
}
.aurora-blob3 {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.15) 0%, transparent 70%);
  bottom: -100px; left: 35%;
  animation: blob3 12s ease-in-out infinite;
  border-radius: 50%;
  filter: blur(60px);
}

@keyframes blob1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(120px,60px) scale(1.15); }
  66%      { transform: translate(-60px,120px) scale(0.9); }
}
@keyframes blob2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-100px,80px) scale(1.2); }
  66%      { transform: translate(60px,-100px) scale(0.95); }
}
@keyframes blob3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-120px,-60px) scale(1.1); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(5,5,8,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted2);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.07); }
.nav-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent;
  color: var(--muted2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 0 20px rgba(139,92,246,.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(139,92,246,.45); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border2);
}
.btn-outline:hover { background: rgba(255,255,255,.07); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h2 {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--muted2);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

/* ── Hero Screenshot ─────────────────────────────────────────────────────── */
.hero-screenshot-wrap {
  margin-top: 4rem;
  perspective: 1400px;
  width: 100%;
  max-width: 1000px;
}
.hero-screenshot {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(139,92,246,.35);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 30px 80px rgba(0,0,0,.6),
    0 0 60px rgba(139,92,246,.2);
  transform: rotateX(18deg);
  transform-origin: center bottom;
  transition: transform .4s ease, box-shadow .4s ease;
  display: block;
}
.hero-screenshot-wrap:hover .hero-screenshot {
  transform: rotateX(8deg);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 40px 100px rgba(0,0,0,.65),
    0 0 80px rgba(139,92,246,.3);
}

/* ── Stats Bar ────────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  max-width: 700px;
  width: 100%;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}
.stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── Section Layout ───────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}
.section-sub { color: var(--muted2); max-width: 500px; margin: 0 auto; font-size: 1rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: rgba(139,92,246,.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,.08);
}

/* ── Features Grid ────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}
.feature-card { position: relative; overflow: hidden; }
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted2); font-size: 0.9rem; line-height: 1.65; }

/* ── Reviews ──────────────────────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.review-card .stars { color: var(--warn); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.review-card blockquote { color: var(--muted2); font-size: 0.9rem; font-style: italic; margin-bottom: 1rem; line-height: 1.65; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.review-name { font-weight: 700; font-size: 0.875rem; }
.review-tag { font-size: 0.75rem; color: var(--muted); }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.pricing-card { position: relative; }
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(59,130,246,.08));
  border-color: rgba(139,92,246,.4);
}
.featured-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1px;
}
.price-amount sup { font-size: 1.2rem; vertical-align: super; font-weight: 600; }
.price-amount span { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-desc { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }
.pricing-features li { font-size: 0.875rem; color: var(--muted2); display: flex; align-items: center; gap: 0.6rem; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-features li.no::before { content: '✕'; color: var(--muted); }
.pricing-features li.no { color: var(--muted); }

/* ── CTA Section ──────────────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, rgba(139,92,246,.06), rgba(59,130,246,.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.cta-section p { color: var(--muted2); margin-bottom: 2rem; font-size: 1rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--muted); font-size: 0.875rem; margin-top: 0.75rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--muted2); font-size: 0.875rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--muted2); }

/* ── Discord Page ─────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; letter-spacing: -2px; margin-bottom: 1rem; }
.page-hero p { color: var(--muted2); font-size: 1.05rem; max-width: 540px; margin: 0 auto 2rem; }
.discord-card {
  background: linear-gradient(135deg, rgba(88,101,242,.15), rgba(88,101,242,.05));
  border-color: rgba(88,101,242,.3);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.discord-icon { font-size: 4rem; margin-bottom: 1rem; }
.discord-info h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.discord-info p { color: var(--muted2); margin-bottom: 1.5rem; }
.discord-stats { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1.75rem; }
.discord-stat .v { font-size: 1.4rem; font-weight: 800; }
.discord-stat .l { font-size: 0.75rem; color: var(--muted); }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752c4; }

/* ── Auth Pages ───────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
.auth-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(20px);
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo .logo-text {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-logo p { color: var(--muted); font-size: 0.875rem; margin-top: 0.25rem; }
.auth-card h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.35rem; }
.auth-card .subtitle { color: var(--muted2); font-size: 0.875rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted2); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,.15);
}
.form-input::placeholder { color: var(--muted); }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.auth-footer a { color: var(--purple); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); color: #86efac; }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-purple { background: rgba(139,92,246,.15); color: var(--purple); border: 1px solid rgba(139,92,246,.25); }
.badge-green  { background: rgba(34,197,94,.1);   color: var(--success); border: 1px solid rgba(34,197,94,.2); }
.badge-red    { background: rgba(239,68,68,.1);   color: var(--danger);  border: 1px solid rgba(239,68,68,.2); }
.badge-blue   { background: rgba(59,130,246,.1);  color: var(--blue);    border: 1px solid rgba(59,130,246,.2); }
.badge-gray   { background: rgba(255,255,255,.05);color: var(--muted);   border: 1px solid var(--border); }

/* ── Online indicator ─────────────────────────────────────────────────────── */
.online-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
