:root {
  --bg: #f9fbff;
  --bg-2: #eef4fd;
  --surface: #ffffff;
  --surface-2: #f0f6ff;
  --border: rgba(1, 30, 95, 0.11);
  --text: #0a1a3f;
  --muted: #55627f;
  --violet: #0065ea;
  --cyan: #0065ea;
  --ok: #16a34a;
  --navy: #011e5f;
  --grad: linear-gradient(120deg, #012d7e 0%, #0065ea 55%, #0a9bff 100%);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Background glow */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -5%, rgba(0, 101, 234, 0.16), transparent 60%),
    radial-gradient(700px 500px at 5% 20%, rgba(10, 155, 255, 0.12), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}
.bg-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(1, 30, 95, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 30, 95, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  font-family: var(--font);
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(0, 101, 234, 0.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(0, 101, 234, 0.7); }
.btn-ghost { background: #fff; border-color: rgba(1, 30, 95, .16); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(0, 101, 234, .5); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(249, 251, 255, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo em { font-style: normal; color: #0a8cf0; }
.logo img { height: 34px; width: auto; }
.footer .logo img { height: 28px; }
.nav-links { display: flex; gap: 32px; margin-left: auto; margin-right: 8px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .25s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 150px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 700; margin-bottom: 24px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: 14.5px; }
.hero-points li::before { content: "✓"; color: var(--cyan); margin-right: 8px; font-weight: 700; }
.footnote { font-size: 12px; color: #7480a0; margin-top: 18px; text-align: right; }

.hero-visual { position: relative; }
.agent-card {
  background: #06133a; color: #e6e9f5;
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(1, 45, 126, 0.45), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.agent-card .muted { color: #8b93ad; }
.agent-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.status { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; color: #4ade80; font-size: 12px; font-family: var(--mono); }
.agent-body { padding: 22px 20px 26px; font-size: 13.5px; line-height: 2; min-height: 250px; }
.agent-body .line { opacity: 0; transform: translateY(6px); animation: lineIn .5s forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-body .line:nth-child(1) { animation-delay: .6s; }
.agent-body .line:nth-child(2) { animation-delay: 1.4s; }
.agent-body .line:nth-child(3) { animation-delay: 2.2s; }
.agent-body .line:nth-child(4) { animation-delay: 3.0s; }
.agent-body .line:nth-child(5) { animation-delay: 3.8s; }
.agent-body .line:nth-child(6) { animation-delay: 4.6s; }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.c-muted { color: #7f89a3; margin-right: 6px; }
.c-acc { color: #38b6ff; }
.c-ok { color: #4ade80; }
.caret { display: inline-block; width: 8px; height: 15px; background: #38b6ff; vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-chip {
  position: absolute; padding: 10px 14px; border-radius: 12px; font-size: 13px;
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(1, 30, 95, .3);
  animation: float 6s ease-in-out infinite;
}
.chip-a { left: -26px; bottom: 36px; }
.chip-b { right: -10px; top: -22px; animation-delay: -3s; color: #0052cc; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Strip */
.strip { padding: 44px 0 20px; }
.strip-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 30px; font-size: 14.5px; }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px; }
.strip li { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

/* Sections */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
h2 { font-size: clamp(30px, 3.8vw, 50px); font-weight: 700; margin-bottom: 18px; }
.sub { color: var(--muted); font-size: 18px; }
.badge { font-size: 11px; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: rgba(0, 101, 234, .10); color: #0052cc; border: 1px solid rgba(0, 101, 234, .35); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 101, 234, .5); background: var(--surface-2); }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }
.icon { font-family: var(--mono); font-size: 13px; color: var(--violet); margin-bottom: 18px; padding: 4px 10px; display: inline-block; border: 1px solid rgba(0, 101, 234, .4); border-radius: 8px; }
.feature h3 { display: flex; align-items: center; gap: 14px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--grad); color: #fff; font-size: 16px; }
.ticks { margin-top: 20px; display: grid; gap: 8px; font-size: 15px; color: #33415f; }
.ticks li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 12px; vertical-align: 2px; }

/* Products */
.products { background: linear-gradient(180deg, transparent, rgba(0, 101, 234, 0.07) 30%, rgba(10, 155, 255, 0.06) 70%, transparent); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  background: #fff;
  border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 20px 50px -30px rgba(1, 30, 95, .25); padding: 36px;
  transition: border-color .3s, transform .3s;
}
.product:hover { border-color: rgba(0, 101, 234, .5); transform: translateY(-4px); }
.tag { font-family: var(--mono); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; background: rgba(0, 101, 234, .10); color: #0052cc; display: inline-block; margin-bottom: 18px; }
.tag-b { background: rgba(10, 155, 255, .12); color: #0052cc; }
.product h3 { font-size: 28px; margin-bottom: 14px; }
.product p { color: var(--muted); }
.flow { display: flex; align-items: center; margin: 28px 0 4px; padding: 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); }
.node { padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--border); white-space: nowrap; }
.node.ok { border-color: rgba(22, 163, 74, .5); color: var(--ok); }
.wire { flex: 1; min-width: 14px; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--violet) 0 6px, transparent 6px 12px); background-size: 12px 2px; animation: wire 1s linear infinite; }
@keyframes wire { to { background-position: 12px 0; } }
.bars { margin: 28px 0 4px; padding: 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--border); display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.bar-row > div { height: 10px; border-radius: 99px; background: rgba(1, 30, 95, .08); overflow: hidden; }
.bar-row i { display: block; height: 100%; width: 0; border-radius: 99px; background: rgba(1, 30, 95, .28); transition: width 1.2s cubic-bezier(.2,.8,.2,1) .2s; }
.bar-row.hl { color: var(--text); font-weight: 600; }
.bar-row.hl i { background: var(--grad); }
.product.visible .bar-row i { width: var(--w); }
.bars small { font-size: 12px; }
.cta-inline { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 28px; border: 1px dashed rgba(1, 30, 95, .25); border-radius: 16px; color: var(--muted); }
.cta-inline strong { color: var(--text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps li { padding: 28px 24px; border-top: 2px solid rgba(1, 30, 95, .12); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 40%; height: 2px; background: var(--grad); }
.step-n { font-family: var(--mono); color: var(--cyan); font-size: 14px; }
.steps h3 { font-size: 24px; margin: 10px 0; }
.steps p { color: var(--muted); font-size: 15.5px; }
.when { display: inline-block; margin-top: 16px; font-size: 12.5px; font-family: var(--mono); color: #0052cc; }

.principles { padding: 70px 0; border-block: 1px solid var(--border); background: var(--bg-2); }
.principles h4 { font-size: 19px; margin-bottom: 8px; }
.principles p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 24px; transition: border-color .2s; }
details[open] { border-color: rgba(0, 101, 234, .5); }
summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--cyan); font-size: 24px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 22px; }

/* Contact */
.contact { padding-bottom: 130px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
  padding: 56px; border-radius: 28px; border: 1px solid var(--border);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(0, 101, 234, .16), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(10, 155, 255, .14), transparent 70%),
    var(--bg-2);
}
.contact-copy .sub { margin-bottom: 20px; }
.contact-copy a { color: var(--cyan); border-bottom: 1px solid currentColor; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.form input, .form textarea {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(0, 101, 234, .25); }
.form .btn { justify-content: center; margin-top: 4px; }
.form-note { font-size: 14px; color: var(--ok); min-height: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer nav { display: flex; gap: 24px; color: var(--muted); }
.footer nav a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .chip-a { left: 8px; } .chip-b { right: 8px; }
  .grid-3, .product-grid, .contact-card { grid-template-columns: 1fr; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 36px 26px; gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 18px;
    background: rgba(249, 251, 255, .97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .menu-btn { margin-left: auto; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 100px 1fr; }
  .product { padding: 26px; }
  .flow { flex-wrap: wrap; gap: 8px; }
  .wire { display: none; }
  .footnote { text-align: left; }
}

/* Engagement models */
.engage .card { display: flex; flex-direction: column; }
.engage .when { margin: 0 0 14px; }
.engage .card.highlight { border-color: rgba(0, 101, 234, .6); background: linear-gradient(180deg, rgba(0, 101, 234, .10), #fff); }
.center-note { text-align: center; margin-top: 32px; }
.center-note a { color: var(--cyan); border-bottom: 1px solid currentColor; }

/* Subpages */
.page-hero { padding: 150px 0 30px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.section.tight { padding: 50px 0 80px; }
.center { text-align: center; }
.cta-band { border-top: 1px solid var(--border); background: var(--bg-2); }
.cta-band .sub { margin-bottom: 28px; }
.case-grid { display: grid; gap: 24px; }
.case h3 { font-size: 26px; }
.case h4 { margin: 24px 0 4px; font-size: 15px; color: var(--muted); font-family: var(--mono); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.case .eyebrow { margin-bottom: 12px; }
.case p strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(10, 155, 255, .35); background: rgba(10, 155, 255, .08); color: #0052cc; font-size: 14px; }
.post-list { display: grid; gap: 20px; }
.post-item { display: block; }
.post-item h3 { margin: 6px 0 10px; }
.post-item .tag { margin-bottom: 8px; }
.read { display: inline-block; margin-top: 16px; color: var(--cyan); font-weight: 600; font-size: 15px; }
.prose h1 { font-size: clamp(32px, 4.5vw, 52px); margin: 14px 0 18px; }
.prose .lead { margin-bottom: 36px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose p, .prose li { color: #33415f; }
.prose p + p { margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 10px; margin-top: 12px; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--text); }
