:root {
  color-scheme: light;
  --canvas: #faf9f5;
  --ink: #141413;
  --muted: #67635e;
  --primary: #cc785c;
  --primary-active: #a9583e;
  --on-dark: #faf9f5;
  --on-dark-muted: #c2bcb2;
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-dark: #181715;
  --hairline: #e6dfd8;
  --content-width: 1240px;
  --page-gutter: clamp(22px, 5.5vw, 84px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #e9baa9; color: var(--ink); }

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content-width));
  min-height: 88px;
  margin: 0 auto;
  padding: 18px var(--page-gutter);
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 166px; height: auto; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  color: var(--muted);
  font-size: 14px;
}

.site-header nav > a:not(.button):focus-visible,
.site-footer nav a:focus-visible { border-radius: 2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 140ms ease, transform 140ms ease;
}

.button:active { transform: translateY(1px); }
.button-primary { background: var(--primary-active); color: #fffdf9; }
.button-primary:hover { background: #914b35; }
.button-light { background: var(--canvas); color: var(--ink); }
.button-light:hover { background: #fff; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) var(--page-gutter) 0;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  inset: -150px -10% 7%;
  background:
    radial-gradient(ellipse at 50% 22%, rgb(204 120 92 / 14%), transparent 42%),
    radial-gradient(ellipse at 50% 52%, #f5f0e8 0%, rgb(245 240 232 / 0%) 68%);
  animation: warm-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-copy { position: relative; max-width: 850px; margin: 0 auto 48px; }
.hero-copy > .eyebrow { animation: hero-copy-arrive 640ms 40ms cubic-bezier(.16,1,.3,1) both; }
.hero-copy > h1 { animation: hero-copy-arrive 700ms 120ms cubic-bezier(.16,1,.3,1) both; }
.hero-copy > .hero-description { animation: hero-copy-arrive 700ms 210ms cubic-bezier(.16,1,.3,1) both; }
.hero-copy > .hero-actions { animation: hero-copy-arrive 700ms 300ms cubic-bezier(.16,1,.3,1) both; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary-active);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3, p, figure { margin-top: 0; }

h1, h2 {
  font-family: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 18px;
  font-size: clamp(46px, 6.1vw, 78px);
  line-height: 1.02;
}

.hero-word-rotator {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  width: 2.85em;
  padding: 0 .02em .05em;
  vertical-align: baseline;
}

.hero-word-rotator::before {
  position: absolute;
  z-index: -1;
  inset: 16% 0 2%;
  border-radius: .12em;
  background: rgb(204 120 92 / 10%);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-word-wash 3s cubic-bezier(.16,1,.3,1) infinite;
}

.hero-word-rotator::after {
  position: absolute;
  right: 0;
  bottom: .02em;
  left: 0;
  height: .035em;
  border-radius: 999px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-word-line 3s cubic-bezier(.16,1,.3,1) infinite;
}

.hero-word {
  grid-area: 1 / 1;
  color: var(--primary-active);
  font-weight: 400;
  opacity: 0;
  transform: translateY(.42em) rotate(2deg);
  transform-origin: left bottom;
  will-change: opacity, transform;
  animation: hero-word-cycle 12s cubic-bezier(.16,1,.3,1) infinite;
}

.hero-word:nth-child(2) { animation-delay: 3s; }
.hero-word:nth-child(3) { animation-delay: 6s; }
.hero-word:nth-child(4) { animation-delay: 9s; }

.hero-description {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}

.text-link { color: var(--muted); font-size: 14px; }
.text-link span { padding-left: 4px; color: var(--primary-active); }

.product-frame {
  width: min(100%, 1240px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgb(20 20 19 / 10%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 34px 90px rgb(56 41 31 / 14%), 0 4px 14px rgb(56 41 31 / 7%);
  line-height: 0;
  animation: preview-arrive 760ms cubic-bezier(.2,.7,.2,1) both;
}

.product-frame img { display: block; width: 100%; height: auto; }

.section-wrap {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) var(--page-gutter);
}

.section-heading { max-width: 700px; margin: 0 auto 46px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .download-card h2 { margin-bottom: 15px; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--muted); }

.origin-note {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  align-items: end;
  gap: clamp(32px, 7vw, 96px);
  margin: -4px 0 46px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.origin-note .eyebrow { margin-bottom: 14px; }
.origin-note h3 { max-width: 520px; margin: 0; font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-size: clamp(28px, 3.5vw, 42px); font-weight: 400; letter-spacing: -.04em; line-height: 1.12; }
.origin-note > p { max-width: 520px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.35vw, 17px); line-height: 1.75; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card { min-height: 214px; padding: 27px 28px; border: 1px solid var(--hairline); border-radius: 12px; background: #fffefa; transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease; }
.card-link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--primary-active); font-size: 13px; font-weight: 600; }
.card-link span { transition: transform 180ms ease; }
.card-link:hover span { transform: translate(2px,-2px); }
.feature-index { color: var(--primary-active); font-size: 12px; font-weight: 650; letter-spacing: .1em; }
.feature-card h3, .steps h3 { margin: 22px 0 8px; font-size: 18px; font-weight: 580; letter-spacing: -.025em; }
.feature-card p, .steps p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.feature-showcase {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: clamp(24px, 5vw, 62px);
  margin-top: 18px;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface-soft);
}

.feature-showcase-copy { align-self: center; }
.feature-showcase-copy h3 { max-width: 320px; margin: 0 0 12px; font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-size: clamp(29px, 3.2vw, 40px); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.feature-showcase-copy > p:not(.eyebrow) { max-width: 340px; margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.view-options { display: flex; flex-wrap: wrap; gap: 7px; }
.view-options span { padding: 6px 9px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--canvas); color: var(--muted); font-size: 11px; line-height: 1.2; }
.feature-detail { position: relative; min-height: 280px; margin: 0; overflow: hidden; border: 1px solid rgb(20 20 19 / 10%); border-radius: 10px; background: var(--canvas); box-shadow: 0 14px 32px rgb(56 41 31 / 10%); }
.mermaid-illustration { display: grid; grid-template-rows: auto 1fr; }
.mermaid-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 8px 13px 8px 16px; border-bottom: 1px solid var(--hairline); background: #fffefa; }
.mermaid-demo-label { color: #706b64; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.mermaid-demo-modes { display: flex; align-items: center; gap: 3px; color: #777169; font-size: 8px; font-weight: 620; }
.mermaid-demo-modes span { padding: 5px 7px; border-radius: 5px; white-space: nowrap; }
.mermaid-demo-modes .is-active { position: relative; overflow: hidden; background: #f4dfd5; color: var(--primary-active); animation: mermaid-mode-pop 620ms cubic-bezier(.16,1,.3,1) both; }
.mermaid-demo-modes .is-active::after { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 55%) 50%, transparent 80%); content: ""; transform: translateX(-120%); animation: mermaid-mode-shine 900ms 120ms ease-out both; }
.mermaid-demo-body { display: flex; min-height: 234px; overflow: hidden; }
.mermaid-diagram-pane { display: flex; width: 54%; min-width: 0; flex: 1.08 1 0; flex-direction: column; padding: 18px; overflow: hidden; background: #fbf8f2; transition: width 780ms cubic-bezier(.16,1,.3,1), flex-grow 780ms cubic-bezier(.16,1,.3,1), padding 780ms cubic-bezier(.16,1,.3,1), opacity 220ms ease, transform 780ms cubic-bezier(.16,1,.3,1); }
.mermaid-file-chip { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; color: #777169; font-size: 8px; animation: mermaid-file-float 4.8s ease-in-out infinite; }
.mermaid-file-chip span { display: grid; width: 22px; height: 26px; place-items: center; border: 1px solid #dfc1b4; border-radius: 4px; background: #fffefa; color: var(--primary-active); font-size: 7px; font-weight: 750; }
.mini-flow { display: grid; align-content: center; justify-items: center; flex: 1; padding: 12px 0 4px; }
.mini-flow-row { display: grid; grid-template-columns: minmax(64px, 1fr) 28px minmax(64px, 1fr); align-items: center; width: 100%; max-width: 262px; }
.mini-node { display: grid; min-height: 38px; padding: 7px 10px; place-items: center; border: 1px solid #dfb7a6; border-radius: 6px; background: #fffefa; box-shadow: 0 5px 12px rgb(68 45 34 / 7%); color: #514b44; font-size: 9px; font-weight: 630; text-align: center; }
.mini-flow-row .mini-node:first-child { animation: mermaid-node-breathe 4.8s ease-in-out infinite; }
.mini-node-active { border-color: var(--primary); background: #f7e5dc; color: var(--primary-active); animation: mermaid-node-focus 4.8s ease-in-out infinite; }
.mini-arrow { color: #a87965; font-size: 16px; text-align: center; animation: mermaid-arrow-flow 1.8s ease-in-out infinite; }
.mini-flow-stem { width: 1px; height: 24px; background: #c9a99a; transform-origin: top; }
.mini-flow-results { position: relative; display: grid; grid-template-columns: repeat(2, minmax(64px, 1fr)); gap: 22px; width: 80%; max-width: 230px; padding-top: 12px; }
.mini-flow-results::before { position: absolute; top: 0; right: 20%; left: 20%; height: 12px; border-top: 1px solid #c9a99a; border-right: 1px solid #c9a99a; border-left: 1px solid #c9a99a; border-radius: 5px 5px 0 0; content: ""; }
.mermaid-code-pane { width: 46%; min-width: 0; flex: .92 1 0; margin: 0; padding: 22px 18px; overflow: hidden; border-left: 1px solid var(--hairline); background: #f2ece3; color: #48433d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(8px, .75vw, 10px); line-height: 1.75; white-space: pre; transition: width 780ms cubic-bezier(.16,1,.3,1), flex-grow 780ms cubic-bezier(.16,1,.3,1), padding 780ms cubic-bezier(.16,1,.3,1), opacity 220ms ease, transform 780ms cubic-bezier(.16,1,.3,1); }
.mermaid-code-pane code { display: block; opacity: 1; transform: none; }
.mermaid-illustration[data-mode="code"] .mermaid-code-pane code, .mermaid-illustration[data-mode="both"] .mermaid-code-pane code { animation: mermaid-code-enter 680ms 180ms cubic-bezier(.16,1,.3,1) both; }
.mermaid-illustration[data-mode="diagram"] .mermaid-diagram-pane { width: 100%; flex-grow: 1; }
.mermaid-illustration[data-mode="diagram"] .mermaid-code-pane { width: 0; flex-grow: 0; padding-right: 0; padding-left: 0; border-left-width: 0; opacity: 0; transform: translateX(24px); }
.mermaid-illustration[data-mode="code"] .mermaid-diagram-pane { width: 0; flex-grow: 0; padding-right: 0; padding-left: 0; opacity: 0; transform: translateX(-24px); }
.mermaid-illustration[data-mode="code"] .mermaid-code-pane { width: 100%; flex-grow: 1; border-left-width: 0; }
.code-keyword { color: var(--primary-active); font-weight: 750; }
.code-string { color: #6b786b; }
.code-arrow { color: #b56d50; font-weight: 750; }

.finder-demo { padding-top: 38px; }
.finder-demo .section-heading { margin-bottom: 38px; }
.finder-illustration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  margin: 0;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-soft);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.finder-window, .markfly-window { min-width: 0; overflow: hidden; border: 1px solid #ddd8d0; border-radius: 11px; background: #fffefa; box-shadow: 0 12px 28px rgb(43 35 26 / 9%); }
.demo-titlebar { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-bottom: 1px solid #ebe6df; background: #f8f6f1; color: #68645e; font-size: 11px; }
.window-dots { display: flex; gap: 5px; flex: 0 0 auto; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ef6a5e; }
.window-dots i:nth-child(2) { background: #f3bf4f; }
.window-dots i:nth-child(3) { background: #62bd61; }
.titlebar-trailing { margin-left: auto; color: #a09a91; letter-spacing: 1px; }
.finder-content { display: grid; grid-template-columns: 28% 1fr; min-height: 252px; }
.finder-sidebar { display: flex; flex-direction: column; gap: 11px; padding: 16px 10px; border-right: 1px solid #eee9e1; background: #f8f6f1; color: #a49d93; font-size: 10px; }
.finder-sidebar b { padding-left: 5px; color: #706b64; font-weight: 500; }
.sidebar-heading { color: #9e978e; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-heading-lower { margin-top: 8px; }
.tag-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.tag-coral { background: var(--primary); }
.finder-files { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 48px 14px 16px; }
.finder-path { position: absolute; inset: 13px 14px auto; display: flex; align-items: center; gap: 10px; color: #aaa39a; font-size: 13px; }
.finder-path b { margin-left: 2px; color: #625e58; font-size: 11px; font-weight: 550; }
.finder-file-tile { display: flex; flex: 0 1 94px; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 9px 5px; border: 1px solid transparent; border-radius: 8px; color: #514d47; font-size: 9px; line-height: 1.35; text-align: center; }
.finder-files > .finder-file-button { position: relative; z-index: 2; border-color: #e9c4b5; background: #f8e9e1; animation: file-select 8.4s ease-in-out infinite; }
.markdown-file-icon { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 42px; height: 53px; padding-bottom: 6px; border: 1px solid #d8cfc4; border-radius: 5px; background: #fffefa; box-shadow: 0 4px 9px rgb(43 35 26 / 9%); color: var(--primary-active); font-size: 10px; font-weight: 750; letter-spacing: .05em; }
.file-fold { position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-bottom: 1px solid #d8cfc4; border-left: 1px solid #d8cfc4; border-radius: 0 0 0 3px; background: #f5e7df; }
.plain-file-icon { display: flex; flex-direction: column; gap: 4px; justify-content: flex-end; width: 36px; height: 46px; padding: 0 6px 9px; border: 1px solid #ded8cf; border-radius: 4px; background: #fffefa; }
.plain-file-icon span { height: 2px; border-radius: 2px; background: #ded8cf; }
.finder-file-secondary { opacity: .63; }
.demo-cursor { position: absolute; z-index: 4; top: 86%; left: 87%; width: 17px; height: 22px; opacity: 0; pointer-events: none; filter: drop-shadow(0 1px 1px rgb(30 24 20 / 42%)); animation: cursor-double-click 8.4s ease-in-out infinite; }
.demo-cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.demo-cursor path { fill: #fffefa; stroke: #25221e; stroke-linejoin: round; stroke-width: 2px; }
.file-handoff { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.handoff-label { color: var(--primary-active); font-size: 10px; font-weight: 650; line-height: 1.25; text-align: center; }
.handoff-track { position: relative; display: block; width: 160px; height: 112px; }
.handoff-route { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.route-line, .route-arrow { fill: none; stroke: #b77c63; stroke-linecap: round; stroke-linejoin: round; }
.route-line { stroke-width: 1.6px; }
.route-arrow { stroke-width: 2.2px; }
.route-vertical { display: none; }
.handoff-file { position: absolute; top: 0; left: 0; z-index: 3; display: grid; width: 25px; height: 31px; place-items: center; border: 1px solid #d7b6a8; border-radius: 4px; background: var(--canvas); box-shadow: 0 3px 8px rgb(69 44 33 / 12%); color: var(--primary-active); font-size: 8px; font-weight: 750; opacity: 0; offset-path: path("M 8 88 C 38 25 109 20 149 67"); offset-distance: 0%; offset-rotate: 0deg; transform: rotate(0) scale(.72); transform-origin: center; animation: file-toss 8.4s cubic-bezier(.18,.75,.25,1) infinite; }
.markfly-window { transform-origin: 50% 55%; animation: preview-land 8.4s ease-out infinite; }
.markfly-titlebar { background: #f7f4ee; }
.mini-brand { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 11px; font-weight: 700; }
.mini-brand i { width: 11px; height: 11px; border-radius: 50% 50% 3px 50%; background: var(--primary); transform: rotate(-35deg); }
.markfly-filename { overflow: hidden; color: #777169; text-overflow: ellipsis; white-space: nowrap; }
.preview-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 13px; height: 35px; padding: 0 14px; border-bottom: 1px solid #eee9e1; color: #8b857d; font-size: 11px; }
.preview-toolbar b { color: #5d5852; font-size: 10px; font-weight: 550; }
.toolbar-divider { width: 1px; height: 16px; background: #e6dfd8; }
.preview-page { min-height: 257px; padding: 24px clamp(20px, 3vw, 34px); background: #fffefa; animation: preview-reveal 8.4s ease-in-out infinite; }
.preview-kicker { margin-bottom: 8px; color: var(--primary-active); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.preview-page h3 { margin: 0 0 12px; font-family: "Iowan Old Style", "Baskerville", Georgia, serif; font-size: clamp(20px, 2.1vw, 27px); font-weight: 400; letter-spacing: -.04em; line-height: 1.12; }
.preview-rule { height: 1px; margin-bottom: 12px; background: #e6dfd8; }
.preview-copy { margin-bottom: 15px; color: #716b63; font-size: 10px; }
.preview-page h4 { margin: 0 0 8px; font-size: 10px; font-weight: 650; }
.preview-lines { display: grid; gap: 5px; }
.preview-lines i { height: 4px; border-radius: 4px; background: #ebe7e0; }
.preview-lines i:nth-child(2) { width: 83%; }
.preview-lines i:nth-child(3) { width: 67%; }
.preview-code { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 8px; border-radius: 5px; background: #f3efe8; color: #49453e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; white-space: nowrap; }
.preview-code span { color: #aaa196; }
.preview-code b { color: var(--primary-active); }
.preview-code em { overflow: hidden; color: #68867a; font-style: normal; text-overflow: ellipsis; }
.finder-caption { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 18px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.caption-check { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e8e0d2; color: #526b5b; font-size: 12px; }

@keyframes warm-drift {
  from { transform: translate3d(-1%, 0, 0) scale(1); }
  to { transform: translate3d(1%, -10px, 0) scale(1.035); }
}

@keyframes preview-arrive {
  from { opacity: 0; transform: translateY(18px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-copy-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-word-cycle {
  0% { opacity: 0; transform: translateY(.42em) rotate(2deg); }
  3%, 22% { opacity: 1; transform: translateY(0) rotate(0); }
  27%, 100% { opacity: 0; transform: translateY(-.32em) rotate(-2deg); }
}

@keyframes hero-word-wash {
  0% { opacity: 0; transform: scaleX(0); }
  10%, 72% { opacity: 1; transform: scaleX(1); }
  92%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes hero-word-line {
  0%, 12% { opacity: 0; transform: scaleX(0); }
  30%, 76% { opacity: 1; transform: scaleX(1); }
  94%, 100% { opacity: 0; transform: scaleX(1); }
}

@keyframes mermaid-file-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes mermaid-node-breathe {
  0%, 100% { box-shadow: 0 5px 12px rgb(68 45 34 / 7%); transform: translateY(0); }
  50% { box-shadow: 0 9px 18px rgb(68 45 34 / 11%); transform: translateY(-2px); }
}

@keyframes mermaid-node-focus {
  0%, 100% { box-shadow: 0 5px 12px rgb(68 45 34 / 7%); transform: scale(1); }
  50% { box-shadow: 0 9px 20px rgb(204 120 92 / 18%); transform: scale(1.025); }
}

@keyframes mermaid-arrow-flow {
  0%, 100% { opacity: .55; transform: translateX(-2px); }
  50% { opacity: 1; transform: translateX(3px); }
}

@keyframes mermaid-code-enter {
  from { opacity: .45; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes mermaid-mode-pop {
  from { box-shadow: 0 0 0 5px rgb(204 120 92 / 0%); transform: scale(.96); }
  to { box-shadow: 0 0 0 0 rgb(204 120 92 / 12%); transform: scale(1); }
}

@keyframes mermaid-mode-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes cursor-double-click {
  0%, 5% { top: 86%; left: 87%; opacity: 0; transform: translate(-50%,-50%) scale(.9); }
  9% { opacity: 1; }
  17% { top: 43%; left: 21%; opacity: 1; transform: translate(-50%,-50%) scale(1); }
  19% { transform: translate(-50%,-50%) scale(.76); }
  21% { transform: translate(-50%,-50%) scale(1); }
  23% { transform: translate(-50%,-50%) scale(.76); }
  25%, 27% { top: 43%; left: 21%; opacity: 1; transform: translate(-50%,-50%) scale(1); }
  31%, 100% { top: 36%; left: 13%; opacity: 0; transform: translate(-50%,-50%) scale(.9); }
}

@keyframes file-select {
  0%, 17%, 100% { box-shadow: 0 0 0 0 rgb(204 120 92 / 0%); }
  20%, 25% { box-shadow: 0 0 0 4px rgb(204 120 92 / 15%); }
  29% { box-shadow: 0 0 0 7px rgb(204 120 92 / 0%); }
}

@keyframes file-toss {
  0%, 25% { offset-distance: 0%; opacity: 0; transform: rotate(0) scale(.72); }
  26% { offset-distance: 0%; opacity: 1; transform: rotate(0) scale(.82); }
  34% { offset-distance: 32%; opacity: 1; transform: rotate(75deg) scale(1.1); }
  41% { offset-distance: 70%; opacity: 1; transform: rotate(250deg) scale(1.12); }
  46% { offset-distance: 100%; opacity: 1; transform: rotate(360deg) scale(1.06); }
  48% { offset-distance: 100%; opacity: 1; transform: rotate(360deg) scale(.88); }
  51% { offset-distance: 100%; opacity: 1; transform: rotate(360deg) scale(1); }
  55%, 100% { offset-distance: 100%; opacity: 0; transform: rotate(360deg) scale(1); }
}

@keyframes preview-land {
  0%, 44%, 100% { box-shadow: 0 12px 28px rgb(43 35 26 / 9%); transform: translateY(0) scale(1); }
  47% { box-shadow: 0 20px 36px rgb(204 120 92 / 19%); transform: translateY(-5px) scale(1.012); }
  51% { box-shadow: 0 10px 22px rgb(43 35 26 / 13%); transform: translateY(2px) scale(.997); }
  55% { box-shadow: 0 12px 28px rgb(43 35 26 / 9%); transform: translateY(0) scale(1); }
}

@keyframes preview-reveal {
  0%, 46%, 100% { opacity: 1; transform: translateY(0); }
  48% { opacity: 1; transform: translateY(-2px); }
  52% { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { transform: translateY(-4px); border-color: #dcc8ba; box-shadow: 0 12px 26px rgb(56 41 31 / 7%); }
  .card-link:hover { color: var(--ink); }
}

.how { padding-top: 28px; }
.section-heading-left { max-width: none; margin: 0 0 34px; text-align: left; }
.section-heading-left h2 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 26px 30px 26px 0; border-top: 1px solid var(--hairline); }
.steps li + li { padding-left: 30px; border-left: 1px solid var(--hairline); }
.steps li > span { color: var(--primary-active); font-size: 12px; font-weight: 650; letter-spacing: .1em; }
.steps h3 { margin-top: 17px; }

.download { padding: 0 var(--page-gutter); }
.download-card {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 76px) 24px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--ink);
  text-align: center;
}
.download-card .eyebrow { color: #513226; }
.download-card h2 { max-width: 720px; margin: 0 auto 14px; }
.download-card > p:not(.eyebrow) { margin-bottom: 24px; color: #34221b; }
.download-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.install-command-wrap { display: inline-flex; align-items: stretch; min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid rgb(81 50 38 / 18%); border-radius: 8px; background: rgb(250 249 245 / 72%); }
.install-command { display: inline-flex; align-items: center; min-width: 0; min-height: 52px; padding: 0 17px; overflow-x: auto; color: #34221b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.install-command span { margin-right: 9px; color: var(--primary-active); font-weight: 750; }
.install-command .install-command-text { margin-right: 0; color: inherit; font-weight: inherit; }
.copy-command { display: inline-flex; align-items: center; justify-content: center; width: 52px; flex: 0 0 52px; padding: 0; border: 0; border-left: 1px solid rgb(81 50 38 / 14%); background: rgb(255 255 255 / 40%); color: #513226; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.copy-command svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
.copy-command .check-icon { display: none; }
.copy-command:hover { background: rgb(255 255 255 / 78%); }
.copy-command:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.copy-command.is-copied { background: #513226; color: #fffaf5; }
.copy-command.is-copied .copy-icon { display: none; }
.copy-command.is-copied .check-icon { display: block; }
.download-card a:focus-visible { outline-color: var(--ink); }

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 26px;
  width: calc(100% + var(--page-gutter) * 2);
  min-height: 116px;
  margin: clamp(42px, 7vw, 78px) calc(var(--page-gutter) * -1) 0;
  padding: 28px var(--page-gutter) 20px;
  background: var(--surface-dark);
  color: var(--on-dark-muted);
  font-size: 13px;
}
.footer-brand { color: var(--on-dark); font-size: 20px; font-weight: 650; letter-spacing: -.06em; }
.footer-brand span { color: var(--primary); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer small { grid-column: 1 / -1; justify-self: end; color: var(--on-dark-muted); }

.scroll-reveal {
  --reveal-x: 0px;
  --reveal-y: 28px;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(.985);
  transition: opacity 720ms cubic-bezier(.16,1,.3,1), transform 820ms cubic-bezier(.16,1,.3,1), border-color 180ms ease, box-shadow 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.reveal-left { --reveal-x: -36px; --reveal-y: 8px; }
.scroll-reveal.reveal-right { --reveal-x: 36px; --reveal-y: 8px; }
.scroll-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

@media (hover: hover) and (pointer: fine) {
  .feature-card.scroll-reveal.is-visible:hover { transform: translateY(-4px); }
}

@media (max-width: 760px) {
  .site-header { min-height: 74px; }
  .brand img { width: 145px; }
  .site-header nav { gap: 10px; font-size: 12px; }
  .hero { padding-top: 64px; }
  .hero-copy { margin-bottom: 36px; }
  .hero h1 { max-width: 600px; }
  .product-frame { border-radius: 10px; }
  .origin-note { grid-template-columns: 1fr; gap: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-showcase { grid-template-columns: 1fr; gap: 24px; }
  .feature-detail { min-height: 360px; }
  .mermaid-demo-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .mermaid-demo-modes { width: 100%; justify-content: space-between; }
  .mermaid-demo-body { flex-direction: column; }
  .mermaid-diagram-pane, .mermaid-code-pane { width: 100%; flex-grow: 1; padding-right: 18px; padding-left: 18px; opacity: 1; transform: none; }
  .mermaid-diagram-pane { min-height: 210px; }
  .mermaid-code-pane { min-height: 180px; border-top: 1px solid var(--hairline); border-left: 0; font-size: 8px; }
  .mermaid-illustration[data-mode="diagram"] .mermaid-code-pane { display: none; }
  .mermaid-illustration[data-mode="code"] .mermaid-diagram-pane { display: none; }
  .finder-illustration { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 14px; }
  .finder-content { min-height: 218px; }
  .finder-sidebar { gap: 9px; padding: 13px 8px; }
  .finder-files { padding: 44px 10px 12px; }
  .file-handoff { min-height: 0; gap: 14px; }
  .handoff-track { width: 160px; height: 112px; }
  .route-horizontal { display: none; }
  .route-vertical { display: block; }
  .handoff-file { offset-path: path("M 55 10 C 112 25 116 78 80 103"); }
  .demo-cursor { top: 88%; left: 87%; }
  .preview-page { min-height: 230px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; }
  .steps h3 { margin: 8px 0 4px; }
  .how { padding-top: 0; }
  .scroll-reveal.reveal-left, .scroll-reveal.reveal-right { --reveal-x: 0px; --reveal-y: 24px; }
  .site-footer { grid-template-columns: 1fr auto; gap: 18px; }
  .site-footer p { grid-column: 1; }
  .site-footer nav { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; gap: 8px; }
  .site-footer small { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 420px) {
  .site-header { padding-right: 18px; padding-left: 18px; }
  .brand img { width: 112px; }
  .site-header nav { gap: 9px; font-size: 11px; }
  .hero-actions { flex-direction: column; gap: 16px; }
  .hero h1 { font-size: clamp(42px, 12vw, 50px); }
  .download-actions { align-items: stretch; flex-direction: column; }
  .install-command-wrap { width: 100%; }
  .install-command { min-height: 48px; }
  .copy-command { width: 48px; flex-basis: 48px; }
}

@media (max-width: 360px) {
  .site-header { flex-wrap: wrap; row-gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .site-header nav { flex-basis: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .hero-word { display: none; }
  .hero-word:first-child { display: block; opacity: 1; transform: none; }
  .hero-word-rotator::before, .hero-word-rotator::after { opacity: 1; transform: scaleX(1); }
  .demo-cursor { display: none; }
  .handoff-file { top: 40%; left: 50%; offset-path: none; opacity: 1; transform: translateX(-50%); }
  .feature-card:hover, .card-link:hover span { transform: none; }
}
