:root {
  --bg: #070b14;
  --surface: #0f1624;
  --surface-2: #151e31;
  --border: #23304a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --indigo: #6366f1;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top center, #111b33 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.brand img { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover { color: var(--text); }

.hero {
  text-align: center;
  padding: 64px 0 42px;
}

.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  margin: 0 auto 16px;
  max-width: 780px;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto 28px;
}

.btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); border-color: #475569; }

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-color: transparent;
  color: #fff;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #0d9488);
  border-color: transparent;
  color: #022c22;
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: transparent;
  color: #271001;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin: 34px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-icon { width: 44px; height: 44px; }

.price-tag {
  font-size: 20px;
  font-weight: 800;
}

.price-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.bundle-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 28px 0 46px;
}

.section-title {
  font-size: 26px;
  margin: 42px 0 18px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.footer {
  margin-top: 64px;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.ks-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.ks-modal {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ks-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
}

.ks-modal-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
}

.ks-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin: 34px 0;
}

.article-wrap {
  max-width: 780px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-wrap h1 {
  margin-left: 0;
  text-align: left;
}

.article-wrap h2 {
  font-size: 22px;
  margin: 14px 0 4px;
}

.article-wrap pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
}
