:root {
  --bg: #faf9f5;
  --canvas: #ffffff;
  --panel: #f5f4ee;
  --panel-2: #f0eee6;
  --line: #e6e3da;
  --line-soft: #efece4;
  --ink: #1f1e1d;
  --ink-soft: #3a3833;
  --muted: #6b6a64;
  --faint: #94928a;
  --accent: #c96442;
  --accent-hover: #b5573a;
  --accent-soft: #f4e3da;
  --accent-ink: #8a3e26;
  --success: #2f7d57;
  --shadow-sm: 0 1px 2px rgba(20, 17, 13, 0.04), 0 2px 8px rgba(20, 17, 13, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 17, 13, 0.06), 0 16px 36px rgba(20, 17, 13, 0.08);
  --serif: "Source Serif 4", "Source Serif Pro", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { line-height: 1.6; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ─── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 36px);
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; font-size: 18px; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.site-nav a { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  padding: 7px 14px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); color: #fff; }

/* ─── Layout helpers ──────────────────────────────────────────────────── */
main { padding-bottom: 80px; }
section { padding: clamp(60px, 9vw, 110px) clamp(20px, 4vw, 36px); }
.section-title {
  margin: 0 auto 12px;
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
}
.section-sub {
  margin: 0 auto 56px;
  max-width: 640px;
  color: var(--muted);
  font-size: 16.5px;
  text-align: center;
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(60px, 8vw, 100px);
  text-align: center;
}
.kicker {
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-ink);
}
.hero-sub {
  margin: 0 auto 38px;
  max-width: 600px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-meta {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.btn-lg { padding: 14px 28px; font-size: 15.5px; }

/* ─── Features grid ───────────────────────────────────────────────────── */
.features { max-width: var(--max); margin: 0 auto; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.feature {
  padding: 30px 28px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9b8a8; }
.feature-num {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.feature h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ─── How it works flow ──────────────────────────────────────────────── */
.how { background: var(--panel); }
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
}
.flow-step {
  padding: 22px 20px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}
.flow-step h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.flow-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ─── Hybrid AI ──────────────────────────────────────────────────────── */
.hybrid { max-width: var(--max); margin: 0 auto; }
.engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.engine {
  padding: 28px 24px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.engine:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.engine-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 22px;
  color: var(--accent-ink);
}
.engine h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.engine-tagline {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--accent-ink);
  font-weight: 500;
}
.engine ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.engine ul li + li { margin-top: 4px; }
.engine-cloud .engine-icon { background: #e7f1ee; color: var(--success); }
.engine-cost .engine-icon { background: var(--accent-soft); }
.engine-private .engine-icon { background: #ece9df; color: var(--ink); }
.hybrid-note {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ─── Local AI honest section ────────────────────────────────────────── */
.local-honest { background: var(--panel); }
.local-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 32px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.local-card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  color: var(--ink);
}
.local-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.local-card p:last-child { margin-bottom: 0; }
.local-card em { color: var(--accent-ink); font-style: italic; }

/* ─── Multilingual ───────────────────────────────────────────────────── */
.multilingual { max-width: 720px; margin: 0 auto; text-align: center; }
.multilingual .section-sub { margin-bottom: 0; }

/* ─── Download CTA ───────────────────────────────────────────────────── */
.download {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.download h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.download-sub { margin: 0 0 32px; color: var(--muted); font-size: 16.5px; }
.download-actions { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 22px; }
.download-footnote { margin: 0; color: var(--faint); font-size: 13px; max-width: 540px; margin: 0 auto; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 36px clamp(20px, 4vw, 36px); background: var(--panel); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-name { font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 500; }
.footer-tag { color: var(--muted); font-size: 12.5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--ink-soft); font-size: 13.5px; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 12.5px;
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-nav { justify-content: flex-start; }
}
