:root {
  --navy-900: #060f1e;
  --navy-800: #0a1628;
  --navy-700: #10213a;
  --navy-600: #1a3050;
  --ink: #0d1b2e;
  --ink-2: #44546a;
  --ink-3: #6b7a8f;
  --paper: #ffffff;
  --tint: #f3f6fa;
  --line: #e2e8f0;
  --sky: #3aa0ff;
  --cyan: #2fd3c6;
  --violet: #7c6cff;
  --grad: linear-gradient(100deg, #3aa0ff 0%, #2fd3c6 55%, #7c6cff 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 8px 24px rgba(13, 27, 46, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 14px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; color: #04121f; background: var(--grad); background-size: 140% 100%;
  border: 0; transition: background-position .4s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 20px rgba(58, 160, 255, .28);
}
.btn:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled { background: rgba(6, 15, 30, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-text span { font-weight: 500; opacity: .75; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; opacity: .85; }
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; padding: 168px 0 96px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(124,108,255,.30), transparent 60%),
    radial-gradient(700px 420px at 10% 90%, rgba(47,211,198,.18), transparent 60%),
    radial-gradient(600px 400px at 60% 60%, rgba(58,160,255,.18), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(47,211,198,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,211,198,.55); } 70% { box-shadow: 0 0 0 10px rgba(47,211,198,0); } 100% { box-shadow: 0 0 0 0 rgba(47,211,198,0); } }

/* Agent console */
.console {
  border-radius: 18px; background: rgba(10, 22, 40, .72); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; position: relative;
}
.console::before { content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; background: var(--grad); opacity: .45;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .78rem; color: rgba(255,255,255,.6); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.console-title { flex: 1; }
.console-status { color: var(--cyan); display: inline-flex; align-items: center; }
.console-status .pulse-dot { width: 6px; height: 6px; margin-right: 6px; }
.agents { position: relative; height: 170px; margin: 18px 18px 0; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.wires path { fill: none; stroke: rgba(58,160,255,.35); stroke-width: 1.4; stroke-dasharray: 4 5; animation: flow 1.4s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.agent { position: absolute; z-index: 1; transform: translate(-50%, -50%); padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap;
  background: rgba(16,33,58,.95); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88); transition: border-color .3s, box-shadow .3s, color .3s; }
.agent.active { border-color: var(--cyan); color: #fff; box-shadow: 0 0 0 4px rgba(47,211,198,.14), 0 0 24px rgba(47,211,198,.35); }
.a-orch { left: 50%; top: 12%; } .a-1 { left: 16.6%; top: 56%; } .a-2 { left: 50%; top: 56%; } .a-3 { left: 83.3%; top: 56%; } .a-grade { left: 50%; top: 92%; }
.a-grade.active { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,108,255,.18), 0 0 24px rgba(124,108,255,.4); }
.log { list-style: none; margin: 16px 0 0; padding: 14px 18px 18px; border-top: 1px solid rgba(255,255,255,.06); min-height: 168px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .76rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.log li { display: flex; gap: 10px; padding: 3px 0; animation: logIn .35s ease both; }
.log time { color: rgba(255,255,255,.35); flex: 0 0 auto; }
.log .ok { color: var(--cyan); } .log .up { color: #f5b84a; } .log .cost { color: #a99dff; }
@keyframes logIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wires path, .pulse-dot { animation: none; } }
.hero .eyebrow { color: var(--cyan); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 640px; margin: 22px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 760px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-proof li { padding: 22px 24px 0 0; }
.hero-proof li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-proof strong { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 600; }
.hero-proof span { font-size: .9rem; color: rgba(255,255,255,.65); }

/* Strip */
.strip { background: var(--navy-800); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.06); }
.strip-inner { display: flex; align-items: center; gap: 28px; padding: 22px 0; }
.strip-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); white-space: nowrap; }
.strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 500; font-size: .95rem; }

/* Sections */
.section { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.08rem; }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark .section-head p:last-child { color: rgba(255,255,255,.7); }
.section-dark .eyebrow { color: var(--cyan); }
.section-tint { background: var(--tint); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad); opacity: 0; transition: opacity .25s ease;
}
.card:hover::before { opacity: 1; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); }
.card li { font-size: .9rem; color: var(--ink-2); padding: 4px 0 4px 22px; position: relative; }
.card li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 2px; background: var(--sky); border-radius: 2px; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, rgba(58,160,255,.12), rgba(124,108,255,.12)); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: #2563eb; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.stat .num, .stat .unit { font-family: var(--display); font-weight: 700; font-size: 3rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .unit { font-size: 1.6rem; margin-left: 4px; }
.stat p { margin: 14px 0 0; color: rgba(255,255,255,.7); font-size: .95rem; }

.case {
  margin-top: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 44px; border-radius: 20px; background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); border: 1px solid rgba(255,255,255,.08);
}
.case h3 { font-size: 1.6rem; }
.case p:last-child { color: rgba(255,255,255,.75); margin: 0; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.flow li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); font-size: .95rem; }
.flow span { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #04121f; background: var(--grad); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { padding-top: 24px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--grad); }
.step-n { font-family: var(--display); font-weight: 600; color: var(--ink-3); font-size: .9rem; display: block; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: .97rem; }

/* About */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.about-card { background: #fff; border-radius: 20px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.avatar { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--navy-600), var(--navy-900)); box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(58,160,255,.5); margin-bottom: 20px; }
.about-name { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 0; }
.about-role { color: var(--ink-3); font-size: .95rem; }
.about-facts { list-style: none; padding: 16px 0 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.about-facts li { font-size: .93rem; color: var(--ink-2); padding: 6px 0; }
.text-link { font-weight: 600; color: #2563eb; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.about-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 1.05rem; }

/* CTA */
.cta { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% 120%, rgba(58,160,255,.35), transparent 70%); }
.cta-inner { position: relative; text-align: center; max-width: 720px; }
.cta p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 32px; }
.cta .hero-cta { justify-content: center; }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; font-size: .88rem; }
.footer .brand { color: #fff; }
.footer p { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .case { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .console { max-width: 560px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-card { max-width: 480px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px 16px 24px; background: rgba(6,15,30,.97); backdrop-filter: blur(14px);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .nav-links .btn { margin-top: 10px; }
  .nav.menu-open { background: rgba(6,15,30,.97); }
  .brand-text span { display: none; }
  .hero { padding: 132px 0 72px; }
  .hero-proof { grid-template-columns: 1fr; margin-top: 48px; }
  .hero-proof li, .hero-proof li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero-proof li { display: flex; align-items: baseline; gap: 14px; }
  .hero-proof strong { font-size: 1.5rem; min-width: 84px; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .cards, .stats, .steps { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .case { padding: 28px 22px; gap: 28px; }
  .about-card { padding: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .nav-links .btn { width: auto; }
}
