/* 202AI Agent Factory landing — static, no JavaScript (CSP script-src 'none'); every animation is CSS. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --soft: #f2f4f7;
  --ink: #101828;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #eaecf0;
  --line-strong: #d0d5dd;
  --brand: #155eef;
  --brand-2: #004eeb;
  --lime: #d1e0ff;
  --lime-soft: #eff4ff;
  --warn: #b5523a;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --loop: 10s;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Google Sans Text", "Google Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 5px; border-radius: 4px; }
::selection { background: var(--lime); }
p { line-height: 1.85; }
img { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
code, pre { font-family: var(--mono); }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 16px; }

/* Shared type */
.eyebrow { font-size: 10px; letter-spacing: 1.6px; font-weight: 650; color: var(--muted); margin: 0 0 22px; display: flex; align-items: center; gap: 9px; text-transform: uppercase; }
.dot, .small-dot { display: inline-block; border-radius: 50%; background: var(--brand-2); flex-shrink: 0; }
.dot { width: 6px; height: 6px; box-shadow: 0 0 0 4px #e0eaff; animation: breathe 2.4s ease-in-out infinite; }
.small-dot { width: 5px; height: 5px; }
.accent { color: var(--brand); background: linear-gradient(transparent 62%, var(--lime) 62%); white-space: nowrap; }
.button { display: inline-flex; align-items: center; gap: 14px; padding: 15px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-2); }
.text-link { font-size: 14px; color: var(--brand); font-weight: 600; }
.section { padding-block: 112px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 40px; align-items: end; margin-bottom: 56px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.section-description { margin: 0; color: var(--muted); font-size: 15px; }

/* Hero */
.hero { padding-block: 80px 88px; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -.035em; }
.hero-description { font-size: 17px; color: var(--muted); margin: 28px 0 34px; max-width: 520px; }
.hero-description strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.availability { margin-top: 40px; font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 9px; }
.separator { color: var(--line-strong); }
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

/* Hero factory animation */
.factory { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -40px rgba(34, 91, 69, .35); overflow: hidden; animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
.factory-top, .factory-bottom { display: flex; justify-content: space-between; padding: 14px 20px; font: 10px var(--mono); letter-spacing: 1.2px; color: var(--muted); }
.factory-top { border-bottom: 1px solid var(--line); }
.factory-top span:first-child { display: flex; align-items: center; gap: 8px; }
.factory-bottom { border-top: 1px solid var(--line); background: var(--soft); }
.factory-body { display: grid; grid-template-columns: 112px 56px 116px 36px 1fr; align-items: center; padding: 30px 20px; min-height: 330px; }
.systems { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.systems li { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: var(--bg); display: grid; gap: 2px; animation: system-glow var(--loop) infinite; }
.systems li:nth-child(2) { animation-delay: 1.2s; }
.systems li:nth-child(3) { animation-delay: 2.4s; }
.systems b { font-size: 14px; }
.systems small { font-size: 11px; color: var(--faint); }
.system-new { border-style: dashed !important; background: transparent !important; }
.pipes { position: relative; height: 200px; }
.pipes span { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.pipes span:nth-child(1) { top: 16%; transform: rotate(14deg); transform-origin: left; }
.pipes span:nth-child(2) { top: 50%; }
.pipes span:nth-child(3) { top: 84%; transform: rotate(-14deg); transform-origin: left; }
.pipes i { position: absolute; left: 0; width: 7px; height: 7px; margin: -3px 0 0; border-radius: 50%; background: var(--brand-2); opacity: 0; animation: travel-a var(--loop) infinite; }
.pipes i:nth-of-type(1) { top: 16%; animation-name: travel-up; }
.pipes i:nth-of-type(2) { top: 50%; animation-delay: 1.2s; }
.pipes i:nth-of-type(3) { top: 84%; animation-name: travel-down; animation-delay: 2.4s; }
.core { position: relative; width: 116px; height: 116px; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--brand-2); animation: spin 18s linear infinite; }
.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--lime-soft); animation: pulse-core var(--loop) infinite; }
.core-face { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.core-face small { font: 9px/1.3 var(--mono); letter-spacing: .6px; color: var(--brand); text-transform: uppercase; }
.out-pipe { position: relative; height: 1px; background: var(--line-strong); }
.out-pipe i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); opacity: 0; animation: travel-out var(--loop) infinite; }
.lark { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 230px; }
.lark-head { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lark-dot { width: 8px; height: 8px; border-radius: 3px; background: #3370ff; }
.bubble { margin: 0; font-size: 12px; line-height: 1.55; padding: 8px 10px; border-radius: 10px; max-width: 92%; opacity: 0; animation: bubble var(--loop) infinite; }
.bubble.user { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 3px; }
.bubble.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.bubble.b1 { animation-delay: .4s; }
.bubble.b2 { animation-delay: 1.6s; }
.bubble.b3 { animation-delay: 3.2s; }
.bubble.b4 { animation-delay: 4.4s; }

/* Proof strip */
.proof { border-block: 1px solid var(--line); background: var(--surface); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 16px; padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-size: 44px; letter-spacing: -.04em; color: var(--brand); line-height: 1; }
.stat .count-wide { font-size: 28px; }
.stat span { font-size: 14px; font-weight: 600; line-height: 1.5; }
.stat small { font-weight: 400; color: var(--faint); font-size: 12px; }
.count { animation: pop 1s cubic-bezier(.2, .9, .3, 1.3) both; }
.stat:nth-child(2) .count { animation-delay: .1s; }
.stat:nth-child(3) .count { animation-delay: .2s; }
.stat:nth-child(4) .count { animation-delay: .3s; }

/* Advantages */
.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 26px; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s; }
.adv:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 50px -36px rgba(34, 91, 69, .45); }
.adv-number { font: 11px var(--mono); color: var(--faint); letter-spacing: 1px; }
.adv h3 { font-size: 19px; margin: 8px 0 10px; }
.adv p { margin: 0; font-size: 14px; color: var(--muted); }
.adv-demo { height: 200px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 22px; padding: 16px; position: relative; overflow: hidden; font-size: 12px; }

/* 01 protocol */
.demo-protocol { display: grid; align-content: center; gap: 10px; }
.endpoint { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); animation: endpoint 6s infinite; }
.endpoint code { font-size: 10px; font-weight: 700; color: var(--brand); }
.endpoint span { font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.endpoint em { font-style: normal; font-size: 11px; color: var(--faint); }
.e2 { animation-delay: 1s; }
.e3 { animation-delay: 2s; }
.protocol-pass { justify-self: start; font-size: 11px; font-weight: 600; color: var(--brand); background: var(--lime); border-radius: 99px; padding: 4px 10px; animation: appear-late 6s infinite; }

/* 02 pipeline */
.demo-pipeline ol { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 9px; position: relative; }
.demo-pipeline ol::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.demo-pipeline ol::after { content: ""; position: absolute; left: 10px; top: 8px; width: 2px; height: 0; background: var(--brand-2); animation: fill-down 7s infinite; }
.demo-pipeline li { display: flex; align-items: center; gap: 12px; color: var(--faint); animation: step-on 7s infinite; }
.demo-pipeline li i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--soft); position: relative; z-index: 1; animation: step-dot 7s infinite; }
.p2, .p2 i { animation-delay: .9s !important; }
.p3, .p3 i { animation-delay: 1.8s !important; }
.p4, .p4 i { animation-delay: 2.7s !important; }
.p5, .p5 i { animation-delay: 3.6s !important; }
.digest { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 10px; color: var(--faint); animation: appear-late 7s infinite; }
.digest code { color: var(--brand); font-size: 10px; }

/* 03 shield */
.demo-shield ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; position: relative; z-index: 1; }
.demo-shield li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.demo-shield li b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; background: var(--brand-2); transform: scale(0); animation: tick 6s infinite; }
.s2 b { animation-delay: .8s !important; }
.s3 b { animation-delay: 1.6s !important; }
.s4 b { animation-delay: 2.4s !important; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 46px; background: linear-gradient(transparent, rgba(223, 255, 159, .75), transparent); animation: scan 6s infinite; }

/* 04 confirm */
.demo-confirm { display: grid; gap: 4px; align-content: start; padding-block: 12px; }
.demo-confirm .m { margin: 0; font-size: 11px; line-height: 1.45; padding: 6px 9px; border-radius: 9px; max-width: 88%; opacity: 0; animation: bubble 9s infinite; }
.demo-confirm .m:not(.bot):not(.dup) { justify-self: end; background: var(--brand); color: #fff; }
.demo-confirm .bot { background: var(--surface); border: 1px solid var(--line); }
.demo-confirm .dup { justify-self: center; background: #fbeee8; color: var(--warn); border: 1px dashed #e3b6a6; }
.m2 { animation-delay: .9s !important; }
.m3 { animation-delay: 2.1s !important; }
.m4 { animation-delay: 3.1s !important; }
.m5 { animation-delay: 4.3s !important; }

/* 05 lanes */
.demo-lanes { display: grid; align-content: center; gap: 18px; }
.lane { display: grid; grid-template-columns: 76px 1fr 72px; align-items: center; gap: 10px; font-size: 11px; }
.lane-tag { color: var(--muted); }
.lane-agent { text-align: center; padding: 6px 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.track { position: relative; height: 2px; background: var(--line-strong); }
.packet { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 3px; background: var(--brand-2); animation: lane-go 4s linear infinite; }
.pk2 { background: #3370ff; animation-delay: 1.3s; }
.lane-blocked .lane-agent { color: var(--warn); border-color: #e3b6a6; background: #fbeee8; }
.pk3 { background: var(--warn); animation: lane-block 4s infinite; animation-delay: .6s; }
.track b { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); color: var(--warn); font-size: 14px; opacity: 0; animation: deny 4s infinite; animation-delay: .6s; }

/* 06 evaluation */
.demo-eval ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.demo-eval li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; }
.demo-eval li span { color: var(--brand); font-weight: 700; opacity: 0; animation: appear-step 8s infinite; white-space: nowrap; }
.c2 span { animation-delay: .8s !important; }
.c3 span { animation-delay: 1.6s !important; }
.c4 span { animation-delay: 2.4s !important; }
.gate { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 10px; }
.bar { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brand-2); animation: fill-right 8s infinite; }
.gate b { color: var(--muted); font-weight: 500; }
.gate em { font-style: normal; font-weight: 700; color: var(--brand); justify-self: end; opacity: 0; animation: appear-late 8s infinite; }

/* Workflow */
.workflow-section { background: var(--surface); border-block: 1px solid var(--line); }
.workflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-strong); }
.workflow li { padding: 26px 22px 0 0; position: relative; }
.workflow li::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--brand-2); }
.sequence { font: 11px var(--mono); color: var(--faint); display: flex; justify-content: space-between; padding-right: 10px; }
.sequence i { font-style: normal; color: var(--brand-2); }
.workflow h3 { font-size: 18px; margin: 18px 0 8px; }
.workflow p { margin: 0; font-size: 13px; color: var(--muted); }

/* Agents */
.agent-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agent-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 26px; display: grid; align-content: start; gap: 16px; }
.agent-card p { margin: 0; font-size: 14px; color: var(--muted); }
.agent-head { display: flex; align-items: center; gap: 12px; }
.agent-head strong { display: block; font-size: 17px; }
.agent-head small { font-size: 12px; color: var(--faint); }
.agent-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: var(--lime); font-weight: 750; }
.mark-alt { background: #2f5ea8; color: #e2ecff; }
.mark-ghost { background: transparent; color: var(--brand); border: 1.5px dashed var(--brand-2); }
.agent-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-meta span { font-size: 11px; padding: 5px 9px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); }
.agent-card .agent-note { font-size: 12px; color: var(--faint); display: flex; gap: 8px; align-items: baseline; }
.agent-yours { border-style: dashed; background: transparent; }
.agent-cards-two { grid-template-columns: repeat(2, 1fr); }

/* Protocol */
.protocol-section { background: var(--ink); color: #f2f4f7; }
.protocol { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.protocol .eyebrow { color: #d0d5dd; }
.protocol h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; }
.case-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.case-list li { display: flex; gap: 12px; font-size: 15px; color: #d0d5dd; }
.case-list li::before { content: "✓"; color: var(--lime); font-weight: 700; }
.code { border-radius: 14px; background: #121c16; border: 1px solid #1d2939; overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #1d2939; }
.code-head span { width: 9px; height: 9px; border-radius: 50%; background: #344054; }
.code-head small { margin-left: auto; font: 10px var(--mono); color: #98a2b3; }
.code pre { margin: 0; padding: 22px 20px; overflow-x: auto; font-size: 12.5px; line-height: 1.75; color: #eaecf0; }
.code .k { color: var(--lime); font-weight: 700; }
.code .c { color: #98a2b3; }
.code .h { color: #9cc4ff; }

/* Preview & footer */
.preview { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: end; padding-block: 104px; }
.preview h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.preview p { color: var(--muted); }
.preview-status { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--surface); }
.preview-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--lime-soft); padding: 6px 10px; border-radius: 99px; }
.preview-status a { font-size: 13px; font-weight: 600; color: var(--brand); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer .brand { font-size: 22px; }
.footer small { color: var(--faint); }

/* Scroll-driven reveals where supported; content is fully visible otherwise. */
@supports (animation-timeline: view()) {
  .adv, .agent-card, .workflow li, .section-heading { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  .workflow li::before { animation: grow-line linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px #eff4ff; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-core { 0%, 30%, 100% { transform: scale(1); } 40% { transform: scale(1.08); background: var(--lime); } 52% { transform: scale(1); } }
@keyframes system-glow { 0%, 22%, 100% { border-color: var(--line-strong); box-shadow: none; } 6%, 14% { border-color: var(--brand-2); box-shadow: 0 0 0 4px var(--lime-soft); } }
@keyframes travel-a { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 22% { left: calc(100% - 7px); opacity: 1; } 25%, 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes travel-up { 0% { left: 0; top: 16%; opacity: 0; } 4% { opacity: 1; } 22% { left: calc(100% - 7px); top: 50%; opacity: 1; } 25%, 100% { left: calc(100% - 7px); top: 50%; opacity: 0; } }
@keyframes travel-down { 0% { left: 0; top: 84%; opacity: 0; } 4% { opacity: 1; } 22% { left: calc(100% - 7px); top: 50%; opacity: 1; } 25%, 100% { left: calc(100% - 7px); top: 50%; opacity: 0; } }
@keyframes travel-out { 0%, 30% { left: 0; opacity: 0; } 33% { opacity: 1; } 42% { left: calc(100% - 7px); opacity: 1; } 45%, 62% { left: calc(100% - 7px); opacity: 0; } 63% { left: 0; opacity: 0; } 66% { opacity: 1; } 74% { left: calc(100% - 7px); opacity: 1; } 77%, 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes bubble { 0% { opacity: 0; transform: translateY(8px); } 5%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: none; } }
@keyframes endpoint { 0%, 30%, 100% { border-color: var(--line); box-shadow: none; } 6%, 22% { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--lime-soft); } }
@keyframes appear-late { 0%, 45% { opacity: 0; transform: translateY(6px); } 52%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes fill-down { 0% { height: 0; } 60%, 90% { height: calc(100% - 16px); } 100% { height: calc(100% - 16px); opacity: 0; } }
@keyframes step-on { 0%, 8% { color: var(--faint); } 12%, 90% { color: var(--ink); } 100% { color: var(--faint); } }
@keyframes step-dot { 0%, 8% { background: var(--soft); border-color: var(--line-strong); } 12%, 90% { background: var(--brand-2); border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--lime-soft); } 100% { background: var(--soft); } }
@keyframes tick { 0%, 10% { transform: scale(0); } 16%, 88% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes scan { 0% { top: -46px; } 55% { top: 100%; } 100% { top: 100%; } }
@keyframes lane-go { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 85% { left: calc(100% - 10px); opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes lane-block { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 40% { left: calc(50% - 16px); opacity: 1; } 46%, 70% { left: calc(50% - 16px); opacity: .25; } 76%, 100% { left: calc(50% - 16px); opacity: 0; } }
@keyframes deny { 0%, 38% { opacity: 0; transform: translateX(-50%) scale(.5); } 44%, 70% { opacity: 1; transform: translateX(-50%) scale(1); } 78%, 100% { opacity: 0; } }
@keyframes appear-step { 0%, 6% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fill-right { 0%, 5% { width: 0; } 45%, 92% { width: 100%; } 100% { width: 100%; opacity: .3; } }
@keyframes grow-line { from { width: 0; } to { width: 100%; } }

html[lang="en"] .accent { white-space: normal; }
html[lang="en"] .lane { grid-template-columns: 88px 1fr 96px; }
html[lang="en"] .stat .count-wide { font-size: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bubble, .demo-confirm .m, .protocol-pass, .digest, .demo-eval li span, .gate em { opacity: 1; transform: none; }
  .demo-shield li b { transform: scale(1); }
  .demo-pipeline li { color: var(--ink); }
  .demo-pipeline li i { background: var(--brand-2); border-color: var(--brand-2); }
  .demo-pipeline ol::after { height: calc(100% - 16px); }
  .bar i { width: 100%; }
  .pipes i, .out-pipe i, .packet, .scan, .track b { display: none; }
  .workflow li::before { width: 100%; }
}

@media (max-width: 1040px) {
  .wrap { width: min(1200px, calc(100% - 56px)); }
  .hero, .protocol, .preview { grid-template-columns: 1fr; }
  .advantages, .agent-cards { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-block: 48px 56px; gap: 40px; }
  .hero-description { font-size: 15px; }
  .section { padding-block: 72px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .advantages, .agent-cards, .workflow { grid-template-columns: 1fr; }
  .adv-demo { height: auto; min-height: 200px; }
  .proof-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .factory-body { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px; min-height: 0; }
  .systems { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .systems li { padding: 8px; }
  .pipes, .out-pipe { display: none; }
  .core { justify-self: center; width: 96px; height: 96px; }
  .lark { min-height: 190px; }
  .preview { padding-block: 72px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .code pre { font-size: 11px; }
}

/* Entry points in page content */
.availability a { color: var(--brand); font-weight: 600; }
.preview-status { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.preview-status .button { width: fit-content; margin: 6px 0 2px; color: #fff; }

/* Site header */
.icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 248, 250, .82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(16, 24, 40, .07); }
.header-inner { height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: auto; height: 22px; }
.brand-product { padding-inline-start: 12px; border-inline-start: 1px solid var(--line-strong); font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.primary-nav { justify-self: center; display: flex; gap: 2px; }
.primary-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s, background-color .15s; }
.primary-nav a:hover { color: var(--ink); background: rgba(16, 24, 40, .045); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-link, .lang-menu > summary, .mobile-menu > summary { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 9px; color: var(--ink-soft, #344054); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s; }
.header-link:hover, .lang-menu > summary:hover, .mobile-menu > summary:hover, .lang-menu[open] > summary, .mobile-menu[open] > summary { background: rgba(16, 24, 40, .055); color: var(--ink); }
.header-button { display: inline-flex; align-items: center; gap: 6px; height: 38px; margin-inline-start: 4px; padding: 0 14px 0 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(16, 24, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .08); transition: background-color .15s; }
.header-button:hover { background: #1d2939; }
.header-button .icon { width: 16px; height: 16px; }
[dir="rtl"] .header-button .icon { transform: scaleX(-1); }
.lang-menu, .mobile-menu { position: relative; }
.lang-menu > summary, .mobile-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker, .mobile-menu > summary::-webkit-details-marker { display: none; }
.lang-menu .chevron { width: 15px; height: 15px; color: var(--faint); transition: transform .2s; }
.lang-menu[open] .chevron { transform: rotate(180deg); }
.lang-list, .mobile-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 50; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(16, 24, 40, .22), 0 3px 8px rgba(16, 24, 40, .06); animation: menu-in .14s ease-out; }
.lang-list { min-width: 220px; list-style: none; }
.lang-list a { display: grid; grid-template-columns: 1fr auto 18px; text-align: start; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; }
.lang-list a:hover { background: var(--soft); }
.lang-list small { color: var(--faint); font-size: 12px; }
.lang-list a > span { justify-self: start; unicode-bidi: isolate; }
.lang-list a[aria-current="true"] { color: var(--brand); font-weight: 600; }
.lang-list .check { grid-column: 3; color: var(--brand); width: 16px; height: 16px; }
.mobile-menu { display: none; }
.mobile-panel { width: min(280px, calc(100vw - 32px)); display: grid; gap: 2px; }
.mobile-panel a { padding: 11px 12px; border-radius: 9px; color: var(--ink); font-size: 15px; font-weight: 500; }
.mobile-panel a:hover { background: var(--soft); }
.mobile-panel .mobile-workspace { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; padding-top: 14px; color: var(--brand); font-weight: 600; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1040px) {
  .primary-nav { display: none; }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-actions { justify-self: end; }
  .mobile-menu { display: block; }
}
@media (max-width: 640px) {
  .header-inner { height: 60px; gap: 12px; }
  .brand-product, .header-link, .lang-current { display: none; }
  .brand img { height: 20px; }
  .lang-menu > summary, .mobile-menu > summary { padding: 0 9px; }
  .header-button { padding: 0 12px; font-size: 13px; }
  /* Menus open as a sheet under the header instead of hanging off a button. */
  .lang-menu, .mobile-menu { position: static; }
  .lang-list, .mobile-panel { position: fixed; top: 64px; inset-inline: 12px; width: auto; min-width: 0; }
  .accent { white-space: normal; }
  .availability { display: block; line-height: 1.8; }
  .availability .small-dot { margin-inline-end: 6px; vertical-align: middle; }
}

/* Footer languages */
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.footer-langs a:hover { color: var(--brand); }
.footer-langs [aria-current] { color: var(--ink); font-weight: 600; }

/* Scripts and direction */
:lang(ja) body, body:lang(ja) { font-family: "Google Sans Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
:lang(ar) body, body:lang(ar) { font-family: "Google Sans Text", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .hero-actions span[aria-hidden], [dir="rtl"] .text-link span[aria-hidden], [dir="rtl"] .sequence i, [dir="rtl"] .preview-status a span[aria-hidden] { display: inline-block; transform: scaleX(-1); }
