:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #10223d;
  --muted: #5b6b85;
  --line: #dbe3f0;
  --accent: #1745c5;
  --accent-ink: #ffffff;
  --accent-soft: #e4ecff;
  --teal: #079bba;
  --teal-soft: #d8f6f2;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1626;
    --surface: #152238;
    --ink: #e7edf8;
    --muted: #93a3bd;
    --line: #28364c;
    --accent: #5b8aff;
    --accent-ink: #0b1626;
    --accent-soft: #16294c;
    --teal: #3bd6c6;
    --teal-soft: #113331;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; }
.lang {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
}
.lang:hover { color: var(--ink); border-color: var(--muted); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
}
.logo-hero {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 0 28px;
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(16, 34, 61, 0.22);
}
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
}
.cta:hover { filter: brightness(1.08); }

/* Conversion example illustration */
.convert {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 40px rgba(16, 34, 61, 0.08);
}
.convert-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 6px;
}
.chip-md { background: var(--teal-soft); color: var(--teal); }
.chip-docx { background: var(--accent-soft); color: var(--accent); }
.preview {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  color: var(--muted);
}
.preview p { margin: 4px 0; }
.preview.rendered {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
}
.preview.rendered .h { font-weight: 700; margin: 2px 0 6px; }
.arrow-row {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  color: var(--teal);
}
.targets {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.active {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 32px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 { font-size: 18px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.icon svg { width: 20px; height: 20px; }

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.path {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}
.path h3 { margin: 0 0 4px; font-size: 20px; }
.path .who { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.path ol { margin: 0; padding-left: 20px; }
.path li { margin: 4px 0; }

/* Roadmap */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.timeline .m { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .when { color: var(--muted); font-size: 14px; white-space: nowrap; }
.timeline .done .m, .timeline .done .when { color: var(--teal); }
.timeline .now { background: var(--accent-soft); border-radius: 8px; padding-left: 10px; padding-right: 10px; }
.timeline .now .m { color: var(--accent); }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 48px; }
  .features { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .convert { padding: 16px; }
  .timeline li { grid-template-columns: 44px 1fr; }
  .timeline .when { grid-column: 2; }
}
