: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; }
/* Download — the one call-to-action in the nav, so it reads as a button. */
nav a.nav-dl {
  color: #fff; font-weight: 600; padding: 7px 15px; border-radius: 999px;
  background: linear-gradient(120deg, #8A6EC6, #5B47B3);
  box-shadow: 0 8px 20px -10px rgba(155, 122, 214, .6);
}
nav a.nav-dl:hover { color: #fff; filter: brightness(1.06); 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; }
.btn-app { display: inline-flex; align-items: center; gap: 9px; }
.btn-app svg { width: 18px; height: 18px; }

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

/* ── Promo screenshot gallery (self-captioned App Store shots — no bezel) ── */
.shot {
  flex: 0 0 clamp(190px, 60%, 248px); scroll-snap-align: center; margin: 0;
  border-radius: 26px; overflow: hidden;          /* clip the shot's square corners */
  border: 1px solid var(--border); background: var(--bg-soft);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.shot img { width: 100%; height: auto; display: block; border-radius: 26px; }
/* ── Download section (Linux one-liner) ── */
.install-linux {
  margin-top: 30px; padding: 18px 20px; max-width: 560px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.install-linux-head {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 10px;
}
.install-cmd {
  margin: 0; padding: 12px 14px; overflow-x: auto;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
.install-cmd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  color: var(--accent-2); white-space: nowrap;
}

/* ── Download block: 50/50 macOS | Linux, matched design ──────────────── */
.dl-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px;
  margin-top: 28px; align-items: stretch;
}
.dl-card {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 22px 22px 20px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
}
.dl-card .install-cmd { min-width: 0; }
.dl-card-head { display: flex; align-items: center; gap: 11px; }
.dl-card-head svg { width: 24px; height: 24px; color: var(--fg); flex: none; }
.dl-card-head h3 { margin: 0; font-size: 17px; }
.dl-desc { margin: 0; font-size: 13.5px; color: var(--fg-dim); }
.dl-meta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  color: var(--accent-2); background: rgba(155, 122, 214, .1);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px;
}
.dl-size { font-size: 12.5px; color: var(--fg-dim); }
.dl-action { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.dl-action .btn { width: 100%; justify-content: center; }
.dl-note { margin: 2px 0 0; font-size: 12.5px; color: var(--fg-dim); }
.dl-copy[data-copied="1"] { border-color: var(--accent); color: var(--accent); }
@media (max-width: 700px) { .dl-grid { grid-template-columns: 1fr; } }

/* ── Feedback widget (universal — floating button + modal) ── */
.fb-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #fff; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(120deg, #8A6EC6, #5B47B3);
  box-shadow: 0 10px 26px -10px rgba(155, 122, 214, .6);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.fb-fab:hover { filter: brightness(1.05); transform: translateY(-1px); }
.fb-fab:active { transform: translateY(0); }
.fb-fab svg { width: 16px; height: 16px; }

.fb-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 6, 14, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.fb-overlay.open { display: flex; }
.fb-dialog {
  width: 100%; max-width: 440px; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
  padding: 24px 24px 22px; position: relative;
}
.fb-dialog h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.fb-dialog p.fb-sub { margin: 0 0 18px; font-size: 14px; color: var(--fg-dim); }
.fb-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px;
  border-radius: 8px; border: 1px solid var(--border); background: transparent;
  color: var(--fg-dim); cursor: pointer; font-size: 18px; line-height: 1;
}
.fb-close:hover { color: var(--fg); border-color: var(--accent); }

.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fb-chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--fg-dim); background: transparent; border: 1px solid var(--border);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.fb-chip:hover { color: var(--fg); }
.fb-chip.active {
  color: var(--accent); border-color: var(--accent);
  background: rgba(155, 122, 214, .12);
}

.fb-dialog label { display: block; font-size: 12.5px; color: var(--fg-dim); margin: 0 0 6px; }
.fb-dialog textarea, .fb-dialog input[type="email"] {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; margin-bottom: 14px; resize: vertical;
}
.fb-dialog textarea { min-height: 108px; }
.fb-dialog textarea:focus, .fb-dialog input[type="email"]:focus {
  outline: none; border-color: var(--accent);
}
.fb-dialog textarea::placeholder, .fb-dialog input::placeholder { color: #6f6795; }
/* Honeypot — hidden from humans, present in the DOM for bots to trip on. */
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fb-submit {
  width: 100%; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  color: #fff; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(120deg, #8A6EC6, #5B47B3);
  transition: filter .15s ease;
}
.fb-submit:hover { filter: brightness(1.05); }
.fb-submit:disabled { opacity: .6; cursor: default; filter: none; }
.fb-note { margin: 12px 0 0; font-size: 12px; color: var(--fg-dim); text-align: center; }
.fb-note a { color: var(--accent-2); }
.fb-error { color: #ff8a8a; }
.fb-done { text-align: center; padding: 14px 0 6px; }
.fb-done .fb-check {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  color: var(--accent); background: rgba(155, 122, 214, .12); border: 1px solid var(--border);
}
.fb-done h3 { margin-bottom: 6px; }

@media (max-width: 560px) {
  .fb-fab span.fb-label { display: none; }
  .fb-fab { padding: 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; }
