:root {
    color-scheme: light;
    --bg: #f4f5f0;
    --surface: #ffffff;
    --surface-soft: #ebece6;
    --surface-strong: #17191c;
    --text: #17191c;
    --muted: #626870;
    --line: #d9ddd6;
    --line-strong: #bfc5bd;
    --brand: #ef513d;
    --brand-dark: #d73d2b;
    --brand-soft: #ffe1dc;
    --blue: #3975df;
    --blue-soft: #dfeaff;
    --mint: #0b9c91;
    --mint-soft: #d9f3ed;
    --yellow: #e2ae29;
    --yellow-soft: #fff0bd;
    --success: #188765;
    --shadow-sm: 0 10px 30px rgba(23, 25, 28, 0.07);
    --shadow-lg: 0 24px 70px rgba(23, 25, 28, 0.12);
    --page: 1180px;
    --header-height: 74px;
    --radius: 8px;
    --font-body: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f1113;
    --surface: #171a1d;
    --surface-soft: #202428;
    --surface-strong: #f4f5f0;
    --text: #f5f6f1;
    --muted: #a9b0b7;
    --line: #30353a;
    --line-strong: #4a5158;
    --brand: #ff674f;
    --brand-dark: #ff806c;
    --brand-soft: #49241f;
    --blue: #6d9cf2;
    --blue-soft: #1f304e;
    --mint: #4bc9bb;
    --mint-soft: #173936;
    --yellow: #f0c14f;
    --yellow-soft: #423719;
    --success: #55c99f;
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 26px 80px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

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

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: 0;
}

::selection {
    background: var(--brand);
    color: #ffffff;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    background: var(--surface-strong);
    color: var(--bg);
    border-radius: 6px;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.scroll-progress {
    position: fixed;
    z-index: 1200;
    inset: 0 0 auto;
    height: 3px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--brand);
}

.section-shell {
    width: min(calc(100% - 48px), var(--page));
    margin-inline: auto;
}

.section-pad {
    padding-block: 112px;
}

.section-kicker,
.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-kicker::before {
    width: 18px;
    height: 2px;
    flex: 0 0 18px;
    background: currentColor;
    content: "";
    transition: width 420ms ease, flex-basis 420ms ease;
}

.reveal.is-visible .section-kicker::before,
.is-visible > .section-kicker::before {
    width: 30px;
    flex-basis: 30px;
}

.section-heading h2,
.architecture-heading h2,
.security-lead h2,
.install-copy h2,
.final-inner h2 {
    margin-bottom: 0;
    font-size: 54px;
    font-weight: 780;
}

.section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 42px;
    margin-bottom: 48px;
}

.section-heading-row > p {
    width: 330px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 17px;
}

.reveal {
    --reveal-x: 0px;
    opacity: 0;
    transform: translate3d(var(--reveal-x), 20px, 0);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    border-color: var(--line);
    box-shadow: 0 8px 24px rgba(23, 25, 28, 0.04);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    width: min(calc(100% - 48px), var(--page));
    height: 100%;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-size: 19px;
    font-weight: 850;
    line-height: 1;
}

.brand img {
    width: 31px;
    height: 31px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    position: relative;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: color 160ms ease;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--brand);
    content: "";
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--text);
}

.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    position: relative;
    display: inline-grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.icon-button:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.icon-button svg {
    width: 19px;
    height: 19px;
}

[data-tooltip]::after {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    max-width: 180px;
    padding: 6px 9px;
    border-radius: 5px;
    background: var(--surface-strong);
    color: var(--bg);
    content: attr(data-tooltip);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-3px);
    transition: opacity 140ms ease, transform 140ms ease;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.header-cta {
    display: inline-flex;
    height: 42px;
    padding-inline: 16px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--surface-strong);
    border-radius: 7px;
    background: var(--surface-strong);
    color: var(--bg);
    font-size: 13px;
    font-weight: 800;
    transition: transform 160ms ease, opacity 160ms ease;
}

.header-cta:hover {
    opacity: 0.86;
    transform: translateY(-1px);
}

.header-cta svg {
    width: 15px;
    height: 15px;
}

.menu-toggle,
.mobile-menu {
    display: none;
}

.hero {
    position: relative;
    display: flex;
    min-height: 92svh;
    padding: calc(var(--header-height) + 42px) 0 52px;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.hero-rail {
    position: absolute;
    z-index: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--line);
    pointer-events: none;
}

.hero-rail::before,
.hero-rail::after {
    position: absolute;
    top: -4px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: var(--bg);
    content: "";
}

.hero-rail::before {
    left: 8%;
}

.hero-rail::after {
    right: 12%;
}

.hero-rail-one {
    top: 29%;
}

.hero-rail-two {
    bottom: 20%;
}

.hero-tool-field {
    position: absolute;
    z-index: 2;
    inset: var(--header-height) 0 0;
    pointer-events: none;
}

.floating-tool {
    --float-offset: 0px;
    position: absolute;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    animation: tool-float 5.8s ease-in-out infinite;
    will-change: transform;
}

.floating-tool svg {
    width: 21px;
    height: 21px;
}

.tool-browser {
    top: 20%;
    left: max(24px, calc(50% - 700px));
    color: var(--blue);
}

.tool-memory {
    top: 63%;
    left: max(42px, calc(50% - 640px));
    color: var(--mint);
    animation-delay: -1.7s;
}

.tool-terminal {
    top: 24%;
    right: max(30px, calc(50% - 700px));
    color: var(--brand-dark);
    animation-delay: -2.8s;
}

.tool-calendar {
    right: max(52px, calc(50% - 640px));
    bottom: 17%;
    color: var(--yellow);
    animation-delay: -4s;
}

@keyframes tool-float {
    0%, 100% { transform: translate3d(0, var(--float-offset), 0) rotate(-2deg); }
    50% { transform: translate3d(0, calc(var(--float-offset) - 11px), 0) rotate(2deg); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(calc(100% - 48px), 1080px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) minmax(480px, 0.94fr);
    gap: 70px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy.reveal.is-visible {
    transform: translate3d(0, var(--hero-scroll-y, 0px), 0);
    opacity: var(--hero-copy-opacity, 1);
    will-change: transform, opacity;
}

.eyebrow {
    width: max-content;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 12px;
}

.live-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--success);
}

.live-dot::after {
    position: absolute;
    inset: -4px;
    border: 1px solid var(--success);
    border-radius: 50%;
    content: "";
    opacity: 0;
    animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
    0% { opacity: 0.8; transform: scale(0.5); }
    65%, 100% { opacity: 0; transform: scale(1.25); }
}

.hero h1 {
    margin-bottom: 4px;
    font-size: 88px;
    font-weight: 900;
    line-height: 0.98;
}

.hero-tagline {
    margin-bottom: 22px;
    color: var(--brand-dark);
    font-size: 34px;
    font-weight: 820;
    line-height: 1.25;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button svg {
    width: 17px;
    height: 17px;
}

.button-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 24%, transparent);
}

.button-primary:hover {
    background: var(--brand-dark);
}

.button-secondary {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--text);
}

.agent-stage {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.agent-stage.reveal.is-visible {
    transform: perspective(1100px) translate3d(0, var(--stage-scroll-y, 0px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.agent-stage .stage-topbar,
.agent-stage .stage-command,
.agent-stage .stage-result {
    transform: translateZ(10px);
}

.agent-stage .agent-mark {
    transform: translateZ(18px);
}

.stage-topbar {
    display: flex;
    min-height: 54px;
    padding: 8px 11px 8px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.stage-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.demo-switcher,
.filter-tabs,
.scenario-tabs,
.install-tabs {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.demo-tab,
.filter-tab,
.scenario-tab,
.install-tab {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.demo-tab {
    min-width: 48px;
    height: 30px;
    padding: 0 10px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.demo-tab.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(23, 25, 28, 0.08);
}

.stage-body {
    padding: 22px;
}

.stage-command {
    display: flex;
    gap: 12px;
    min-height: 70px;
    padding: 14px;
    border-left: 3px solid var(--blue);
    background: var(--surface-soft);
}

.channel-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #ffffff;
}

.channel-avatar svg {
    width: 17px;
    height: 17px;
}

.stage-label {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.stage-command p {
    min-height: 43px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.execution-flow {
    display: grid;
    min-height: 104px;
    padding: 14px 12px;
    grid-template-columns: 38px minmax(28px, 1fr) 66px minmax(28px, 1fr) 38px;
    align-items: center;
}

.flow-node {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
}

.flow-node svg {
    width: 17px;
    height: 17px;
}

.flow-node.is-complete {
    border-color: var(--success);
    color: var(--success);
}

.flow-node.is-running {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 0 0 5px var(--brand-soft);
}

.flow-line {
    position: relative;
    height: 1px;
    overflow: hidden;
    background: var(--line-strong);
}

.flow-line b {
    position: absolute;
    top: -1px;
    width: 28%;
    height: 3px;
    background: var(--brand);
    animation: data-flow 1.7s linear infinite;
}

@keyframes data-flow {
    from { left: -30%; }
    to { left: 105%; }
}

.agent-mark {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid var(--brand);
    border-radius: 50%;
    background: var(--brand-soft);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand-soft) 60%, transparent);
}

.hero-mascot {
    display: block;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50%;
}

.hero-mascot img {
    width: auto;
    max-width: none;
    height: 52px;
}

.stage-result {
    min-height: 91px;
    padding-top: 2px;
}

.tool-stack {
    display: flex;
    gap: 7px;
    margin-bottom: 13px;
    flex-wrap: wrap;
}

.tool-stack span {
    display: inline-flex;
    min-height: 28px;
    padding: 0 9px;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.tool-stack svg {
    width: 13px;
    height: 13px;
}

.stage-result > p {
    display: flex;
    min-height: 43px;
    margin-bottom: 0;
    align-items: flex-start;
    gap: 9px;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.stage-result > p svg {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex: 0 0 17px;
    color: var(--success);
}

.proof-strip {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.proof-inner {
    display: grid;
    width: min(100%, 960px);
    min-height: 94px;
    margin-inline: auto;
    grid-template-columns: repeat(4, 1fr);
}

.proof-inner > div {
    display: flex;
    padding: 18px 28px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-left: 1px solid var(--line);
}

.proof-inner > div:last-child {
    border-right: 1px solid var(--line);
}

.proof-inner strong {
    font-size: 26px;
    font-weight: 850;
}

.proof-inner span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.intro {
    background: var(--surface);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 110px;
    align-items: start;
}

.intro-copy > p {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.9;
}

.principles {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.principles span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
}

.principles svg {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

.capabilities {
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.capability-controls {
    display: flex;
    margin-bottom: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.filter-tabs {
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar,
.scenario-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    min-width: max-content;
    height: 39px;
    padding: 0 15px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.filter-tab.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(23, 25, 28, 0.08);
}

.feature-search {
    display: flex;
    width: 240px;
    height: 47px;
    padding: 0 14px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.feature-search:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}

.feature-search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--muted);
}

.feature-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.feature-search input::placeholder {
    color: var(--muted);
}

.result-count {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature-card {
    --card-lift: 0px;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    display: grid;
    min-height: 360px;
    padding: 28px;
    grid-template-rows: auto auto auto 1fr auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card:hover {
    --card-lift: -6px;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.feature-card.reveal:nth-child(odd) {
    --reveal-x: -24px;
}

.feature-card.reveal:nth-child(even) {
    --reveal-x: 24px;
}

.feature-card.reveal {
    transform: perspective(900px) translate3d(var(--reveal-x), 22px, 0) rotateX(0deg) rotateY(0deg);
}

.feature-card.reveal.is-visible {
    transform: perspective(900px) translate3d(0, var(--card-lift), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.feature-card > * {
    transform: translateZ(8px);
}

.feature-card[hidden] {
    display: none;
}

.feature-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 32px;
    place-items: center;
    border-radius: 7px;
}

.feature-icon svg {
    width: 23px;
    height: 23px;
}

.tone-coral { background: var(--brand-soft); color: var(--brand-dark); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-mint { background: var(--mint-soft); color: var(--mint); }
.tone-yellow { background: var(--yellow-soft); color: var(--yellow); }
.tone-ink { background: var(--surface-strong); color: var(--bg); }

.feature-kicker {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-card h3 {
    max-width: 450px;
    margin-bottom: 14px;
    font-size: 25px;
    font-weight: 820;
    line-height: 1.3;
}

.feature-card > p:not(.feature-kicker) {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.feature-card ul {
    display: flex;
    padding: 17px 0 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 10px 18px;
    border-top: 1px solid var(--line);
    list-style: none;
}

.feature-card li {
    position: relative;
    padding-left: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.feature-card li::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
    content: "";
    transform: translateY(-50%);
}

.empty-state {
    min-height: 320px;
    padding: 60px 24px;
    border: 1px dashed var(--line-strong);
    text-align: center;
}

.empty-state svg {
    width: 36px;
    height: 36px;
    margin: 0 auto 18px;
    color: var(--muted);
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.empty-state p {
    color: var(--muted);
}

.text-button {
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: none;
    color: var(--brand-dark);
    font-weight: 800;
    cursor: pointer;
}

.architecture {
    background: #17191c;
    color: #f5f6f1;
}

.architecture .section-kicker {
    color: #ff806c;
}

.architecture-heading {
    display: grid;
    margin-bottom: 70px;
    grid-template-columns: 1.1fr 0.65fr;
    gap: 30px 80px;
    align-items: end;
}

.architecture-heading .section-kicker {
    grid-column: 1 / -1;
    margin-bottom: -8px;
}

.architecture-heading > p:last-child {
    margin-bottom: 5px;
    color: #aeb4ba;
    font-size: 17px;
}

.architecture-map {
    display: grid;
    grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr;
    gap: 10px;
    align-items: center;
}

.architecture-step {
    position: relative;
    min-height: 220px;
    padding: 25px 22px;
    border: 1px solid #3b4045;
    border-radius: var(--radius);
    background: #202327;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 520ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease;
}

.architecture-map.is-visible .architecture-step {
    opacity: 1;
    transform: translateY(0);
}

.architecture-map.is-visible .architecture-step:nth-of-type(1) { transition-delay: 80ms; }
.architecture-map.is-visible .architecture-step:nth-of-type(2) { transition-delay: 170ms; }
.architecture-map.is-visible .architecture-step:nth-of-type(3) { transition-delay: 260ms; }
.architecture-map.is-visible .architecture-step:nth-of-type(4) { transition-delay: 350ms; }

.architecture-step > svg,
.architecture-step > img {
    width: 38px;
    height: 38px;
    margin: 36px 0 22px;
    color: #ff806c;
}

.architecture-step h3 {
    margin-bottom: 9px;
    font-size: 20px;
}

.architecture-step p {
    margin-bottom: 0;
    color: #aeb4ba;
    font-size: 13px;
    line-height: 1.65;
}

.architecture-core {
    border-color: #ef513d;
    background: #ef513d;
    color: #ffffff;
}

.architecture-core p {
    color: #fff1ed;
}

.architecture-core > img {
    padding: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.step-index {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #8c949b;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.architecture-core .step-index {
    color: #ffe2dc;
}

.step-arrow {
    width: 21px;
    height: 21px;
    justify-self: center;
    color: #697078;
    animation: arrow-breathe 1.8s ease-in-out infinite;
}

@keyframes arrow-breathe {
    0%, 100% { opacity: 0.42; transform: translateX(-2px); }
    50% { opacity: 1; transform: translateX(3px); }
}

.architecture-notes {
    display: grid;
    margin-top: 50px;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.architecture-notes > div {
    display: flex;
    gap: 13px;
    color: #aeb4ba;
    font-size: 13px;
    line-height: 1.7;
}

.architecture-notes svg {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    flex: 0 0 19px;
    color: #ff806c;
}

.architecture-notes strong {
    display: block;
    margin-bottom: 3px;
    color: #ffffff;
    font-size: 14px;
}

.scenarios {
    background: var(--surface);
}

.scenario-tabs {
    width: 100%;
    margin-bottom: 22px;
}

.scenario-tab {
    display: flex;
    min-width: 0;
    min-height: 52px;
    padding: 0 20px;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 780;
}

.scenario-tab svg {
    width: 18px;
    height: 18px;
}

.scenario-tab.is-active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.scenario-panels {
    min-height: 570px;
}

.scenario-panels.is-visible .floating-phone {
    animation: phone-float 6.5s ease-in-out infinite;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotate(-0.35deg); }
    50% { transform: translateY(-9px) rotate(0.35deg); }
}

.scenario-panel {
    display: none;
    min-height: 570px;
    padding: 54px 70px;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 95px;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--bg);
}

.scenario-panel.is-active {
    display: grid;
}

.phone-frame {
    width: 310px;
    height: 510px;
    padding: 12px;
    border: 7px solid var(--surface-strong);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.phone-bar {
    display: flex;
    height: 27px;
    padding: 0 9px;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
}

.phone-bar span:last-child {
    display: flex;
    align-items: center;
    gap: 4px;
}

.phone-bar svg {
    width: 12px;
    height: 12px;
}

.phone-contact {
    display: flex;
    height: 58px;
    padding: 8px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}

.phone-contact img {
    width: 34px;
    height: 34px;
}

.phone-contact span {
    display: flex;
    flex-direction: column;
}

.phone-contact strong {
    font-size: 13px;
    line-height: 1.25;
}

.phone-contact small {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 9px;
}

.phone-contact small b {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
}

.chat-area {
    display: flex;
    height: 342px;
    padding: 18px 7px;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.chat-bubble {
    max-width: 85%;
    padding: 11px 12px;
    margin-bottom: 0;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.65;
}

.chat-user {
    align-self: flex-end;
    background: var(--blue);
    color: #ffffff;
    border-bottom-right-radius: 2px;
}

.chat-agent {
    align-self: flex-start;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    border-bottom-left-radius: 2px;
}

.phone-composer {
    display: flex;
    height: 39px;
    padding: 0 11px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: 10px;
}

.phone-composer svg {
    width: 15px;
    height: 15px;
}

.scenario-detail {
    max-width: 560px;
}

.scenario-label {
    display: flex;
    margin-bottom: 28px;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.scenario-label svg {
    width: 17px;
    height: 17px;
}

.scenario-detail ol {
    padding: 0;
    margin: 0 0 30px;
    list-style: none;
}

.scenario-detail li {
    display: grid;
    min-height: 84px;
    padding: 17px 0;
    grid-template-columns: 62px minmax(0, 1fr) 24px;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.scenario-detail li:first-child {
    border-top: 1px solid var(--line);
}

.scenario-detail li > span {
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
}

.scenario-detail li p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.scenario-detail li svg {
    width: 20px;
    height: 20px;
    color: var(--success);
}

.used-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.used-tools span {
    margin-right: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.used-tools b {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 10px;
}

.integrations {
    padding-block: 100px;
    border-block: 1px solid var(--line);
    background: var(--yellow-soft);
    color: #17191c;
}

html[data-theme="dark"] .integrations {
    color: var(--text);
}

.integrations-inner {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 90px;
    align-items: center;
}

.integrations-copy h2 {
    margin-bottom: 30px;
    font-size: 46px;
    font-weight: 820;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid currentColor;
    font-size: 14px;
    font-weight: 800;
}

.text-link svg {
    width: 15px;
    height: 15px;
}

.integration-cloud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.integration-item {
    display: flex;
    min-height: 70px;
    padding: 10px 15px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(23, 25, 28, 0.18);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1), background 160ms ease;
}

.integration-cloud.is-visible .integration-item {
    opacity: 1;
    transform: translateY(0);
}

.integration-cloud.is-visible .integration-item:nth-child(2) { transition-delay: 55ms; }
.integration-cloud.is-visible .integration-item:nth-child(3) { transition-delay: 110ms; }
.integration-cloud.is-visible .integration-item:nth-child(4) { transition-delay: 165ms; }
.integration-cloud.is-visible .integration-item:nth-child(5) { transition-delay: 220ms; }
.integration-cloud.is-visible .integration-item:nth-child(6) { transition-delay: 275ms; }
.integration-cloud.is-visible .integration-item:nth-child(7) { transition-delay: 330ms; }
.integration-cloud.is-visible .integration-item:nth-child(8) { transition-delay: 385ms; }
.integration-cloud.is-visible .integration-item:nth-child(9) { transition-delay: 440ms; }
.integration-cloud.is-visible .integration-item:nth-child(10) { transition-delay: 495ms; }

html[data-theme="dark"] .integration-item {
    border-color: var(--line-strong);
    background: var(--surface);
}

.integration-item svg {
    width: 19px;
    height: 19px;
}

.integration-item.item-wide {
    grid-column: span 2;
}

.integration-item.item-accent {
    background: #17191c;
    color: #ffffff;
}

.security {
    background: var(--bg);
}

.security-grid {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 110px;
    align-items: start;
}

.security-lead {
    position: sticky;
    top: calc(var(--header-height) + 44px);
}

.security-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 32px;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.security-icon svg {
    width: 35px;
    height: 35px;
}

.security-lead h2 {
    margin-bottom: 26px;
}

.security-lead > p:not(.section-kicker) {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.security-checklist {
    border-top: 1px solid var(--line-strong);
    overflow: clip;
}

.security-checklist article {
    display: grid;
    min-height: 165px;
    padding: 30px 0;
    grid-template-columns: 40px minmax(0, 1fr) 44px;
    gap: 22px;
    align-items: start;
    border-bottom: 1px solid var(--line-strong);
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 460ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.security-checklist.is-visible article {
    opacity: 1;
    transform: translateX(0);
}

.security-checklist.is-visible article:nth-child(2) { transition-delay: 90ms; }
.security-checklist.is-visible article:nth-child(3) { transition-delay: 180ms; }
.security-checklist.is-visible article:nth-child(4) { transition-delay: 270ms; }

.security-checklist article > span {
    color: var(--brand-dark);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
}

.security-checklist article > svg {
    width: 28px;
    height: 28px;
    justify-self: end;
    color: var(--muted);
}

.security-checklist h3 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 820;
}

.security-checklist p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.security-checklist code {
    font-family: var(--font-mono);
    color: var(--brand-dark);
}

.install {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.install-grid {
    display: grid;
    grid-template-columns: 0.68fr 1fr;
    gap: 80px;
    align-items: center;
}

.install-copy h2 {
    margin-bottom: 40px;
}

.install-copy {
    overflow: clip;
}

.install-steps {
    padding: 0;
    margin: 0;
    list-style: none;
}

.install-steps li {
    display: flex;
    padding: 18px 0;
    gap: 15px;
    border-top: 1px solid var(--line);
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 430ms ease, transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
}

.install-copy.is-visible .install-steps li {
    opacity: 1;
    transform: translateX(0);
}

.install-copy.is-visible .install-steps li:nth-child(2) { transition-delay: 100ms; }
.install-copy.is-visible .install-steps li:nth-child(3) { transition-delay: 200ms; }

.install-steps li:last-child {
    border-bottom: 1px solid var(--line);
}

.install-steps li > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-strong);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
}

.install-steps strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.install-steps p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.terminal-window {
    border: 1px solid #30353a;
    border-radius: var(--radius);
    overflow: hidden;
    background: #17191c;
    color: #f5f6f1;
    box-shadow: var(--shadow-lg);
}

.terminal-bar {
    display: grid;
    height: 56px;
    padding: 0 12px 0 18px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid #30353a;
    color: #9299a0;
    font-family: var(--font-mono);
    font-size: 11px;
}

.terminal-lights {
    display: flex;
    gap: 6px;
}

.terminal-lights i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef513d;
}

.terminal-lights i:nth-child(2) { background: #e2ae29; }
.terminal-lights i:nth-child(3) { background: #2ba87f; }

.terminal-bar .copy-button {
    width: 34px;
    height: 34px;
    justify-self: end;
    border-color: #3b4045;
    background: #202327;
    color: #f5f6f1;
}

.terminal-bar .copy-button svg {
    width: 15px;
    height: 15px;
}

.install-tabs {
    width: max-content;
    margin: 26px 26px 0;
    border-color: #3b4045;
    background: #202327;
}

.install-tab {
    min-height: 35px;
    padding: 0 14px;
    border-radius: 5px;
    color: #9299a0;
    font-size: 11px;
    font-weight: 750;
}

.install-tab.is-active {
    background: #34383d;
    color: #ffffff;
}

.terminal-code {
    display: flex;
    min-height: 126px;
    padding: 32px 28px;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #30353a;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
}

.terminal-code > span {
    color: #4bc9bb;
}

.terminal-code code {
    overflow-wrap: anywhere;
}

.terminal-next {
    display: grid;
    padding: 24px 28px;
    gap: 10px;
}

.terminal-next p {
    display: flex;
    margin-bottom: 3px;
    align-items: center;
    gap: 10px;
    color: #9299a0;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.terminal-next p::after {
    height: 1px;
    flex: 1;
    background: #30353a;
    content: "";
}

.terminal-next code {
    font-family: var(--font-mono);
    color: #cdd2d7;
    font-size: 12px;
}

.terminal-note {
    display: flex;
    padding: 14px 28px;
    margin: 0;
    align-items: flex-start;
    gap: 8px;
    border-top: 1px solid #30353a;
    background: #202327;
    color: #9299a0;
    font-size: 10px;
}

.terminal-note svg {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    flex: 0 0 14px;
}

.faq {
    background: var(--bg);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 100px;
    align-items: start;
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-list details {
    border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
    display: grid;
    min-height: 88px;
    padding: 21px 0;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary svg {
    width: 21px;
    height: 21px;
    transition: transform 180ms ease;
}

.faq-list details[open] summary svg {
    transform: rotate(45deg);
}

.faq-list details > p {
    padding: 0 44px 25px 0;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.faq-list details[open] > p {
    animation: faq-slide 260ms ease both;
}

@keyframes faq-slide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.final-cta {
    padding-block: 96px;
    background: var(--brand);
    color: #ffffff;
}

.final-inner {
    text-align: center;
}

.final-inner > img {
    width: 84px;
    height: 84px;
    padding: 8px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ffffff;
}

.final-inner .section-kicker {
    justify-content: center;
    color: #ffe4df;
}

.final-inner h2 {
    margin-bottom: 34px;
    font-size: 60px;
}

.final-actions {
    justify-content: center;
}

.button-light {
    background: #ffffff;
    color: #17191c;
}

.button-ghost-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.site-footer {
    padding: 48px 0 100px;
    background: #17191c;
    color: #f5f6f1;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 50px;
    align-items: center;
}

.footer-inner > div > p,
.footer-inner > p {
    margin: 9px 0 0;
    color: #9299a0;
    font-size: 11px;
}

.footer-inner nav {
    display: flex;
    gap: 24px;
}

.footer-inner nav a {
    color: #c8cdd2;
    font-size: 12px;
    font-weight: 700;
}

.footer-inner nav a:hover {
    color: #ffffff;
}

.mobile-dock {
    display: none;
}

.chapter-rail {
    position: fixed;
    z-index: 900;
    top: 50%;
    right: 18px;
    display: flex;
    width: 50px;
    padding: 5px;
    flex-direction: column;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(14px, -50%, 0);
    backdrop-filter: blur(14px);
    transition: opacity 220ms ease, transform 280ms ease;
}

.chapter-rail.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, -50%, 0);
}

.chapter-rail a {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 6px;
    color: var(--muted);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.chapter-rail a:hover {
    background: var(--surface-soft);
    color: var(--text);
    transform: translateX(-2px);
}

.chapter-rail a.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.chapter-rail svg {
    width: 18px;
    height: 18px;
}

.chapter-rail span {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    width: max-content;
    padding: 6px 9px;
    border-radius: 5px;
    background: var(--surface-strong);
    color: var(--bg);
    font-size: 11px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(5px, -50%);
    transition: opacity 140ms ease, transform 140ms ease;
}

.chapter-rail a:hover span,
.chapter-rail a:focus-visible span {
    opacity: 1;
    transform: translate(0, -50%);
}

.toast {
    position: fixed;
    z-index: 2000;
    right: 22px;
    bottom: 22px;
    display: flex;
    min-height: 46px;
    padding: 0 15px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-strong);
    color: var(--bg);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 1024px) {
    .section-heading h2,
    .architecture-heading h2,
    .security-lead h2,
    .install-copy h2,
    .final-inner h2 {
        font-size: 46px;
    }

    .hero-inner {
        gap: 34px;
        grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
    }

    .hero-tool-field {
        display: none;
    }

    .hero h1 {
        font-size: 72px;
    }

    .hero-tagline {
        font-size: 29px;
    }

    .hero-description {
        font-size: 16px;
    }

    .architecture-map {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .architecture-step {
        min-height: 200px;
    }

    .step-arrow {
        display: none;
    }

    .scenario-panel {
        padding-inline: 42px;
        gap: 50px;
    }

    .security-grid,
    .install-grid {
        gap: 60px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 66px;
    }

    .section-shell,
    .header-inner,
    .hero-inner {
        width: min(calc(100% - 32px), var(--page));
    }

    .section-pad {
        padding-block: 78px;
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 999;
        display: flex;
        height: calc(100svh - var(--header-height));
        padding: 34px 24px calc(110px + env(safe-area-inset-bottom));
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        background: var(--bg);
    }

    .mobile-menu[hidden] {
        display: none;
    }

    .mobile-menu a {
        display: flex;
        min-height: 65px;
        align-items: center;
        border-bottom: 1px solid var(--line);
        font-size: 24px;
        font-weight: 820;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 44px);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 38px;
        text-align: center;
    }

    .hero-copy {
        max-width: 650px;
        margin-inline: auto;
    }

    .hero-copy.reveal.is-visible,
    .agent-stage.reveal.is-visible,
    .feature-card.reveal.is-visible {
        transform: translate3d(0, 0, 0);
    }

    .feature-card.reveal:nth-child(odd),
    .feature-card.reveal:nth-child(even) {
        --reveal-x: 0px;
    }

    .eyebrow,
    .hero-actions {
        margin-inline: auto;
        justify-content: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .agent-stage {
        width: min(100%, 590px);
        margin-inline: auto;
        text-align: left;
    }

    .proof-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-inner > div {
        border-bottom: 1px solid var(--line);
    }

    .intro-grid,
    .architecture-heading,
    .security-grid,
    .install-grid,
    .faq-grid,
    .integrations-inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .architecture-heading .section-kicker {
        grid-column: auto;
        margin-bottom: -18px;
    }

    .architecture-heading > p:last-child {
        max-width: 650px;
    }

    .architecture-notes {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-heading-row {
        display: block;
    }

    .section-heading-row > p {
        width: auto;
        max-width: 520px;
        margin-top: 20px;
    }

    .capability-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-tabs {
        width: 100%;
    }

    .feature-search {
        width: 100%;
    }

    .scenario-panel {
        padding: 45px 24px;
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 35px;
    }

    .phone-frame {
        width: 280px;
        height: 490px;
    }

    .chat-area {
        height: 322px;
    }

    .security-lead {
        position: static;
    }

    .security-lead > p:not(.section-kicker) {
        max-width: 650px;
    }

    .integrations-copy h2 {
        font-size: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 620px) {
    body {
        padding-bottom: calc(67px + env(safe-area-inset-bottom));
        font-size: 15px;
    }

    .section-shell,
    .header-inner,
    .hero-inner {
        width: min(calc(100% - 28px), var(--page));
    }

    .section-pad {
        padding-block: 68px;
    }

    .section-heading h2,
    .architecture-heading h2,
    .security-lead h2,
    .install-copy h2,
    .final-inner h2 {
        font-size: 36px;
        line-height: 1.16;
    }

    .section-kicker {
        margin-bottom: 14px;
        font-size: 11px;
    }

    .header-inner {
        gap: 10px;
    }

    .brand {
        font-size: 17px;
    }

    .brand img {
        width: 28px;
        height: 28px;
    }

    .icon-button {
        width: 40px;
        height: 40px;
    }

    [data-tooltip]::after {
        display: none;
    }

    .hero {
        min-height: calc(100svh - 126px);
        padding: calc(var(--header-height) + 20px) 0 27px;
        align-items: flex-start;
    }

    .hero-inner {
        gap: 22px;
    }

    .eyebrow {
        margin-bottom: 12px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .hero h1 {
        margin-bottom: 5px;
        font-size: 55px;
    }

    .hero-tagline {
        margin-bottom: 13px;
        font-size: 24px;
    }

    .hero-description {
        margin-bottom: 19px;
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-actions {
        flex-wrap: nowrap;
    }

    .button {
        min-height: 46px;
        padding-inline: 15px;
        font-size: 13px;
    }

    .agent-stage {
        min-height: 207px;
    }

    .stage-topbar {
        min-height: 45px;
        padding: 6px 7px 6px 11px;
    }

    .stage-status {
        font-size: 10px;
    }

    .demo-switcher {
        padding: 2px;
    }

    .demo-tab {
        min-width: 39px;
        height: 27px;
        padding: 0 6px;
        font-size: 10px;
    }

    .stage-body {
        padding: 12px;
    }

    .stage-command {
        min-height: 54px;
        padding: 9px;
    }

    .channel-avatar {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .stage-label {
        font-size: 9px;
    }

    .stage-command p {
        min-height: 32px;
        font-size: 11px;
        line-height: 1.45;
    }

    .execution-flow {
        min-height: 67px;
        padding: 6px 9px;
        grid-template-columns: 28px minmax(20px, 1fr) 46px minmax(20px, 1fr) 28px;
    }

    .flow-node {
        width: 28px;
        height: 28px;
    }

    .flow-node svg {
        width: 13px;
        height: 13px;
    }

    .agent-mark {
        width: 46px;
        height: 46px;
        box-shadow: 0 0 0 4px var(--brand-soft);
    }

    .hero-mascot,
    .hero-mascot img {
        width: 36px;
        height: 36px;
    }

    .hero-mascot img {
        width: auto;
        max-width: none;
    }

    .stage-result {
        display: flex;
        min-height: 30px;
        align-items: center;
        gap: 8px;
    }

    .tool-stack {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .tool-stack span {
        min-height: 25px;
        padding-inline: 7px;
        font-size: 9px;
    }

    .tool-stack span:nth-child(n+2) {
        display: none;
    }

    .stage-result > p {
        min-height: 25px;
        margin-left: auto;
        align-items: center;
        font-size: 9px;
        line-height: 1.35;
    }

    .stage-result > p svg {
        display: none;
    }

    .hero-rail-one {
        top: 22%;
    }

    .hero-rail-two {
        bottom: 15%;
    }

    .proof-inner {
        min-height: 118px;
    }

    .proof-inner > div {
        min-height: 59px;
        padding: 10px;
    }

    .proof-inner strong {
        font-size: 20px;
    }

    .proof-inner span {
        font-size: 10px;
    }

    .intro-grid,
    .architecture-heading,
    .security-grid,
    .install-grid,
    .faq-grid,
    .integrations-inner {
        gap: 35px;
    }

    .intro-copy > p {
        font-size: 16px;
        line-height: 1.85;
    }

    .principles {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .principles span {
        min-width: 0;
        flex-direction: column;
        gap: 5px;
        font-size: 11px;
        text-align: center;
    }

    .section-heading-row {
        margin-bottom: 30px;
    }

    .section-heading-row > p {
        font-size: 14px;
    }

    .capability-controls {
        gap: 12px;
    }

    .filter-tabs {
        margin-right: -14px;
        border-right: 0;
        border-radius: 8px 0 0 8px;
    }

    .filter-tab {
        height: 37px;
        padding-inline: 13px;
        font-size: 12px;
    }

    .feature-search {
        height: 45px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        min-height: 320px;
        padding: 23px;
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 25px;
    }

    .feature-card h3 {
        font-size: 22px;
    }

    .feature-card > p:not(.feature-kicker) {
        font-size: 14px;
    }

    .architecture-map {
        grid-template-columns: 1fr;
    }

    .architecture-step {
        display: grid;
        min-height: 130px;
        padding: 22px;
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0 15px;
        align-items: center;
    }

    .architecture-step > svg,
    .architecture-step > img {
        width: 34px;
        height: 34px;
        margin: 0;
        grid-row: 1 / 3;
    }

    .architecture-step h3 {
        align-self: end;
        margin-bottom: 5px;
    }

    .architecture-step p {
        align-self: start;
    }

    .architecture-notes {
        margin-top: 35px;
    }

    .scenario-tabs {
        width: calc(100% + 14px);
        margin-right: -14px;
        overflow-x: auto;
        border-right: 0;
        border-radius: 8px 0 0 8px;
    }

    .scenario-tab {
        min-width: 120px;
        min-height: 46px;
        padding: 0 12px;
        flex: 0 0 auto;
        font-size: 12px;
    }

    .scenario-panels,
    .scenario-panel {
        min-height: auto;
    }

    .scenario-panels.is-visible .floating-phone {
        animation: none;
    }

    .scenario-panel {
        padding: 28px 18px 32px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .phone-frame {
        width: min(100%, 280px);
        height: 470px;
        margin-inline: auto;
    }

    .chat-area {
        height: 302px;
    }

    .scenario-label {
        margin-bottom: 18px;
    }

    .scenario-detail li {
        min-height: 74px;
        grid-template-columns: 52px minmax(0, 1fr) 20px;
        gap: 9px;
    }

    .scenario-detail li > span {
        font-size: 14px;
    }

    .scenario-detail li p {
        font-size: 12px;
    }

    .integrations {
        padding-block: 68px;
    }

    .integrations-copy h2 {
        font-size: 34px;
    }

    .integration-cloud {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-item {
        min-height: 58px;
        padding-inline: 9px;
        font-size: 11px;
    }

    .integration-item.item-wide {
        grid-column: auto;
    }

    .security-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 25px;
    }

    .security-icon svg {
        width: 28px;
        height: 28px;
    }

    .security-checklist article {
        min-height: 142px;
        grid-template-columns: 30px minmax(0, 1fr) 28px;
        gap: 12px;
    }

    .security-checklist h3 {
        font-size: 18px;
    }

    .security-checklist p {
        font-size: 12px;
    }

    .security-checklist article > svg {
        width: 22px;
        height: 22px;
    }

    .terminal-bar {
        padding-inline: 12px;
    }

    .terminal-bar > span:nth-child(2) {
        display: none;
    }

    .terminal-bar {
        grid-template-columns: 1fr 1fr;
    }

    .install-tabs {
        width: calc(100% - 32px);
        margin: 20px 16px 0;
        overflow-x: auto;
    }

    .install-tab {
        min-width: max-content;
        padding-inline: 12px;
        flex: 1;
    }

    .terminal-code {
        min-height: 118px;
        padding: 27px 20px;
        font-size: 12px;
    }

    .terminal-next,
    .terminal-note {
        padding-inline: 20px;
    }

    .faq-list summary {
        min-height: 78px;
        font-size: 15px;
    }

    .faq-list details > p {
        padding-right: 28px;
        font-size: 13px;
    }

    .final-cta {
        padding-block: 70px;
    }

    .final-inner > img {
        width: 68px;
        height: 68px;
    }

    .final-inner h2 {
        margin-bottom: 27px;
        font-size: 38px;
    }

    .final-actions {
        display: grid;
        width: min(100%, 310px);
        margin-inline: auto;
    }

    .site-footer {
        padding: 42px 0 45px;
    }

    .footer-inner nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .mobile-dock {
        position: fixed;
        z-index: 1100;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        height: calc(67px + env(safe-area-inset-bottom));
        padding: 6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
        grid-template-columns: repeat(4, 1fr);
        border-top: 1px solid var(--line);
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(18px);
    }

    .mobile-dock a {
        display: flex;
        min-width: 0;
        min-height: 54px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        border-radius: 6px;
        color: var(--muted);
        font-size: 9px;
        font-weight: 750;
    }

    .mobile-dock a.is-active {
        background: var(--brand-soft);
        color: var(--brand-dark);
    }

    .mobile-dock svg {
        width: 20px;
        height: 20px;
    }

    .toast {
        right: 14px;
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 370px) {
    .hero h1 {
        font-size: 48px;
    }

    .hero-tagline {
        font-size: 21px;
    }

    .hero-actions .button {
        padding-inline: 11px;
        font-size: 11px;
    }

    .proof-inner > div {
        flex-direction: column;
        gap: 0;
    }

    .filter-tab {
        padding-inline: 11px;
    }
}

@media (max-width: 1320px) {
    .chapter-rail {
        display: none;
    }
}

@media (max-height: 720px) and (max-width: 620px) {
    .hero-description {
        display: none;
    }

    .hero {
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: 15px;
    }

    .hero-inner {
        gap: 16px;
    }

    .agent-stage {
        min-height: 190px;
    }

    .execution-flow {
        min-height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .architecture-step,
    .integration-item,
    .security-checklist article,
    .install-steps li {
        opacity: 1;
        transform: none;
    }

    .hero-copy.reveal.is-visible,
    .agent-stage.reveal.is-visible,
    .feature-card.reveal.is-visible {
        transform: none;
    }
}
