:root {
  color-scheme: dark;
  --sans: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ghost: var(--lime);
}

.day {
  color-scheme: light;
  --bg: #f8f8f8;
  --panel: #fefefe;
  --panel-2: #f1f1f1;
  --line: #e1e1e1;
  --line-hi: #cecece;
  --text: #2b2b2b;
  --soft: #5c5c5c;
  --dim: #686868;
  --lime: #08728a;
  --lime-ink: #ffffff;
  --accent-bg: #e8fafd;
  --accent-line: #08728a;
  --ghost: var(--lime);
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--line-hi) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lime); color: var(--lime-ink); }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px), 4vw); padding-right: max(16px, env(safe-area-inset-right, 0px), 4vw); }
em { font-style: normal; color: var(--lime); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent; text-decoration: none; font: 600 16px/1.2 var(--sans); letter-spacing: -0.01em; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn-lime { background: var(--palette-action); color: var(--palette-action-ink); }
.btn-lime:hover { background: var(--palette-action-hover); }
.btn-ghost { background: transparent; border-color: var(--ghost); color: var(--ghost); }
.btn-ghost:hover { background: var(--accent-bg); color: var(--text); }
.btn-big { min-height: 58px; padding: 14px 30px; font-size: 18px; }
.link { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ghost); font-weight: 600; text-decoration: none; }
.more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.more:hover svg { transform: translateX(3px); }

.top { position: relative; z-index: 40; display: flex; align-items: center; gap: 36px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: 12px; text-decoration: none; }
.logo img { display: block; width: 140px; height: auto; }
.mnav { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.mn-item { position: relative; }
.mn-btn, .mn-plain { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--soft); font: inherit; text-decoration: none; cursor: pointer; transition: color .15s ease; }
.mn-btn:hover, .mn-plain:hover, .mn-item[data-open] .mn-btn { color: var(--text); }
.mn-down { width: 16px; height: 16px; transition: transform .2s ease; }
.mn-item[data-open] .mn-down { transform: rotate(180deg); }
.mn-panel { display: none; position: absolute; top: calc(100% + 8px); left: -8px; z-index: 30; width: 360px; padding: 8px; border: 1px solid var(--line-hi); border-radius: 16px; background: var(--panel); box-shadow: 0 24px 48px -16px #000000cc; }
.mn-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.mn-item[data-open] .mn-panel { display: grid; }
@media (hover: hover) { .mnav:not(:has(.mn-item[data-open])) .mn-item:hover .mn-panel { display: grid; } .mn-item:hover .mn-btn { color: var(--text); } }
.mn-link { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; transition: background-color .15s ease; }
.mn-link:hover, .mn-link:focus-visible { background: var(--panel-2); }
.mn-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-bg); color: var(--lime); }
.mn-svg { width: 20px; height: 20px; }
.mn-tx b { display: block; font-weight: 600; font-size: 15px; }
.mn-tx small { display: block; margin-top: 1px; color: var(--soft); font-size: 13px; }
.mn-login, .top .mn-cta { display: none; }
.mn-push { margin-left: auto; }
.mn-burger { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-hi); border-radius: 10px; background: none; color: var(--text); cursor: pointer; }
.mn-burger svg { width: 22px; height: 22px; }
.mn-shut, .top[data-open] .mn-open { display: none; }
.top[data-open] .mn-shut { display: block; }

.screen { position: relative; isolation: isolate; overflow-x: clip; }

.foot { padding-block: 48px 36px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h3 { margin: 0 0 4px; color: var(--text); font: 600 15px/1.3 var(--sans); }
.foot-col p { margin: 0; }
.foot-col .logo { margin-bottom: 8px; color: var(--text); }
.foot a { text-decoration: none; }
.foot-col a:not(.logo):hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot .num { font-variant-numeric: tabular-nums; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }

.hero { padding-block: 88px; text-align: center; }
.hero > div { max-width: 1064px; margin-inline: auto; }
.h1 { margin: 0; font: 600 clamp(38px, 4.3vw, 64px)/1.05 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.sub { margin: 28px auto 0; max-width: 64ch; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; color: var(--soft); letter-spacing: -0.01em; }
.act { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.mcp-flow { padding-top: 110px; }
.stack { display: grid; grid-template-columns: minmax(248px, 1.15fr) minmax(48px, .3fr) minmax(246px, 1.4fr) minmax(48px, .3fr) minmax(136px, .65fr); align-items: center; min-height: 440px; padding: clamp(24px, 3.3vw, 48px); border: 1px solid var(--line-hi); border-radius: 22px; background: var(--panel); }
.system-group, .claude-group { min-width: 0; width: 100%; text-align: center; }
.claude-tile { display: inline-flex; align-items: center; gap: 10px; width: 100%; justify-content: center; padding: 14px 18px; border: 1px solid var(--line-hi); border-radius: 16px; background: var(--panel-2); font: 600 18px/1.2 var(--sans); }
.claude-tile svg { width: 22px; height: 22px; color: var(--soft); }
.wires { position: relative; display: flex; align-items: center; width: 100%; height: 100px; }
.wl { position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%; }
.wl::after, .source-wires::after { content: ""; position: absolute; top: 50%; right: 2px; width: 7px; height: 7px; border-top: 1.5px solid var(--lime); border-right: 1.5px solid var(--lime); transform: translateY(-50%) rotate(45deg); }
.wl i { position: relative; width: 100%; height: 1px; background: repeating-linear-gradient(90deg, var(--lime) 0 4px, transparent 4px 9px); opacity: .9; }
.wl i::before, .wl i::after { content: ""; position: absolute; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: flow-x 2.4s linear infinite; }
.wl i::after { animation-delay: -1.2s; }
.wl i:nth-child(2)::before { animation-delay: -.6s; }
.wl i:nth-child(2)::after { animation-delay: -1.8s; }
.wl i:nth-child(3)::before { animation-delay: -.3s; }
.wl i:nth-child(3)::after { animation-delay: -1.5s; }
@keyframes flow-x { from { left: 0; } to { left: calc(100% - 6px); } }
@keyframes flow-y { from { top: 0; } to { top: calc(100% - 6px); } }
.layer { color-scheme: dark; --panel: var(--palette-panel); --line: var(--palette-line); --line-hi: var(--palette-line-hi); --text: #f3f3f3; --soft: var(--palette-soft); width: 100%; border: 1px solid var(--line-hi); border-radius: 22px; background: url("/media/gradient-dither.png") repeat, radial-gradient(120% 75% at 20% 0%, #72727240 0%, transparent 70%), var(--panel); background-blend-mode: soft-light, normal, normal; color: var(--text); }
.layer { padding: 32px 24px; text-align: center; }
.layer-head { display: grid; justify-items: center; gap: 14px; margin-bottom: 16px; }
.layer-head img { width: 64px; height: 64px; }
.layer-head b { font: 600 24px/1 var(--sans); letter-spacing: -0.03em; }
.layer-cap { margin: 0; font-size: 16px; line-height: 1.45; color: var(--soft); }
.systems { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.systems li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line-hi); border-radius: 12px; background: var(--panel); text-align: left; }
.systems b { min-width: 0; font-size: 15px; line-height: 1.25; font-weight: 600; }
.system-logos { display: flex; flex: none; padding-left: 3px; }
.system-logos img { box-sizing: content-box; width: 18px; height: 18px; padding: 4px; margin-left: -3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.source-wires { height: 264px; }
.source-fan { display: block; width: 100%; height: 100%; overflow: visible; }
.source-fan-mobile { display: none; }
.source-route { fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.source-dot { fill: var(--lime); }
.trust-points { list-style: none; margin: 0; padding: 0; }
.trust-points li { display: flex; align-items: flex-start; gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.trust-points li:first-child { padding-top: 0; border-top: 0; }
.trust-points h4 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.trust-points li p { margin: 8px 0 0; max-width: 65ch; color: var(--soft); font-size: 16px; font-weight: 400; line-height: 1.5; }
.trust-points svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--lime); }

.sec { padding-block: 110px; }
.sec-head { display: grid; gap: 14px; max-width: 780px; margin-bottom: 48px; }
.sec-head h2 { margin: 0; font: 600 clamp(28px, 3.2vw, 44px)/1.1 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--soft); font-size: 18px; max-width: 58ch; }
.plus { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; padding-block: 44px; border-top: 1px solid var(--line-hi); background: var(--bg); }
.plus:last-child { border-bottom: 1px solid var(--line-hi); }
.plus h3 { margin: 0 0 14px; font: 600 clamp(24px, 2vw, 28px)/1.2 var(--sans); letter-spacing: -0.03em; text-wrap: balance; }
.plus-text p { margin: 0; color: var(--soft); font-size: 18px; max-width: 46ch; }
.plus-text p + p { margin-top: 14px; }
.proof { min-width: 0; }
.pf-cap { margin: 0 0 14px; font: 500 13px/1.4 var(--sans); color: var(--soft); }

.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 18px; }
.todo li:first-child { border-top: 0; padding-top: 0; }
.todo span { color: var(--text); text-decoration-line: line-through; text-decoration-thickness: 2px; text-decoration-color: transparent; transition: color .4s ease, text-decoration-color .4s ease; }
.todo[data-on] li:not(.left) span { color: var(--soft); text-decoration-color: var(--soft); }
.todo li:nth-child(2) span { transition-delay: .35s; }
.todo li:nth-child(3) span { transition-delay: .7s; }
.todo li:nth-child(4) span { transition-delay: 1.05s; }
.todo li.left { font-weight: 600; }
.todo li.left span { text-decoration: none; }
.ok { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--lime); color: var(--lime-ink); }
.ok svg { width: 15px; height: 15px; }
.tally { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 600 18px/1.3 var(--sans); }

.weigh { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wg { display: grid; gap: 10px; }
.wg h4 { margin: 0; font: 600 16px/1.3 var(--sans); }
.wg small { color: var(--soft); font-size: 14px; }
.wg-now h4 { color: var(--lime); }
.wall { position: relative; height: 200px; overflow: hidden; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font: 400 10.5px/1.55 var(--mono); color: var(--soft); white-space: pre; font-variant-numeric: tabular-nums; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.wall::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 56px; background: linear-gradient(90deg, transparent, var(--panel-2)); }
.wall b { color: var(--text); font-weight: 600; }
.result { border-radius: 12px; background: var(--panel-2); padding: 10px 12px; }
.result table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.result th, .result td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; white-space: nowrap; }
.result th { color: var(--soft); font-size: 12.5px; }
.result tr:last-child td { border-bottom: 0; }
.result th + th, .result td + td { text-align: right; padding-left: 10px; }

.pile { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rep { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 14px; }
.rep img { box-sizing: content-box; width: 16px; height: 16px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.rep span { color: var(--soft); }
.funnel { display: block; width: 100%; height: 56px; }
.funnel path { fill: none; stroke: var(--lime); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.one { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 18px; border: 2px solid var(--lime); border-radius: 12px; font: 600 18px/1.3 var(--sans); text-align: center; }

.rows { display: grid; gap: 10px; }
.row { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.row-cap { font: 500 13px/1.4 var(--sans); color: var(--soft); }
.row-cells { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; font-variant-numeric: tabular-nums; }
.row-enc { border-color: var(--accent-line); background: var(--accent-bg); }
.row-enc code { font: 500 14.5px/1.5 var(--mono); color: var(--lime); }
.row-arrow { display: flex; align-items: center; gap: 10px; padding-left: 18px; color: var(--soft); font: 500 13px/1.3 var(--sans); }
.row-arrow svg { width: 18px; height: 18px; color: var(--lime); }

.night { position: relative; overflow-x: clip; isolation: isolate; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px 16px; align-content: start; padding: 28px 0; border-top: 1px solid var(--line-hi); }
.step-n { grid-row: span 2; padding-top: 1px; color: var(--palette-primary); font: 600 28px/1 var(--sans); font-variant-numeric: tabular-nums; }
.steps b { font: 600 20px/1.25 var(--sans); letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--soft); font-size: 15px; }
.steps-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 28px 0 0; }

.tq { border: 1px solid var(--line-hi); border-radius: 22px; background: var(--panel); overflow: hidden; }
.tq table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tq th, .tq td { padding: 18px 24px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.tq thead th { border-top: 0; padding-block: 16px; color: var(--soft); font: 500 15px/1.3 var(--sans); }
.tq tbody th { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.tq td { font-weight: 500; }
.tq td small { color: var(--soft); font-weight: 400; font-size: 14px; }
.tq .hi { background: var(--accent-bg); color: var(--text); }
.tq thead .hi { color: var(--lime); font-weight: 600; }
.inf { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 600; }
.inf svg { width: 26px; height: 26px; }
.tq-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 22px; }
.tq-foot p { margin: 0; color: var(--soft); }

.cta { display: grid; justify-items: center; gap: 22px; padding-block: 130px 120px; text-align: center; }
.cta h2 { margin: 0; max-width: 17ch; font: 600 clamp(34px, 4.6vw, 64px)/1.05 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.cta p { margin: 0; max-width: 46ch; color: var(--soft); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; text-wrap: balance; }
.cta .btn { margin-top: 14px; }

@media (max-width: 1200px) {
  .weigh { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .plus { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stack { grid-template-columns: minmax(0, 1fr); justify-items: center; min-height: 0; }
  .system-group, .claude-group, .layer { max-width: 640px; }
  .wires { justify-content: center; height: 80px; }
  .wl { flex-direction: row; gap: 14px; width: auto; height: 100%; }
  .wl::after, .source-wires::after { top: auto; right: auto; bottom: 2px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .wl i { width: 1px; height: 100%; background-image: repeating-linear-gradient(180deg, var(--lime) 0 4px, transparent 4px 9px); }
  .wl i::before, .wl i::after { left: -3px; animation-name: flow-y; }
  .source-fan { display: none; }
  .source-fan-mobile { display: block; width: 100%; height: 100%; }
}
@media (max-width: 960px) {
  .tq table, .tq thead, .tq tbody, .tq tr, .tq th, .tq td { display: block; }
  .tq thead { display: none; }
  .tq tr { padding: 16px 20px; border-top: 1px solid var(--line); }
  .tq tr:first-child { border-top: 0; }
  .tq th, .tq td { padding: 0; border: 0; }
  .tq td { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; }
  .tq td::before { content: attr(data-l); color: var(--soft); font-weight: 400; }
  .tq .hi { background: none; }
  .inf svg { width: 22px; height: 22px; }
}
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .top { gap: 12px; }
  .top .btn-ghost { display: none; }
  .mn-burger { display: grid; }
  .top .btn-lime { margin-left: auto; padding: 10px 14px; font-size: 15px; white-space: nowrap; }
  .mnav { display: none; position: fixed; top: 84px; left: max(16px, 4vw); right: max(16px, 4vw); z-index: 60; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 100px); overscroll-behavior: contain; overflow-y: auto; padding: 8px; border: 1px solid var(--line-hi); border-radius: 16px; background: var(--panel); box-shadow: 0 24px 48px -16px #000000cc; }
  .top[data-open] .mnav { display: flex; }
  .mn-btn { pointer-events: none; min-height: 0; padding: 14px 10px 6px; color: var(--dim); font-size: 13px; }
  .mn-down { display: none; }
  .mn-panel, .mn-item:hover .mn-panel { display: grid; position: static; width: auto; padding: 0; border: 0; box-shadow: none; background: none; }
  .mn-plain { min-height: 48px; padding: 0 10px; color: var(--text); border-top: 1px solid var(--line); border-radius: 0; }
  .mn-login { display: flex; }
  .top .btn-lime:not(.mn-cta) { display: none; }
  .mn-burger { margin-left: auto; }
  .top .mn-cta { display: flex; margin: 10px 2px 4px; }
}
@media (max-width: 760px) {
  .h1 { font-size: 36px; }
  .hero { padding-block: 24px 64px; text-align: left; }
  .sub { margin-left: 0; margin-right: 0; }
  .act { justify-content: flex-start; }
  .mcp-flow { padding-top: 64px; }
  .act .btn, .steps-foot .btn { flex: 1 1 100%; }
  .sec { padding-block: 64px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; }
  .sec-head p, .plus-text p { font-size: 16px; }
  .plus { padding-block: 32px; }
  .plus h3 { font-size: 24px; }
  .trust-points li { padding-block: 20px; }
  .trust-points h4 { font-size: 17px; }
  .wall { height: 140px; }
  .cta { justify-items: start; text-align: left; padding-block: 72px 64px; }
  .cta h2 { font-size: 34px; }
}
@media (max-width: 520px) {
  .stack { padding: 24px 16px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wl i::before, .wl i::after { display: none; }
  .source-dot { display: none; }
  .todo span, .btn, .more svg { transition: none; }
}
