/* Agentaras marketing site.
   Tokens follow the product handoff (agentras/design/HANDOFF.md) so the site and the app feel like one thing.
   Radius rule: interactive controls 10px, containers and screenshots 16px, chips 6px. */

:root {
  --accent: #3B5BDB;
  --accent-hover: #2B44A8;
  --accent-soft: rgba(59, 91, 219, 0.08);
  --accent-ink: #FFFFFF;
  --ink: #15171C;
  --ink-2: #3F444B;
  --muted: #5B6169;
  --line: #E3E5E8;
  --ground: #F6F7F5;
  --surface: #FFFFFF;
  --surface-2: #EEF0EC;
  --deep: #1A1A2E;          /* brand navy, used for the one dark tile */
  --deep-text: #E6E9F2;
  --deep-muted: #A9B0C4;
  --ok: #166534;
  --ok-bg: #E9F5EC;
  --no: #8A4B0B;
  --no-bg: #FFF8F1;
  --shadow: 0 1px 2px rgba(26, 26, 46, 0.06), 0 18px 48px -18px rgba(26, 26, 46, 0.22);
  --r-ctl: 10px;
  --r-box: 16px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #6F8BF2;
    --accent-hover: #93A8F6;
    --accent-soft: rgba(111, 139, 242, 0.12);
    --accent-ink: #0F1222;
    --ink: #ECEEF2;
    --ink-2: #C3C8D0;
    --muted: #9AA1AC;
    --line: #2A2E36;
    --ground: #111317;
    --surface: #181B20;
    --surface-2: #1E2228;
    --deep: #1A1A2E;
    --ok: #7BD497;
    --ok-bg: rgba(22, 163, 74, 0.14);
    --no: #F2B27A;
    --no-bg: rgba(242, 178, 122, 0.10);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #6F8BF2; --accent-hover: #93A8F6; --accent-soft: rgba(111, 139, 242, 0.12); --accent-ink: #0F1222;
  --ink: #ECEEF2; --ink-2: #C3C8D0; --muted: #9AA1AC; --line: #2A2E36; --ground: #111317; --surface: #181B20;
  --surface-2: #1E2228; --ok: #7BD497; --ok-bg: rgba(22, 163, 74, 0.14); --no: #F2B27A; --no-bg: rgba(242, 178, 122, 0.10);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 48px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 767px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-ctl); z-index: 100; }
.skip:focus { left: 8px; }

.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.08; font-weight: 600; max-width: 22ch; }
.lead { color: var(--ink-2); font-size: 1.1rem; max-width: 52ch; margin-top: 16px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-ctl);
  font: 600 16px/1 var(--font); white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--primary .ph { transition: transform .25s var(--ease); }
.btn--primary:hover .ph { transform: translateX(3px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.link-quiet { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.link-quiet:hover { color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { height: 68px; display: flex; align-items: center; gap: 32px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-right: auto; }
.nav__links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
@media (max-width: 899px) { .nav__links { display: none; } }
@media (max-width: 400px) { .nav__actions .link-quiet { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; max-width: 15ch; }
.hero__sub { margin-top: 22px; font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__shot { margin: 0; margin-right: -180px; }   /* the product bleeds off the right edge */
.frame { border-radius: var(--r-box); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame__bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

@media (max-width: 959px) {
  .hero { padding: 40px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__shot { margin-right: 0; }
}

/* load-in: copy rises, screenshot follows */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__shot { animation: rise-shot 1.1s var(--ease) .2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-shot { from { opacity: 0; transform: translate(24px, 24px); } to { opacity: 1; transform: none; } }

/* ---------- facts band ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts__row p { display: flex; gap: 14px; align-items: flex-start; padding: 26px 28px; color: var(--ink-2); font-size: 15.5px; }
.facts__row p + p { border-left: 1px solid var(--line); }
.facts__row strong { color: var(--ink); font-weight: 600; }
.facts__row .ph { font-size: 24px; color: var(--accent); flex: none; margin-top: 1px; }
@media (max-width: 767px) {
  .facts__row { grid-template-columns: 1fr; }
  .facts__row p { padding: 18px 0; }
  .facts__row p + p { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- how it works ---------- */
.how { padding: 112px 0 0; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 22px; position: relative; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.step .ph { font-size: 26px; color: var(--ink); }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-top: 14px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.step code { color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
.how__shot { margin: 64px 0 0; border-radius: var(--r-box) var(--r-box) 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow); max-height: 520px; }
@media (max-width: 959px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .how { padding-top: 72px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .how__shot { margin-top: 40px; max-height: 280px; }
}

/* ---------- memory ---------- */
.memory { padding: 112px 0; background: var(--surface); border-top: 1px solid var(--line); }
.memory__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.memory__shot { margin: 0; border-radius: var(--r-box); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 24px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.points .ph { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent); font-size: 21px; }
.points h3 { font-size: 1.05rem; font-weight: 600; }
.points p { color: var(--muted); font-size: 15.5px; margin-top: 3px; }
@media (max-width: 959px) {
  .memory { padding: 72px 0; }
  .memory__grid { grid-template-columns: 1fr; gap: 40px; }
  .memory__shot { margin: 0; order: 2; }
}

/* ---------- control bento ---------- */
.control { padding: 112px 0; }
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 16px; }
.cell { border-radius: var(--r-box); padding: 30px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cell > .ph { font-size: 26px; color: var(--accent); margin-bottom: 6px; }
.cell h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.2; max-width: 24ch; }
.cell p { color: var(--muted); font-size: 15.5px; max-width: 46ch; }

.cell--policy { grid-column: span 2; background: var(--deep); border-color: var(--deep); color: var(--deep-text); }
.cell--policy > .ph { color: #8FA6FF; }
.cell--policy p { color: var(--deep-muted); }
.roles { margin-top: auto; padding-top: 18px; display: grid; font-size: 14.5px; max-width: 460px; }
.roles > div { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.10); }
.roles__head { color: var(--deep-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; border-top: 0 !important; }
.roles code { color: #fff; }
.roles .yes { color: #7BD497; display: inline-flex; gap: 6px; align-items: center; }
.roles .no { color: #F2B27A; display: inline-flex; gap: 6px; align-items: center; }

.cell--models { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cell--models > .ph, .cell--models p { color: var(--accent-ink); opacity: .9; }
.providers { list-style: none; padding: 18px 0 0; margin: auto 0 0; display: grid; gap: 0; font-family: var(--mono); font-size: 14px; }
.providers li { padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--accent-ink) 22%, transparent); }

.cell--tools { background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 28%, transparent) 1px, transparent 0) 0 0 / 16px 16px,
    var(--surface); }
.chips { list-style: none; padding: 0; margin: auto 0 0; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: 12.5px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }

@media (max-width: 959px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell--policy { grid-column: span 2; }
}
@media (max-width: 767px) {
  .control { padding: 72px 0; }
  .bento { grid-template-columns: 1fr; }
  .cell--policy { grid-column: auto; }
  .cell { padding: 24px; }
}

/* ---------- assistant ---------- */
.assistant { padding: 0 0 112px; }
.assistant__panel {
  border-radius: var(--r-box);
  background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px;
  padding: 64px 64px 0; overflow: hidden;
}
.assistant__copy { padding-bottom: 64px; }
.catches { margin: 36px 0 0; display: grid; gap: 0; }
.catches > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.catches dt { font-weight: 600; }
.catches dd { margin: 0; color: var(--ink-2); }
.catches code { color: var(--accent); }
.assistant__note { display: flex; gap: 10px; align-items: center; margin-top: 28px; color: var(--muted); font-size: 15px; }
.assistant__note .ph { font-size: 22px; color: var(--accent); }
.assistant__phone {
  margin: 0; align-self: end; justify-self: center; width: 100%; max-width: 330px;
  border: 10px solid var(--ink); border-bottom: 0; border-radius: 40px 40px 0 0; overflow: hidden;
  box-shadow: var(--shadow); max-height: 560px; background: var(--surface);
}
@media (max-width: 959px) {
  .assistant { padding-bottom: 72px; }
  .assistant__panel { grid-template-columns: 1fr; padding: 40px 24px 0; gap: 0; }
  .assistant__copy { padding-bottom: 40px; }
  .assistant__phone { max-height: 420px; max-width: 280px; }
}
@media (max-width: 767px) {
  .catches > div { grid-template-columns: 1fr; gap: 4px; }
  .assistant__panel { padding: 32px 18px 0; }
}

/* ---------- pricing ---------- */
.pricing { padding: 112px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing .h2 { margin: 0 auto; text-align: center; }
.plans { margin: 48px auto 0; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border-radius: var(--r-box); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; background: var(--ground); }
.plan h3 { font-size: 1.1rem; font-weight: 600; }
.plan__price { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.plan__price span { display: block; font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li .ph { color: var(--accent); flex: none; transform: translateY(2px); }
.plan .btn { margin-top: auto; }
.plan--team { background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow); }
.pricing__foot { text-align: center; color: var(--muted); font-size: 15px; margin: 28px auto 0; max-width: 60ch; }
@media (max-width: 767px) {
  .pricing { padding: 72px 0; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
}

/* ---------- final cta ---------- */
.final { padding: 120px 0; }
.final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final__mark { width: 72px; height: 72px; margin-bottom: 28px; }
.final .h2 { max-width: 20ch; }
.final .lead { margin-left: auto; margin-right: auto; }
.final__ctas { justify-content: center; }
@media (max-width: 767px) { .final { padding: 80px 0; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: var(--ink-2); font-size: 14.5px; }
.footer__copy { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
@media (max-width: 767px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
