:root {
  /* Monochrome ink/paper scale */
  --ink: #18191c;
  --ink-soft: #3c3f46;
  --muted: #71747c;
  --faint: #9a9da4;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --line: #e9e9e6;
  --line-strong: #dcdcd8;

  /* Single restrained accent (the brand blue, slightly calmed) */
  --accent: #3360cf;
  --accent-soft: rgba(51, 96, 207, .08);

  --radius: 12px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(24, 25, 28, .04), 0 18px 40px rgba(24, 25, 28, .06);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.16; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 9px; font-weight: 560; cursor: pointer;
  border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 8px 15px; font-size: .92rem; }
.btn-lg { padding: 12px 20px; font-size: .98rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 640; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-mark { display: inline-flex; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- Hero (typographic) ---------- */
.hero { padding: 116px 0 96px; text-align: center; }
.hero-text { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 560; color: var(--muted);
  border: 1px solid var(--line-strong); padding: 5px 13px 5px 11px; border-radius: 999px; margin-bottom: 30px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 680; letter-spacing: -0.03em; }
.lead { margin-top: 26px; font-size: 1.18rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; justify-content: center; }
.hero-note { margin-top: 22px; font-size: .88rem; color: var(--faint); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 660; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.feature { background: var(--bg); padding: 30px 26px; }
.feature-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; color: var(--ink);
}
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.04rem; font-weight: 600; margin: 16px 0 9px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: .93rem; line-height: 1.58; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink);
  font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: .02em; margin-bottom: 20px;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { color: var(--muted); }

/* ---------- Download ---------- */
.download { text-align: center; }
.download-box {
  max-width: 680px; margin: 0 auto; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: 18px; padding: 64px 36px;
}
.download-box h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 660; }
.download-box > p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }
.download-box .btn { margin-top: 30px; }
.download-box .hero-note { max-width: 46em; margin: 20px auto 0; line-height: 1.6; }
.download-box .hero-note em { color: var(--muted); font-style: normal; font-weight: 560; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 620; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: .93rem; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--faint); font-size: .9rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 88px 28px 96px; }
.legal h1 { font-size: 2rem; font-weight: 660; margin-bottom: 28px; letter-spacing: -0.02em; }
.legal h2 { font-size: 1.1rem; font-weight: 600; margin: 34px 0 10px; }
.legal p { color: var(--muted); }
.legal code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .9em; }
.legal a.back {
  color: var(--muted); font-weight: 540; display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 34px; font-size: .94rem;
}
.legal a.back:hover { color: var(--ink); }
.legal a:not(.back) { color: var(--accent); }
.legal .todo {
  background: var(--bg-alt); border: 1px solid var(--line-strong); border-left: 3px solid var(--muted);
  color: var(--ink-soft); padding: 15px 18px; border-radius: 8px; font-size: .92rem; margin: 22px 0; line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 68px 0; }
  .footer-grid { flex-direction: column; text-align: center; }
}
