:root {
  --accent: #1677ff;
  --accent-strong: #0866e9;
  --accent-soft: #eaf3ff;
  --ink: #0d1117;
  --ink-2: #333b47;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: rgba(13, 17, 23, 0.09);
  --line-strong: rgba(13, 17, 23, 0.14);
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --surface-blue: #f5f9ff;
  --dark: #0b0d12;
  --dark-2: #11151d;
  --green: #12915f;
  --green-soft: #e8f8f0;
  --red: #c33b4c;
  --red-soft: #fff0f2;
  --orange: #ff8a34;
  --graph-main: #2f80ed;
  --graph-feature: #33c968;
  --graph-experiment: #ff9f1a;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 10px 28px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 40px 90px rgba(16, 24, 40, 0.13), 0 10px 24px rgba(16, 24, 40, 0.08);
  --mock-bg: #f8f9fb;
  --mock-surface: #ffffff;
  --mock-surface-2: #f2f4f7;
  --mock-line: #e7eaf0;
  --mock-line-2: #dfe5ec;
  --mock-ink: #11151a;
  --mock-ink-2: #252b33;
  --mock-muted: #69717f;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--surface); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img, svg { max-width: 100%; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 120px 0; }

:focus-visible {
  outline: 3px solid rgba(22, 119, 255, 0.42);
  outline-offset: 4px;
  border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; letter-spacing: -0.025em; font-size: 20px; }
.brand-mark, .final-mark { width: 30px; height: 30px; display: inline-block; border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 8px 24px rgba(13,17,23,.14); }
.button-primary:hover { background: #1d2430; box-shadow: 0 10px 28px rgba(13,17,23,.18); }
.button-secondary { color: var(--ink); background: rgba(255,255,255,.82); border-color: var(--line-strong); }
.button-secondary:hover { background: #fff; border-color: rgba(13,17,23,.23); }
.button-small { min-height: 38px; padding: 0 15px; border-radius: 11px; font-size: 13px; }
.button-large { min-height: 58px; padding-inline: 24px; border-radius: 16px; }
.button .apple-mark { font-size: 22px; line-height: 1; }
.button span:last-child { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.button small { font-size: 9px; font-weight: 520; opacity: .75; margin-bottom: 2px; }

.hero { padding-top: 80px; padding-bottom: 126px; background: radial-gradient(circle at 78% 23%, rgba(22,119,255,.095), transparent 26%), linear-gradient(#fff, #fbfcfe); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, .84fr); align-items: center; gap: 64px; }
.hero-copy { max-width: 650px; }
.hero h1 { margin: 0; font-size: clamp(56px, 6.1vw, 86px); line-height: .96; letter-spacing: -.064em; font-weight: 760; }
.hero-lede { margin: 30px 0 0; max-width: 620px; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.52; letter-spacing: -.02em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.hero-visual { min-height: 650px; display: flex; align-items: center; justify-content: center; position: relative; perspective: 1400px; }
.product-frame { border: 1px solid rgba(14,20,29,.09); box-shadow: var(--shadow-lg); overflow: hidden; }
.phone-shell { width: 352px; height: 700px; padding: 6px; border-radius: 57px; background: linear-gradient(145deg, #252a31 0%, #0d1014 42%, #1b1f25 100%); border: 1px solid rgba(9,12,16,.5); position: relative; transform: rotateY(-3deg) rotateX(.5deg) rotateZ(.55deg); box-shadow: 0 52px 110px rgba(16,24,40,.20), 0 16px 36px rgba(16,24,40,.13), inset 0 1px 1px rgba(255,255,255,.12); }
.phone-shell::after { content: ""; position: absolute; inset: 6px; border-radius: 50px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.phone-speaker { position: absolute; z-index: 4; top: 17px; left: 50%; transform: translateX(-50%); width: 92px; height: 25px; border-radius: 18px; background: #090b0e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.phone-screen { height: 100%; border-radius: 50px; overflow: hidden; background: var(--mock-bg); color: var(--mock-ink); }
.mock-status { height: 45px; padding: 13px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; font-size: 10px; font-weight: 720; }
.mock-nav { height: 42px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid #e7eaf0; font-size: 13px; background: rgba(248,249,251,.9); }
.mock-nav span:last-child { justify-self: end; letter-spacing: 2px; color: #69717f; }
.mock-back { font-size: 27px; line-height: 1; color: var(--accent); }
.repo-summary { padding: 21px 18px 14px; display: flex; justify-content: space-between; align-items: end; }
.repo-summary div { display: flex; flex-direction: column; gap: 5px; }
.repo-summary strong { font-size: 25px; letter-spacing: -.045em; }
.repo-summary div span { color: #8a919c; font: 500 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.branch-pill { padding: 6px 9px; background: #eaf3ff; color: var(--accent); border-radius: 9px; font-size: 9px; font-weight: 720; }
.mobile-history-controls { height: 42px; padding: 0 14px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scope-switch { display: inline-flex; padding: 2px; border: 1px solid #dfe5ec; border-radius: 11px; background: #f2f4f7; }
.scope-switch span { min-width: 54px; padding: 6px 9px; border-radius: 8px; text-align: center; color: #7d8591; font-size: 8px; font-weight: 700; }
.scope-switch span.active { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(16,24,40,.08); }
.graph-actions { display: inline-flex; overflow: hidden; border: 1px solid #dfe5ec; border-radius: 10px; background: #fff; color: #697482; }
.graph-actions span { width: 28px; height: 26px; display: grid; place-items: center; border-left: 1px solid #e7ebf0; font-size: 13px; line-height: 1; }
.graph-actions span:first-child { border-left: 0; }
.git-history-canvas { --graph-content-start: 78px; position: relative; isolation: isolate; }
.git-history-svg { position: absolute; z-index: 2; top: 0; left: 0; width: var(--graph-content-start); height: 100%; overflow: visible; pointer-events: none; }
.git-history-rows { position: relative; z-index: 1; width: 100%; }
.mobile-git-canvas { height: 450px; overflow: hidden; background: rgba(255,255,255,.96); border-top: 1px solid #e8ecf1; }
.git-graph-branch { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.history-graph-svg .git-graph-branch { stroke-width: 2.45; }
.git-graph-branch-main { color: var(--graph-main); }
.git-graph-branch-feature { color: var(--graph-feature); }
.git-graph-branch-experiment { color: var(--graph-experiment); }
.git-graph-node { fill: currentColor; stroke: var(--mock-bg); stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.git-graph-node-anchor { stroke-width: 1.9; }
.git-graph-node-main { color: var(--graph-main); }
.git-graph-node-feature { color: var(--graph-feature); }
.git-graph-node-experiment { color: var(--graph-experiment); }
.git-graph-head-ring { fill: none; stroke: var(--graph-main); stroke-width: 2.2; opacity: .52; vector-effect: non-scaling-stroke; }
.mobile-commits { height: 450px; display: grid; grid-template-rows: repeat(10, 45px); }
.mobile-commits article { min-width: 0; position: relative; padding: 6px 10px 5px var(--graph-content-start); display: flex; flex-direction: column; justify-content: center; }
.mobile-commits article::after { content: ""; position: absolute; left: var(--graph-content-start); right: 0; bottom: 0; height: 1px; background: #f0f2f5; }
.mobile-commits article:last-child::after { display: none; }
.mobile-commit-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #252b33; font-size: 9.4px; font-weight: 650; letter-spacing: -.01em; }
.mobile-commits small { min-height: 13px; margin-top: 3px; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; color: #9aa2ad; font-size: 7.4px; }
.graph-tag { display: inline-block; max-width: 86px; padding: 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid currentColor; border-radius: 5px; font: 650 7.2px ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.25; }
.tag-main { color: var(--graph-main); background: rgba(47,128,237,.08); }
.tag-feature { color: #15984a; background: rgba(51,201,104,.09); }
.tag-experiment { color: #c87300; background: rgba(255,159,26,.10); }
.tag-head { color: #a96900; background: rgba(255,159,26,.08); }
.tag-version { color: #9f42bd; background: rgba(169,72,196,.08); }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.graph-actions .icon { width: 14px; height: 14px; }
.history-actions .icon { width: 15px; height: 15px; }
.cap-icon .icon { width: 20px; height: 20px; }
.file-icon-svg { width: 28px; height: 28px; }

.section-heading h2, .feature-copy h2, .final-cta h2 { margin: 0; font-size: clamp(44px, 5.1vw, 72px); line-height: 1.02; letter-spacing: -.055em; }

.features { padding: 80px 0 40px; }
.feature-story { display: grid; grid-template-columns: .74fr 1.26fr; align-items: center; gap: 74px; padding: 92px 0; }
.feature-story + .feature-story { border-top: 1px solid var(--line); }
.feature-reverse { grid-template-columns: 1.26fr .74fr; }
.feature-reverse .feature-copy { order: 2; }
.feature-reverse .product-card { order: 1; }
.feature-copy { max-width: 420px; }
.feature-copy h2 { font-size: clamp(42px, 4.3vw, 62px); }
.feature-copy > p:last-child { margin: 23px 0 0; font-size: 18px; line-height: 1.62; color: var(--muted); letter-spacing: -.018em; }
.product-card { min-height: 500px; border-radius: var(--radius-lg); background: #f8fafc; }
/* Changed files preview — mirrors Knot's dense iOS Commit Detail layout. */
.changed-detail-mockup {
  min-height: 610px;
  padding: 0 22px 22px;
  overflow: hidden;
  color: #11151a;
  background: #fbfcfe;
  border-color: rgba(14,20,29,.09);
  box-shadow: 0 34px 70px rgba(16,24,40,.12);
}
.commit-detail-header {
  height: 64px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-inline: -22px;
  padding: 0 22px;
  color: #11151a;
  border-bottom: 1px solid #e7eaf0;
  background: #fbfcfe;
}
.commit-detail-header strong { justify-self: center; font-size: 15px; letter-spacing: -.02em; }
.commit-back { color: #11151a; font-size: 35px; font-weight: 250; line-height: 1; transform: translateY(-1px); }
.commit-meta-card {
  margin-top: 16px;
  padding: 16px 17px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.commit-author { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.author-dot { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #11151a; font-size: 14px; font-weight: 700; border: 1px solid #e3e8ef; background: #f2f4f7; }
.commit-author p { min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.commit-author strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.commit-author small { color: #8a919c; font-size: 9px; }
.actions-chip { padding: 7px 10px; border: 1px solid #dfe5ec; border-radius: 10px; color: #333b47; font-size: 10px; background: #fff; }
.commit-meta-card h3 { margin: 15px 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.015em; }
.commit-chips { display: flex; gap: 7px; }
.commit-chips span { padding: 4px 8px; border-radius: 7px; color: #667085; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; background: #eef1f5; }
.commit-chips .merge-chip { color: #7c3aed; background: #f1e8ff; }
.changed-summary { min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 0 6px; border-bottom: 1px solid #e3e8ef; }
.changed-summary strong { font-size: 14px; }
.changed-summary span { font: 650 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.change-add, .file-count.add { color: #12915f; }
.change-delete, .file-count.delete { color: #c33b4c; }
.changed-summary em { margin-left: auto; color: #1677ff; font-size: 11px; font-style: normal; font-weight: 650; }
.changed-files { margin-inline: -8px; }
.changed-file-row {
  min-height: 55px;
  position: relative;
  display: grid;
  grid-template-columns: 4px 22px 30px minmax(0,1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 0;
  border-bottom: 1px solid #e7eaf0;
}
.changed-file-row.compact { min-height: 50px; }
.file-accent { align-self: stretch; width: 4px; border-radius: 0 2px 2px 0; background: #ff8a34; }
.file-accent.added { background: #12915f; }
.file-chevron { color: #333b47; font-size: 24px; font-weight: 300; text-align: center; transform: translateY(-1px); }
.changed-file-row p { min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.changed-file-row p strong, .changed-file-row p small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.changed-file-row p strong { color: #11151a; font-size: 12px; font-weight: 650; }
.changed-file-row p small { color: #98a2b3; font: 500 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.file-count { font: 650 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.status { min-width: 58px; padding: 4px 7px; border-radius: 8px; text-align: center; font-size: 9px; font-weight: 650; }
.status.modified { color: #b25e00; background: rgba(255,138,52,.14); }
.status.added { color: #12915f; background: rgba(18,145,95,.12); }
.inline-diff {
  margin: 0 0 8px 54px;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.diff-hunk { padding: 8px 10px; color: #667085; border-bottom: 1px solid #e7eaf0; font: 600 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.diff-line { min-height: 22px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; font: 500 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.diff-line span { color: #98a2b3; text-align: right; padding-right: 9px; user-select: none; }
.diff-line code { min-width: 0; overflow: hidden; text-overflow: clip; white-space: nowrap; color: #333b47; }
.diff-line.delete { background: rgba(195,59,76,.08); }
.diff-line.delete code { color: #c33b4c; }
.diff-line.add { background: rgba(18,145,95,.08); }
.diff-line.add code { color: #12915f; }

.history-card { padding: 20px; min-height: 500px; background: linear-gradient(180deg, #fbfcfe, #f2f6fb); }
.history-toolbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border: 1px solid #e4e9ef; border-radius: 18px 18px 0 0; background: rgba(255,255,255,.94); }
.history-scope { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 11px; background: #f1f4f8; }
.history-scope span { padding: 7px 11px; border-radius: 8px; color: #88919d; font-size: 10px; font-weight: 700; }
.history-scope span.active { background: #fff; color: var(--accent); box-shadow: 0 1px 5px rgba(16,24,40,.08); }
.history-actions { display: flex; overflow: hidden; border: 1px solid #e0e5eb; border-radius: 10px; color: #687381; background: #fff; }
.history-actions span { width: 34px; height: 30px; display: grid; place-items: center; border-left: 1px solid #e7ebef; font-size: 14px; }
.history-actions span:first-child { border-left: 0; }
.history-canvas { --graph-content-start: 108px; height: 500px; position: relative; border: 1px solid #e4e9ef; border-top: 0; border-radius: 0 0 18px 18px; overflow: hidden; background: #fff; }
.history-commits { height: 500px; display: grid; grid-template-rows: repeat(10, 50px); }
.history-commits > div { min-width: 0; position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 0 18px 0 var(--graph-content-start); }
.history-commits > div::after { content: ""; position: absolute; left: var(--graph-content-start); right: 0; bottom: 0; height: 1px; background: #edf1f4; }
.history-commits > div:last-child::after { display: none; }
.history-commits p { min-width: 0; margin: 0; }
.history-commits strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: -.01em; }
.history-commits small { min-height: 18px; margin-top: 5px; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; color: #9099a6; font-size: 9px; }
.history-commits .experimental-commit p, .history-commits .experimental-commit code { opacity: .58; }
.history-commits code { color: #a1a9b4; font: 500 9px ui-monospace, SFMono-Regular, Menlo, monospace; }



.capabilities { background: #fbfcfd; }
.section-heading { max-width: 780px; }
.section-heading h2 { font-size: clamp(42px, 4.5vw, 64px); }
.section-heading > p:last-child { color: var(--muted); }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
.capability-grid article { min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.cap-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 18px; font-weight: 700; }
.capability-grid h3 { margin: 0 0 11px; font-size: 19px; letter-spacing: -.03em; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.pricing { background: var(--surface); }
.centered { margin-inline: auto; text-align: center; }
.centered > p:last-child { max-width: 590px; margin: 22px auto 0; font-size: 17px; line-height: 1.6; }
.pricing-grid { max-width: 820px; margin: 54px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; padding: 32px; border: 1px solid var(--line-strong); border-radius: 26px; background: #fff; display: flex; flex-direction: column; min-height: 330px; }
.price-card.featured { border-color: rgba(22,119,255,.24); box-shadow: 0 18px 48px rgba(22,119,255,.1); }
.price-card > p:first-of-type { margin: 0 0 22px; font-size: 15px; font-weight: 720; }
.price { display: flex; align-items: baseline; gap: 9px; margin-bottom: 17px; }
.price > span { font-size: 44px; font-weight: 760; letter-spacing: -.055em; }
.price small { color: var(--muted); font-size: 12px; }
.price-card > p:nth-of-type(2) { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.price-card .button { margin-top: auto; width: 100%; }
.value-badge { position: absolute; right: 23px; top: 23px; padding: 6px 9px; background: var(--accent-soft); color: var(--accent); border-radius: 9px; font-size: 9px; font-weight: 760; }
.pricing-note { margin: 18px 0 0; text-align: center; color: var(--muted-2); font-size: 11px; }

.final-cta { padding: 150px 0 160px; background: linear-gradient(180deg, #f8fbff, #fff); }
.final-cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final-mark { width: 64px; height: 64px; margin-bottom: 28px; border-radius: 15px; }
.final-cta h2 { font-size: clamp(52px, 6vw, 82px); }
.final-cta p { margin: 21px 0 28px; color: var(--muted); font-size: 18px; }

.site-footer { padding: 68px 0 28px; background: #f7f8fa; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 46px; }
.footer-brand p { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-grid strong { margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8b929e; }
.footer-grid a:not(.brand) { color: #58616e; font-size: 13px; }
.footer-grid a:not(.brand):hover { color: var(--ink); }
.footer-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: #9299a4; font-size: 10px; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr 390px; gap: 34px; }
  .hero-visual { min-height: 590px; }
  .phone-shell { transform: scale(.9) rotateY(-5deg) rotateZ(1deg); }
  .feature-story, .feature-reverse { grid-template-columns: 1fr; gap: 42px; }
  .feature-reverse .feature-copy, .feature-reverse .product-card { order: initial; }
  .feature-copy { max-width: 650px; }
  .product-card { min-height: 470px; }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 86px 0; }
  .header-actions .button-small { min-height: 36px; }
  .hero { padding-top: 62px; padding-bottom: 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: clamp(48px, 14.4vw, 68px); }
  .hero-lede { font-size: 18px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 180px; }
  .hero-visual { min-height: 565px; margin-top: 6px; }
  .phone-shell { transform: scale(.82) rotateZ(0deg); transform-origin: center; }
  .feature-copy h2, .section-heading h2 { font-size: clamp(39px, 12vw, 52px); }
  .features { padding-top: 32px; }
  .feature-story { padding: 68px 0; }
  .feature-copy > p:last-child { font-size: 16px; }
  .product-card { min-height: 410px; border-radius: 24px; }
  .changed-detail-mockup { min-height: 590px; padding-inline: 14px; }
  .commit-detail-header { margin-inline: -14px; padding-inline: 14px; }
  .commit-meta-card { padding: 14px; }
  .inline-diff { margin-left: 46px; }
  .history-canvas { --graph-content-start: 92px; }
  .history-commits > div { padding-right: 12px; }
  .history-commits code { display: none; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 190px; }
  .cap-icon { margin-bottom: 30px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 300px; }
  .final-cta { padding: 112px 0 120px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; flex: none; }
  .hero-visual { min-height: 520px; }
  .phone-shell { transform: scale(.75); }
  .product-card { min-height: 380px; }
  .changed-file-row { grid-template-columns: 4px 18px 26px minmax(0,1fr) auto auto; gap: 6px; }
  .changed-file-row .file-icon-svg { width: 24px; height: 24px; }
  .changed-file-row .file-count.delete { display: none; }
  .changed-file-row .status { display: none; }
  .inline-diff { margin-left: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.site-header.is-scrolled {
  border-bottom-color: rgba(13, 17, 23, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.04);
}


html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s ease, transform .62s cubic-bezier(.2,.72,.2,1);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
