:root {
  color-scheme: dark;
  --bg: #15202b;
  --bg-alt: #192734;
  --card: #1c2733;
  --border: #38444d;
  --text: #e7e9ea;
  --muted: #8b98a5;
  --accent: #1d9bf0;
  --accent-dark: #1a8cd8;
  --success: #00ba7c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
}

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: #253341;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(21, 32, 43, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex: 1;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 38px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0 10px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

.hero-preview {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.window-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #0e1620;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #f4212e; }
.dot.yellow { background: #f5b400; }
.dot.green { background: #00ba7c; }

.markdown-sample {
  margin: 0;
  padding: 18px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: #b9c4cd;
  white-space: pre-wrap;
  max-height: 360px;
  overflow: hidden;
}

section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.features h2,
.pricing h2,
.faq h2 {
  text-align: center;
  font-size: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.feature-card h3 {
  font-size: 16px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

kbd {
  background: #0e1620;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
}

.pricing-sub {
  text-align: center;
  color: var(--muted);
  margin-top: -4px;
}

.account-notice {
  max-width: 560px;
  margin: 20px auto 0;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.account-notice a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
}

.interval-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 32px auto 8px;
  background: var(--card);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-btn.active {
  background: var(--accent);
  color: #fff;
}

.save-badge {
  font-size: 11px;
  opacity: 0.85;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.popular-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.price {
  margin: 10px 0 4px;
}

.amount {
  font-size: 30px;
  font-weight: 700;
}

.period {
  color: var(--muted);
  font-size: 13px;
}

.price-limit {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.price-features li {
  padding: 5px 0;
  border-top: 1px solid var(--border);
}

.price-features li:first-child {
  border-top: none;
}

.faq-list {
  max-width: 700px;
  margin: 32px auto 0;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 32px 24px 48px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .nav-links {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
