:root {
  --blue: #0b5cab;
  --blue-dark: #084a8c;
  --blue-light: #2b7fd4;
  --ink: #10161d;
  --muted: #5b6672;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --border: #e2e8f0;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 92, 171, 0.08);
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f7;
    --muted: #a4b0bd;
    --bg: #0d1117;
    --bg-soft: #131a23;
    --border: #24303d;
    --card: #131a23;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-light); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.brand .logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.9rem;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: radial-gradient(1200px 500px at 70% -10%, rgba(43,127,212,0.14), transparent 60%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .12s ease, background .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }

/* Sections */
section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--muted); max-width: 620px; margin: 0 0 40px; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue-light);
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Pricing */
.pricing { background: var(--bg-soft); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.plan.popular { border-color: var(--blue); box-shadow: var(--shadow); }
.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .price { font-size: 1.8rem; font-weight: 800; margin: 8px 0 4px; }
.plan .price small { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { padding: 6px 0; color: var(--muted); font-size: 0.94rem; padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; color: var(--blue-light); position: absolute; left: 0; font-weight: 700; }
.tag { display: inline-block; background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; align-self: flex-start; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Legal pages */
.legal {
  padding: 56px 0 80px;
  max-width: 780px;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal .muted { color: var(--muted); }
.legal .placeholder {
  background: color-mix(in srgb, #f0b429 22%, transparent);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
}
.legal a { word-break: break-word; }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
