/*
  Landing bancaria: paleta institucional, DM Sans (cargada desde index.html), acento azul.
*/

html[data-theme="light"] {
  --rs-body-bg: #f4f6f9;
  --rs-header-bg: #f4f6f9;
  --rs-header-color: #0f172a;
  --rs-text: #1e293b;
  --rs-heading: #0f172a;
  --rs-muted: #64748b;
  --rs-muted-2: #475569;
  --rs-border: #0f172a;
  --rs-border-soft: #e2e8f0;
  --rs-border-ui: #cbd5e1;
  --rs-surface: #fff;
  --rs-surface-2: #f1f5f9;
  --rs-accent: #0c4a6e;
  --rs-accent-hover: #082f49;
  --rs-accent-soft: rgba(12, 74, 110, 0.1);
  --rs-pill-shadow: 2px 3px 0 0 rgba(15, 23, 42, 0.12);
  --rs-pill-shadow-sm: 1px 2px 0 0 rgba(15, 23, 42, 0.1);
  --rs-pill-shadow-focus: 0 0 0 2px #fff, 0 0 0 4px var(--rs-accent);
  --rs-pink: #0ea5e9;
  --rs-terminal-bar: #e8eef4;
  --rs-terminal-body: #fafcff;
  --rs-code: #0f172a;
}

html[data-theme="dark"] {
  --rs-body-bg: #0f172a;
  --rs-header-bg: #0f172a;
  --rs-header-color: #f1f5f9;
  --rs-text: #e2e8f0;
  --rs-heading: #f8fafc;
  --rs-muted: #94a3b8;
  --rs-muted-2: #cbd5e1;
  --rs-border: #334155;
  --rs-border-soft: #1e293b;
  --rs-border-ui: #334155;
  --rs-surface: #1e293b;
  --rs-surface-2: #172033;
  --rs-accent: #38bdf8;
  --rs-accent-hover: #7dd3fc;
  --rs-accent-soft: rgba(56, 189, 248, 0.12);
  --rs-pill-shadow: 2px 3px 0 0 rgba(0, 0, 0, 0.35);
  --rs-pill-shadow-sm: 1px 2px 0 0 rgba(0, 0, 0, 0.3);
  --rs-pill-shadow-focus: 0 0 0 2px #0f172a, 0 0 0 4px var(--rs-accent);
  --rs-pink: #38bdf8;
  --rs-terminal-bar: #1e293b;
  --rs-terminal-body: #0b1120;
  --rs-code: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--rs-text);
  background-color: var(--rs-body-bg);
}

/* Layout: container rhythm (generous horizontal inset so header/title never hugs the viewport) */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  .container {
    padding-left: max(48px, env(safe-area-inset-left, 0px));
    padding-right: max(48px, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 1200px) {
  .container {
    padding-left: max(96px, env(safe-area-inset-left, 0px));
    padding-right: max(96px, env(safe-area-inset-right, 0px));
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1046;
  background-color: var(--rs-header-bg);
  color: var(--rs-header-color);
  border-bottom: 1px solid var(--rs-border-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 24px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: min(100%, 24rem);
}

.brand__title {
  color: var(--rs-heading);
}

.brand__tagline {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--rs-muted);
  letter-spacing: -0.01em;
}

.brand__x {
  font-weight: 500;
  color: var(--rs-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-audience {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  padding: 4px;
  border: 1px solid var(--rs-border-ui);
  border-radius: 999px;
  background: var(--rs-surface);
  font-size: 0.8125rem;
  font-weight: 700;
}

.nav-audience__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--rs-muted);
  text-decoration: none;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.nav-audience__link:hover {
  color: var(--rs-heading);
  background: var(--rs-surface-2);
  border-color: var(--rs-border-ui);
}

.nav-audience__link[aria-current="page"] {
  color: #fff;
  background: var(--rs-accent);
  border-color: var(--rs-accent);
  box-shadow: var(--rs-pill-shadow-sm);
}

html[data-theme="dark"] .nav-audience {
  background: var(--rs-surface-2);
  border-color: var(--rs-border);
}

html[data-theme="dark"] .nav-audience__link[aria-current="page"] {
  color: #0f172a;
  background: #f0f9ff;
  border-color: #f0f9ff;
}

.nav-audience__sep {
  color: var(--rs-muted);
  font-weight: 600;
  user-select: none;
  opacity: 0.75;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--rs-surface);
  border: 1px solid var(--rs-border-ui);
}

html[data-theme="dark"] .theme-toggle {
  background: var(--rs-surface-2);
  border-color: var(--rs-border);
}

.theme-toggle__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--rs-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.theme-toggle__btn:hover {
  color: var(--rs-heading);
}

.theme-toggle__btn.is-active {
  background: var(--rs-body-bg);
  color: var(--rs-heading);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .theme-toggle__btn.is-active {
  background: var(--rs-surface);
  box-shadow: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  padding: 12px 16px;
  border-radius: 40px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  box-shadow: var(--rs-pill-shadow);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--rs-pill-shadow-focus);
}

.btn-nav {
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--rs-accent);
  border-color: var(--rs-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--rs-accent-hover);
  border-color: var(--rs-accent-hover);
  color: #fff;
  box-shadow: var(--rs-pill-shadow-focus);
}

html[data-theme="dark"] .btn-primary {
  background-color: var(--rs-accent);
  border-color: var(--rs-accent);
  color: #0f172a;
}

html[data-theme="dark"] .btn-primary:hover {
  background-color: var(--rs-accent-hover);
  border-color: var(--rs-accent-hover);
  color: #0f172a;
}

.btn-secondary {
  background-color: var(--rs-body-bg);
  border-color: var(--rs-border-ui);
  color: var(--rs-heading);
}

.btn-secondary:hover {
  box-shadow: var(--rs-pill-shadow-focus);
}

html[data-theme="dark"] .btn-secondary {
  background-color: transparent;
  border-color: #73736f;
  color: #fafaf5;
}

.btn-block {
  width: 100%;
}

/* Typography scale */
h1,
h2,
h3 {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.024em;
  color: var(--rs-heading);
  margin-top: 0;
}

h1 {
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4.875rem);
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1;
  margin-bottom: 0.75rem;
  max-width: min(40rem, 100%);
}

h3 {
  font-weight: 700;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.h1-sub {
  display: block;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--rs-muted);
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
}

.hero-copy h1 {
  margin-bottom: 0.5rem;
}

.hero-copy p.h1-sub {
  max-width: 38rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.133;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rs-muted-2);
  margin: 0 0 0.5rem;
}

.lead,
.section-lead {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.5;
  color: var(--rs-muted);
  max-width: 36rem;
  margin: 0 0 1rem;
}

.section-kicker {
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.133;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rs-muted-2);
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 24px;
}

/* Hero */
.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.proof {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--rs-muted);
  max-width: 34rem;
  margin: 16px 0 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Banda audiencia (decision makers) */
.hero-band {
  background: linear-gradient(135deg, var(--rs-accent-soft) 0%, var(--rs-surface-2) 100%);
  border: 1px solid var(--rs-border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.audience-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.audience-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rs-muted-2);
}

.audience-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.audience-chips li {
  margin: 0;
}

.audience-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rs-surface);
  border: 1px solid var(--rs-border-ui);
  color: var(--rs-heading);
}

html[data-theme="dark"] .audience-chip {
  background: var(--rs-surface-2);
}

/* Tarjetas rápidas Personas / Empresas en hero */
.hero-segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.25rem;
  max-width: 36rem;
}

.segment-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--rs-border-ui);
  background: var(--rs-surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.segment-card:hover {
  border-color: var(--rs-accent);
  box-shadow: 0 4px 20px rgba(12, 74, 110, 0.12);
  transform: translateY(-1px);
}

.segment-card__icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
}

.segment-card__title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--rs-heading);
}

.segment-card__hint {
  font-size: 0.75rem;
  color: var(--rs-muted);
  line-height: 1.35;
}

/* Hero · panel personas / empresas (sin diagrama decorativo) */
.hero-visual-wrap {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: stretch;
}

.hero-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 16px;
  border: 1px solid var(--rs-border-ui);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--rs-accent-soft) 0%, transparent 55%),
    radial-gradient(100% 60% at 0% 100%, rgba(12, 74, 110, 0.06) 0%, transparent 50%),
    var(--rs-surface);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.07);
}

html[data-theme="dark"] .hero-visual {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 55%),
    radial-gradient(100% 60% at 0% 100%, rgba(15, 23, 42, 0.5) 0%, transparent 50%),
    var(--rs-surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hero-visual__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rs-muted-2);
}

.hero-visual__split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.hero-visual__lane {
  padding: 16px 14px;
  border-radius: 12px;
  background: var(--rs-body-bg);
  border: 1px solid var(--rs-border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.hero-visual__lane-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--rs-heading);
  letter-spacing: -0.02em;
}

.hero-visual__lane-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--rs-muted);
  margin: 0;
}

.hero-visual__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 7rem;
  padding: 4px 0;
}

.hero-visual__spine-line {
  flex: 1;
  width: 2px;
  min-height: 12px;
  background: linear-gradient(180deg, transparent, var(--rs-border-ui) 20%, var(--rs-border-ui) 80%, transparent);
  border-radius: 1px;
}

.hero-visual__spine-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: var(--rs-accent);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(12, 74, 110, 0.25);
  background: var(--rs-accent-soft);
  max-width: 11rem;
  line-height: 1.25;
}

html[data-theme="dark"] .hero-visual__spine-badge {
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
}

.hero-visual__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.hero-visual__traits li {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rs-muted-2);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rs-border-soft);
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .hero-visual__traits li {
  background: rgba(15, 23, 42, 0.35);
}

/* CLI showcase (Mercury / Kraken / Uphold: producto + terminal) */
.cli-showcase {
  margin-top: clamp(36px, 6vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--rs-border-soft);
}

.cli-showcase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.cli-showcase__label {
  margin: 0 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rs-accent);
}

.cli-showcase__headline {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--rs-heading);
  max-width: 36rem;
}

.cli-showcase__sub {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--rs-muted);
  max-width: 34rem;
}

.cli-showcase__bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--rs-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cli-showcase__bullets li {
  margin-bottom: 6px;
}

.cli-showcase__note {
  margin: 16px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--rs-muted);
}

/* Terminal (bloques tipo producto financiero) */
.terminal-card {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--rs-border);
  background: var(--rs-surface);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
}

html[data-theme="dark"] .terminal-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.terminal-card--feature .terminal-card__body {
  min-height: 220px;
  max-height: 380px;
  font-size: 0.8125rem;
}

.terminal-card--agentic .terminal-card__body {
  min-height: 200px;
  max-height: 320px;
}

.terminal-card--compact {
  margin-top: 16px;
}

.terminal-card__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--rs-terminal-bar);
  border-bottom: 1px solid var(--rs-border-soft);
}

.terminal-card__dots {
  flex: 0 0 auto;
  display: block;
  min-width: 52px;
  height: 8px;
  margin-right: 4px;
}

.terminal-card__dots::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
}

.terminal-card__title {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.72rem;
  color: var(--rs-muted);
  text-transform: lowercase;
}

.terminal-card__copy {
  appearance: none;
  border: 1px solid var(--rs-border);
  background: var(--rs-surface);
  color: var(--rs-heading);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: var(--rs-pill-shadow-sm);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.terminal-card__copy:hover {
  box-shadow: var(--rs-pill-shadow-focus);
}

.terminal-card__copy:disabled {
  opacity: 0.85;
  cursor: default;
}

.terminal-card__copy--ghost {
  box-shadow: none;
  border-color: var(--rs-border-ui);
}

.terminal-card__body {
  margin: 0;
  padding: 16px 18px 20px;
  min-height: 120px;
  max-height: 280px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--rs-code);
  background: var(--rs-terminal-body);
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  tab-size: 2;
}

.terminal-card__body--syntax {
  color: #cbd5e1;
}

html[data-theme="light"] .terminal-card__body--syntax {
  color: #1e293b;
}

.terminal-card__body:focus {
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.terminal-card__body--json {
  min-height: 160px;
}

.terminal-card--compact .terminal-card__body {
  min-height: 88px;
  max-height: 200px;
  font-size: 0.78rem;
}

html[data-theme="light"] .terminal-card__body {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
}

html[data-theme="light"] .terminal-card--compact .terminal-card__body {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
}

html[data-theme="dark"] .terminal-card__body {
  background: #0b1120;
}

.agentic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}

.agentic-topology-wrap {
  border: 1px solid var(--rs-border);
  border-radius: 14px;
  background: var(--rs-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] .agentic-topology-wrap {
  background: var(--rs-surface-2);
}

.topology-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--rs-terminal-bar);
  border-bottom: 1px solid var(--rs-border-soft);
}

.topology-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rs-muted);
}

.topology-pre {
  margin: 0;
  padding: 16px;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #cbd5e1;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  overflow: auto;
}

html[data-theme="dark"] .topology-pre {
  color: #e2e8f0;
  background: #0b1120;
}

.command-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border: 1px solid var(--rs-border-soft);
  border-radius: 14px;
  background: var(--rs-surface);
  overflow: hidden;
}

.command-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 2fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rs-border-soft);
}

.command-list__row:last-child {
  border-bottom: none;
}

.command-list__cmd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--rs-code);
  word-break: break-all;
}

.command-list__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.command-list__badge--inspect {
  background: var(--rs-accent-soft);
  color: var(--rs-accent);
}

.command-list__badge--execute {
  background: rgba(15, 23, 42, 0.08);
  color: var(--rs-heading);
}

html[data-theme="dark"] .command-list__badge--execute {
  background: rgba(248, 250, 252, 0.1);
  color: #f8fafc;
}

.command-list__desc {
  font-size: 0.875rem;
  color: var(--rs-muted);
  line-height: 1.45;
}

.steps__outcome {
  margin: 12px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--rs-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--rs-border-soft);
}

.arch-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.arch-card {
  margin: 0;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--rs-border-soft);
  background: var(--rs-surface);
}

html[data-theme="dark"] .arch-card {
  background: var(--rs-surface-2);
}

.arch-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rs-heading);
}

.arch-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--rs-muted);
}

.cards.three-tools {
  grid-template-columns: repeat(3, 1fr);
}

.cardwho {
  font-size: 0.875rem;
  margin: 0 0 10px;
  line-height: 1.45;
  color: var(--rs-muted);
}

.examples-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rs-border-soft);
}

.examples-split__title {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--rs-heading);
}

.grid-list.tight li {
  margin-bottom: 6px;
}

.use-case-list {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: var(--rs-muted);
  max-width: 42rem;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.use-case-list li {
  margin-bottom: 12px;
}

/* Sections */
.section {
  padding: clamp(56px, 8vw, 100px) 0;
}

.section.alt {
  background-color: var(--rs-surface);
  border-top: 1px solid var(--rs-border-soft);
  border-bottom: 1px solid var(--rs-border-soft);
}

html[data-theme="dark"] .section.alt {
  background-color: #1a1a1a;
  border-color: var(--rs-border-soft);
}

.grid-list,
.kpis,
.build-bullets {
  margin: 16px 0 0;
  padding-left: 1.5rem;
  color: var(--rs-muted);
}

.grid-list li,
.kpis li,
.build-bullets li {
  margin-bottom: 8px;
}

.cards {
  margin-top: 24px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cards.two-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--rs-body-bg);
  border: 1px solid var(--rs-border-soft);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.15s ease;
}

html[data-theme="light"] .section.alt .card {
  background: #fafaf5;
}

.card:hover {
  border-color: var(--rs-border-ui);
}

.card p,
.card li {
  color: var(--rs-muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.card ul {
  margin: 8px 0 0;
  padding-left: 1.1rem;
}

.diagram {
  margin-top: 16px;
  background: var(--rs-terminal-body);
  border: 1px solid var(--rs-border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--rs-code);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-x: auto;
}

/* Scenario cards: situation, agent, impact */
.scenario-cards {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scenario-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--rs-border-soft);
  border-radius: 14px;
  background: var(--rs-surface);
  transition: border-color 0.15s ease;
}

.scenario-card:hover {
  border-color: var(--rs-border-ui);
}

html[data-theme="dark"] .scenario-card {
  background: var(--rs-surface-2);
}

.scenario-card__cell {
  min-width: 0;
}

.scenario-card__label {
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rs-muted-2);
}

.scenario-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--rs-muted);
}

@media (min-width: 900px) {
  .scenario-card {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .scenario-card__cell + .scenario-card__cell {
    border-left: 1px solid var(--rs-border-soft);
    padding-left: 28px;
  }
}

/* Steps */
.steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.steps__num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-soft);
  color: var(--rs-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps__content p {
  color: var(--rs-muted);
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

/* Build + form */
.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.contact-form {
  background: var(--rs-surface);
  border: 1px solid var(--rs-border-soft);
  border-radius: 14px;
  padding: 24px 28px;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--rs-heading);
  cursor: pointer;
}

.field__input {
  width: 100%;
  padding: 14px 24px;
  border-radius: 34px;
  border: 1px solid #121212;
  background-color: #faf8f7;
  color: #121212;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

html[data-theme="dark"] .field__input {
  background-color: var(--rs-surface-2);
  border-color: var(--rs-border);
  color: var(--rs-text);
}

.field__input:hover {
  background-color: #fff;
  border-color: #73736f;
}

html[data-theme="dark"] .field__input:hover {
  background-color: #2a2a2a;
  border-color: #73736f;
}

.field__input:focus {
  outline: none;
  background-color: #fff;
  border-color: #73736f;
}

.field__textarea {
  border-radius: 10px;
  min-height: 120px;
  resize: vertical;
}

/* CTA */
.cta {
  text-align: center;
  padding: 80px 0 100px;
}

.cta p {
  color: var(--rs-muted);
  max-width: 36rem;
  margin: 0 auto 20px;
}

.cta h2 {
  max-width: none;
  margin: 0 auto 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rs-border-soft);
  padding: 0 0 40px;
}

.footer-logos {
  background-color: #121212;
  border-bottom: 1px solid #2a2a2a;
  padding: 28px 0;
}

.footer-logos__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 56px);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.footer-logo-link:hover {
  opacity: 1;
}

.footer-logo {
  display: block;
  height: auto;
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-logo--wul {
  max-height: 32px;
}

.footer-logo--rs {
  max-height: 44px;
  width: 44px;
  border-radius: 8px;
}

.footer-logo-wordmark {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: #fafaf5;
}

.footer-inner {
  text-align: center;
  padding-top: 24px;
}

.footer-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--rs-muted);
  max-width: 40rem;
  margin-inline: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .build-grid,
  .cli-showcase__grid,
  .agentic-grid {
    grid-template-columns: 1fr;
  }

  .hero-segments {
    grid-template-columns: 1fr;
  }

  .arch-cards {
    grid-template-columns: 1fr;
  }

  .cards.three-tools {
    grid-template-columns: 1fr;
  }

  .examples-split {
    grid-template-columns: 1fr;
  }

  .command-list__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .command-list__badge {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .hero-visual__split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-visual__lane:first-of-type {
    order: 1;
  }

  .hero-visual__spine {
    flex-direction: row;
    min-width: 0;
    width: 100%;
    padding: 0;
    order: 2;
  }

  .hero-visual__lane:last-of-type {
    order: 3;
  }

  .hero-visual__spine-line {
    flex: 1;
    width: auto;
    height: 2px;
    min-height: 0;
    min-width: 12px;
    background: linear-gradient(90deg, transparent, var(--rs-border-ui) 15%, var(--rs-border-ui) 85%, transparent);
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-audience {
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }
}
