:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --panel: #ffffff;
  --panel-alt: #f9fbfe;
  --text: #0d1526;
  --muted: #586a85;
  --border: #e4eaf3;
  --border-strong: #cfd9e8;
  --accent: #c7000b;
  --accent-ink: #ffffff;
  --accent-soft: #fdeced;
  --warm: #c2410c;
  --ok: #0f766e;
  --code-bg: #0d1526;
  --code-head: rgba(255, 255, 255, 0.06);
  --code-text: #dbe7ff;
  --code-muted: #8ea3c6;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.05);
  --shadow-md: 0 10px 30px rgba(13, 21, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 21, 38, 0.12);
  --radius: 14px;
  --topbar-h: 64px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #080d17;
  --bg-soft: #0b1220;
  --panel: #101a2b;
  --panel-alt: #0d1626;
  --text: #e7eefb;
  --muted: #93a4c0;
  --border: #1d2b42;
  --border-strong: #2a3b58;
  --accent: #ff9d9d;
  --accent-ink: #1c0507;
  --accent-soft: #2a1013;
  --warm: #ffb27a;
  --ok: #5eead4;
  --code-bg: #060b14;
  --code-head: rgba(255, 255, 255, 0.05);
  --code-text: #d7e4ff;
  --code-muted: #7f93b5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  background:
    radial-gradient(1100px 520px at 8% -6%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
    radial-gradient(900px 460px at 96% 2%, color-mix(in srgb, var(--warm) 9%, transparent), transparent 58%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code,
pre,
output {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

/* ---------- 顶部导航 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(14px);
}

.topbar-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #0b1220));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.brand-mark.small {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
  vertical-align: -5px;
  margin-right: 6px;
}

.brand-ver {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel-alt);
  padding: 1px 7px;
  border-radius: 999px;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: none;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--panel-alt);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.gh-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gh-btn:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(92deg, var(--accent), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 18px 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.sub {
  margin: 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 15px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-md);
}

.btn.ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.badges li {
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--panel-alt));
  box-shadow: var(--shadow-lg);
  padding: 18px 20px 20px;
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-card-title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.hero-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.hero-input input {
  font-size: 15px;
  padding: 11px 13px;
}

.hero-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  display: grid;
  gap: 9px;
}

.hero-line {
  margin: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.hero-line .k {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hero-line output {
  display: block;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14.5px;
  word-break: break-word;
}

.hero-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ---------- 通用分节 ---------- */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.lede code {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---------- 特性网格 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature-no {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.feature > code,
.card-head code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* 模块卡整卡跳转 + 文档链接 */
a.feature {
  display: block;
  padding-bottom: 34px;
  color: inherit;
  text-decoration: none;
}

a.feature:hover,
a.feature:focus-visible {
  text-decoration: none;
}

a.feature::after {
  content: "模块文档 ↗";
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

a.feature:hover::after,
a.feature:focus-visible::after {
  opacity: 1;
  transform: none;
}

.pkg-link {
  color: inherit;
  text-decoration: none;
}

.pkg-link code {
  transition: background 0.15s ease, color 0.15s ease;
}

.pkg-link:hover code,
.pkg-link:focus-visible code {
  background: color-mix(in srgb, var(--accent) 24%, var(--panel));
  color: var(--accent);
}

.pkg-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* ---------- 演示区 ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
  gap: 18px;
}

/* pinyin4cj 功能示例区 */
.demo-subhead {
  margin: 36px 0 14px;
  padding-top: 12px;
}

.demo-subhead h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.demo-subhead p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.pinyin4cj-grid .card.mini {
  padding: 16px;
}

.card.mini h3 {
  font-size: 15px;
}

.card.mini .hint {
  font-size: 12.5px;
}

.card.mini .row {
  margin-top: 12px;
}

.card.mini output {
  margin-top: 12px;
  font-size: 12.5px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.card-head h3 {
  margin: 0;
  font-size: 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 12px;
}

.row.presets {
  align-items: center;
  gap: 8px;
}

.grow {
  flex: 1 1 200px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.row label:not(.grow) input {
  width: 84px;
}

button {
  padding: 9px 14px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

button:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  border-color: var(--accent);
}

.chip-btn {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--panel-alt);
  color: var(--muted);
  border-color: var(--border);
}

.chip-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

output,
.chips {
  display: block;
  margin-top: 12px;
  padding: 11px 12px;
  min-height: 42px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  background: var(--panel-alt);
  color: var(--text);
  font-size: 13.5px;
  word-break: break-word;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
}

.hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 快速开始 ---------- */

.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 18px;
}

.start-col {
  display: grid;
  gap: 16px;
  align-content: start;
}

.code {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--code-head);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--code-muted);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.code-head .copy {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--code-muted);
  font-size: 11px;
  font-weight: 500;
}

.code-head .copy:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.code-head .copy.copied {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 55%, transparent);
}

.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--code-text);
  font-size: 12.8px;
  line-height: 1.7;
}

.code pre code {
  font-family: inherit;
}

.callout {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13.5px;
}

.callout code,
.quality-notes code {
  padding: 1px 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  color: var(--accent);
  font-size: 12px;
}

/* ---------- API 表 ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--panel-alt);
}

tbody td code {
  color: var(--accent);
  font-size: 12.5px;
  white-space: nowrap;
}

tbody td:nth-child(2) code {
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------- 工程质量 ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.quality-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.quality-notes p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 13px;
}

.quality-notes strong {
  color: var(--text);
}

/* ---------- 文档 ---------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.doc-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.doc-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-md);
}

.doc-card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  color: var(--accent);
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 实现步骤 ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.step-no {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.steps code {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
}

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-brand {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 12.5px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 52px;
  }

  .hero-card {
    max-width: 560px;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .hero,
  .section,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero {
    padding-top: 40px;
  }

  .demo-grid,
  .start-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid,
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .feature,
  .doc-card {
    padding: 16px;
  }

  .feature p,
  .doc-card p {
    font-size: 12.5px;
  }

  .hero-line {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature,
  .doc-card,
  .btn {
    transition: none;
  }

  .feature:hover,
  .doc-card:hover,
  .btn:hover {
    transform: none;
  }
}