html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }
.site-wrap { width: auto; margin-inline: clamp(16px, 4vw, 64px); }
.site-header { border-bottom: 1px solid var(--line); background: #faf9f5; }
.site-header-inner, .site-footer-inner { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.site-header-inner { min-height: 70px; }
.site-nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, .74fr); grid-template-areas: "demo copy"; align-items: center; gap: clamp(28px, 4vw, 62px); padding-block: clamp(48px, 6.4vw, 96px); }
.landing-copy { grid-area: copy; }
.landing-copy h1 { font-size: clamp(44px, 5.25vw, 78px); line-height: .99; letter-spacing: -.071em; font-weight: 660; text-wrap: balance; }
.landing-copy h1 span { white-space: nowrap; }
.landing-copy > p { max-width: 385px; margin-top: 24px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.52; color: var(--muted); }
.landing-action { margin-top: 25px; min-height: 46px; padding-inline: 14px; }

.scenario-demo { grid-area: demo; min-width: 0; border: 1px solid #bfc9d9; border-radius: var(--radius); background: var(--surface); }
.demo-heading, .demo-response { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.demo-heading { justify-content: space-between; }
.demo-heading p, .demo-response div > p:first-child { color: var(--muted); font-size: 12px; }
.demo-heading h2 { font-size: 17px; font-weight: 630; }
.demo-platforms { display: flex; flex-wrap: wrap; gap: 2px; border: 1px solid var(--line); border-radius: 5px; padding: 2px; }
.demo-platforms button { display: flex; align-items: center; gap: 4px; min-height: 29px; border: 0; border-radius: 3px; padding: 3px 6px; background: transparent; font-size: 12px; }
.demo-platforms button:hover, .demo-platforms button[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); }
.demo-platforms .icon { width: 14px; height: 14px; }
.demo-canvas {
    position: relative;
    isolation: isolate;
    height: clamp(300px, 24vw, 440px);
    border-block: 1px solid var(--line);
    background-color: #edf1f7;
    background-image: radial-gradient(circle, #b2c0d5 .9px, transparent 1px);
    background-size: 16px 16px;
}
.demo-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.demo-wires path { fill: none; stroke: #6f84b4; stroke-width: 1.5; }
.demo-wires [data-path].is-active { stroke: var(--accent); stroke-width: 2.6; }
.demo-node {
    position: absolute;
    min-width: 0;
    padding: 10px;
    transform: translateY(-50%);
    border: 1px solid #aab8ce;
    border-radius: 5px;
    background: var(--surface);
    font-size: 13px;
    line-height: 1.25;
}
.demo-node strong { display: block; overflow-wrap: anywhere; font-weight: 650; }
.demo-node-type { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.demo-node-type .icon { width: 14px; height: 14px; }
.demo-start { left: 4%; top: 50%; width: 16%; }
.demo-start code { white-space: nowrap; font-size: 12px; }
.demo-message { left: 28%; top: 50%; width: 33%; border-color: #8c9dcc; }
.demo-request, .demo-question { left: 72%; width: 24%; }
.demo-request { top: 28%; }
.demo-question { top: 72%; }
.demo-node.is-active { border-color: var(--accent); outline: 2px solid #bed0ff; }
.demo-choices { display: grid; gap: 4px; margin-top: 10px; }
.demo-choices button { display: flex; align-items: center; justify-content: space-between; gap: 2px; width: 100%; min-height: 29px; padding: 4px 5px; border: 1px solid #d2daeb; border-radius: 3px; background: #f5f7fc; text-align: left; font-size: 11px; line-height: 1.2; }
.demo-choices button:hover, .demo-choices button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.demo-choices .icon { width: 12px; height: 12px; }
.demo-response { min-height: 74px; align-items: start; font-size: 14px; }
.demo-response > .icon { margin-top: 3px; color: var(--accent); }
.demo-response div > p + p { margin-top: 3px; }

.landing-features { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(28px, 4vw, 62px); border-top: 1px solid #bac3d3; padding-block: 34px 68px; }
.feature-intro h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.05em; }
.feature-intro p { margin-top: 12px; max-width: 285px; color: var(--muted); }
.feature-list > div { display: grid; grid-template-columns: minmax(125px, .54fr) minmax(0, 1fr); gap: 18px; border-bottom: 1px solid #c9cfdb; padding: 14px 0; }
.feature-list > div:first-child { padding-top: 3px; }
.feature-list dt { display: flex; align-items: start; gap: 9px; font-weight: 650; }
.feature-list dt .icon { margin-top: 2px; color: var(--accent); }
.feature-list dd { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #faf9f5; }
.site-footer-inner { min-height: 76px; flex-wrap: wrap; padding-block: 12px; font-size: 14px; }
.site-footer .brand { font-size: 19px; margin-right: auto; }

@media (max-width: 890px) {
    .landing-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "demo"; gap: 28px; align-items: start; }
    .landing-copy { grid-area: copy; }
.landing-copy h1 { max-width: 680px; text-wrap: initial; }
    .landing-copy > p { max-width: 510px; margin-top: 16px; }
    .landing-action { margin-top: 19px; }
    .landing-features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
    .site-wrap { margin-inline: 16px; }
    .site-header-inner { min-height: 60px; }
    .site-nav { display: none; }
    .landing-hero { padding-block: 32px 38px; }
    .landing-copy h1 { font-size: clamp(39px, 9vw, 50px); }
    .demo-heading, .demo-response { padding: 11px 10px; gap: 8px; }
    .demo-canvas { height: 248px; }
    .demo-node { padding: 6px; font-size: 12px; }
    .demo-node-type .icon { display: none; }
    .demo-node-type { margin-bottom: 4px; }
    .demo-choices button { padding-inline: 4px; }
    .demo-choices .icon { display: none; }
    .demo-platforms button { min-height: 28px; padding-inline: 4px; font-size: 11px; }
    .demo-platforms .icon { display: none; }
    .landing-features { padding-block: 26px 40px; gap: 20px; }
    .feature-list > div { grid-template-columns: 1fr; gap: 4px; }
    .feature-list dd { padding-left: 27px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
