:root {
  --brand-1: #4361ee;
  --brand-2: #7b61ff;
  --ink: #1a1a2e;
  --ink-soft: #3a3d4a;
  --ink-mute: #6b6f7a;
  --surface: #ffffff;
  --bg: #f5f6f8;
  --border: #e4e6eb;
  --radius: 10px;
  --max: 760px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px;
}

header.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.site-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.01em;
}

header.site-header .brand-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}

header.site-header nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

header.site-header nav a {
  color: var(--ink-mute);
  text-decoration: none;
}

header.site-header nav a:hover {
  color: var(--brand-1);
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 28px 0 12px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  font-size: 18px;
  color: var(--ink-mute);
  max-width: 560px;
  margin: 0 auto 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
  background: #f0f4ff;
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(123, 97, 255, 0.12));
  color: var(--brand-1);
  font-size: 16px;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.feature p {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.55;
}

.feature .pro-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  vertical-align: middle;
}

/* ---------- Pricing row ---------- */

.pricing {
  margin-top: 56px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.pricing h2 {
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}

.pricing .price-note {
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: 18px;
}

.pricing .plans {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing .plan {
  min-width: 140px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.pricing .plan .amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.pricing .plan .period {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing .plan.primary {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.06), rgba(123, 97, 255, 0.06));
  border-color: rgba(67, 97, 238, 0.3);
  position: relative;
}

.pricing .plan.primary .best {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffb84d;
  color: #4a2e00;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.pricing .strike {
  text-decoration: line-through;
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 500;
  display: block;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
}

footer.site-footer nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--ink-mute);
  text-decoration: none;
}

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

/* ---------- Legal pages (privacy / terms) ---------- */

article.legal h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

article.legal .updated {
  color: var(--ink-mute);
  font-size: 13px;
  margin-bottom: 32px;
}

article.legal h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
}

article.legal h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 18px;
  margin-bottom: 8px;
}

article.legal p,
article.legal ul {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

article.legal ul {
  padding-left: 20px;
}

article.legal li {
  margin-bottom: 6px;
}

article.legal a {
  color: var(--brand-1);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

article.legal code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  background: #f0f1f4;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero p.tagline {
    font-size: 16px;
  }
  main,
  article {
    padding: 36px 18px;
  }
  header.site-header {
    padding: 16px 18px 0;
  }
}
