/* ── Variables ───────────────────────────────────────── */
:root {
  --bg-primary:    #0d1117;
  --bg-secondary:  #161b22;
  --bg-tertiary:   #1c2333;
  --bg-hover:      #21262d;
  --text-primary:  #e6edf3;
  --text-secondary:#8b949e;
  --accent:        #58a6ff;
  --accent-hover:  #79c0ff;
  --border:        #30363d;
  --radius:        8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}
[data-theme="light"] {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f6f8fa;
  --bg-tertiary:   #eef1f5;
  --bg-hover:      #e2e6eb;
  --text-primary:  #1f2328;
  --text-secondary:#656d76;
  --accent:        #0969da;
  --accent-hover:  #0550ae;
  --border:        #d1d9e0;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Header ─────────────────────────────────────────── */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  position: sticky; top: 0; z-index: 10;
}
.header-brand {
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--text-primary); text-decoration: none;
}
.header-nav { display: flex; align-items: center; gap: 12px; }
.header-link {
  font-size: 14px; color: var(--text-secondary);
  padding: 6px 12px; border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.header-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-secondary);
  width: 36px; height: 36px; border-radius: var(--radius);
  cursor: pointer; transition: color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text-primary); background: var(--bg-hover); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  max-width: 820px; margin: 0 auto;
  padding: 80px 24px 60px; text-align: center;
}
.hero-icon { font-size: 72px; margin-bottom: 16px; line-height: 1; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: 15px;
  font-weight: 600; text-decoration: none; transition: background .2s, transform .1s;
  border: none; cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn svg { flex-shrink: 0; }

/* ── Features ────────────────────────────────────────── */
.features {
  max-width: 960px; margin: 0 auto;
  padding: 0 24px 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color .2s, transform .15s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ── Commands Section ────────────────────────────────── */
.commands {
  max-width: 820px; margin: 0 auto;
  padding: 0 24px 80px;
}
.commands h2 {
  font-size: 28px; font-weight: 700; margin-bottom: 8px; text-align: center;
}
.commands > p {
  color: var(--text-secondary); text-align: center;
  margin-bottom: 32px; font-size: 15px;
}
.cmd-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.cmd {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
}
.cmd code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px; font-weight: 600; color: var(--accent);
  white-space: nowrap;
}
.cmd span { font-size: 13px; color: var(--text-secondary); }

/* ── CTA ─────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 60px 24px 80px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.cta p { color: var(--text-secondary); margin-bottom: 28px; font-size: 15px; }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  text-align: center; padding: 24px;
  color: var(--text-secondary); font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ── Pricing ─────────────────────────────────────────── */
.pricing {
  max-width: 900px; margin: 0 auto;
  padding: 80px 24px 60px;
}
.pricing-header {
  text-align: center; margin-bottom: 48px;
}
.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.4); }
  50% { box-shadow: 0 0 0 10px rgba(249,115,22,0); }
}
.pricing-header h2 {
  font-size: 32px; font-weight: 800; margin-bottom: 10px;
}
.pricing-header p {
  color: var(--text-secondary); font-size: 16px;
  max-width: 520px; margin: 0 auto;
}
.pricing-header p strong { color: var(--accent); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px 32px;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .2s, box-shadow .25s;
}
.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(170deg, var(--bg-secondary) 60%, rgba(88,166,255,.06) 100%);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 30px rgba(88,166,255,.12);
}
[data-theme="light"] .pricing-card-featured {
  background: linear-gradient(170deg, var(--bg-secondary) 60%, rgba(9,105,218,.05) 100%);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 30px rgba(9,105,218,.08);
}

.pricing-card-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 12px;
  white-space: nowrap;
  text-transform: uppercase;
}
.featured-badge {
  background: linear-gradient(135deg, #f97316, #ef4444) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.pricing-card-icon {
  font-size: 42px; margin-bottom: 8px;
}
.pricing-card h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 6px;
}
.pricing-desc {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 20px;
}

.pricing-amount {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 24px;
}
.pricing-value {
  font-size: 44px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-unit {
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
}

.pricing-features {
  list-style: none; margin: 0 0 28px; padding: 0;
  flex: 1;
}
.pricing-features li {
  font-size: 14px; padding: 6px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }

.btn-pricing {
  width: 100%; justify-content: center;
  font-size: 16px; padding: 14px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn-pricing:hover {
  background: linear-gradient(135deg, var(--accent-hover), #6d28d9);
  box-shadow: 0 4px 20px rgba(88,166,255,.3);
  color: #fff;
}

.pricing-note {
  text-align: center; margin-top: 32px;
  color: var(--text-secondary); font-size: 13px;
}

/* ── Community ───────────────────────────────────────── */
.community {
  max-width: 820px; margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}
.community h2 {
  font-size: 28px; font-weight: 700; margin-bottom: 8px;
}
.community p {
  color: var(--text-secondary); margin-bottom: 28px; font-size: 15px;
}

.btn-discord {
  background: #5865F2; color: #fff;
}
.btn-discord:hover {
  background: #4752C4; color: #fff;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 48px 16px 40px; }
  .hero-icon { font-size: 52px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .btn { padding: 10px 18px; font-size: 14px; }
  .features { padding: 0 16px 60px; }
  .commands { padding: 0 16px 60px; }
  .commands h2 { font-size: 22px; }
  .pricing { padding: 60px 16px 40px; }
  .pricing-header h2 { font-size: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-value { font-size: 36px; }
  .community { padding: 40px 16px 60px; }
  .community h2 { font-size: 22px; }
}
