/* ============================================================
   agentregistry marketing site — light theme
   built on Solo.io design tokens
   ============================================================ */

:root {
  /* Light surface palette */
  --ar-bg:           #FBFBFE;   /* page background, almost-white off-purple */
  --ar-bg-elevated:  #FFFFFF;
  --ar-bg-muted:     #F4F4FA;
  --ar-bg-deep:      #101020;   /* the one dark surface (terminal & cta) */

  /* Type */
  --ar-text:         #101020;   /* logo ink */
  --ar-text-muted:   #5A5773;
  --ar-text-faint:   #9794A8;
  --ar-text-inverse: #FFFFFF;

  /* Borders */
  --ar-border:       #E7E7F0;
  --ar-border-strong:#D4D4E0;
  --ar-border-soft:  #EFEFF6;

  /* Brand purple — agentregistry signature */
  --ar-purple:       #8A3FFC;
  --ar-purple-hover: #7B2EF0;
  --ar-purple-soft:  #F3EBFF;
  --ar-purple-tint:  #EEE3FE;
  --ar-purple-deep:  #5B1FB8;

  /* Solo electric blue accents (used very sparingly) */
  --ar-blue:         #20B7F3;

  /* Semantic */
  --ar-green:        #16A34A;
}

/* ---------- Dark theme overrides ---------- */
:root[data-theme="dark"] {
  --ar-bg:           #0B0E18;
  --ar-bg-elevated:  #151927;
  --ar-bg-muted:     #1A1F30;
  --ar-bg-deep:      #060814;

  --ar-text:         #FFFFFF;
  --ar-text-muted:   #DDE1EE;
  --ar-text-faint:   #A2A8BE;
  --ar-text-inverse: #101020;

  --ar-border:       rgba(255,255,255,0.10);
  --ar-border-strong:rgba(255,255,255,0.22);
  --ar-border-soft:  rgba(255,255,255,0.06);

  --ar-purple-soft:  rgba(138, 63, 252, 0.16);
  --ar-purple-tint:  rgba(138, 63, 252, 0.24);
}
:root[data-theme="dark"] .nav-inner {
  background: rgba(20, 25, 40, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.35),
    0 6px 16px -4px rgba(0, 0, 0, 0.45),
    0 14px 32px -12px rgba(138, 63, 252, 0.30);
}
:root[data-theme="dark"] .nav-brand img,
:root[data-theme="dark"] .hero-lockup,
:root[data-theme="dark"] .footer-brand .nav-brand img,
:root[data-theme="dark"] .preview-appbar-brand img {
  filter: brightness(0) invert(1);
}
:root[data-theme="dark"] .flow-pill span svg[fill="#0F0F0F"] path,
:root[data-theme="dark"] .flow-pill span svg path[fill="#0F0F0F"] {
  fill: #FFFFFF;
}
:root[data-theme="dark"] .flow-pill span svg[stroke="#14111F"],
:root[data-theme="dark"] .flow-pill span > svg.flow-logo[stroke="#14111F"] {
  stroke: #FFFFFF;
}
:root[data-theme="dark"] .by-solo img { filter: brightness(0) invert(1); }

/* Terminal — dark mode */
:root[data-theme="dark"] .terminal {
  background: #0F1320;
  border-color: rgba(255,255,255,0.10);
  color: #E6E8F0;
  box-shadow:
    0 24px 56px -20px rgba(0,0,0,0.55),
    0 4px 10px -6px rgba(0,0,0,0.45);
}
:root[data-theme="dark"] .terminal-chrome {
  background: #0B0E18;
  border-bottom-color: rgba(255,255,255,0.08);
}
:root[data-theme="dark"] .terminal-dots span {
  background: #2A3044;
  border-color: rgba(255,255,255,0.04);
}
:root[data-theme="dark"] .terminal-title { color: #C8CCDB; }
:root[data-theme="dark"] .terminal-badges .badge {
  background: rgba(255,255,255,0.04);
  color: #C8CCDB;
  border-color: rgba(255,255,255,0.10);
}
:root[data-theme="dark"] .terminal-body {
  background: #0F1320;
  scrollbar-color: #2A3044 transparent;
}
:root[data-theme="dark"] .terminal-body::-webkit-scrollbar-thumb { background: #2A3044; }
:root[data-theme="dark"] .terminal-greeting { color: #E6E8F0; }
:root[data-theme="dark"] .terminal-option { color: #DDE1EE; }
:root[data-theme="dark"] .terminal-option:hover { background: rgba(255,255,255,0.05); }
:root[data-theme="dark"] .terminal-option.active {
  background: rgba(138,63,252,0.18);
  color: #C7B3FF;
}
:root[data-theme="dark"] .terminal-foot,
:root[data-theme="dark"] .terminal-foot kbd { color: #8289A3; }
:root[data-theme="dark"] .terminal-foot .sep { color: #3B4258; }
:root[data-theme="dark"] .terminal-back {
  color: #DDE1EE;
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
:root[data-theme="dark"] .terminal-back:hover {
  background: rgba(138,63,252,0.14);
  border-color: rgba(138,63,252,0.35);
}
/* Syntax roles — dark */
:root[data-theme="dark"] .t-prompt  { color: #E6E8F0; }
:root[data-theme="dark"] .t-dim     { color: #8289A3; }
:root[data-theme="dark"] .t-head    { color: #A2A8BE; }
:root[data-theme="dark"] .t-name    { color: #E6E8F0; }
:root[data-theme="dark"] .t-comment { color: #6B7289; }
:root[data-theme="dark"] .t-blue    { color: #20B7F3; }
:root[data-theme="dark"] .cursor    { background: #E6E8F0; }

/* Theme toggle button in nav */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--ar-border);
  background: transparent;
  color: var(--ar-text-muted);
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.theme-toggle:hover {
  color: var(--ar-text);
  background: var(--ar-bg-muted);
  border-color: var(--ar-border-strong);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ar-bg);
  color: var(--ar-text);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ar-purple-tint); color: var(--ar-purple-deep); }

/* ---------- Typography helpers ---------- */
.t-figtree { font-family: var(--font-primary); }
.t-mono    { font-family: var(--font-mono); }
.t-muted   { color: var(--ar-text-muted); }
.t-faint   { color: var(--ar-text-faint); }
.t-purple  { color: var(--ar-purple); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ar-purple);
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ar-purple);
}

/* ---------- Layout ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav (floating pill) ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 16px;
  pointer-events: none;             /* let clicks fall through container */
}
.nav-inner {
  pointer-events: auto;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(231, 231, 240, 0.85);
  border-radius: 999px;
  box-shadow:
    0 1px 1px rgba(20, 17, 31, 0.03),
    0 6px 16px -4px rgba(20, 17, 31, 0.06),
    0 14px 32px -12px rgba(91, 31, 184, 0.08);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img { height: 22px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--ar-text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ar-text); background: var(--ar-bg-muted); }
.nav-link-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ar-bg-muted);
  border: 1px solid var(--ar-border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ar-text-faint);
  margin-right: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, border-color .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--ar-purple);
  color: #fff;
  border-color: var(--ar-purple);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { background: var(--ar-purple-hover); border-color: var(--ar-purple-hover); }
.btn-secondary {
  background: var(--ar-bg-elevated);
  color: var(--ar-text);
  border-color: var(--ar-border);
}
.btn-secondary:hover { border-color: var(--ar-border-strong); background: var(--ar-bg-muted); }
.btn-dark {
  background: #14111F;
  color: #fff;
  border-color: #14111F;
}
.btn-dark:hover { background: #000; border-color: #000; }
/* On the dark page background a black button needs a visible edge to stand out */
:root[data-theme="dark"] .btn-dark { border-color: var(--ar-border-strong); }
:root[data-theme="dark"] .btn-dark:hover { background: #000; border-color: rgba(255,255,255,0.45); }
.btn-ghost {
  background: transparent;
  color: var(--ar-text);
  border-color: transparent;
  padding: 10px 12px;
}
.btn-ghost:hover { color: var(--ar-purple); }
.btn svg { width: 14px; height: 14px; }
.btn-secondary svg[viewBox="0 0 24 24"]:has(polygon[fill="#FFFFFF"]) {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(138,63,252,0.10), transparent 60%),
    radial-gradient(40% 35% at 10% 100%, rgba(32,183,243,0.06), transparent 65%);
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(20,17,31,0.10) 1.4px, transparent 1.6px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.hero-lockup {
  height: clamp(48px, 7vw, 92px);
  width: auto;
  margin: 0 auto 36px;
  display: block;
}
.hero-tagline {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 3px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
  color: var(--ar-text-muted);
  text-transform: lowercase;
}
.hero-tagline .accent {
  color: var(--ar-purple);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}
/* hero h1 kept for compatibility; main hero title is now .hero-tagline */
.hero h1 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ar-text);
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--ar-purple) 0%, var(--ar-purple-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-family: var(--font-secondary);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ar-text-muted);
  margin: 22px auto 0;
  max-width: 560px;
  text-wrap: balance;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ar-text-faint);
  letter-spacing: 0.04em;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ar-green);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.16);
}

/* ---------- Terminal (lighter — pure white) ---------- */
.terminal-stage {
  max-width: 902px;
  margin: 48px auto 0;
  position: relative;
  z-index: 1;
  text-align: left;
}
.terminal-stage-hint { display: none; }

.terminal {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E7E7F0;
  overflow: hidden;
  box-shadow:
    0 24px 56px -20px rgba(20, 17, 31, 0.10),
    0 4px 10px -6px rgba(20, 17, 31, 0.06);
  font-family: var(--font-mono);
  color: #14111F;
  outline: none;
  text-align: left;
}
.terminal:focus-visible {
  border-color: var(--ar-purple);
  box-shadow:
    0 24px 56px -20px rgba(20, 17, 31, 0.10),
    0 0 0 3px rgba(138,63,252,0.18);
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #FAFAFC;
  border-bottom: 1px solid #EFEFF6;
}
.terminal-dots { display: flex; gap: 7px; }
.terminal-dots span {
  width: 11px; height: 11px;
  border-radius: 999px;
  background: #E2E2EC;
  border: 1px solid rgba(0,0,0,0.04);
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #14111F;
  letter-spacing: 0;
  margin-left: 4px;
  flex: 1;
}
.terminal-badges { display: flex; gap: 4px; }
.terminal-badges .badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fff;
  color: #14111F;
  border: 1px solid #E7E7F0;
  text-transform: none;
}
.terminal-badges .badge.muted { color: #9794A8; }

.terminal-body {
  padding: 28px 30px 26px;
  font-size: 14px;
  line-height: 1.75;
  height: 408px;
  overflow-y: auto;
  position: relative;
  background: #FFFFFF;
  scrollbar-width: thin;
  scrollbar-color: #D4D4E0 transparent;
}
.terminal-body::-webkit-scrollbar { width: 8px; }
.terminal-body::-webkit-scrollbar-thumb { background: #D4D4E0; border-radius: 4px; }

.terminal-greeting {
  color: #14111F;
  margin-bottom: 6px;
}
.terminal-greeting + .terminal-greeting { margin-bottom: 22px; }

.terminal-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0 22px;
}
.terminal-option {
  display: grid;
  grid-template-columns: 14px auto 1fr;
  align-items: baseline;
  gap: 0;
  padding: 6px 10px 6px 6px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #14111F;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: left;
}
.terminal-option:hover { background: #F4F4FA; }
.terminal-option.active {
  background: var(--ar-purple-soft);
  color: var(--ar-purple-deep);
}
.terminal-option .cursor-mark {
  color: var(--ar-purple);
  font-weight: 400;
  opacity: 0;
  margin-right: 0;
}
.terminal-option.active .cursor-mark { opacity: 1; }
.terminal-option .opt-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: inherit;
  margin-right: 6px;
}
.terminal-option .opt-desc { display: none; }

.terminal-foot {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #9794A8;
  letter-spacing: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.terminal-foot .sep { color: #D4D4E0; }
.terminal-foot kbd {
  font-family: var(--font-mono);
  font-size: 13px;
  background: transparent;
  color: #9794A8;
  border: none;
  padding: 0;
  margin: 0;
}

.terminal-back {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #14111F;
  background: #F4F4FA;
  border: 1px solid #E7E7F0;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.terminal-back:hover { background: #EEEAFD; border-color: var(--ar-purple-tint); }

/* Light-mode syntax roles */
.t-prompt  { color: #14111F; }
.t-prompt::before { content: "❯ "; color: var(--ar-purple); }
.t-dim     { color: #9794A8; }
.t-head    { color: #5A5773; font-weight: 500; }
.t-name    { color: #14111F; }
.t-ver     { color: var(--ar-purple); }
.t-ok      { color: #16A34A; }
.t-warn    { color: #B45309; }
.t-blue    { color: #1E66F5; }
.t-comment { color: #9794A8; }

.cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: #14111F;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Section primitives ---------- */
section { position: relative; }
.section {
  padding: 96px 0;
}
.section-pad-sm { padding: 64px 0; }

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 12px 0 0;
  color: var(--ar-text);
  text-wrap: balance;
}
.section-head p {
  font-size: 18px;
  color: var(--ar-text-muted);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.55;
}

/* ---------- Logo strip ---------- */
.logo-strip {
  border-top: 1px solid var(--ar-border-soft);
  border-bottom: 1px solid var(--ar-border-soft);
  padding: 28px 0;
  background: linear-gradient(to bottom, var(--ar-bg-muted), var(--ar-bg));
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ar-text-faint);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.logo-strip-label { white-space: nowrap; }
.logo-strip-marks {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--ar-text-muted);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 15px;
}
.logo-strip-marks span { opacity: 0.8; }

/* ---------- Orbit visual (mark with 4 building blocks around it) ---------- */
.ar-orbit {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 56px;
  aspect-ratio: 14 / 10;
}
.ar-orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ar-orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18%;
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(138, 63, 252, 0.25));
}
.ar-orbit-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ar-text);
  white-space: nowrap;
}
.ar-orbit-dot {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ar-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ar-purple);
  box-shadow: 0 8px 18px -10px rgba(20, 17, 31, 0.18);
  flex-shrink: 0;
}
.ar-orbit-node.top    { left: 50%; top: 0;    transform: translate(-50%, 0); flex-direction: column; gap: 8px; }
.ar-orbit-node.bottom { left: 50%; bottom: 0; transform: translate(-50%, 0); flex-direction: column-reverse; gap: 8px; }
.ar-orbit-node.left   { left: 0;   top: 50%;  transform: translate(0, -50%); flex-direction: row-reverse; }
.ar-orbit-node.right  { right: 0;  top: 50%;  transform: translate(0, -50%); }

@media (max-width: 640px) {
  .ar-orbit { max-width: 100%; }
  .ar-orbit-node { font-size: 12px; }
  .ar-orbit-dot { width: 44px; height: 44px; }
}

/* ---------- Building blocks side-by-side layout ---------- */
.bb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.bb-split .ar-orbit {
  margin: 0;
  max-width: none;
}
.bb-split .bb-panel {
  margin: 0;
  text-align: left;
  max-width: none;
}
.bb-split .bb-panel-desc {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
@media (max-width: 880px) {
  .bb-split { grid-template-columns: 1fr; gap: 32px; }
  .bb-split .bb-panel { text-align: center; }
  .bb-split .bb-panel-desc { margin-left: auto; margin-right: auto; }
}

/* ---------- Building blocks (panel that swaps based on orbit node) ---------- */
.bb-panel {
  max-width: 560px;
  margin: 8px auto 0;
  text-align: center;
  padding: 28px 32px;
  background: var(--ar-bg-elevated);
  border: 1px solid var(--ar-border);
  border-radius: 14px;
  min-height: 200px;
}
.bb-panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ar-text-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.bb-panel-title {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ar-text);
  margin: 0 0 10px;
}
.bb-panel-desc {
  font-size: 15px;
  color: var(--ar-text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.bb-panel-desc code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--ar-bg-muted);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--ar-border-soft);
}
.bb-panel-link {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--ar-purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap .15s;
}
.bb-panel-link:hover { gap: 9px; }

/* Orbit nodes — clickable buttons */
.ar-orbit-node {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform .15s;
}
.ar-orbit-node:hover { transform: scale(1.03); }
.ar-orbit-node.left:hover, .ar-orbit-node.right:hover { transform: translate(0, -50%) scale(1.03); }
.ar-orbit-node.top:hover { transform: translate(-50%, 0) scale(1.03); }
.ar-orbit-node.bottom:hover { transform: translate(-50%, 0) scale(1.03); }
.ar-orbit-node:focus { outline: none; }
.ar-orbit-node.active .ar-orbit-dot {
  background: var(--ar-purple);
  color: #fff;
  border-color: var(--ar-purple);
  box-shadow: 0 10px 24px -8px rgba(138, 63, 252, 0.45);
}
.ar-orbit-node.active span {
  color: var(--ar-purple);
}

/* ---------- Feature grid (kept in case of fallback) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--ar-bg-elevated);
  border: 1px solid var(--ar-border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color .15s, transform .15s;
  position: relative;
}
.feature-card:hover { border-color: var(--ar-border-strong); }
.feature-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ar-purple-soft);
  color: var(--ar-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ar-text);
}
.feature-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ar-text-muted);
  margin: 0;
}

/* ============================================================
   Catalog preview — matches the real localhost:12121 UI
   ============================================================ */
.product-preview {
  background: var(--ar-bg-elevated);
  border: 1px solid var(--ar-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(20,17,31,0.04),
    0 24px 48px -16px rgba(91,31,184,0.10);
}
.preview-window-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--ar-bg-muted);
  border-bottom: 1px solid var(--ar-border);
}
.preview-window-chrome .dots { display: flex; gap: 6px; }
.preview-window-chrome .dots span { width: 10px; height: 10px; border-radius: 999px; background: #D4D4E0; }
.preview-window-chrome .dots span:nth-child(1) { background: #FF6058; }
.preview-window-chrome .dots span:nth-child(2) { background: #FFBE2E; }
.preview-window-chrome .dots span:nth-child(3) { background: #28C840; }
.preview-window-chrome .url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ar-text-faint);
  letter-spacing: 0.03em;
}

/* ---- Top app bar (logo · Catalog/Deployed · theme) ---- */
.preview-appbar {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--ar-border-soft);
  position: relative;
}
.preview-appbar-brand img { height: 24px; width: auto; display: block; }
.preview-appbar-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
}
.preview-appbar-tab {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 15px;
  color: var(--ar-text-muted);
  cursor: pointer;
  padding: 14px 4px;
  margin: -14px 0;
  position: relative;
  background: transparent;
  border: none;
}
.preview-appbar-tab:hover { color: var(--ar-text); }
.preview-appbar-tab.active { color: var(--ar-text); }
.preview-appbar-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ar-purple);
  border-radius: 2px;
}
.preview-appbar-right {
  margin-left: auto;
  color: var(--ar-text-muted);
}

/* ---- Scroll container (keeps the preview a fixed height) ---- */
.preview-scroll {
  height: 620px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ar-border-strong) transparent;
}
.preview-scroll::-webkit-scrollbar { width: 8px; }
.preview-scroll::-webkit-scrollbar-thumb { background: var(--ar-border-strong); border-radius: 4px; }

/* ---- Catalog: type tabs ---- */
.cat-tabstrip {
  display: flex;
  align-items: flex-end;
  padding: 20px 24px 0;
  border-bottom: 1px solid var(--ar-border-soft);
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: -1px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--ar-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .12s;
}
.cat-tab:hover { color: var(--ar-text); }
.cat-tab.active {
  color: var(--ar-text);
  border-bottom-color: var(--ar-purple);
}
.cat-tab .count {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ar-bg-muted);
  color: var(--ar-text-faint);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--ar-border-soft);
  letter-spacing: 0;
}
.cat-tab.active .count {
  background: var(--ar-purple-soft);
  color: var(--ar-purple);
  border-color: var(--ar-purple-tint);
}
.cat-tabstrip-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--ar-border);
  background: var(--ar-bg-elevated);
  color: var(--ar-text);
  transition: border-color .12s, background .12s;
}
.cat-btn:hover { border-color: var(--ar-border-strong); background: var(--ar-bg-muted); }
.cat-btn-primary {
  background: var(--ar-purple);
  color: #fff;
  border-color: var(--ar-purple);
}
.cat-btn-primary:hover { background: var(--ar-purple-hover); border-color: var(--ar-purple-hover); }
.cat-btn-icon {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}

/* ---- Filter row ---- */
.cat-filterbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  flex-wrap: wrap;
}
.cat-search {
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--ar-border);
  border-radius: 8px;
  background: var(--ar-bg-elevated);
  color: var(--ar-text-faint);
}
.cat-search svg { flex-shrink: 0; }
.cat-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 13.5px;
  color: var(--ar-text);
}
.cat-search input::placeholder { color: var(--ar-text-faint); }
.cat-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--ar-text-faint);
}
.cat-select {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--ar-text);
  border: 1px solid var(--ar-border);
  border-radius: 8px;
  padding: 8px 30px 8px 12px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5773' stroke-width='2.2'><polyline points='6 9 12 15 18 9'/></svg>")
    no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-color: var(--ar-bg-elevated);
}
.cat-checks {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--ar-border);
}
.cat-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--ar-text);
  cursor: pointer;
  user-select: none;
}
.cat-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--ar-border-strong);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background: var(--ar-bg-elevated);
}
.cat-check input:checked {
  background: var(--ar-purple);
  border-color: var(--ar-purple);
}
.cat-check input:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---- Rows ---- */
.cat-list { padding: 0 24px 16px; }
.cat-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--ar-border-soft);
  position: relative;
  transition: background .12s;
}
.cat-row:hover { background: var(--ar-bg-muted); margin: 0 -16px; padding: 18px 16px; border-radius: 10px; border-bottom-color: transparent; }
.cat-row:hover .cat-deploy { display: inline-flex; }
.cat-row:last-child { border-bottom: none; }
.cat-row .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ar-purple);
  padding-top: 3px;
}
.cat-row .icon {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ar-purple);
  margin-top: 1px;
}
.cat-row .name {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--ar-text);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-row .tag {
  font-family: var(--font-primary);
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ar-bg-muted);
  border: 1px solid var(--ar-border);
  color: var(--ar-text-muted);
  font-weight: 400;
}
.cat-row .desc {
  font-family: var(--font-secondary);
  font-size: 14px;
  color: var(--ar-text-muted);
  margin-top: 6px;
  line-height: 1.4;
}
.cat-row .desc .star { color: #E8AC18; margin-right: 2px; }
.cat-row .desc .sep { color: var(--ar-text-faint); margin: 0 6px; }
.cat-row .meta {
  margin-top: 8px;
  font-family: var(--font-primary);
  font-size: 12.5px;
  color: var(--ar-text-faint);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.cat-row .meta .pkg-icon, .cat-row .meta .repo-icon {
  display: inline-flex; align-items: center; gap: 4px;
}
.cat-deploy {
  align-self: center;
  background: var(--ar-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
}
.cat-deploy.deployed {
  background: transparent;
  color: var(--ar-green);
  border: 1px solid #BBE4C5;
  display: inline-flex !important;
}
.cat-deploy .spin {
  width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cat-empty {
  padding: 48px 0;
  text-align: center;
  font-family: var(--font-primary);
  color: var(--ar-text-faint);
  font-size: 14px;
}

/* ---- Deployed view ---- */
.dep-head { padding: 24px 24px 8px; }
.dep-head h3 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.dep-head .sub {
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--ar-text-muted);
}
.dep-filters {
  display: flex;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--ar-border-soft);
  border-bottom: 1px solid var(--ar-border-soft);
  align-items: center;
  flex-wrap: wrap;
}
.dep-filters .cat-search { max-width: 320px; }
.dep-filters .cat-select { margin-left: 0; }
.dep-filters .right { margin-left: auto; display: flex; gap: 10px; }
.dep-section-head {
  padding: 24px 24px 12px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ar-text-faint);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dep-section-head .count {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ar-bg-muted);
  color: var(--ar-text-faint);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0;
}
.dep-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--ar-border-soft);
  align-items: start;
}
.dep-row .icon {
  color: var(--ar-purple);
  display: flex;
  margin-top: 2px;
}
.dep-row .name {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 18px;
  color: var(--ar-text);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dep-row .name::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--ar-green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.16);
}
.dep-row .meta {
  margin-top: 6px;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--ar-text-faint);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.dep-row .meta .cal { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Split section: orgs vs devs ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.split-card {
  background: var(--ar-bg-elevated);
  border: 1px solid var(--ar-border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.split-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ar-text-faint);
  margin-bottom: 14px;
}
.split-card h3 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ar-text);
}
.split-card p {
  font-size: 15px;
  color: var(--ar-text-muted);
  line-height: 1.55;
  margin: 0 0 22px;
}
.split-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.split-card ul li {
  font-family: var(--font-secondary);
  font-size: 14px;
  color: var(--ar-text);
  padding: 9px 0;
  border-top: 1px solid var(--ar-border-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.split-card ul li:first-child { border-top: none; }
.split-card ul li .tick {
  color: var(--ar-purple);
  flex-shrink: 0;
  margin-top: 2px;
}
.split-card .link-arrow {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--ar-purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.split-card .link-arrow:hover { gap: 9px; }

/* ---------- Mini pipeline (in split cards) ---------- */
.mini-flow {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin: 12px 0 28px;
  padding: 22px 14px 14px;
  background: linear-gradient(180deg, var(--ar-bg-elevated) 0%, var(--ar-purple-soft) 240%);
  border: 1px solid var(--ar-border-soft);
  border-radius: 12px;
}
.mini-flow::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(to right,
    var(--ar-purple) 0%,
    var(--ar-purple) 100%);
  opacity: 0.18;
  z-index: 0;
}
.mf-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.mf-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ar-bg-elevated);
  border: 1.5px solid var(--ar-purple-tint);
  color: var(--ar-purple);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -6px rgba(138, 63, 252, 0.18);
  transition: transform .2s, background .2s;
}
.mf-step:hover .mf-num,
.mf-step:first-child .mf-num {
  background: var(--ar-purple);
  color: #fff;
  border-color: var(--ar-purple);
  transform: translateY(-1px);
}
.mf-label {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 12px;
  color: var(--ar-text);
  letter-spacing: -0.005em;
}
.split-card ul { margin-bottom: 18px; }
.quickstart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.quickstart-steps { display: flex; flex-direction: column; gap: 26px; }
.qs-step { display: flex; gap: 16px; }
.qs-step-num {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ar-purple-soft);
  color: var(--ar-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.qs-step h4 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 17px;
  margin: 3px 0 6px;
  letter-spacing: -0.005em;
  color: var(--ar-text);
}
.qs-step p {
  font-size: 14px;
  color: var(--ar-text-muted);
  margin: 0;
  line-height: 1.55;
}
.code-block {
  background: var(--ar-bg-deep);
  color: #E9E6F4;
  border-radius: 12px;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid #1F1A30;
  position: relative;
}
.code-block .comment { color: #6E6A88; }
.code-block .cmd { color: #E9E6F4; }
.code-block .arg { color: #8A3FFC; }
.code-block .copy {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #9794A8;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}
.code-block .copy:hover { color: #fff; border-color: rgba(255,255,255,0.18); }

/* ---------- Architecture / gateway section ---------- */
.gateway-box {
  background: var(--ar-bg-elevated);
  border: 1px solid var(--ar-border);
  border-radius: 18px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.gateway-box::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(138,63,252,0.08), transparent 70%);
  pointer-events: none;
}
.gateway-box h2 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  color: var(--ar-text);
}
.gateway-box p {
  color: var(--ar-text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* ---------- Vertical flow diagram (clients → gateway → registry → infra) ---------- */
.flow {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.flow-row {
  background: var(--ar-bg-elevated);
  border: 1px solid var(--ar-border);
  border-radius: 14px;
  padding: 22px 28px;
}
.flow-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  color: var(--ar-text);
}
.flow-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flow-logo {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.flow-pill .flow-muted { color: var(--ar-text-faint); font-weight: 400; }
.flow-infra {
  color: var(--ar-text);
}
.flow-infra span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flow-gateway {
  text-align: center;
  padding: 24px 28px 22px;
  position: relative;
}
.flow-gateway-logo {
  height: 24px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
  filter: brightness(0) saturate(100%) invert(28%) sepia(76%) saturate(3960%) hue-rotate(259deg) brightness(95%) contrast(101%);
  /* turns the white lockup into brand purple */
}
.flow-gateway-title {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ar-purple);
  margin-bottom: 6px;
}
.flow-gateway-sub {
  font-family: var(--font-primary);
  font-size: 13.5px;
  color: var(--ar-text-muted);
}

.flow-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  margin: 6px 0;
  color: var(--ar-border-strong);
}
.flow-arrow svg { width: 14px; height: 22px; }

.flow-pair {
  display: grid;
  grid-template-columns: 1fr 32px 1.4fr;
  gap: 16px;
  align-items: stretch;
}
.flow-card {
  background: var(--ar-bg-elevated);
  border: 1px solid var(--ar-border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow-registry { text-align: center; }
.flow-card-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 10px;
}
.flow-card-head img { height: 22px; width: auto; }
.flow-card-head span {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ar-text);
}
.flow-card-sub {
  font-family: var(--font-primary);
  font-size: 12.5px;
  color: var(--ar-text-muted);
  line-height: 1.5;
}
.flow-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ar-border-strong);
}
.flow-link svg { width: 32px; height: 16px; }

.flow-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px;
}
.flow-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flow-block-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ar-bg-muted);
  border: 1px solid var(--ar-border-soft);
  color: var(--ar-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.flow-block span {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 13px;
  color: var(--ar-text);
}

@media (max-width: 720px) {
  .flow-pair { grid-template-columns: 1fr; }
  .flow-link { transform: rotate(90deg); }
  .flow-pill { gap: 16px 20px; font-size: 13px; }
}

/* ---------- Gateway feature list ---------- */
.gw-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 28px;
  display: grid;
  gap: 18px;
}
.gw-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}
.gw-bullet {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--ar-purple-soft);
  color: var(--ar-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}
.gw-list h4 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ar-text);
  margin: 0 0 3px;
}
.gw-list p {
  font-family: var(--font-secondary);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ar-text-muted);
  margin: 0;
}

/* Architecture diagram */
.arch-diagram {
  font-family: var(--font-mono);
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.arch-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.arch-node {
  background: var(--ar-bg-muted);
  border: 1px solid var(--ar-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ar-text);
  letter-spacing: 0.02em;
  text-align: center;
  flex: 1;
}
.arch-node.client {
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.arch-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.arch-node.gateway {
  background: var(--ar-purple);
  color: #fff;
  border-color: var(--ar-purple);
  font-weight: 500;
  font-size: 13px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch-gateway-logo {
  height: 22px;
  width: auto;
  display: block;
}

/* Stacked client cards (CLI/IDE + AI agents) */
.arch-clients {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.arch-client-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--ar-border);
  border-radius: 12px;
  padding: 12px 14px;
}
.arch-client-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ar-bg-muted);
  color: var(--ar-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arch-client-body h5 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  margin: 0 0 2px;
  color: var(--ar-text);
}
.arch-client-body p {
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--ar-text-faint);
  margin: 0;
  line-height: 1.3;
}
.arch-node.server { background: var(--ar-purple-soft); color: var(--ar-purple); border-color: var(--ar-purple-tint); }
.arch-connector {
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.arch-connector svg { color: var(--ar-border-strong); }
.arch-label {
  text-align: center;
  font-size: 10px;
  color: var(--ar-text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ar-border);
}
.faq-item {
  border-bottom: 1px solid var(--ar-border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 17px;
  color: var(--ar-text);
  letter-spacing: -0.005em;
  cursor: pointer;
}
.faq-q .chev {
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--ar-bg-muted);
  color: var(--ar-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform .2s, background .15s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .chev { transform: rotate(45deg); background: var(--ar-purple-soft); color: var(--ar-purple); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  font-size: 15px;
  color: var(--ar-text);
  line-height: 1.6;
}
.faq-a p { color: var(--ar-text); }
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 0 22px;
}
.faq-a code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--ar-bg-muted);
  border: 1px solid var(--ar-border);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ar-bg-deep);
  color: #fff;
  border-radius: 20px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 90% 50%, rgba(138,63,252,0.35), transparent 60%),
    radial-gradient(40% 40% at 0% 100%, rgba(32,183,243,0.16), transparent 60%);
  pointer-events: none;
}
.cta-banner-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.cta-banner p {
  font-size: 16px;
  line-height: 1.55;
  color: #C5C2DC;
  margin: 0 0 28px;
  max-width: 460px;
}
.cta-banner .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-banner .btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.cta-snippet {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #C5C2DC;
}
.cta-snippet .prompt { color: #16A34A; }
.cta-snippet .ar { color: #B391F5; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--ar-border);
  padding: 56px 0 36px;
  background: var(--ar-bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { max-width: 280px; }
.footer-brand p {
  font-size: 13px;
  color: var(--ar-text-muted);
  margin: 14px 0 22px;
  line-height: 1.6;
}
.footer-brand .socials { display: flex; gap: 10px; }
.footer-brand .socials a {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ar-bg-muted);
  border: 1px solid var(--ar-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ar-text-muted);
}
.footer-brand .socials a:hover { color: var(--ar-purple); border-color: var(--ar-purple-tint); background: var(--ar-purple-soft); }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ar-text-faint);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  color: var(--ar-text-muted);
  padding: 6px 0;
}
.footer-col a:hover { color: var(--ar-text); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ar-border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ar-text-faint);
}
.footer-bottom .by-solo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom .by-solo img { height: 18px; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .quickstart, .gateway-box { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cta-banner-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .preview-tabs { display: none; }
  .gateway-box { padding: 36px 28px; }
  .cta-banner { padding: 44px 28px; }
  .terminal-body { min-height: 380px; }
}

/* ---------- Mobile nav + preview appbar ---------- */
@media (max-width: 720px) {
  /* Nav: trim to the essentials so the pill stays one tidy row */
  .nav { padding: 0 12px; }
  .nav-inner {
    padding: 8px 14px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-brand { margin-right: auto; }
  .nav-brand img { height: 20px; }
  .nav-links {
    margin-left: 0;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-link { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
  .nav-links .btn,
  .nav-links a.nav-link[href*="github.com"] { display: none; }
  .nav-link-kbd { display: none; }
  .theme-toggle { margin-left: 4px; }

  /* Preview appbar: keep only the agentregistry logo so it doesn't overlap the tabs */
  .preview-appbar { padding: 12px 16px; }
  .preview-appbar-tabs { display: none; }
  .preview-appbar-right { display: none; }
}
