:root {
  /* Terminull brand palette — extracted from the iOS app icon / wordmark. */
  --bg: #0f0d17;
  --bg-soft: #1a1626;
  --fg: #ECEBF2;
  --fg-dim: #9C93C4;
  --accent: #9B7AD6;      /* brand purple — highlights, code, pills, focus */
  --accent-2: #B9A6EC;    /* lighter purple — links */
  --border: #2a2340;
  --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;
  /* Ambient glow behind the top of the page — subtle depth, matches the coming-soon page. */
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(106, 45, 214, .12), transparent 60%),
    radial-gradient(1000px 560px at 20% -12%, rgba(155, 122, 214, .10), transparent 62%);
  background-repeat: no-repeat;
}

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

/* Keyboard-focus ring — consistent across links, buttons, and controls. */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px;
}

/* Anchor targets clear the sticky header. */
section[id] { scroll-margin-top: 76px; }

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

/* ── Header ── */
/* Full-bleed sticky bar with a translucent blur; inner row stays max-width + centered. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 13, 23, .72);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
          backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(15, 13, 23, .96); }
}
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px; max-width: var(--max); margin: 0 auto;
}
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 9px; }
.brand img { display: block; height: 24px; width: auto; }
.brand .dot { color: var(--accent); }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; line-height: 1.5;
  color: var(--accent); background: rgba(155, 122, 214, .1); border: 1px solid var(--border);
}
nav a { color: var(--fg-dim); margin-left: 22px; font-size: 14px; transition: color .15s ease; }
nav a:hover { color: var(--fg); text-decoration: none; }

/* ── 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: linear-gradient(120deg, #8A6EC6, #5B47B3); color: #ffffff; border: 1px solid transparent;
  box-shadow: 0 8px 22px -10px rgba(155, 122, 214, .55);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(155, 122, 214, .65); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent; color: var(--fg); border-color: var(--border); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* ── 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); }

/* ── Feature grid (bulleted) ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 16px; margin-top: 26px; }
.feature {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 20px; position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .8;
}
.feature-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-size: 20px; flex: 0 0 auto;
  background: rgba(155, 122, 214, .1); border: 1px solid var(--border);
}
.feature h3 { margin: 0; font-size: 16.5px; letter-spacing: -0.01em; }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 20px; font-size: 14px; color: var(--fg-dim); line-height: 1.5; }
.feature li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.feature li strong { color: var(--fg); font-weight: 600; }

.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: #ffffff;
}

/* ── 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(155, 122, 214, .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); }
.slide p code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  padding: 1px 5px; border-radius: 5px;
  background: rgba(155, 122, 214, .1); border: 1px solid var(--border); color: var(--fg);
}

.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; }

/* ── Device screenshot carousel ── */
.device { flex: 0 0 clamp(216px, 66%, 264px); scroll-snap-align: center; margin: 0; }
.device-frame {
  position: relative; aspect-ratio: 9 / 19.5; border-radius: 36px; padding: 9px;
  background: linear-gradient(160deg, #20262e, #0d1115);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
}
.device-frame::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 20px; background: var(--bg); border-radius: 0 0 14px 14px; z-index: 2;
}
.device-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 28px;
  background: linear-gradient(160deg, var(--bg-soft), #0d1115);
}
/* iPad variant — drop the .tablet class on a .device for a 3:4 frame */
.device.tablet { flex-basis: clamp(280px, 80%, 360px); }
.device.tablet .device-frame { aspect-ratio: 3 / 4; border-radius: 24px; }
.device.tablet .device-frame::before { display: none; }
.device.tablet .device-frame img { border-radius: 16px; }
.device-cap { text-align: center; margin-top: 16px; }
.device-cap strong { font-size: 15px; letter-spacing: -0.01em; }
.device-cap span { display: block; color: var(--fg-dim); font-size: 13px; margin-top: 2px; }

/* ── 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; }
/* Uniform same-size agent logo badge. Per-brand color+background set inline
   (style="--lc: …; --lb: …"); drop a real <svg>/<img> into the same 24px slot later. */
.agent-logo {
  width: 24px; height: 24px; border-radius: 7px; flex: 0 0 auto;
  display: grid; place-items: center; overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  border: 1px solid var(--border);
  color: var(--lc, var(--accent));
  background: var(--lb, rgba(155, 122, 214, .12));
}
.agent-logo svg, .agent-logo img { width: 16px; height: 16px; display: block; }
.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; }
