/* Attaché landing — styled after cursor.com's actual design system:
   white canvas, warm cream stages behind product mockups, near-black
   sentence-case headlines at medium weight, dark pill buttons, hairline
   borders, flat light-gray cards, and orange reserved for arrow links. */

:root {
  --bg: #ffffff;
  --bg-cream: #faf9f6;         /* alternate section band */
  --bg-card: #f4f2ee;          /* flat light card fill */
  --bg-stage: #e9e2d6;         /* warm beige stage behind mockups */
  --bg-pill: #ecebe6;          /* secondary button fill */
  --border: rgba(20, 18, 12, 0.09);
  --border-soft: rgba(20, 18, 12, 0.06);
  --text: #1f1e1c;
  --text-dim: #6e6c66;
  --text-faint: #9b988f;
  --ink: #191817;              /* dark button fill */
  --accent: #ff4f00;           /* Zapier brand orange — logo + small accents */
  --ok: #157f50;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1280px;
  --terminal-bg: #ffffff;
  --terminal-bar: #f5f3ef;
  --terminal-border: rgba(20, 18, 12, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 79, 0, 0.16); }

* { scrollbar-width: thin; scrollbar-color: rgba(20,18,12,0.22) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(20,18,12,0.18); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(20,18,12,0.3); background-clip: padding-box; }

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
}

/* ── Top bar ─── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 450;
  color: var(--text);
}

.nav-link:hover {
  color: var(--text-dim);
  text-decoration: none;
}

.nav-cta {
  color: #fff;
  font-weight: 500;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  transition: opacity 0.15s;
}

.nav-cta:hover {
  color: #fff;
  opacity: 0.85;
  background: var(--ink);
}

.accent { color: var(--accent); }

/* ── Main ── */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding: 76px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 450;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.h1-accent {
  color: var(--accent);
  white-space: nowrap;
}

.hero-lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.62;
  max-width: 32rem;
  margin-bottom: 24px;
}

.hero-lede strong { color: var(--text); font-weight: 550; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ── Hero layer visual — mockup on a warm stage, like cursor.com ── */

.hero-visual { min-width: 0; }

.layer-viz {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 28px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 120% 90% at 50% -20%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(165deg, #ece5d8, #e3dbcb 55%, #ded4c1);
}

.lv-cap {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.lv-agents,
.lv-pillars {
  display: grid;
  gap: 8px;
}

.lv-agents { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lv-pillars { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.lv-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 12px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(30, 25, 15, 0.05);
}

.lv-agent svg { width: 18px; height: 18px; color: var(--text); opacity: 0.85; }

/* funnel connector: a bus line across, then a stem down to the core */
.lv-down { position: relative; height: 22px; }
.lv-down::before {
  content: "";
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: rgba(20, 18, 12, 0.16);
}
.lv-down::after {
  content: "";
  position: absolute; top: 0; left: 50%; width: 1px; height: 22px;
  background: rgba(20, 18, 12, 0.16);
}

.lv-core {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 22px -10px rgba(25, 24, 23, 0.5);
}

.lv-core-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px; flex: none;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
}
.lv-core-mark svg {
  width: 16px;
  height: 16px;
  display: block;
}
.lv-core-copy { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.lv-core-copy strong { font-weight: 600; }

.lv-pillars span {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 9px 4px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

/* Install column */

.hero-install {
  min-width: 0;
  align-self: center;
}

/* Agent tabs — segmented bar */

.agent-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: var(--bg-cream);
}

.agent-tab {
  flex: 1 1 auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 450;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-soft);
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

/* Monochrome brand marks — inherit the tab's text color */
.agent-logo {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: 0.75;
}

.agent-tab.active .agent-logo { opacity: 1; }

.agent-tab:last-child { border-right: none; }

.agent-tab:hover {
  color: var(--text);
  background: var(--bg-card);
}

.agent-tab.active {
  color: var(--text);
  background: #ffffff;
  box-shadow: inset 0 -2px 0 var(--ink);
  font-weight: 550;
}

/* Terminal block — light window chrome, like cursor.com's CLI mockups */

.terminal {
  border: 1px solid var(--terminal-border);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  background: var(--terminal-bg);
  box-shadow: 0 14px 34px -20px rgba(30, 25, 15, 0.25);
}

.terminal-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 14px 18px 20px;
}

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  padding: 0;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: #ffffff;
}

.copy-btn.copied {
  color: var(--ok);
  border-color: transparent;
  background: transparent;
}

.terminal-body {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 4px 0 0;
  overflow-x: auto;
}

.terminal-body code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .prompt { color: var(--text-faint); user-select: none; }
.terminal-body .prompt[hidden] { display: none; }

/* Syntax highlighting for the install command */
.terminal-body .tok-kw { color: var(--accent); }
.terminal-body .tok-var { color: #8a5a00; }
.terminal-body .tok-str { color: var(--ok); }
.terminal-body .tok-punct { color: var(--text-faint); }
.terminal-body .tok-cmd { color: var(--text); font-weight: 600; }

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--text);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* ── Section headings ── */

.section-tag {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 450;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* ── Problem explainer (before demos) ── */

.explainer {
  padding: 64px 0 20px;
  margin-top: 40px;
}

.explainer-head {
  max-width: 52rem;
  margin-bottom: 28px;
}

.explainer-head h2 {
  font-family: var(--sans);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.022em;
  margin-bottom: 16px;
  text-wrap: pretty;
}

.explainer-head h2 .h2-sub {
  color: var(--text-dim);
  font-weight: 500;
}

.explainer-lede {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 40rem;
}

.explainer-viz {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.ex-stage {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 18px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 110% 80% at 50% -15%, rgba(255, 255, 255, 0.55), transparent 58%),
    linear-gradient(165deg, #ece5d8, #e3dbcb 55%, #ded4c1);
}

.ex-silos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.ex-silo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(30, 25, 15, 0.05);
}

.ex-silo-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text);
}

.ex-silo-agent svg {
  width: 18px;
  height: 18px;
  color: var(--text);
  opacity: 0.88;
}

.ex-silo-model {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
}

.ex-silo-note {
  margin-top: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-faint);
}

.ex-gaps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}

.ex-gap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #8a3b28;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(138, 59, 40, 0.16);
  border-radius: 8px;
}

.ex-gap i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c45a3a;
  flex: none;
  animation: ex-gap-pulse 1.8s ease-in-out infinite;
}

.ex-gap:nth-child(2) i { animation-delay: 0.35s; }
.ex-gap:nth-child(3) i { animation-delay: 0.7s; }

@keyframes ex-gap-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.explainer-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.explainer-point {
  padding: 8px 4px 0;
}

.explainer-point h3 {
  font-size: 1.08rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.explainer-point p {
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.58;
}

/* Scroll reveal for explainer pieces */
.explainer [data-ex-step] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  transition-delay: calc(var(--ex-delay, 0) * 70ms);
}

.explainer.is-inview [data-ex-step],
.explainer.ex-static [data-ex-step] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .explainer [data-ex-step] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ex-gap i { animation: none; opacity: 1; }
}

/* ── Capability showcase ── */

.showcase {
  padding: 64px 0 8px;
  border-top: 1px solid var(--border-soft);
}

.showcase-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 8px;
}

.showcase-copy {
  min-width: 0;
}

.showcase-head h2 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 550;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

/* Scroll-through feature sections */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
}

.feature:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
}

.feature:nth-child(even) .feature-copy { order: 2; }
.feature:nth-child(even) .feature-preview { order: 1; }

p.feature-kicker {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 550;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-copy h3 {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.feature-copy > p:not(.feature-kicker) {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.62;
  max-width: 26rem;
  margin-bottom: 18px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.feature-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-dim);
}

.feature-points li::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background: currentColor;
  color: var(--ok);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}

/* mockup floats on a warm beige stage, as on cursor.com */
.feature-preview {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  justify-self: end;
  padding: 26px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse 120% 90% at 50% -20%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(165deg, #ece5d8, #e3dbcb 55%, #ded4c1);
}

.feature:nth-child(even) .feature-preview { justify-self: start; }

/* ── Dashboard preview ── */

.feature-preview-wide { width: 100%; }

.mission-mock {
  width: 760px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(20, 18, 12, 0.11);
  border-radius: 10px;
  background: #f7f6f2;
  box-shadow: 0 24px 48px -24px rgba(30, 25, 15, 0.3);
  font-family: var(--sans);
}

.mission-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.mission-top > div { display: flex; align-items: center; gap: 8px; }
.mission-mark { display: inline-flex; width: 18px; height: 18px; color: var(--accent); }
.mission-mark svg { width: 100%; height: 100%; }
.mission-live { color: var(--ok); font-size: 10px; }
.mission-live i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--ok); }

.mission-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.mission-stats > div { padding: 12px 13px; border-right: 1px solid var(--border-soft); }
.mission-stats > div:last-child { border-right: 0; }
.mission-stats span, .mission-stats small { display: block; color: var(--text-faint); font-size: 8.5px; }
.mission-stats strong { display: block; margin: 2px 0; font-size: 17px; letter-spacing: -0.03em; }
.mission-stats .stat-saved { color: var(--ok); }

.mission-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 9px; padding: 10px; }
.mission-panel { min-width: 0; padding: 12px; border: 1px solid var(--border-soft); border-radius: 7px; background: #fff; }
.mission-panel-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 9px; }
.mission-panel-head span { color: var(--text-faint); }

.usage-row {
  display: grid;
  grid-template-columns: 23px minmax(88px, 1fr) 70px 28px;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 8px;
}

.usage-person { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; color: #88401f; background: #f8d8c8; font-size: 7px; font-weight: 700; }
.usage-person.alt { color: #285d48; background: #d8eee5; }
.usage-person.cool { color: #315383; background: #dce7f7; }
.usage-row > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.usage-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.usage-row small { overflow: hidden; color: var(--text-faint); text-overflow: ellipsis; white-space: nowrap; font-size: 7px; }
.usage-row > i { position: relative; height: 4px; border-radius: 99px; background: #ece9e2; }
.usage-row > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--usage); border-radius: inherit; background: var(--accent); }
.usage-row em { color: var(--text-dim); font-style: normal; text-align: right; }

.model-ring {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 5px auto 10px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 45%, #1f1e1c 45% 78%, #d9d5cc 78% 100%);
}
.model-ring::before { content: ""; grid-area: 1 / 1; width: 57px; height: 57px; border-radius: 50%; background: #fff; }
.model-ring > div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.model-ring strong, .model-ring small { display: block; }
.model-ring strong { font-size: 14px; }
.model-ring small { color: var(--text-faint); font-size: 7px; }
.model-legend { display: grid; gap: 4px; font-size: 7px; color: var(--text-dim); }
.model-legend span { display: flex; align-items: center; gap: 5px; }
.model-legend i { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.model-legend .legend-b { background: #1f1e1c; }
.model-legend .legend-c { background: #d9d5cc; }

.mission-link {
  display: flex;
  justify-content: space-between;
  margin: 0 10px 10px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-size: 9px;
  font-weight: 550;
}
.mission-link:hover { color: #fff; text-decoration: none; opacity: 0.88; }
.mission-link span { color: var(--accent); }

/* ── Cross-agent memory example ── */

.feature-memory {
  display: block;
  padding: 54px 0 48px;
}

.feature-memory-head { max-width: 46rem; margin-bottom: 28px; }
.feature-memory-head h3 { margin-bottom: 12px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 550; letter-spacing: -0.02em; }
.feature-memory-head > p:last-child { color: var(--text-dim); font-size: 0.98rem; line-height: 1.62; }

.memory-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  align-items: center;
}

.memory-app {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 36px -24px rgba(30, 25, 15, 0.38);
}

.memory-appbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-cream);
}
.memory-appbar > span:nth-child(3) { display: flex; flex-direction: column; min-width: 0; }
.memory-appbar strong { font-size: 11px; font-weight: 600; }
.memory-appbar small { color: var(--text-faint); font-size: 8px; }
.memory-model {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
}
.memory-model i { font-style: normal; color: var(--text-faint); font-size: 10px; }
.memory-shell { display: flex; min-height: 380px; }
.memory-side {
  display: none;
  width: 118px;
  flex: none;
  padding: 10px 8px;
  gap: 2px;
  background: #f9f9f9;
  color: #0d0d0d;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 10px;
}
.memory-chatgpt .memory-side { display: flex; flex-direction: column; }
.memory-side-new {
  margin-bottom: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #ffffff;
  font-weight: 500;
  color: #0d0d0d;
}
.memory-side-label {
  margin: 8px 4px 3px;
  font-size: 8px;
  font-weight: 600;
  color: #8f8f8f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.memory-side-chat {
  padding: 6px 8px;
  border-radius: 8px;
  color: #0d0d0d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.memory-side-chat.active { background: rgba(0, 0, 0, 0.06); color: #0d0d0d; font-weight: 500; }
.memory-side-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #5d5d5d;
  font-size: 9px;
}
.memory-side-user .memory-photo {
  width: 18px;
  height: 18px;
}
.memory-traffic { display: inline-flex; gap: 5px; flex: none; }
.memory-traffic i { width: 8px; height: 8px; border-radius: 50%; background: rgba(20, 18, 12, 0.14); }
.memory-traffic i:nth-child(1) { background: #ff5f57; }
.memory-traffic i:nth-child(2) { background: #febc2e; }
.memory-traffic i:nth-child(3) { background: #28c840; }
.app-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.app-icon svg { width: 14px; height: 14px; display: block; }
.chatgpt-icon { color: #0d0d0d; background: #f4f4f4; }
.code-icon { color: #7fdba0; background: #1a2030; }

.memory-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  background: rgba(20, 18, 12, 0.05);
  flex: none;
}
.memory-person .memory-photo {
  width: 22px;
  height: 22px;
}
.memory-person em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}

.memory-photo {
  display: block;
  object-fit: cover;
  border-radius: 50%;
  flex: none;
  background: #d8d2c6;
}

.memory-chat { display: flex; min-height: 380px; flex-direction: column; gap: 12px; padding: 17px; background: #fdfdfc; flex: 1; min-width: 0; }

.memory-row { display: flex; gap: 8px; align-items: flex-start; }
.memory-row.user { justify-content: flex-end; }
.memory-avatar {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
}
.memory-avatar.alex { background: #0d0d0d; }
.memory-avatar.gpt {
  background: transparent;
  color: #0d0d0d;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px;
}
.memory-avatar.gpt svg { width: 100%; height: 100%; display: block; }
.memory-avatar.sam { background: #3d6b5c; }
.memory-avatar.memory-photo {
  padding: 0;
  border: 0;
  background: #d8d2c6;
}

/* Sequential reveal: left chat first, then bridge, then right */
.memory-flow[data-memory-demo] .memory-step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.memory-flow[data-memory-demo] .memory-step.is-shown {
  opacity: 1;
  transform: none;
}
.memory-flow[data-memory-demo] .memory-bridge.memory-step {
  transform: none;
}
.memory-flow[data-memory-demo] .memory-bridge.memory-step:not(.is-shown) {
  opacity: 0.28;
}
.memory-flow[data-memory-demo] .memory-bridge.memory-step.is-shown i {
  animation: memory-bridge-pulse 1.1s ease 1;
}
@keyframes memory-bridge-pulse {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .memory-flow[data-memory-demo] .memory-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .memory-flow[data-memory-demo] .memory-bridge.memory-step.is-shown i {
    animation: none;
  }
}

.memory-user, .memory-agent {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.5;
}
.memory-chatgpt .memory-user {
  background: #f4f4f4;
  border-bottom-right-radius: 5px;
  color: #0d0d0d;
}
.memory-chatgpt .memory-agent {
  background: transparent;
  padding: 2px 0;
  color: #0d0d0d;
}

.memory-att {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 79, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 79, 0, 0.055);
}
.memory-att > span {
  align-self: start;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--accent);
  background: rgba(255, 79, 0, 0.1);
  font-family: var(--mono);
  font-size: 7px;
}
.memory-att p { color: var(--text-dim); font-size: 9px; line-height: 1.45; }
.memory-att strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 9px; }
.memory-att.recalled {
  border-color: rgba(127, 219, 160, 0.28);
  background: rgba(127, 219, 160, 0.08);
}
.memory-att.recalled > span { color: #3d8b63; background: rgba(127, 219, 160, 0.16); }

/* OpenCode side — dark terminal TUI */
.memory-opencode {
  background: #12141a;
  border-color: rgba(140, 180, 255, 0.14);
}
.memory-opencode .memory-appbar {
  background: #181b24;
  border-bottom-color: rgba(140, 180, 255, 0.12);
  color: #d7dde8;
}
.memory-opencode .memory-appbar small { color: #5d6678; }
.memory-opencode .memory-person { background: rgba(255, 255, 255, 0.06); }
.memory-opencode .memory-person em { color: #a8b0c0; }
.memory-opencode .code-chat {
  background: #0e1016;
  color: #d7dde8;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  gap: 8px;
}
.memory-tui-user { color: #d7dde8; }
.memory-tui-user .tui-name { color: #c3a6ff; font-weight: 600; margin-right: 4px; }
.memory-tui-user .tui-prompt { color: #7fdba0; margin-right: 4px; }
.memory-tui-tool {
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
  color: #8b95a8;
}
.memory-tui-tool .tui-glyph { color: #f0c674; }
.memory-tui-tool .tui-kind {
  color: #8bb4ff;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.memory-tui-tool .tui-name { color: #7fdba0; font-weight: 600; }
.memory-tui-tool .tui-arg { color: #8b95a8; }
.memory-tui-out { color: #8b95a8; }
.memory-tui-out .tui-elbow { color: #5d6678; margin-right: 4px; }
.tui-swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-radius: 2px;
  vertical-align: baseline;
}
.tui-swatch.indigo { background: #4f46e5; }
.tui-swatch.amber { background: #f59e0b; }
.memory-tui-say { display: flex; gap: 6px; color: #d7dde8; }
.memory-tui-say .tui-glyph { color: #8bb4ff; flex: none; }
.memory-opencode .memory-att.recalled {
  border-color: rgba(127, 219, 160, 0.28);
  background: rgba(127, 219, 160, 0.07);
}
.memory-opencode .memory-att.recalled > span { color: #7fdba0; background: rgba(127, 219, 160, 0.12); }
.memory-opencode .memory-att p { color: #8b95a8; }
.memory-opencode .memory-att strong { color: #d7dde8; }

.memory-bridge { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--text-faint); }
.memory-bridge::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(20, 18, 12, 0.16); }
.memory-bridge span { z-index: 1; padding: 3px 5px; background: #fff; font-size: 7px; text-transform: uppercase; letter-spacing: 0.05em; }
.memory-bridge i { z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--accent); font-style: normal; font-size: 11px; }
.memory-points { margin-top: 18px; justify-content: center; }

/* ── Centralized artifacts example ── */

.feature-artifacts {
  display: block;
  padding: 54px 0 48px;
}

.feature-artifacts-head { max-width: 48rem; margin-bottom: 22px; }
.feature-artifacts-head h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 550;
  letter-spacing: -0.02em;
}
.feature-artifacts-head > p:last-child {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.62;
}

.artifact-space { display: grid; gap: 14px; }

.artifact-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.artifact-panel .artifact-chat {
  min-height: 260px;
  gap: 10px;
  padding: 14px;
}

.artifact-panel .memory-user,
.artifact-panel .memory-agent {
  font-size: 10.5px;
}

.artifact-panel .memory-agent code {
  font-size: 0.95em;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(20, 18, 12, 0.06);
}

.artifact-preview {
  margin: 2px 0 4px;
  padding: 8px;
  border: 1px solid rgba(20, 18, 12, 0.08);
  border-radius: 8px;
  background: #f7f5f1;
}
.artifact-page {
  display: grid;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(20, 18, 12, 0.06);
  box-shadow: 0 8px 18px -14px rgba(30, 25, 15, 0.45);
}
.artifact-page-hero {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.artifact-page-bar {
  display: block;
  height: 5px;
  width: 88%;
  border-radius: 999px;
  background: rgba(20, 18, 12, 0.1);
}
.artifact-page-bar.short { width: 58%; }
.artifact-page-cta {
  display: inline-flex;
  margin-top: 4px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
}

.cursor-icon {
  color: #1b1f2a;
  background: #eef2ff;
}

.artifact-cursor {
  background: #151821;
  border-color: rgba(130, 170, 255, 0.16);
}
.artifact-cursor .memory-appbar {
  background: #1b2030;
  border-bottom-color: rgba(130, 170, 255, 0.12);
  color: #d7dde8;
}
.artifact-cursor .memory-appbar small { color: #6b7388; }
.artifact-cursor .memory-person { background: rgba(255, 255, 255, 0.06); }
.artifact-cursor .memory-person em { color: #a8b0c0; }
.artifact-cursor .code-chat {
  background: #0f121a;
  color: #d7dde8;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
}
.artifact-cursor .memory-tui-user .tui-name { color: #82aaff; }
.artifact-cursor .memory-tui-user .tui-prompt { color: #82aaff; }
.artifact-cursor .memory-tui-tool .tui-glyph { color: #82aaff; }
.artifact-cursor .memory-tui-tool .tui-kind {
  color: #8bb4ff;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.artifact-cursor .memory-tui-tool .tui-name { color: #c9d4ef; font-weight: 600; }
.artifact-cursor .memory-tui-out { color: #8b95a8; }
.artifact-cursor .memory-att {
  border-color: rgba(255, 79, 0, 0.28);
  background: rgba(255, 79, 0, 0.08);
}
.artifact-cursor .memory-att > span { color: #ff8a55; background: rgba(255, 79, 0, 0.14); }
.artifact-cursor .memory-att p { color: #8b95a8; }
.artifact-cursor .memory-att strong { color: #d7dde8; }
.artifact-cursor .memory-att.recalled {
  border-color: rgba(130, 170, 255, 0.28);
  background: rgba(130, 170, 255, 0.08);
}
.artifact-cursor .memory-att.recalled > span {
  color: #82aaff;
  background: rgba(130, 170, 255, 0.14);
}

.artifact-flow .memory-bridge {
  min-width: 82px;
  color: var(--text-faint);
}
.artifact-flow .memory-bridge::before {
  background: rgba(20, 18, 12, 0.1);
}
.artifact-flow .memory-bridge span {
  font-size: 6.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: var(--bg);
}
.artifact-flow .memory-bridge i {
  color: var(--text-faint);
  background: rgba(20, 18, 12, 0.06);
  border: 1px solid rgba(20, 18, 12, 0.1);
}

/* OpenCode — Solarized Light (artifacts panel only) */
.artifact-opencode {
  background: #fdf6e3;
  border-color: rgba(147, 161, 161, 0.35);
}
.artifact-opencode .memory-appbar {
  background: #eee8d5;
  border-bottom-color: rgba(147, 161, 161, 0.35);
  color: #073642;
}
.artifact-opencode .memory-appbar small { color: #657b83; }
.artifact-opencode .memory-person { background: rgba(7, 54, 66, 0.06); }
.artifact-opencode .memory-person em { color: #586e75; }
.solarized-icon {
  color: #268bd2;
  background: #eee8d5;
  border: 1px solid rgba(147, 161, 161, 0.4);
}
.artifact-opencode .code-chat {
  background: #fdf6e3;
  color: #073642;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
}
.artifact-opencode .memory-tui-user { color: #073642; }
.artifact-opencode .memory-tui-user .tui-name { color: #6c71c4; font-weight: 600; }
.artifact-opencode .memory-tui-user .tui-prompt { color: #859900; }
.artifact-opencode .memory-tui-tool { color: #657b83; }
.artifact-opencode .memory-tui-tool .tui-glyph { color: #b58900; }
.artifact-opencode .memory-tui-tool .tui-kind {
  color: #268bd2;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.artifact-opencode .memory-tui-tool .tui-name { color: #2aa198; font-weight: 600; }
.artifact-opencode .memory-tui-out { color: #657b83; }
.artifact-opencode .memory-tui-out .tui-elbow { color: #93a1a1; }
.artifact-opencode .memory-tui-say { color: #073642; }
.artifact-opencode .memory-tui-say .tui-glyph { color: #268bd2; }
.artifact-opencode .memory-att {
  border-color: rgba(203, 75, 22, 0.28);
  background: rgba(203, 75, 22, 0.06);
}
.artifact-opencode .memory-att > span {
  color: #cb4b16;
  background: rgba(203, 75, 22, 0.1);
}
.artifact-opencode .memory-att p { color: #657b83; }
.artifact-opencode .memory-att strong { color: #073642; }
.artifact-opencode .memory-att.recalled {
  border-color: rgba(42, 161, 152, 0.35);
  background: rgba(42, 161, 152, 0.08);
}
.artifact-opencode .memory-att.recalled > span {
  color: #2aa198;
  background: rgba(42, 161, 152, 0.14);
}

/* Sequential reveal across ChatGPT → Cursor → OpenCode */
.artifact-space[data-artifact-demo] .artifact-step {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.artifact-space[data-artifact-demo] .artifact-step.is-shown {
  opacity: 1;
  transform: none;
}
.artifact-space[data-artifact-demo] .memory-bridge.artifact-step {
  transform: none;
}
.artifact-space[data-artifact-demo] .memory-bridge.artifact-step:not(.is-shown) {
  opacity: 0.28;
}
.artifact-space[data-artifact-demo] .memory-bridge.artifact-step.is-shown i {
  animation: memory-bridge-pulse 1.1s ease 1;
}
@media (prefers-reduced-motion: reduce) {
  .artifact-space[data-artifact-demo] .artifact-step {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .artifact-space[data-artifact-demo] .memory-bridge.artifact-step.is-shown i {
    animation: none;
  }
}

/* ── Capabilities: benefit cards ── */

.capabilities {
  padding: 64px 0 24px;
  border-top: 1px solid var(--border-soft);
}

.capabilities h2 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 550;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  background: var(--bg-cream);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 26px 24px;
  overflow: hidden;
  transition: background 0.15s ease;
}

.card:hover { background: var(--bg-card); }

.card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  color: var(--text);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 19px;
  height: 19px;
}

.card h3 {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}

.card p {
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--text-dim);
}

/* ── Teamwork: one shared layer ── */

.team {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding: 68px 0 60px;
  border-top: 1px solid var(--border-soft);
  margin-top: 52px;
}

.team h2 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 550;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.team-lede {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.62;
  margin-bottom: 14px;
  max-width: 34rem;
}

.team-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}

.team-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-dim);
}

.team-facts li::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background: currentColor;
  color: var(--ok);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12.5l5 5L20 6.5"/></svg>') center / contain no-repeat;
}

/* Diagram: personas → Attaché bus → shared traits */

.team-diagram {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 28px 24px 24px;
  background:
    radial-gradient(ellipse 120% 90% at 50% -20%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(165deg, #ece5d8, #e3dbcb 55%, #ded4c1);
}

.team-personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.persona {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  padding: 14px 8px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(30, 25, 15, 0.05);
}

.persona .agent-logo {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  margin-bottom: 5px;
  opacity: 1;
}

.persona-role {
  font-family: var(--sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.persona-tool {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text);
}

/* connector line from each persona down to the bus */
.persona::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -27px;
  width: 1px;
  height: 26px;
  background: rgba(20, 18, 12, 0.16);
}

.team-bus {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(25, 24, 23, 0.5);
  margin-bottom: 26px;
}

.team-bus-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
}

.team-bus-mark svg {
  width: 15px;
  height: 15px;
  display: block;
}

.team-bus-label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* connector line from the bus down to the shared traits */
.team-bus::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -27px;
  width: 1px;
  height: 26px;
  background: rgba(20, 18, 12, 0.16);
}

.team-shared {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-shared span {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

/* ── Closing CTA — big centered heading, single dark pill ── */

.cta {
  margin-top: 52px;
  padding: 88px 36px 96px;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

.cta h2 {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 30px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: opacity 0.14s ease, background 0.14s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  color: #fff;
  background: var(--ink);
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  color: var(--text);
  background: var(--bg-pill);
  border: 1px solid transparent;
}

.btn-ghost:hover { background: #e3e1da; }

/* ── Footer — cream band with plain links ── */

.footer {
  background: var(--bg-cream);
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-dim);
}

.footer p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 28px 44px;
}

.footer a { color: var(--text); }
.footer a:hover { color: var(--accent); }

.footer code {
  font-size: 0.92em;
  color: var(--text-dim);
}

/* Stack the two-harness flow before the panels get too narrow */
@media (max-width: 960px) {
  .artifact-flow { grid-template-columns: 1fr; gap: 14px; }
  .artifact-flow .memory-bridge {
    grid-template-columns: 1fr;
    min-height: 48px;
  }
  .artifact-flow .memory-bridge::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
  }
  .artifact-flow .memory-bridge i { transform: rotate(90deg); }
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
  }

  .showcase-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .team {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ex-silos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .explainer-points {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }

  .feature:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .feature-copy { order: 1; }
  .feature:nth-child(even) .feature-preview { order: 2; }

  .feature-preview,
  .feature:nth-child(even) .feature-preview {
    justify-self: stretch;
    width: 100%;
  }

  .mission-mock { width: 100%; }
  .memory-flow { grid-template-columns: 1fr; gap: 14px; }
  .memory-bridge { grid-template-columns: 1fr; min-height: 48px; }
  .memory-bridge::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; }
  .memory-bridge i { transform: rotate(90deg); }
  .memory-chatgpt .memory-side { display: none; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 18px; }
  .topnav { gap: 12px; }
  .topnav .nav-link:not(.nav-cta) { display: none; }
  main { padding-left: 18px; padding-right: 18px; }
  .footer p { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .agent-tab { font-size: 12px; padding: 10px 10px; }
  .card-grid { grid-template-columns: 1fr; }
  .team-shared { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-silos { grid-template-columns: 1fr 1fr; }
  .ex-stage { padding: 18px 14px 16px; }
  .cta { padding: 60px 20px 68px; }
  .feature-preview { padding: 14px; }
  .lv-agents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lv-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lv-core { flex-direction: column; gap: 8px; text-align: center; }
  .mission-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-stats > div:nth-child(2) { border-right: 0; }
  .mission-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
  .mission-grid { grid-template-columns: 1fr; }
  .usage-row { grid-template-columns: 23px minmax(80px, 1fr) 54px 28px; }
  .memory-shell,
  .memory-chat { min-height: 320px; }
  .artifact-panel .artifact-chat { min-height: 300px; }
  .lv-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
