:root {
  --bg: #0e0f13;
  --bg-elevated: #15171c;
  --bg-card: #1a1d23;
  --border: #2a2e39;
  --text: #f2f3f5;
  --text-muted: #8b919a;
  --blurple: #5865f2;
  --blurple-hover: #4752c4;
  --blurple-glow: rgba(88, 101, 242, 0.35);
  --green: #23a55a;
  --green-glow: rgba(35, 165, 90, 0.3);
  --amber: #f0b232;
  --danger: #da373c;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 160ms ease;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--blurple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blurple-hover); }

code { font-family: var(--font-mono); font-size: 0.9em; background: var(--bg-elevated); padding: 2px 6px; border-radius: 4px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 15, 19, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; color: var(--text); }
.logo svg { color: var(--blurple); flex-shrink: 0; }
.header-nav { display: flex; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-primary {
  background: var(--blurple); color: #fff;
  box-shadow: 0 4px 14px var(--blurple-glow);
}
.btn-primary:hover:not(:disabled) { background: var(--blurple-hover); transform: translateY(-1px); box-shadow: 0 6px 20px var(--blurple-glow); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-secondary {
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: var(--bg-card); border-color: var(--blurple); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--bg-elevated); }
.btn-copy {
  padding: 8px 12px; font-size: 0.8rem;
  background: var(--bg-elevated); color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-copy:hover { background: var(--bg-card); color: var(--text); border-color: var(--green); }
.btn-loader { display: flex; align-items: center; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero */
.hero { padding: 80px 0; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-content { max-width: 560px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.highlight { background: linear-gradient(135deg, var(--blurple), var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 28px; max-width: 480px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); background: var(--bg-elevated); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }

.hero-visual { position: relative; }
.mockup-window {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.02) inset;
  max-width: 420px; margin: 0 auto;
}
.mockup-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28ca42; }
.mockup-url { flex: 1; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); background: var(--bg); padding: 6px 12px; border-radius: 6px; text-align: center; }
.mockup-content { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mockup-join { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-elevated); border-radius: 8px; border: 1px solid var(--border); transition: all var(--transition); }
.mockup-join:hover { border-color: var(--blurple); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.dot.amber { background: var(--amber); }
.mockup-join span:nth-child(2) { flex: 1; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.mockup-join.blurred { opacity: 0.5; position: relative; }
.mockup-join.blurred .pro-tag { font-size: 0.65rem; font-weight: 700; color: var(--amber); background: rgba(240,178,50,0.15); padding: 2px 8px; border-radius: 999px; margin-left: auto; text-transform: uppercase; letter-spacing: 0.05em; }

/* Pricing */
.pricing { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pricing-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; transition: all var(--transition); }
.pricing-card:hover { border-color: var(--blurple); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.pricing-card.popular { border-color: var(--blurple); box-shadow: 0 12px 40px var(--blurple-glow); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--blurple), var(--green)); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }

.card-header { text-align: center; margin-bottom: 24px; }
.card-header h3 { font-size: 1.125rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.currency { font-size: 1.5rem; font-weight: 600; color: var(--text-muted); }
.amount { font-size: 4rem; font-weight: 800; line-height: 1; }
.period { font-size: 1rem; color: var(--text-muted); margin-bottom: 4px; }

.features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; flex: 1; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text); }
.features li svg { flex-shrink: 0; margin-top: 2px; color: var(--green); width: 18px; height: 18px; }

.card-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: auto; }

.payment-methods { text-align: center; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border); }
.payment-methods p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.method-icons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.method-icons svg { width: 48px; height: 28px; opacity: 0.6; filter: grayscale(1); transition: all var(--transition); }
.method-icons svg:hover { opacity: 1; filter: grayscale(0); }

/* FAQ */
.faq { padding: 80px 0; background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq .container { max-width: 800px; }
.faq h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; text-align: center; margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-list dt { font-weight: 600; font-size: 1rem; cursor: pointer; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: all var(--transition); }
.faq-list dt::after { content: '+'; font-size: 1.25rem; color: var(--blurple); transition: transform var(--transition); }
.faq-list dt:hover { border-color: var(--blurple); }
.faq-list dt[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-list dd { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 250ms ease; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }
.faq-list dd[aria-hidden="false"] { max-height: 200px; padding: 16px 20px 20px; animation: fadeIn 200ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.faq-list dd a { font-weight: 500; }
.faq-list dd code { background: var(--bg); padding: 2px 8px; }

/* Success Page */
.success-main, .cancel-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.success-card, .cancel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; max-width: 480px; width: 100%; text-align: center; }
.success-icon, .cancel-icon { display: inline-flex; margin-bottom: 24px; }
.success-icon svg { color: var(--green); }
.cancel-icon svg { color: var(--amber); }
.success-card h1, .cancel-card h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; }
.success-subtitle { color: var(--text-muted); margin-bottom: 32px; }

.license-key-box { text-align: left; margin-bottom: 32px; padding: 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.license-key-box label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.key-display { display: flex; gap: 10px; }
.license-key-code { flex: 1; font-family: var(--font-mono); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; background: var(--bg); padding: 14px 16px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); word-break: break-all; }
.key-hint { margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); text-align: center; }

.next-steps { text-align: left; margin-bottom: 24px; padding: 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.next-steps h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.next-steps ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.next-steps li { font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.next-steps li strong { color: var(--text); }

.email-sent { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(35,165,90,0.1); border: 1px solid rgba(35,165,90,0.3); border-radius: var(--radius-sm); color: var(--green); font-size: 0.875rem; margin-bottom: 20px; }
.email-sent svg { flex-shrink: 0; }

.support-note { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer p { font-size: 0.8rem; color: var(--text-muted); }
.footer nav { display: flex; gap: 20px; }
.footer a { font-size: 0.8rem; color: var(--text-muted); }
.footer a:hover { color: var(--blurple); }

/* Responsive */
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .key-display { flex-direction: column; }
  .btn-copy { width: 100%; justify-content: center; }
  .footer .container { flex-direction: column; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}