:root {
  --bg: #0b0d10;
  --bg-soft: #14181d;
  --fg: #e7ecf1;
  --fg-dim: #97a3b0;
  --accent: #6ee7b7;
  --accent-2: #38bdf8;
  --border: #232a31;
  --radius: 14px;
  --max: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; max-width: var(--max); margin: 0 auto;
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { display: block; height: 24px; width: auto; }
.brand .dot { color: var(--accent); }
nav a { color: var(--fg-dim); margin-left: 22px; font-size: 14px; }

/* ── Hero ── */
.hero { text-align: center; padding: 72px 0 40px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 0 0 18px;
  letter-spacing: -0.03em; font-weight: 800;
  background: linear-gradient(120deg, var(--fg), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--fg-dim); max-width: 620px; margin: 0 auto 30px; }

.cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--accent); color: #06281d; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--border); }

/* ── Sections ── */
section { padding: 44px 0; }
h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
.muted { color: var(--fg-dim); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; font-size: 14px; color: var(--fg-dim); }

.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before {
  counter-increment: step; content: counter(step);
  flex: 0 0 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--accent); color: #06281d;
}

/* ── Section head (title + slider arrows) ── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sec-head h2 { margin-bottom: 4px; }
.sec-head .muted { margin: 0; font-size: 14px; }

.slider-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.sn-btn {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--bg-soft); color: var(--fg); border: 1px solid var(--border);
  font-size: 20px; line-height: 1; display: grid; place-items: center;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.sn-btn:hover { border-color: var(--accent); color: var(--accent); }
.sn-btn:active { transform: scale(.94); }

/* ── Capabilities slider ── */
.slider { margin-top: 24px; }
.slides {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: 0; padding: 4px; margin: -4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }

.slide {
  scroll-snap-align: start; flex: 0 0 clamp(260px, 80%, 340px);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
}
.slide::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .8;
}
.slide-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
  background: rgba(110, 231, 183, .1); border: 1px solid var(--border);
}
.slide h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.slide p { margin: 0; font-size: 14.5px; color: var(--fg-dim); }

.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--border); border: none; transition: background .2s ease, width .2s ease;
}
.dot.active { background: var(--accent); width: 22px; border-radius: 999px; }

/* ── Agents marquee ── */
.marquee {
  margin-top: 24px; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; padding: 4px 0;
  animation: marquee 38s linear infinite; will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.agent {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: 15px; flex: 0 0 auto;
  margin-right: 12px;
}
.agent em { color: var(--fg-dim); font-style: normal; font-weight: 400; font-size: 12.5px; }
.agent-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.agents-foot { margin-top: 18px; font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .sec-head { flex-direction: column; align-items: stretch; }
  .sec-head .slider-nav { display: none; }

  /* Header: let the nav drop to its own row so 4 links never overflow. */
  header { flex-wrap: wrap; row-gap: 8px; padding: 18px 24px; }
  nav { width: 100%; display: flex; flex-wrap: wrap; }
  nav a { margin-left: 0; margin-right: 18px; font-size: 13px; }
}

/* ── Footer ── */
footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 56px; color: var(--fg-dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ── Legal pages ── */
.legal { padding: 48px 0; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; }
.legal h2 { font-size: 19px; margin-top: 32px; }
.legal p, .legal li { color: var(--fg-dim); }
.legal .updated { font-size: 13px; }
