:root {
  --bg: #000000;
  --surface: #0A0A0A;
  --surface-2: #141414;
  --primary: #FFFFFF;
  --accent: #8B5CF6;
  --accent-muted: rgba(139, 92, 246, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --text-muted: #71717A;
  --radius: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo-icon { font-size: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { filter: brightness(0.9); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-muted) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.badge-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-title { font-size: 64px; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.hero-hint { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* Features */
.features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.feature-icon { font-size: 40px; margin-bottom: 20px; }
.feature-card h3 { font-size: 18px; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-muted); }

/* Pricing */
.pricing { padding: 80px 0 120px; }
.section-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 48px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.plan-featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, var(--surface) 100%); }
.plan-badge { font-size: 13px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 16px; }
.plan-badge-accent { color: var(--accent); }
.plan-price { font-size: 48px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.plan-period { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.plan-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.plan-features li { margin-bottom: 12px; font-size: 15px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; margin-left: 20px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* Auth Layout */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-page { position: relative; width: 100%; max-width: 400px; padding: 20px; }
.auth-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 300px; background: radial-gradient(circle, var(--accent-muted) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}
.auth-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px; text-align: center;
}
.auth-logo { margin-bottom: 32px; }
.auth-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--text-muted); }

.auth-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.auth-method-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }

.tg-widget-wrap { background: var(--surface-2); padding: 12px; border-radius: 8px; display: flex; justify-content: center; }

.auth-divider { display: flex; align-items: center; margin: 16px 0; color: var(--text-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--border); }
.auth-divider span { padding: 0 10px; }

.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); transition: background 0.2s;
}
.oauth-btn:hover { background: var(--border); }

.auth-terms { font-size: 11px; color: var(--text-muted); margin-bottom: 24px; }
.auth-back { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.auth-back:hover { color: var(--text); }

@media (max-width: 768px) {
  .hero-title { font-size: 42px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links a { margin: 0 10px; }
}
