:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --text: #1a1a24;
  --text-muted: #5c5c6e;
  --accent: #5c4ce6;
  --accent-dark: #4638b8;
  --accent-soft: #efedfd;
  --border: #e4e4ec;
  --card: #ffffff;
  --shadow: 0 1px 3px rgba(20, 20, 40, 0.08);
  --radius: 12px;
  --max-width: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121a;
    --bg-soft: #1a1a26;
    --text: #ececf4;
    --text-muted: #a0a0b4;
    --accent: #8d80f5;
    --accent-dark: #a99ff9;
    --accent-soft: #262238;
    --border: #2c2c3c;
    --card: #1a1a26;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo:hover {
  text-decoration: none;
}

.logo .logo-mark {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

.btn-large {
  padding: 13px 28px;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin: 0 auto 18px;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Sections */
section {
  padding: 48px 0;
}

section.alt {
  background: var(--bg-soft);
}

h2 {
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 32px;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card .card-links {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rating {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 6px 0 10px;
}

.rating strong {
  color: var(--text);
}

/* Feature list */
.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.feature-list li strong {
  color: var(--text);
  display: block;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

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

.plan.highlight {
  border-color: var(--accent);
  border-width: 2px;
}

.plan .plan-name {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan .plan-price {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 8px 0 2px;
}

.plan .plan-price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
}

.plan .plan-annual {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.plan ul {
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: grid;
  gap: 8px;
}

.plan ul li {
  padding-left: 20px;
  position: relative;
}

.plan ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--accent);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 560px;
}

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

th {
  background: var(--bg-soft);
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: none;
}

code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 0.87rem;
  line-height: 1.5;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* FAQ */
.faq-group {
  margin-bottom: 36px;
}

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

details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 18px;
  list-style: none;
  position: relative;
  padding-right: 40px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 400;
}

details[open] summary::after {
  content: "–";
}

details .answer {
  padding: 0 18px 16px;
  color: var(--text-muted);
}

details .answer p + p,
details .answer p + ol,
details .answer ol + p {
  margin-top: 10px;
}

details .answer ol,
details .answer ul {
  padding-left: 22px;
}

/* Docs */
.docs-layout h2 {
  margin-top: 40px;
}

.docs-layout h3 {
  margin-top: 26px;
}

.docs-layout p,
.docs-layout ul,
.docs-layout ol {
  margin-bottom: 12px;
}

.docs-layout ul,
.docs-layout ol {
  padding-left: 24px;
  color: var(--text-muted);
}

.docs-layout p {
  color: var(--text-muted);
}

.docs-layout .table-wrap {
  margin: 16px 0;
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 12px 18px;
  font-size: 0.93rem;
  margin: 16px 0;
}

/* How-it-works steps */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Blog */
.post-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

td.win {
  font-weight: 600;
}

/* Testimonials */
.quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  font-style: italic;
  color: var(--text);
}

.quote footer {
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 {
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .site-header .container {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    padding: 48px 0 40px;
  }
}
