:root {
  color-scheme: light dark;
  --bg: #f7fbfb;
  --surface: #ffffff;
  --ink: #0f2a2e;
  --muted: #4f6468;
  --line: #d9e6e7;
  --teal: #238a91;
  --teal-ink: #1b7a80;
  --blue: #1a6d9d;
  --tint: #e8f4f5;
  --pii: #fde8e4;
  --pii-ink: #a2362a;
  --grad: linear-gradient(120deg, #238a91, #1a6d9d);
  --grad-text: linear-gradient(120deg, #1b7a80, #1a6d9d);
  --on-blue: #ffffff;
  --shadow: 0 24px 60px -28px rgba(15, 42, 46, 0.35);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a1d;
    --surface: #15252a;
    --ink: #e6f0f1;
    --muted: #9fb3b6;
    --line: #24393e;
    --teal: #5cc6cc;
    --teal-ink: #5cc6cc;
    --blue: #7fb4e0;
    --tint: #132a2e;
    --pii: #3a1f1c;
    --pii-ink: #f2a497;
    --grad: linear-gradient(120deg, #1b7a80, #16609f);
    --grad-text: linear-gradient(120deg, #5cc6cc, #7fb4e0);
    --on-blue: #0f1a1d;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden; }
a { color: var(--blue); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
section { scroll-margin-top: 16px; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 28px; }
h2 span, h1 span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand picture { display: flex; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
.nav .pill { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { color: var(--teal-ink); font-weight: 650; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 20px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.button { display: inline-block; padding: 11px 20px; border-radius: 10px; background: var(--blue); color: var(--on-blue); text-decoration: none; font-weight: 650; border: 1px solid transparent; }
.button:hover { filter: brightness(1.08); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.install { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; overflow-x: auto; font-size: 0.88rem; margin: 0; }
.prompt { color: var(--teal-ink); user-select: none; }

.redact { margin: 0; display: grid; gap: 0; justify-items: stretch; }
.redact-cap { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; margin-bottom: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.card p { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--muted); margin-bottom: 10px !important; }
.tag { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; padding: 2px 8px; border-radius: 6px; background: var(--pii); color: var(--pii-ink); }
.tag.ok { background: var(--tint); color: var(--teal-ink); }
.raw { transform: rotate(-1.2deg); margin-right: 28px; }
.raw mark { background: var(--pii); color: var(--pii-ink); border-radius: 4px; padding: 0 3px; }
.clean { margin-left: 28px; border-color: var(--teal); }
.clean b { color: var(--teal-ink); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--tint); border-radius: 4px; padding: 0 4px; }
.arrow { height: 44px; display: grid; place-items: center; }
.arrow span { width: 2px; height: 100%; background: linear-gradient(var(--line), var(--teal)); position: relative; }
.arrow span::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: translateX(-50%) rotate(45deg); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.chips li { font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--teal-ink); font-weight: 600; }

.stats { list-style: none; margin: 0 auto 72px; padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { display: grid; justify-items: center; text-align: center; }
.stats strong { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 0.9rem; }

.how { padding-bottom: 80px; }
.how h2, .features h2, .why h2, .studio h2 { text-align: center; }
.diagram { display: grid; grid-template-columns: minmax(0, 0.9fr) 56px minmax(0, 1.5fr) 56px minmax(0, 0.9fr); align-items: center; }
.lane-title, .boundary-title { margin: 0 0 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; white-space: nowrap; }
.pills.out li { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.boundary { border: 2px dashed var(--teal); border-radius: 22px; padding: 20px 18px 22px; background: var(--tint); }
.boundary-title { color: var(--teal-ink); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; display: grid; justify-items: center; text-align: center; gap: 4px; position: relative; }
.steps li + li::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 2px; background: var(--teal); }
.steps svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps strong { font-size: 0.95rem; }
.steps span { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.link { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.link span { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: flow 2.4s linear infinite; }
@keyframes flow { from { transform: translateX(0); } to { transform: translateX(56px); } }

.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-bottom: 88px; }
.ask h2 { margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 1.05rem; margin: 0 0 18px; }
.more { font-weight: 650; text-decoration: none; }
.chat { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.chat p { margin: 0; }
.q { justify-self: end; background: var(--blue); color: var(--on-blue); padding: 10px 14px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.a { justify-self: start; background: var(--tint); padding: 12px 14px; border-radius: 16px 16px 16px 4px; max-width: 92%; }
.a .chips { margin-top: 10px; }
.a .chips li { background: var(--surface); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 500; }

.studio { padding-bottom: 88px; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.shot figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 12px; text-align: center; }

.features { padding-bottom: 80px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid article { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; padding: 16px 18px; }
.grid h3 { margin: 0 0 4px; font-size: 1.02rem; }
.grid p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.why { padding-bottom: 72px; text-align: center; }
.why-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: left; counter-reset: why; }
.why-steps li { counter-increment: why; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 6px; }
.why-steps li::before { content: counter(why); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; background: var(--tint); color: var(--teal-ink); }
.why-steps li:last-child { border-color: var(--teal); }
.why-steps span { color: var(--muted); font-size: 0.93rem; }
.fine { color: var(--muted); font-size: 0.92rem; margin: 0; }

.cta { background: var(--grad); color: #fff; border-radius: 22px; padding: 48px 32px; margin-bottom: 56px; text-align: center; max-width: 1128px; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0 0 24px; opacity: 0.92; }
.cta .actions { justify-content: center; margin: 0; }
.button.light { background: #fff; color: #14535a; }
.button.outline { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

@media (max-width: 960px) {
  .hero, .ask { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 24px; }
  .redact { width: 100%; max-width: 560px; justify-self: center; padding-top: 28px; border-top: 1px solid var(--line); }
  .diagram { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .link { width: 2px; height: 36px; justify-self: center; }
  .link span { animation-name: flow-down; }
  @keyframes flow-down { from { transform: translateY(0); } to { transform: translateY(36px); } }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .nav nav a:not(.pill):first-child { display: none; }
  .nav nav { gap: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li + li::before { display: none; }
  .grid, .why-steps { grid-template-columns: minmax(0, 1fr); }
  .raw { margin-right: 8px; }
  .clean { margin-left: 8px; }
  .cta { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link span { animation: none; }
}
