/* ===== Agent Spawn landing page styles ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --ink: #11162a;
  --ink-soft: #59617a;
  --accent: #5b54e6;
  --accent-strong: #4a43cf;
  --accent-soft: #eeedfd;
  --border: #e7e9f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 50, 0.06), 0 1px 3px rgba(20, 20, 50, 0.05);
  --shadow-md: 0 10px 30px rgba(28, 27, 71, 0.10);
  --shadow-lg: 0 30px 60px rgba(28, 27, 71, 0.16);
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section[id] { scroll-margin-top: 84px; }

/* ===== Accessibility helpers ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid rgba(91, 84, 230, 0.45); outline-offset: 2px; border-radius: 4px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
  padding: 0.9rem 1.3rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(91, 84, 230, 0.30); }
.btn--primary:active { transform: translateY(0); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.92rem; }

/* ===== Icons (subtle line set) ===== */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 15px; height: 15px; }

/* ===== Shared bits ===== */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; font-size: 0.8rem;
  color: var(--accent); margin-bottom: 0.85rem;
}
.grad {
  background: linear-gradient(120deg, #6f66ff, #5b54e6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section__lead { color: var(--ink-soft); margin-top: 0.9rem; font-size: 1.06rem; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.brand__mark { display: block; border-radius: 8px; }
.brand__name { font-size: 1.08rem; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.96rem; transition: color 0.15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav .btn--primary { margin-left: 0.4rem; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 76px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 50% at 88% 0%, rgba(111, 102, 255, 0.12), transparent 70%),
    radial-gradient(40% 40% at 0% 10%, rgba(91, 84, 230, 0.06), transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
.hero__sub { color: var(--ink-soft); font-size: 1.13rem; margin-top: 1.1rem; max-width: 33ch; }

.hero__trust { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero__trust li {
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.32rem 0.8rem;
}
.hero__harness { margin-top: 1.3rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.hero__harness-label { display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; margin-right: 8px; }

/* ===== Signup form ===== */
.signup { margin-top: 1.6rem; max-width: 460px; }
.signup__row { display: flex; gap: 0.55rem; }
.signup__input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink);
  padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup__input::placeholder { color: #9aa1b4; }
.signup__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 84, 230, 0.16); }
.signup__msg { margin-top: 0.85rem; font-weight: 600; font-size: 0.95rem; }
.signup__msg--ok { color: #1a8a4b; }
.signup__msg--err { color: #c0392b; }
.signup--lg { margin-left: auto; margin-right: auto; }
.signup--lg .signup__input { padding: 1rem 1.1rem; }

.form-note { color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.8rem; }
.form-note--light { color: rgba(255, 255, 255, 0.78); text-align: center; }
.cta__email { margin-top: 12px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); text-align: center; }
.cta__email a { color: #fff; font-weight: 600; }

/* ===== App window mockup ===== */
.hero__art { position: relative; }
.appwin {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(0.4deg);
}
.appwin__bar {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem;
  background: #fbfbfe; border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #d8dae6; }
.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.appwin__title { margin-left: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.appwin__body { display: grid; grid-template-columns: 38% 62%; min-height: 290px; }
.appwin__side { background: #fafafe; border-right: 1px solid var(--border); padding: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; }
.side__item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; padding: 0.5rem 0.6rem; border-radius: 8px; color: var(--ink-soft); }
.side__item--active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.side__spacer { flex: 1; }
.side__brand { font-size: 0.72rem; color: #9aa1b4; padding: 0.3rem 0.6rem; }
.appwin__chat { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.msg { font-size: 0.85rem; padding: 0.6rem 0.8rem; border-radius: 12px; max-width: 88%; }
.msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg--bot { align-self: flex-start; background: #f1f2f8; color: var(--ink); border-bottom-left-radius: 4px; }
.appwin__input {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); border-radius: 999px; padding: 0.55rem 0.9rem;
  color: #9aa1b4; font-size: 0.82rem;
}
.appwin__input .send { color: var(--accent); display: inline-flex; align-items: center; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 1rem;
}
.step__title { font-size: 1.18rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Feature grid ===== */
.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(4, 1fr); }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-strong); border-radius: 12px; margin-bottom: 0.9rem;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Templates grid ===== */
.grid--templates { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.tcard {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d4d6ea; }
.tcard__icon {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-strong); border-radius: 12px; margin-bottom: 0.9rem;
}
.tcard__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px;
  padding: 0.2rem 0.65rem; margin-bottom: 0.7rem;
}
.tcard h3 { font-size: 1.06rem; margin-bottom: 0.4rem; }
.tcard p { color: var(--ink-soft); font-size: 0.92rem; }
.templates__note { text-align: center; color: var(--ink-soft); margin-top: 38px; font-size: 0.98rem; }

/* ===== Template explorer (clickable previews) ===== */
.preview { max-width: 880px; margin: 0 auto 14px; }
.preview .appwin { transform: none; width: 100%; }
.preview .appwin__body { min-height: 304px; }
.appwin__title { display: inline-flex; align-items: center; gap: 6px; }
.appwin__title .icon { width: 15px; height: 15px; }
.preview__hint { text-align: center; color: var(--ink-soft); font-size: 0.92rem; margin: 0 auto 36px; }
.preview__hint strong { color: var(--accent-strong); font-weight: 600; }
.mock { animation: mockfade 0.32s ease; }
@keyframes mockfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tcard { cursor: pointer; }
.tcard.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(91, 84, 230, 0.22), var(--shadow-md); }
.tcard:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 84, 230, 0.30); }

/* Mockup shell + layout helpers */
.m-body { min-height: 300px; }
.m-pad { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.m-split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 300px; }
.m-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px; display: flex; flex-direction: column; gap: 8px; }
.m-panel__h { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }

/* Document / contract pages */
.m-doc { padding: 16px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; background: #fff; }
.m-doc__title { font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 3px; }
.m-doc__line { height: 7px; border-radius: 4px; background: #eceef5; }
.m-doc__line--mark { height: auto; background: var(--accent-soft); color: var(--accent-strong); font-size: 0.72rem; padding: 6px 8px; font-weight: 600; }
.m-doc__line--flag { height: auto; background: #fff; color: var(--ink); font-size: 0.72rem; padding: 5px 8px; box-shadow: inset 0 -2px 0 #d8dae6; }
.m-doc__line--flag.is-high { box-shadow: inset 0 -2px 0 #e8553e; }
.m-doc__line--flag.is-med { box-shadow: inset 0 -2px 0 #e3962e; }
.m-doc__line--flag.is-low { box-shadow: inset 0 -2px 0 #cdb52f; }

/* Document Q&A */
.m-ask { padding: 16px; display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.m-ask__q { align-self: flex-end; background: var(--accent); color: #fff; font-size: 0.78rem; padding: 8px 11px; border-radius: 12px 12px 4px 12px; max-width: 92%; }
.m-ask__a { background: #f1f2f8; color: var(--ink); font-size: 0.78rem; padding: 9px 11px; border-radius: 12px 12px 12px 4px; }
.m-cite { display: inline-block; margin-top: 6px; font-size: 0.66rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 7px; border-radius: 5px; }

/* Contract flags */
.m-flags { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.m-flag { display: flex; align-items: center; gap: 9px; font-size: 0.78rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; }
.m-badge { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 999px; }
.m-badge--high { background: #fdece8; color: #c0392b; }
.m-badge--med { background: #fbf1e0; color: #b9770e; }
.m-badge--low { background: #eaf4ec; color: #2e7d4f; }

/* Bookkeeping dashboard */
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-stat { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.m-stat span { font-size: 0.68rem; color: var(--ink-soft); }
.m-stat strong { font-size: 1.05rem; }
.m-stat--accent { background: var(--accent-soft); border-color: transparent; }
.m-stat--accent strong { color: var(--accent-strong); }
.m-bar { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; }
.m-bar__label { width: 60px; color: var(--ink-soft); flex: none; }
.m-bar__track { flex: 1; height: 7px; background: #eceef5; border-radius: 4px; overflow: hidden; }
.m-bar__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #8b84ff); border-radius: 4px; }
.m-table { display: flex; flex-direction: column; }
.m-row { display: flex; justify-content: space-between; font-size: 0.72rem; padding: 5px 0; border-bottom: 1px solid var(--border); }
.m-row:last-child { border-bottom: none; }
.m-row span:last-child { color: var(--ink-soft); }

/* Support widget */
.m-support { gap: 10px; }
.m-chat { display: flex; flex-direction: column; gap: 7px; }
.m-source { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.72rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; }
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.m-chips span { font-size: 0.72rem; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 5px 11px; }

/* Email composer */
.m-email { gap: 10px; }
.m-field { display: flex; gap: 10px; font-size: 0.76rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.m-field > span { width: 52px; color: var(--ink-soft); flex: none; }
.m-field > div { color: var(--ink); font-weight: 500; }
.m-mailbody { font-size: 0.78rem; color: var(--ink); line-height: 1.55; flex: 1; }
.m-mailbar { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.m-pill { font-size: 0.7rem; color: var(--ink-soft); background: #f1f2f8; border-radius: 999px; padding: 5px 10px; }
.m-send-btn { margin-left: auto; font-size: 0.76rem; font-weight: 600; color: #fff; background: var(--accent); border-radius: 8px; padding: 7px 15px; }

/* Research workspace */
.m-sources { padding: 14px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; background: #fbfbfe; }
.m-src { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: var(--ink-soft); padding: 6px 8px; border-radius: 7px; }
.m-src--active { background: #fff; border: 1px solid var(--border); color: var(--ink); }
.m-outline { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.m-point { position: relative; font-size: 0.78rem; color: var(--ink); padding-left: 15px; }
.m-point::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.m-ref { color: var(--accent-strong); font-weight: 700; font-size: 0.6rem; }

/* Data Q&A */
.m-query { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 13px; }
.m-query .icon { color: var(--accent); }
.m-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; font-size: 0.7rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; align-content: start; }
.m-grid > div { padding: 6px 9px; border-bottom: 1px solid var(--border); }
.m-grid__h { background: #f6f7fb; font-weight: 700; color: var(--ink-soft); }

/* Notes organizer */
.m-note { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.m-note__h { font-size: 0.84rem; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.m-tag { font-size: 0.62rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.m-sec { display: flex; flex-direction: column; gap: 6px; }
.m-sec__h { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); font-weight: 700; }
.m-check { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--ink); }
.m-check .icon { color: var(--accent); }

/* Listing card */
.m-listing { align-items: center; justify-content: center; }
.m-listing__card { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.m-photo { height: 92px; background: linear-gradient(135deg, #6f66ff, #8b84ff); display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 0.82rem; font-weight: 600; }
.m-photo .icon { width: 18px; height: 18px; }
.m-listing__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.m-listing__price { font-size: 1.15rem; font-weight: 800; }
.m-specs { display: flex; gap: 7px; }
.m-specs span { font-size: 0.7rem; color: var(--ink-soft); background: #f1f2f8; border-radius: 6px; padding: 3px 8px; }
.m-listing__desc { font-size: 0.76rem; color: var(--ink); line-height: 1.5; }

/* Code / tech */
.m-code-split { grid-template-columns: 1.1fr 0.9fr; }
.m-code { background: #0f1326; display: flex; flex-direction: column; }
.m-code__bar { font-size: 0.68rem; color: #8990b5; padding: 9px 13px; border-bottom: 1px solid #232842; }
.m-code pre { margin: 0; padding: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; line-height: 1.7; color: #c7cbe0; white-space: pre-wrap; }
.tok-c { color: #6b7299; }
.tok-r { color: #ff8a7a; }
.m-explain { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.m-explain__t { font-size: 0.78rem; line-height: 1.55; color: var(--ink); }
.m-explain code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.73rem; background: #f1f2f8; padding: 1px 5px; border-radius: 5px; }

.mock-flow { display: grid; grid-template-columns: 1fr 1.1fr 1fr; min-height: 304px; }
.flow-col { padding: 14px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.flow-col:last-child { border-right: none; }
.flow-col--mid { background: #fbfbfe; }
.flow-col__head { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-soft); }
.dropzone { border: 1.5px dashed #c8cbe0; border-radius: 10px; padding: 14px 10px; text-align: center; font-size: 0.78rem; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dropzone .icon { color: var(--accent); }
.filechip { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; }
.filechip .icon { color: var(--ink-soft); }
.node { font-size: 0.78rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; box-shadow: var(--shadow-sm); }
.node b { color: var(--accent-strong); margin-right: 5px; }
.node-link { width: 2px; height: 12px; background: linear-gradient(var(--accent), rgba(91, 84, 230, 0.25)); margin: 1px auto; border-radius: 2px; }
.node--add { color: var(--accent-strong); background: var(--accent-soft); border-style: dashed; border-color: rgba(91, 84, 230, 0.4); box-shadow: none; text-align: center; }
.out-text { font-size: 0.78rem; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 10px; line-height: 1.5; }
.out-row { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 6px 2px; border-bottom: 1px dashed var(--border); }
.out-row strong { color: var(--ink); }
.out-chart { display: flex; align-items: flex-end; gap: 7px; height: 72px; padding: 8px 2px 0; }
.out-chart span { flex: 1; background: linear-gradient(var(--accent), #8b84ff); border-radius: 4px 4px 0 0; min-height: 6px; }
.out-note { font-size: 0.72rem; color: var(--ink-soft); }

@media (max-width: 720px) {
  .m-split, .m-code-split, .mock-flow { grid-template-columns: 1fr; }
  .m-cols2, .m-stats { grid-template-columns: 1fr; }
  .m-doc, .m-sources, .flow-col { border-right: none; border-bottom: 1px solid var(--border); }
  .flow-col:last-child { border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) { .mock { animation: none; } }

/* ===== Who it's for ===== */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.who .section__head { text-align: left; margin: 0; }
.who .eyebrow { margin-bottom: 0.85rem; }
.checklist { display: grid; gap: 0.9rem; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.7rem; color: var(--ink); font-size: 1.04rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.9rem 1rem; box-shadow: var(--shadow-sm);
}
.checklist__check { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* ===== BYOM ===== */
.byom { background: linear-gradient(180deg, #f4f3fe, #fbfbff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.byom__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.byom__points { margin-top: 20px; display: grid; gap: 11px; }
.byom__points li { display: flex; align-items: flex-start; gap: 9px; font-size: 1rem; color: var(--ink); }
.byom__check { color: var(--accent); margin-top: 3px; }
.byom__panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 8px; }
.byom__panel-h { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink-soft); margin-bottom: 2px; }
.byom__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.95rem; color: var(--ink); padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; }
.byom__opt.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.byom__dot { width: 16px; height: 16px; border-radius: 50%; border: 5px solid var(--accent); background: #fff; box-sizing: border-box; flex: none; }
.byom__badge { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 900px) {
  .byom__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Harness vs wrapper ===== */
.vs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.vs-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.vs-card--strong { border-color: rgba(91, 84, 230, 0.35); box-shadow: 0 0 0 1px rgba(91, 84, 230, 0.16), var(--shadow-md); }
.vs-card__h { margin-bottom: 16px; }
.vs-card__h h3 { font-size: 1.2rem; }
.vs-card__tag { display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); background: #eef0f6; border-radius: 999px; padding: 3px 9px; margin-bottom: 10px; }
.vs-card__tag--accent { color: var(--accent-strong); background: var(--accent-soft); }
.vs-list { display: grid; gap: 11px; }
.vs-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; color: var(--ink); }
.vs-card--weak .vs-list li { color: var(--ink-soft); }
.vs-x { color: #b6bccd; margin-top: 2px; }
.vs-check { color: var(--accent); margin-top: 2px; }
.vs-check--muted { color: var(--ink-soft); }
.vs-card__sub { margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 860px) { .vs__grid { grid-template-columns: 1fr; } }

/* ===== Demo video ===== */
.demo { background: #0f1326; color: #fff; }
.demo .eyebrow { color: #8b84ff; }
.demo .section__lead { color: rgba(255, 255, 255, 0.72); }
.demo .container { max-width: 1340px; }
.demo__frame { max-width: 1220px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); background: #000; line-height: 0; }
.demo__video { display: block; width: 100%; height: auto; }

/* ===== Final CTA ===== */
.cta {
  background: linear-gradient(135deg, #5b54e6, #6f66ff);
  color: #fff; padding: 80px 0; text-align: center;
}
.cta__inner { max-width: 620px; margin: 0 auto; }
.cta__title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.cta__sub { margin-top: 1rem; font-size: 1.08rem; color: rgba(255, 255, 255, 0.9); }
.cta .signup { margin-left: auto; margin-right: auto; margin-top: 1.8rem; }
.cta .signup__input { border-color: transparent; }
.cta .btn--primary { background: #fff; color: var(--accent-strong); }
.cta .btn--primary:hover { background: #f3f2ff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.cta .signup__msg--ok { color: #eafff1; }
.cta .signup__msg--err { color: #ffe2dd; }

/* ===== Footer ===== */
.footer { background: #0f1326; color: #c7cbe0; padding: 44px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
.brand--footer { color: #fff; }
.footer__tag { color: #9aa1c4; }
.footer__meta { font-size: 0.86rem; color: #767ca0; }
.footer__meta a { color: #c7cbe0; text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__sub { max-width: none; }
  .hero__art { order: -1; max-width: 460px; }
  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 52px 0 64px; }
  .signup__row { flex-direction: column; }
  .signup__row .btn { width: 100%; }
}
@media (max-width: 520px) {
  .grid--features { grid-template-columns: 1fr; }
  .grid--templates { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tcard { transition: none; }
}
