:root {
  color: #17302d;
  background: #f7faf7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #17302d;
  --ink-soft: #36514d;
  --muted: #647975;
  --paper: #f7faf7;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --mint: #dff2eb;
  --mint-strong: #bfe9dc;
  --line: #d4e1dc;
  --line-strong: #adc4bc;
  --teal: #087c70;
  --teal-mid: #10a18f;
  --teal-bright: #31c9b4;
  --amber: #eeb54a;
  --amber-soft: #fff2d2;
  --max-width: 1260px;
  --shadow: 0 24px 70px rgba(31, 72, 64, 0.12);
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
}

body, button, a { letter-spacing: -0.012em; }
button, a { font: inherit; }
a { color: inherit; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 3px;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100% - 56px, var(--max-width));
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(133, 166, 156, 0.28);
  color: var(--ink);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.brand-arrow { padding: 0 2px; color: var(--teal-mid); }
.brand-mark { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.7; }

.site-nav { display: flex; align-items: center; gap: 29px; font-size: 12px; font-weight: 680; }
.site-nav a { color: #536d68; text-decoration: none; transition: color 160ms ease; }
.site-nav a:hover { color: var(--teal); }
.site-nav .nav-github { padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); background: rgba(255, 255, 255, 0.62); }
.site-nav .nav-github:hover { border-color: var(--teal); }
.nav-toggle { width: 42px; height: 38px; display: none; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.nav-toggle > span:not(.sr-only) { width: 18px; height: 1px; display: block; margin: 4px auto; background: var(--ink); }

.hero {
  min-height: 900px;
  padding: 148px max(28px, calc((100vw - var(--max-width)) / 2)) 92px;
  display: grid;
  grid-template-columns: minmax(440px, 0.85fr) minmax(610px, 1.15fr);
  align-items: center;
  gap: 68px;
  background:
    radial-gradient(circle at 88% 22%, rgba(49, 201, 180, 0.18), transparent 29%),
    radial-gradient(circle at 9% 94%, rgba(238, 181, 74, 0.11), transparent 25%),
    linear-gradient(135deg, #fbfdfb 0%, #f1f8f4 56%, #ecf6f1 100%);
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.hero-badge { width: fit-content; margin-bottom: 18px; padding: 7px 10px; border: 1px solid #aeddd2; border-radius: 999px; color: #08675e; background: #e5f6f0; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; }

h1 {
  max-width: 650px;
  margin-bottom: 27px;
  font-size: clamp(52px, 5vw, 76px);
  line-height: 0.99;
  font-weight: 750;
  letter-spacing: -0.056em;
}

.hero-lead { max-width: 590px; margin-bottom: 32px; color: var(--ink-soft); font-size: 17px; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button {
  min-height: 50px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--teal); box-shadow: 0 9px 20px rgba(8, 124, 112, 0.18); }
.button-primary:hover { background: #066c62; box-shadow: 0 13px 28px rgba(8, 124, 112, 0.24); }
.button-secondary { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.78); }
.button-secondary:hover { border-color: var(--teal); background: #fff; }

.hero-facts { margin: 44px 0 0; padding: 23px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; border-top: 1px solid var(--line); list-style: none; }
.hero-facts li { font-size: 11px; }
.hero-facts strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 11px; }
.hero-facts span { display: block; color: var(--muted); line-height: 1.45; }

.hero-visual { position: relative; z-index: 1; }
.hero-visual::before { position: absolute; z-index: -1; inset: -34px 35px 20px -20px; border: 1px solid rgba(17, 143, 128, 0.12); border-radius: 50%; content: ""; transform: rotate(-8deg); }
.app-window { border: 1px solid #b7cbc4; border-radius: 11px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.app-window-bar { height: 48px; padding: 0 17px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); color: #6e837e; background: #fbfdfc; font-size: 8px; letter-spacing: 0.11em; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #d0ded9; }
.ready-dot { justify-self: end; color: #367169; font-weight: 800; }
.ready-dot i { width: 6px; height: 6px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #31bd8a; box-shadow: 0 0 0 4px rgba(49, 189, 138, 0.12); }
.app-layout { min-height: 520px; display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.settings-panel { padding: 20px 15px; border-right: 1px solid var(--line); background: #f8faf8; }
.panel-label { display: block; margin-bottom: 10px; color: #718580; font-size: 7px; font-weight: 850; letter-spacing: 0.12em; }
.upload-preview { padding: 9px; border: 1px solid #cbdad5; border-radius: 6px; background: #fff; }
.upload-preview svg { width: 100%; height: 90px; fill: rgba(16, 161, 143, 0.06); stroke: var(--teal-mid); stroke-width: 2; }
.upload-preview span { display: block; color: #4b625e; font-size: 8px; text-align: center; }
.mode-row, .field-row { min-height: 44px; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #e0e9e5; color: #72847f; font-size: 8px; }
.mode-row { margin-top: 10px; }
.mode-row strong { padding: 4px 6px; border-radius: 4px; color: #076d63; background: #dff2ec; }
.field-row strong { color: #2f4844; }
.fake-button { margin-top: 15px; padding: 10px 6px; border-radius: 5px; color: #fff; background: var(--teal); font-size: 8px; font-weight: 800; text-align: center; }
.preview-panel { min-width: 0; background: linear-gradient(145deg, #fafdf9, #edf4f0); }
.preview-toolbar { height: 42px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); color: #83948f; font-size: 7px; }
.preview-toolbar span:first-child { color: #32756d; font-weight: 850; letter-spacing: 0.08em; }
.preview-toolbar i { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #34b786; }
.hero-stencil { width: 100%; height: 430px; overflow: visible; }
.hero-grid { fill: none; stroke: #dae6e1; stroke-width: 1; }
.object-shadow { animation: shadow-breathe 7s ease-in-out infinite; }
.hero-plate { transform-origin: 355px 230px; animation: hero-plate-float 7s ease-in-out infinite; }
.hero-back-edge, .hero-left-edge { fill: #066057; }
.hero-front-edge { fill: #075b53; }
.cut-wall { fill: #075b53; }
.plate-highlight { fill: none; stroke: rgba(227, 255, 248, 0.68); stroke-width: 1.3; }
.dimension { fill: none; stroke: #6e8983; stroke-width: 1; }
.dimension text { fill: #5e7772; stroke: none; font-size: 9px; font-weight: 700; }
.mesh-checks rect { fill: #fff; stroke: #b8d4cc; }
.mesh-checks circle { fill: #2db988; }
.mesh-checks text { fill: #35726a; font-size: 8px; font-weight: 850; letter-spacing: 0.07em; }
.preview-footer { height: 41px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #71857f; background: #fff; font-size: 8px; }
.preview-footer strong { color: #087267; }

.purpose-strip { min-height: 72px; padding: 0 max(28px, calc((100vw - var(--max-width)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #647873; background: #fff; font-size: 10px; }
.purpose-strip strong { color: var(--teal); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.purpose-strip i { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: var(--teal-bright); }

.section { padding: 112px max(28px, calc((100vw - var(--max-width)) / 2)); }
.section h2 { margin-bottom: 24px; font-size: clamp(40px, 4vw, 59px); line-height: 1.04; letter-spacing: -0.047em; }
.privacy-section { background: linear-gradient(145deg, #edf8f4, #f8fbf9); }
.privacy-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 80px; }
.privacy-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.privacy-copy .text-link { display: inline-block; margin-top: 12px; }
.privacy-proof { position: relative; min-width: 0; padding: 42px 30px 84px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 13px; border: 1px solid #a9c9bf; border-radius: 10px; background: #fff; box-shadow: 14px 16px 0 var(--mint); }
.privacy-proof > div { min-height: 145px; padding: 21px 16px; border: 1px solid var(--line); border-radius: 7px; background: #f8fbf9; }
.privacy-proof > div:nth-of-type(2) { border-color: #80b9ac; background: #e7f6f1; }
.privacy-proof > div span { width: 25px; height: 25px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: 8px; font-weight: 850; }
.privacy-proof > div strong { display: block; font-size: 12px; }
.privacy-proof > div p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.privacy-proof > i { color: var(--teal); font-style: normal; }
.privacy-boundary { position: absolute; right: 30px; bottom: 24px; left: 30px; margin: 0; padding-top: 14px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px dashed #9abfb5; color: #68817b; font: 700 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.privacy-boundary strong { color: var(--teal); }
.stencil-purpose { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 90px; background: #fff; }
.purpose-copy > p:not(.eyebrow) { max-width: 530px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.definition-grid { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.definition-grid div { min-height: 150px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.definition-grid dt { margin-bottom: 12px; color: var(--teal); font-size: 11px; font-weight: 850; }
.definition-grid dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.definition-grid code { padding: 2px 4px; border-radius: 3px; color: #75550c; background: var(--amber-soft); font-size: 10px; }

.workflow { background: var(--surface-soft); }
.section-heading { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 90px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 500px; margin-bottom: 5px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.workflow-steps { margin: 68px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 9px; background: #fff; list-style: none; overflow: hidden; }
.workflow-steps li { min-height: 330px; padding: 27px; }
.workflow-steps li + li { border-left: 1px solid var(--line); }
.step-index { color: #8ca09a; font-size: 9px; font-weight: 850; letter-spacing: 0.12em; }
.step-visual { position: relative; width: 62px; height: 62px; margin: 35px 0 24px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--teal); background: #f7fbf9; }
.step-visual i { font-style: normal; }
.file-step i { padding: 10px 7px; border: 1px solid currentColor; border-radius: 3px; font-size: 8px; font-weight: 850; }
.settings-step { gap: 7px; align-content: center; }
.settings-step i { width: 31px; height: 2px; background: currentColor; }
.settings-step i::after { width: 6px; height: 6px; display: block; border-radius: 50%; background: currentColor; content: ""; transform: translate(8px, -2px); }
.settings-step i:nth-child(2)::after { transform: translate(21px, -2px); }
.preview-step i { width: 34px; height: 23px; border: 1px solid currentColor; transform: skewY(-10deg); }
.preview-step i::before { width: 21px; height: 12px; display: block; margin: 5px; border: 1px solid currentColor; content: ""; }
.check-step { color: #fff; background: var(--teal); font-size: 24px; }
.workflow-steps h3 { margin-bottom: 11px; font-size: 17px; }
.workflow-steps p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.use-cases { background: #fff; }
.outputs-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 42px; }
.outputs-heading h2 { margin-bottom: 0; }
.motion-toggle { padding: 9px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 5px; color: #49645f; background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.pause-icon { width: 10px; height: 11px; display: inline-block; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-paused .pause-icon { border: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }
.use-case { margin-top: 62px; display: grid; grid-template-columns: 0.72fr 1.28fr; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 52px rgba(30, 71, 63, 0.08); overflow: hidden; }
.use-case-copy { padding: 42px; }
.mode-pill { display: inline-block; margin-bottom: 18px; padding: 5px 8px; border-radius: 999px; color: #06685f; background: var(--mint); font-size: 8px; font-weight: 850; letter-spacing: 0.1em; }
.output-type { margin-bottom: 15px; color: var(--teal); font-size: 9px; font-weight: 900; letter-spacing: 0.13em; }
.use-case h3 { max-width: 450px; margin-bottom: 16px; font-size: 31px; line-height: 1.1; letter-spacing: -0.038em; }
.use-case-copy > p:not(.output-type) { color: var(--muted); font-size: 13px; line-height: 1.72; }
.use-case ul { margin: 24px 0 25px; padding: 20px 0 0; display: grid; gap: 9px; border-top: 1px solid var(--line); list-style: none; }
.use-case li { color: var(--ink-soft); font-size: 11px; }
.use-case li::before { margin-right: 8px; color: var(--teal); content: "\2713"; }
.text-link { color: var(--teal); font-size: 11px; font-weight: 820; text-decoration: none; }
.output-animation { position: relative; min-width: 0; border-left: 1px solid var(--line); background: linear-gradient(150deg, #f8fbf9, #edf5f1); }
.animation-head { height: 49px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #82958f; font-size: 8px; font-weight: 850; letter-spacing: 0.1em; }
.animation-head strong { color: var(--teal); }
.output-animation > svg { width: 100%; height: auto; }
.sequence-legend { height: 39px; padding: 0 18px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; border-top: 1px solid var(--line); color: #7b8d88; font-size: 8px; }
.sequence-legend i { width: 6px; height: 6px; display: inline-block; margin-right: 4px; border-radius: 50%; background: var(--teal); }
.sequence-legend span:nth-child(2) i { background: var(--amber); }
.sequence-legend span:nth-child(3) i { background: #31b884; }

.sequence-guides { fill: none; stroke: #9bbab2; stroke-width: 1.4; stroke-dasharray: 5 5; }
.source-stage rect, .border-stage > rect { fill: rgba(255, 255, 255, 0.72); stroke: #c5d7d1; }
.source-stage circle, .source-stage path { fill: rgba(8, 124, 112, 0.04); stroke: var(--teal); stroke-width: 2; stroke-dasharray: 280; animation: trace-path 9s ease-in-out infinite; }
.stage-number { fill: #91a29e; font-size: 9px; font-weight: 850; }
.stage-name { fill: #4d6964; font-size: 8px; font-weight: 850; letter-spacing: 0.06em; }
.stage-note { fill: #7c908b; font-size: 8px; }
.flat-plate { fill: #dff1eb; stroke: #80bbae; }
.flat-hole { fill: #fff; stroke: #0b8b7c; stroke-width: 1.5; }
.cut-ray { fill: none; stroke: #dc9b19; stroke-width: 1.5; stroke-dasharray: 4 4; animation: cutter-drop 9s ease-in-out infinite; }
.cut-spark { fill: #f2bd4d; opacity: 0; animation: spark 9s ease-out infinite; }
.spark-two { animation-delay: .18s; }
.result-shadow { animation: shadow-breathe 9s ease-in-out infinite; }
.stencil-result { transform-origin: 600px 240px; animation: stencil-lift 9s ease-in-out infinite; }
.plate-back, .plate-left { fill: #066056; }
.plate-front { fill: #075d54; }
.hole-walls { fill: #075a52; }
.surface-shine { fill: none; stroke: rgba(231, 255, 249, 0.7); stroke-width: 1.2; }
.thickness-mark { fill: none; stroke: #64827b; stroke-width: 1; }
.thickness-mark text { fill: #59756f; stroke: none; font-size: 8px; font-weight: 750; }

.form-use-case { margin-top: 28px; grid-template-columns: 0.9fr 1.1fr; box-shadow: none; }
.form-use-case .output-type { color: #a56b06; }
.form-use-case .text-link { color: #916107; }
.form-use-case li::before { color: #d59619; }
.form-animation-wrap { background: linear-gradient(145deg, #fffdf7, #faf3e1); }
.form-animation-wrap .animation-head strong { color: #9d6808; }
.form-grid { fill: none; stroke: #e7ddc7; stroke-width: 1; }
.form-source { fill: rgba(221, 159, 29, 0.03); stroke: #c68810; stroke-width: 2; stroke-dasharray: 330; animation: trace-path 8s ease-in-out infinite; }
.form-source text, .extrusion-guides text { fill: #806f4b; stroke: none; font-size: 8px; font-weight: 850; letter-spacing: 0.1em; }
.extrusion-guides { fill: none; stroke: #b78a30; stroke-width: 1.2; stroke-dasharray: 5 5; }
.form-shadow { animation: shadow-breathe 8s ease-in-out infinite; }
.solid-group { transform-origin: 486px 230px; animation: form-rise 8s ease-in-out infinite; }
.solid-highlight { fill: none; stroke: rgba(255, 245, 198, 0.85); stroke-width: 1.5; }
.form-measure { fill: none; stroke: #947b49; stroke-width: 1; }
.form-measure text { fill: #806c42; stroke: none; font-size: 8px; font-weight: 750; }

.preparation { background: var(--surface-soft); }
.preparation-grid { margin-top: 67px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.preparation-grid article { min-height: 245px; padding: 27px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.42); }
.info-number { color: #8da09b; font-size: 9px; font-weight: 850; letter-spacing: 0.1em; }
.preparation-grid h3 { margin: 49px 0 13px; font-size: 17px; }
.preparation-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.68; }
.preparation-note { margin-top: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 30px; border-left: 4px solid var(--amber); color: #665b45; background: var(--amber-soft); font-size: 12px; }
.preparation-note strong { flex: 0 0 auto; color: #6a500e; }
.preparation-note a { color: #755405; font-weight: 800; }

.confidence { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 100px; background: #fff; }
.confidence-copy > p:not(.eyebrow) { max-width: 530px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.validation-board { border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; box-shadow: 17px 20px 0 var(--mint); overflow: hidden; }
.validation-head { min-height: 64px; padding: 0 23px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.validation-head span { color: #748782; font-size: 9px; font-weight: 850; letter-spacing: 0.13em; }
.validation-head strong { padding: 5px 8px; border-radius: 4px; color: #076858; background: #d8f1e8; font-size: 8px; letter-spacing: 0.1em; }
.validation-head i { width: 6px; height: 6px; display: inline-block; margin-right: 4px; border-radius: 50%; background: #30b883; }
.validation-board ul { margin: 0; padding: 8px 23px; list-style: none; }
.validation-board li { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e5ece8; color: #586c67; font-size: 11px; }
.validation-board li:last-child { border: 0; }
.validation-board li strong { color: #167864; font-size: 10px; }
.metric-line { min-height: 58px; padding: 0 23px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); color: #71827e; background: #f5f8f6; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.self-hosted { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 95px; background: #edf6f2; }
.terminal-card { border: 1px solid #b6cbc4; border-radius: 9px; background: #fff; box-shadow: 0 24px 60px rgba(35, 76, 68, 0.1); overflow: hidden; }
.terminal-head { height: 46px; padding: 0 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); background: #f9fbfa; }
.terminal-head span { width: 7px; height: 7px; border-radius: 50%; background: #cad9d4; }
.terminal-head strong { margin-left: auto; color: #758b85; font-size: 8px; letter-spacing: 0.1em; }
.terminal-card pre { min-height: 250px; margin: 0; padding: 42px 34px; overflow-x: auto; }
.terminal-card code { color: #405d57; font: 500 12px/2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-card code span { color: var(--teal); font-weight: 800; }
.terminal-card code em { color: #16805f; font-style: normal; }
.self-hosted-copy > p:not(.eyebrow) { max-width: 520px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.host-facts { margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.host-facts span { padding-top: 12px; border-top: 1px solid #b8ccc5; color: #6d837e; font-size: 9px; }
.host-facts strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 11px; }

.documentation { background: #fff; }
.docs-grid { margin-top: 68px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.docs-grid a { position: relative; min-height: 180px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: color 180ms ease, background 180ms ease; }
.docs-grid a:hover { color: #fff; background: var(--teal); }
.doc-code { color: #889995; font: 750 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em; }
.docs-grid a:hover .doc-code { color: #c7eee5; }
.docs-grid strong { max-width: 260px; font-size: 14px; line-height: 1.35; }
.docs-grid i { position: absolute; right: 22px; bottom: 21px; color: var(--teal); font-style: normal; }
.docs-grid a:hover i { color: #fff; }

.closing { min-height: 500px; padding: 105px max(28px, calc((100vw - var(--max-width)) / 2)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 110%, rgba(49, 201, 180, 0.2), transparent 42%), linear-gradient(145deg, #f9fcfa, #e9f5f0); }
.closing > p { color: var(--teal); font-size: 9px; font-weight: 850; letter-spacing: 0.14em; }
.closing h2 { max-width: 850px; margin-bottom: 32px; font-size: clamp(48px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.055em; }
.closing > div { display: flex; align-items: center; gap: 25px; }

footer { min-height: 116px; padding: 25px max(28px, calc((100vw - var(--max-width)) / 2)); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 35px; color: #6c827d; background: #f7faf7; border-top: 1px solid var(--line); font-size: 9px; }
footer p { margin: 0; }
footer nav { display: flex; gap: 18px; }
footer a:not(.brand) { color: #5e7771; text-decoration: none; }

.hero-screenshot {
  position: relative;
  margin: 0;
  border: 1px solid #b7cbc4;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(0.5deg);
}

.hero-screenshot::before {
  position: absolute;
  z-index: -1;
  inset: -34px 35px 20px -20px;
  border: 1px solid rgba(17, 143, 128, 0.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-8deg);
}

.screenshot-bar {
  height: 46px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #71847f;
  background: #fbfdfc;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.screenshot-bar > span { display: flex; gap: 5px; }
.screenshot-bar i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #d0ded9; }
.screenshot-bar em { justify-self: end; color: var(--teal); font-style: normal; font-weight: 850; }
.hero-shot-crop { aspect-ratio: 1.5; overflow: hidden; background: #edf2f0; }
.hero-shot-crop img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 44%; animation: screenshot-drift 12s ease-in-out infinite alternate; }
.hero-screenshot figcaption { min-height: 43px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #71847f; background: #fff; font-size: 8px; }
.hero-screenshot figcaption span { display: flex; align-items: center; gap: 6px; }
.hero-screenshot figcaption i { width: 6px; height: 6px; display: block; border-radius: 50%; background: #31b884; }
.hero-screenshot figcaption strong { color: #397068; }

.real-workflow { margin-top: 66px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.workflow-shot { margin: 0; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; box-shadow: 0 16px 45px rgba(31, 72, 64, 0.08); overflow: hidden; }
.workflow-shot img { width: 100%; aspect-ratio: 1.5; object-fit: cover; object-position: center top; }
.workflow-shot figcaption { min-height: 125px; padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 13px; align-content: start; border-top: 1px solid var(--line); }
.workflow-shot figcaption span { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--teal); font-size: 8px; font-weight: 850; }
.workflow-shot figcaption strong { font-size: 13px; }
.workflow-shot figcaption p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.workflow-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--teal); background: #fff; }

.result-screenshot { min-width: 0; margin: 0; border-left: 1px solid var(--line); background: #f4f8f6; overflow: hidden; }
.result-label { height: 49px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #7a908a; font-size: 8px; font-weight: 850; letter-spacing: 0.08em; }
.result-label strong { color: var(--teal); }
.result-image-window { aspect-ratio: 1.5; overflow: hidden; }
.result-image-window img { width: 100%; height: 100%; object-fit: cover; object-position: center top; animation: screenshot-drift 13s ease-in-out infinite alternate; }
.result-screenshot figcaption { min-height: 48px; padding: 13px 18px; display: flex; align-items: center; border-top: 1px solid var(--line); color: #677c77; background: #fff; font-size: 9px; }
.solid-result { background: #fdf8ed; }
.solid-result .result-label strong { color: #9d6808; }
.solid-result .result-image-window img { animation-delay: -4s; }

.manual-page { background: #f4f8f6; }
.manual-header { position: sticky; z-index: 20; top: 0; min-height: 74px; padding: 0 max(24px, calc((100vw - 1380px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); }
.manual-header nav { display: flex; align-items: center; gap: 22px; color: #607873; font-size: 11px; font-weight: 700; }
.manual-header nav a { text-decoration: none; }
.manual-header .nav-github { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); }
.manual-shell { width: min(100%, 1440px); min-height: calc(100vh - 74px); margin: auto; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.manual-sidebar { position: sticky; top: 74px; height: calc(100vh - 74px); padding: 46px 30px; border-right: 1px solid var(--line); background: #eef5f1; overflow-y: auto; }
.manual-kicker { margin-bottom: 8px; color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: 0.13em; }
.manual-sidebar h1 { margin-bottom: 12px; font-size: 31px; letter-spacing: -0.04em; }
.manual-sidebar > p:not(.manual-kicker) { color: var(--muted); font-size: 11px; line-height: 1.6; }
.manual-sidebar nav { margin-top: 28px; display: grid; }
.manual-sidebar nav a { padding: 13px 10px; display: flex; align-items: center; gap: 11px; border-top: 1px solid #ccdbd6; color: #4e6863; font-size: 11px; font-weight: 720; text-decoration: none; }
.manual-sidebar nav a:last-child { border-bottom: 1px solid #ccdbd6; }
.manual-sidebar nav a span { color: #8ba09a; font-size: 8px; }
.manual-sidebar nav a:hover, .manual-sidebar nav a.is-active { color: #fff; background: var(--teal); }
.manual-sidebar nav a:hover span, .manual-sidebar nav a.is-active span { color: #bfece2; }
.manual-back { margin-top: 30px; display: inline-block; color: var(--teal); font-size: 10px; font-weight: 800; text-decoration: none; }
.manual-reader { min-width: 0; background: #fff; }
.manual-toolbar { position: sticky; z-index: 10; top: 74px; min-height: 54px; padding: 0 clamp(28px, 6vw, 90px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); color: #748a84; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.manual-toolbar a { color: var(--teal); text-decoration: none; }
.manual-article { max-width: 920px; padding: 68px clamp(28px, 6vw, 90px) 110px; }
.manual-article h1 { margin-bottom: 42px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: clamp(42px, 5vw, 66px); line-height: 1; }
.manual-article h2 { margin: 62px 0 20px; padding-top: 14px; color: var(--ink); font-size: 29px; line-height: 1.12; letter-spacing: -0.035em; scroll-margin-top: 150px; }
.manual-article h3 { margin: 38px 0 15px; font-size: 20px; scroll-margin-top: 150px; }
.manual-article h4 { margin: 30px 0 12px; font-size: 15px; }
.manual-article p, .manual-article li { color: #4f6661; font-size: 14px; line-height: 1.78; }
.manual-article p { margin-bottom: 20px; }
.manual-article ul, .manual-article ol { margin: 0 0 24px; padding-left: 24px; }
.manual-article li + li { margin-top: 6px; }
.manual-article a { color: var(--teal); font-weight: 700; }
.manual-article img { width: 100%; height: auto; margin: 10px 0 16px; display: block; border: 1px solid var(--line); border-radius: 8px; background: #f7faf7; box-shadow: 0 18px 45px rgba(31, 72, 64, 0.08); }
.manual-article code { padding: 2px 5px; border-radius: 4px; color: #745608; background: #fff1cd; font: 600 0.88em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.manual-article pre { position: relative; margin: 24px 0 30px; padding: 28px; border: 1px solid #bad0c9; border-radius: 7px; color: #32544e; background: #f1f7f4; overflow-x: auto; }
.manual-article pre::before { position: absolute; top: 8px; right: 10px; color: #82978f; content: attr(data-language); font-size: 7px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.manual-article pre code { padding: 0; color: inherit; background: transparent; font-size: 12px; line-height: 1.65; }
.table-scroll { margin: 24px 0 32px; overflow-x: auto; }
.manual-article table { width: 100%; border-collapse: collapse; font-size: 12px; }
.manual-article th { padding: 12px 13px; color: #fff; background: var(--teal); text-align: left; }
.manual-article td { padding: 12px 13px; border: 1px solid var(--line); color: #506a64; vertical-align: top; }
.manual-article tr:nth-child(even) td { background: #f7faf8; }
.manual-article hr { height: 1px; margin: 50px 0; border: 0; background: var(--line); }
.manual-loading { color: var(--muted); }
.manual-error { padding: 80px; }

@keyframes screenshot-drift {
  from { transform: scale(1.001); }
  to { transform: scale(1.035) translate(-0.7%, -0.5%); }
}

@keyframes hero-plate-float {
  0%, 100% { transform: translateY(6px) rotate(-0.4deg); }
  48% { transform: translateY(-5px) rotate(0.6deg); }
}

@keyframes shadow-breathe {
  0%, 100% { transform: scale(.96); opacity: .72; }
  48% { transform: scale(1.03); opacity: 1; }
}

@keyframes trace-path {
  0%, 10% { stroke-dashoffset: 280; opacity: .28; }
  28%, 83% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -280; opacity: .28; }
}

@keyframes cutter-drop {
  0%, 26% { stroke-dashoffset: 55; opacity: 0; }
  38%, 58% { stroke-dashoffset: 0; opacity: 1; }
  72%, 100% { stroke-dashoffset: -55; opacity: 0; }
}

@keyframes spark {
  0%, 35% { transform: scale(.2); opacity: 0; }
  42% { transform: scale(1.9); opacity: 1; }
  52%, 100% { transform: scale(.5); opacity: 0; }
}

@keyframes stencil-lift {
  0%, 43% { transform: translateY(12px) scale(.985); opacity: .58; }
  61%, 84% { transform: translateY(-5px) scale(1); opacity: 1; }
  100% { transform: translateY(3px) scale(.99); opacity: .72; }
}

@keyframes form-rise {
  0%, 26% { transform: translateY(32px); opacity: .18; }
  48%, 82% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-5px); opacity: .65; }
}

.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

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

@media (max-width: 1120px) {
  .site-nav { gap: 17px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .hero-visual { width: min(850px, 100%); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps li:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .workflow-steps li:nth-child(4) { border-top: 1px solid var(--line); }
  .use-case { grid-template-columns: 1fr; }
  .output-animation, .result-screenshot { border-top: 1px solid var(--line); border-left: 0; }
  .preparation-grid { grid-template-columns: repeat(2, 1fr); }
  .confidence, .self-hosted { gap: 55px; }
}

@media (max-width: 860px) {
  .site-header { width: min(100% - 36px, var(--max-width)); }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 70px; right: 0; width: 248px; padding: 17px; display: none; align-items: stretch; flex-direction: column; gap: 4px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px; }
  .site-nav .nav-github { margin-top: 4px; }
  .hero { padding-top: 128px; }
  .purpose-strip { padding: 20px 28px; justify-content: flex-start; flex-wrap: wrap; }
  .purpose-strip strong { width: 100%; }
  .privacy-layout { grid-template-columns: 1fr; gap: 50px; }
  .stencil-purpose, .confidence, .self-hosted { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .real-workflow { grid-template-columns: 1fr; }
  .workflow-arrow { margin: -4px auto; transform: rotate(90deg); }
  .confidence { gap: 50px; }
  .terminal-card { order: 2; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr auto; }
  footer p { order: 3; }
  footer nav { justify-self: end; }
  .manual-header { padding: 0 18px; }
  .manual-header nav a:not(.nav-github) { display: none; }
  .manual-shell { grid-template-columns: 1fr; }
  .manual-sidebar { position: static; height: auto; padding: 30px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .manual-sidebar nav { grid-template-columns: repeat(2, 1fr); }
  .manual-sidebar nav a { border-right: 1px solid #ccdbd6; }
  .manual-toolbar { position: static; }
}

@media (max-width: 650px) {
  .site-header { width: calc(100% - 32px); }
  .hero { min-height: auto; padding: 118px 20px 68px; gap: 52px; }
  h1 { font-size: 47px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { justify-content: space-between; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-screenshot { transform: none; }
  .screenshot-bar { grid-template-columns: 1fr auto; }
  .screenshot-bar strong { display: none; }
  .hero-shot-crop { aspect-ratio: 1.05; }
  .hero-shot-crop img { object-position: 65% top; }
  .hero-screenshot figcaption { align-items: flex-start; flex-direction: column; justify-content: center; }
  .app-layout { grid-template-columns: 1fr; }
  .settings-panel { display: none; }
  .preview-toolbar span:last-child { display: none; }
  .hero-stencil { height: auto; min-height: 360px; }
  .purpose-strip { padding: 20px; }
  .purpose-strip i { display: none; }
  .purpose-strip span { width: calc(50% - 10px); }
  .section { padding: 74px 20px; }
  .privacy-proof { padding: 24px 20px 82px; grid-template-columns: 1fr; gap: 10px; box-shadow: 8px 10px 0 var(--mint); }
  .privacy-proof > div { min-height: 112px; }
  .privacy-proof > div span { margin-bottom: 13px; }
  .privacy-proof > i { justify-self: center; transform: rotate(90deg); }
  .privacy-boundary { right: 20px; bottom: 20px; left: 20px; }
  .section h2 { font-size: 39px; }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-grid div { min-height: 125px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps li { min-height: 270px; }
  .workflow-steps li + li { border-top: 1px solid var(--line); border-left: 0; }
  .outputs-heading { align-items: flex-start; flex-direction: column; }
  .use-case-copy { padding: 30px 25px; }
  .use-case h3 { font-size: 27px; }
  .output-animation { overflow-x: auto; }
  .output-animation > svg { width: 720px; max-width: none; }
  .form-animation-wrap > svg { width: 640px; }
  .sequence-legend { justify-content: flex-start; }
  .result-image-window { aspect-ratio: 1.08; }
  .result-image-window img { object-position: 66% top; }
  .result-label { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
  .preparation-grid { grid-template-columns: 1fr; }
  .preparation-grid article { min-height: 210px; }
  .preparation-grid h3 { margin-top: 36px; }
  .preparation-note { align-items: flex-start; flex-direction: column; gap: 8px; }
  .validation-board { box-shadow: 8px 10px 0 var(--mint); }
  .metric-line { align-items: flex-start; flex-direction: column; justify-content: center; }
  .terminal-card pre { padding: 28px 20px; }
  .terminal-card code { font-size: 10px; }
  .host-facts { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-grid a { min-height: 145px; }
  .closing { min-height: 430px; padding: 80px 20px; }
  .closing h2 { font-size: 46px; }
  .closing > div { width: 100%; align-items: stretch; flex-direction: column; }
  footer { padding: 35px 20px; grid-template-columns: 1fr; gap: 18px; }
  footer nav { justify-self: start; }
  .manual-header .brand-mark { width: 29px; height: 29px; }
  .manual-sidebar nav { grid-template-columns: 1fr; }
  .manual-toolbar { min-height: 66px; padding: 12px 20px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  .manual-article { padding: 48px 20px 80px; }
  .manual-article h1 { font-size: 43px; }
  .manual-article h2 { font-size: 26px; }
  .manual-error { padding: 50px 20px; }
}
