:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --text: #0f1b2d;
  --muted: #55657a;
  --line: #e2e8f0;
  --brand: #0a5bc4;
  --brand-strong: #084aa1;
  --accent: #3d8bff;
  --ok: #1e8e3e;
  --warn: #b06d00;
  --surface: #ffffff;
  --code-bg: #eef3fa;
  --radius: 14px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f182a;
    --text: #e6edf7;
    --muted: #9aabc2;
    --line: #1f2b40;
    --brand: #3d8bff;
    --brand-strong: #6aa8ff;
    --accent: #7cc4ff;
    --ok: #4cc27a;
    --warn: #f0b13c;
    --surface: #111b2e;
    --code-bg: #17233a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.88em var(--mono); background: var(--code-bg); padding: 0.12em 0.4em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.94rem; }
.nav a:not(.btn) { color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px;
  border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; border: 1px solid var(--brand);
  transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--brand-strong); text-decoration: none; transform: translateY(-1px); }
.btn-small { height: 36px; padding: 0 14px; font-size: 0.9rem; color: #fff !important; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.btn-light { background: #fff; color: #0a3f8a; border-color: #fff; }
.btn-light:hover { background: #eaf2ff; }

/* Hero */
.hero { padding: 80px 0 72px; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
  radial-gradient(700px 360px at -10% 10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 20px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

/* Pull request illustration */
.pr { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(10, 40, 90, .35); overflow: hidden; font-size: 0.9rem; }
.pr-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pr-state { background: var(--ok); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 2px 10px;
  border-radius: 999px; }
.pr-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-body { padding: 16px 18px 18px; }
.pr-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin-bottom: 8px; }
.checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.checks li { display: grid; grid-template-columns: 14px 120px 1fr; align-items: center; gap: 10px; }
.checks span:last-child { color: var(--muted); }
.checks .ok, .checks .warn { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.checks .warn { background: var(--warn); }
.add { color: var(--ok); font-style: normal; font-weight: 600; }
.del { color: #d14343; font-style: normal; font-weight: 600; }
.comment { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  margin-top: 8px; }
.comment.bot { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.avatar { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem;
  font-weight: 700; color: #fff; background: #6b7a90; }
.bot .avatar { background: var(--brand); }
.who { font-size: 0.78rem; color: var(--muted); margin-bottom: 2px; }
.comment code { font-size: 0.8rem; }

/* Sections */
.section { padding: 88px 0; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.product p { color: var(--muted); }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.product h3 { font-size: 1.25rem; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.tag-muted { background: var(--code-bg); color: var(--muted); }
.links { display: flex; gap: 20px; margin-top: 18px; font-weight: 600; }
.product-soon { border-style: dashed; background: transparent; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.point h3 { margin-bottom: 6px; }
.point p { color: var(--muted); font-size: 0.95rem; }

.cta { background: linear-gradient(120deg, #0a5bc4, #2f7cf6); color: #fff; padding: 56px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 6px; }
.cta p { color: rgba(255, 255, 255, .85); }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.9rem; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

/* Smaller screens */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 64px 0; }
  .products, .steps, .grid { grid-template-columns: 1fr; }
  .checks li { grid-template-columns: 14px 1fr; }
  .checks li span:last-child { grid-column: 2; margin-top: -4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
