:root {
  --ink: #11172a;
  --muted: #63708a;
  --line: #dfe5ef;
  --paper: #f7f9fc;
  --white: #ffffff;
  --navy: #080d1c;
  --navy-soft: #11182c;
  --primary: #4f63ff;
  --primary-dark: #3848da;
  --cyan: #19c4d8;
  --violet: #8c5cff;
  --green: #35d49a;
  --max: 1180px;
  --shadow: 0 30px 80px rgba(23, 33, 62, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.section-shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(207, 216, 232, .72); background: rgba(247, 249, 252, .82); backdrop-filter: blur(18px); }
.nav-shell { width: min(var(--max), calc(100% - 48px)); height: 74px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 850; letter-spacing: -.055em; }
.brand > span:last-child > span { color: var(--primary); }
.brand-mark { position: relative; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: linear-gradient(145deg, var(--primary), var(--violet)); box-shadow: 0 8px 24px rgba(79, 99, 255, .28); overflow: hidden; }
.brand-mark i { position: absolute; width: 13px; height: 4px; border-radius: 5px; background: #fff; transform: rotate(45deg); }
.brand-mark i:last-child { transform: rotate(-45deg); opacity: .72; }
.site-nav { display: flex; align-items: center; gap: 31px; color: #46516a; font-size: 14px; font-weight: 650; }
.site-nav > a:not(.nav-cta) { position: relative; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; border-radius: 2px; background: var(--primary); transition: right .2s ease; }
.site-nav > a:hover::after { right: 0; }
.nav-cta { padding: 11px 17px; border-radius: 11px; color: #fff; background: var(--ink); box-shadow: 0 10px 24px rgba(17, 23, 42, .16); }
.nav-cta:hover { background: var(--primary); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: #fff; }
.menu-toggle > span:not(.sr-only) { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink); }

.hero { min-height: 690px; padding: 95px 0 88px; display: grid; grid-template-columns: 1.03fr .97fr; gap: 68px; align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; left: -340px; top: -120px; border-radius: 50%; background: rgba(79, 99, 255, .13); filter: blur(10px); }
.eyebrow, .section-kicker { color: var(--primary-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid rgba(79, 99, 255, .18); border-radius: 999px; background: rgba(255,255,255,.76); }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(53,212,154,.14); }
.hero h1 { margin: 24px 0 22px; font-size: clamp(49px, 5.15vw, 76px); line-height: 1.04; letter-spacing: -.065em; font-weight: 850; }
.hero h1 em, .final-cta h2 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--primary) 8%, var(--violet) 52%, var(--cyan)); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 640px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-lead strong { color: #3445cf; font-weight: 750; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 31px; }
.button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #6f56ee); box-shadow: 0 13px 30px rgba(79, 99, 255, .27); }
.button-primary:hover { box-shadow: 0 17px 40px rgba(79, 99, 255, .35); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.75); }
.button-ghost svg { width: 20px; fill: currentColor; }
.button-ghost:hover { border-color: #b9c4d8; background: #fff; box-shadow: 0 11px 28px rgba(23,33,62,.08); }
.hero-note { margin-top: 24px; display: flex; align-items: center; gap: 9px; color: #78839a; font-size: 12px; font-weight: 650; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(53,212,154,.12); }

.boundary-demo { position: relative; border: 1px solid rgba(150,165,195,.24); border-radius: 24px; background: linear-gradient(155deg, #11182c, #090e1d 58%); color: #fff; box-shadow: 0 40px 100px rgba(21,30,57,.28), inset 0 1px rgba(255,255,255,.08); overflow: hidden; transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.boundary-demo::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(109,126,174,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(109,126,174,.07) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.demo-glow { position: absolute; width: 260px; height: 260px; right: -110px; top: 40px; border-radius: 50%; background: rgba(79,99,255,.33); filter: blur(65px); }
.demo-bar, .demo-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; border-bottom: 1px solid rgba(255,255,255,.08); color: #aeb8d0; font-size: 11px; }
.demo-title { display: flex; align-items: center; gap: 8px; color: #eef2ff; font-weight: 700; }
.demo-title b { width: 8px; height: 8px; border-radius: 3px; background: var(--primary); box-shadow: 0 0 13px var(--primary); }
.demo-state { padding: 4px 8px; border: 1px solid rgba(53,212,154,.25); border-radius: 6px; color: #62e2b5; background: rgba(53,212,154,.08); }
.demo-stage { position: relative; z-index: 2; padding: 22px 18px 24px; display: grid; grid-template-columns: 1fr 1.08fr; gap: 34px; min-height: 390px; }
.lane-label { margin-bottom: 12px; color: #8995ae; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.lane-label span { display: inline-grid; place-items: center; min-width: 24px; height: 20px; padding: 0 4px; margin-right: 6px; border: 1px solid #34405d; border-radius: 6px; color: #cad2e8; font-size: 9px; }
.node { min-height: 68px; padding: 12px; display: grid; grid-template-columns: 33px 1fr auto; gap: 10px; align-items: center; border: 1px solid #2a3552; border-radius: 12px; background: rgba(16,24,45,.9); box-shadow: 0 12px 25px rgba(0,0,0,.15); }
.node + .node { margin-top: 96px; }
.node-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: #aeb7ff; background: rgba(79,99,255,.14); }
.node small { display: block; margin-bottom: 4px; color: #71809e; font-size: 9px; text-transform: uppercase; }
.node strong { display: block; color: #e8edfa; font-size: 11px; font-weight: 650; }
.node i { font-style: normal; font-size: 8px; font-weight: 800; }
.node-ok { color: var(--green); }
.node-wait { padding: 4px 6px; border-radius: 5px; color: #f4be64; background: rgba(244,190,100,.1); }
.node-agent { margin-top: 40px; border-color: rgba(79,99,255,.75); box-shadow: 0 0 0 1px rgba(79,99,255,.18), 0 18px 40px rgba(50,65,184,.18); }
.node-running { padding: 4px 6px; border-radius: 5px; color: #93a2ff; background: rgba(79,99,255,.14); }
.artifact-stack { margin: 25px 5px 0; border: 1px solid #26314b; border-radius: 11px; overflow: hidden; }
.artifact-stack div { padding: 10px 9px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; border-bottom: 1px solid #222d46; color: #b9c2d9; font-size: 9px; }
.artifact-stack div:last-child { border: 0; }
.artifact-stack span { color: #5d6a86; }
.artifact-stack b { color: #55d7aa; font-size: 8px; }
.flow-line { position: absolute; height: 1px; background: linear-gradient(90deg, rgba(79,99,255,.1), var(--primary), rgba(79,99,255,.1)); transform-origin: left; }
.flow-line i { position: absolute; right: -2px; top: -3px; width: 7px; height: 7px; border-top: 1px solid #7181ff; border-right: 1px solid #7181ff; transform: rotate(45deg); }
.flow-one { width: 83px; left: 39%; top: 120px; transform: rotate(-11deg); }
.flow-two { width: 82px; left: 39%; top: 265px; transform: rotate(13deg); }
.demo-footer { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 0; }
.demo-footer span:first-child { display: flex; align-items: center; gap: 6px; color: #6de0b8; }
.demo-footer i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.tool-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); }
.tool-strip-inner { min-height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.tool-strip-inner > span { flex: 0 0 auto; color: #8a94a8; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.tool-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 28px; color: #626d83; }
.tool-list b { font-size: 13px; font-weight: 700; }

.content-section { padding: 120px 0; }
.section-heading { margin-bottom: 54px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.section-heading h2 { margin: 13px 0 0; font-size: clamp(36px, 4vw, 55px); line-height: 1.12; letter-spacing: -.052em; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.capability-card { position: relative; min-height: 285px; padding: 31px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.86); box-shadow: 0 8px 30px rgba(28,38,66,.05); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.capability-card:hover { transform: translateY(-5px); border-color: #c2cce0; box-shadow: var(--shadow); }
.capability-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -100px; bottom: -110px; border-radius: 50%; background: rgba(79,99,255,.06); }
.card-primary { color: #fff; border-color: transparent; background: linear-gradient(145deg, #5366ff, #654ee5); }
.card-primary p, .card-primary .card-number { color: #dce1ff; }
.card-primary .card-icon { color: #fff; background: rgba(255,255,255,.14); }
.card-primary .card-tags span { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.card-number { position: absolute; top: 28px; right: 29px; color: #a0aabd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 32px; border-radius: 12px; color: var(--primary); background: #eef0ff; font-size: 19px; }
.capability-card h3 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.025em; }
.capability-card p { max-width: 530px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.card-tags { position: absolute; left: 31px; bottom: 26px; display: flex; gap: 7px; }
.card-tags span { padding: 5px 8px; border: 1px solid #dfe4ed; border-radius: 6px; color: #78839a; background: #f8fafc; font-size: 9px; font-weight: 750; text-transform: uppercase; }

.workflow-section { padding: 120px 0 130px; color: #fff; background: var(--navy); position: relative; overflow: hidden; }
.workflow-section::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(114,128,178,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(114,128,178,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); }
.workflow-section::after { content: ""; position: absolute; width: 540px; height: 540px; right: -160px; top: -220px; border-radius: 50%; background: rgba(79,99,255,.2); filter: blur(90px); }
.workflow-section .section-shell { position: relative; z-index: 2; }
.heading-light .section-kicker { color: #91a0ff; }
.heading-light > p { color: #97a2bb; }
.workflow-steps { margin: 70px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); list-style: none; }
.workflow-steps li { position: relative; min-height: 225px; padding: 4px 28px 0 0; }
.workflow-steps li:not(:last-child)::after { content: ""; position: absolute; left: 48px; right: 0; top: 20px; height: 1px; background: linear-gradient(90deg, #5366ff, rgba(83,102,255,.1)); }
.workflow-steps > li > span { position: relative; z-index: 2; display: grid; place-items: center; width: 41px; height: 41px; margin-bottom: 46px; border: 1px solid #435075; border-radius: 11px; color: #cbd3eb; background: #151d34; font-family: ui-monospace, monospace; font-size: 10px; }
.workflow-steps small { color: #71809f; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.workflow-steps h3 { margin: 9px 0; font-size: 18px; }
.workflow-steps p { margin: 0; color: #8793ad; font-size: 12px; line-height: 1.7; }

.open-source-panel { padding: 55px; display: grid; grid-template-columns: 1fr .9fr; gap: 65px; align-items: center; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.oss-copy h2 { margin: 14px 0 20px; font-size: clamp(35px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -.05em; }
.oss-copy > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.oss-actions { margin-top: 27px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.text-link { color: var(--primary-dark); font-size: 13px; font-weight: 750; }
.template-list { border: 1px solid #dfe5ef; border-radius: 17px; background: #f8fafc; overflow: hidden; }
.template-head { padding: 15px 17px; display: flex; justify-content: space-between; border-bottom: 1px solid #e2e7f0; color: #758198; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.template-head b { color: #25a87b; font-weight: 750; }
.template-list article { padding: 18px 17px; display: grid; grid-template-columns: 33px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid #e4e9f1; transition: background .18s ease; }
.template-list article:last-child { border: 0; }
.template-list article:hover { background: #fff; }
.template-list article > span { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: var(--primary); background: #ebeeff; font-family: ui-monospace, monospace; font-size: 9px; }
.template-list h3 { margin: 0 0 4px; font-size: 13px; }
.template-list p { margin: 0; color: #8792a7; font-size: 10px; }
.template-list i { color: #a1abbd; font-style: normal; }

.final-cta { position: relative; margin-bottom: 105px; padding: 90px 50px; border-radius: 30px; color: #fff; background: linear-gradient(135deg, #4659f4, #6448d9 56%, #3b8bcf); text-align: center; overflow: hidden; box-shadow: 0 35px 80px rgba(72,81,210,.28); }
.final-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(to right, transparent, #000, transparent); }
.cta-orb { position: absolute; width: 260px; height: 260px; left: -90px; top: -130px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.025); }
.final-cta > * { position: relative; z-index: 2; }
.final-cta .section-kicker { color: #cbd2ff; }
.final-cta h2 { margin: 15px 0 17px; font-size: clamp(38px,4vw,56px); line-height: 1.13; letter-spacing: -.055em; }
.final-cta h2 em { background: linear-gradient(90deg, #fff, #aff5ff); background-clip: text; -webkit-background-clip: text; }
.final-cta > p { max-width: 680px; margin: 0 auto; color: #e1e5ff; font-size: 15px; line-height: 1.8; }
.cta-actions { justify-content: center; }
.button-white { color: #3444cd; background: #fff; box-shadow: 0 12px 30px rgba(24,25,85,.19); }
.button-outline { color: #fff; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.08); }
.button-outline:hover { background: rgba(255,255,255,.14); }

.is-disabled { cursor: not-allowed; opacity: .58; pointer-events: none; user-select: none; }
.button.is-disabled:hover { transform: none; box-shadow: none; }
.nav-cta.is-disabled { background: #697184; box-shadow: none; }
.text-link.is-disabled { color: #7d879b; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { min-height: 120px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.brand-footer { font-size: 19px; }
.brand-footer .brand-mark { width: 25px; height: 25px; border-radius: 8px; }
.footer-inner > p { margin: 0; color: #8993a7; font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 20px; color: #737e93; font-size: 10px; }
.footer-links a:hover { color: var(--primary); }

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

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 75px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .boundary-demo { width: min(620px,100%); margin-inline: auto; transform: none; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .workflow-steps { grid-template-columns: repeat(2,1fr); gap: 35px 0; }
  .open-source-panel { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: auto 1fr; }
  .footer-links { grid-column: 1 / -1; padding-bottom: 28px; }
}

@media (max-width: 760px) {
  .section-shell, .nav-shell { width: min(100% - 30px, var(--max)); }
  .nav-shell { height: 66px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 15px; right: 15px; top: 72px; padding: 18px; display: none; align-items: stretch; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 8px; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; padding: 62px 0 70px; gap: 48px; }
  .hero h1 { font-size: clamp(43px, 13.2vw, 60px); }
  .hero-lead { font-size: 16px; line-height: 1.75; }
  .hero-actions .button { width: 100%; }
  .boundary-demo { border-radius: 17px; }
  .demo-stage { grid-template-columns: 1fr; gap: 20px; }
  .node + .node { margin-top: 18px; }
  .node-agent { margin-top: 0; }
  .flow-line { display: none; }
  .tool-strip-inner { padding: 22px 0; align-items: flex-start; flex-direction: column; }
  .tool-list { justify-content: flex-start; gap: 14px 20px; }
  .content-section, .workflow-section { padding: 85px 0; }
  .section-heading { margin-bottom: 37px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 290px; }
  .workflow-steps { grid-template-columns: 1fr; margin-top: 50px; }
  .workflow-steps li { min-height: auto; padding: 0 0 5px 65px; }
  .workflow-steps li:not(:last-child)::after { left: 20px; right: auto; top: 41px; bottom: -35px; width: 1px; height: auto; background: linear-gradient(#5366ff, rgba(83,102,255,.08)); }
  .workflow-steps > li > span { position: absolute; left: 0; top: 0; margin: 0; }
  .open-source-panel { padding: 32px 22px; }
  .oss-actions .button { width: 100%; }
  .final-cta { width: calc(100% - 30px); margin-bottom: 70px; padding: 70px 20px; border-radius: 23px; }
  .cta-actions .button { width: 100%; }
  .footer-inner { padding: 31px 0; grid-template-columns: 1fr; gap: 15px; }
  .footer-links { grid-column: auto; padding: 0; flex-wrap: wrap; gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
