:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: #ffffff;
  --panel-soft: #f9fbff;
  --panel-strong: #eef3fb;
  --line: #dbe3ef;
  --text: #172033;
  --muted: #667085;
  --soft: #8a97aa;
  --accent: #315fbd;
  --accent-soft: #eaf1ff;
  --navy: #14213d;
  --warn: #b7791f;
  --danger: #c2415d;
  --shadow: 0 24px 60px rgba(20, 33, 61, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(49, 95, 189, 0.08), transparent 34rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 44%, #f8fafd 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-nav a,
.nav-cta,
.hero-actions a,
.contact-actions a,
.query-bar button,
.filter-button,
.sort-control select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.top-nav a {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover,
.top-nav a[aria-current="page"],
.nav-cta:hover,
.hero-actions a:hover,
.contact-actions a:hover {
  color: var(--navy);
}

.nav-cta {
  justify-self: end;
  border-color: var(--navy);
  background: var(--navy);
  padding: 9px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 74px 0 56px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto;
  color: var(--navy);
  font-size: 66px;
  line-height: 0.98;
}

.hero-copy {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions a,
.contact-actions a {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
}

.hero-actions a:first-child,
.contact-actions a:first-child {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.terminal-preview {
  margin: 52px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d76d62;
}

.terminal-bar span:nth-child(2) {
  background: #d8a84f;
}

.terminal-bar span:nth-child(3) {
  margin-right: 8px;
  background: #7f8da3;
}

.terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  padding: 22px;
}

.agent-panel,
.metric-card,
.controls,
.opportunity-card,
.workflow-steps article,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.agent-panel {
  padding: 22px;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(49, 95, 189, 0.1);
}

.agent-panel h2,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.08;
}

.agent-panel p,
.meta-text,
.workflow-steps p,
.contact-section p,
.opportunity-meta,
.execution {
  color: var(--muted);
}

.agent-panel p {
  max-width: 620px;
  line-height: 1.6;
}

.query-bar {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.query-bar input {
  min-width: 0;
  flex: 1;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 15px;
}

.query-bar button {
  padding: 0 16px;
  cursor: pointer;
}

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

.metric-card {
  display: flex;
  min-height: 124px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.metric-card span {
  color: var(--navy);
  font-size: 38px;
  font-weight: 850;
}

.metric-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card.accent span,
.roi {
  color: var(--accent);
}

.section {
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
}

.feed-load-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.load-feed-button {
  min-height: 40px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}

.load-feed-button:disabled,
.filter-button:disabled,
.sort-control select:disabled,
.query-bar input:disabled,
.query-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.sort-control select {
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
}

.filter-button {
  cursor: pointer;
}

.filter-button.is-active {
  border-color: rgba(49, 95, 189, 0.34);
  background: var(--accent-soft);
  color: var(--accent);
}

.scope-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(49, 95, 189, 0.28);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.scope-pill.is-muted {
  border-color: var(--line);
  background: var(--panel);
  color: var(--muted);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.opportunity-list {
  display: grid;
  gap: 12px;
}

.load-empty-state {
  display: grid;
  gap: 8px;
}

.load-empty-state strong {
  color: var(--navy);
}

.load-empty-state span {
  color: var(--muted);
}

.opportunity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.06);
}

.opportunity-main h3 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.badge-row,
.price-grid,
.opportunity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.strict {
  border-color: rgba(49, 95, 189, 0.26);
  color: var(--accent);
}

.price-pill {
  min-width: 166px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.price-pill strong,
.price-pill small {
  display: block;
}

.price-pill small {
  margin-bottom: 4px;
  color: var(--soft);
}

.opportunity-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.roi {
  font-size: 34px;
  font-weight: 850;
}

.execution {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.opportunity-actions a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
}

.docs-section {
  border-top: 1px solid var(--line);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.workflow-steps article {
  padding: 18px;
}

.workflow-steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.workflow-steps h3 {
  margin: 18px 0 8px;
  color: var(--navy);
}

.workflow-steps p {
  line-height: 1.55;
}

.contact-section {
  margin-bottom: 72px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-section p {
  max-width: 760px;
  margin: 14px auto 0;
  line-height: 1.65;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 0.9fr);
  gap: 34px;
  align-items: start;
  padding: 84px 0;
}

.contact-intro h1 {
  margin: 0;
  color: var(--navy);
  font-size: 58px;
  line-height: 1;
}

.contact-intro p:last-child {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.message-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.message-form label {
  display: grid;
  gap: 7px;
}

.message-form span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 12px 13px;
}

.message-form textarea {
  min-height: 168px;
  resize: vertical;
}

.message-form button {
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  min-height: 44px;
  font-weight: 850;
  cursor: pointer;
}

.message-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-status[data-state="success"] {
  color: #157f3f;
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.dashboard-hero {
  padding: 66px 0 28px;
  text-align: center;
}

.dashboard-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 58px;
  line-height: 1;
}

.dashboard-hero p:last-child {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hub-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
  margin: 22px 0 54px;
}

.hub-primary,
.hub-tools article,
.dashboard-toolbar,
.mapped-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.06);
}

.hub-primary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.hub-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.hub-primary h2 {
  margin: 0;
  color: var(--navy);
}

.hub-primary p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.hub-primary a {
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  padding: 10px 12px;
  color: #ffffff;
  font-weight: 800;
}

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

.hub-tools article {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.hub-tools span {
  color: var(--navy);
  font-size: 34px;
  font-weight: 850;
}

.hub-tools small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-section {
  padding-bottom: 76px;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px;
}

.dashboard-toolbar input {
  min-width: 280px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
}

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

.dashboard-preview-shell {
  position: relative;
}

.dashboard-universe-lock {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(246, 248, 252, 0), var(--bg) 38%),
    var(--panel);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.06);
}

.blurred-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-height: 166px;
  padding: 14px;
  filter: blur(4px);
  opacity: 0.58;
  pointer-events: none;
}

.blurred-preview span {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 95, 189, 0.12), rgba(255, 255, 255, 0.72)),
    var(--panel-soft);
}

.blurred-preview span::before,
.blurred-preview span::after {
  position: absolute;
  left: 18px;
  right: 18px;
  content: "";
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.18);
}

.blurred-preview span::before {
  top: 28px;
  height: 16px;
}

.blurred-preview span::after {
  top: 62px;
  height: 42px;
  background:
    linear-gradient(180deg, rgba(20, 33, 61, 0.14), rgba(20, 33, 61, 0.06));
}

.universe-lock-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(680px, calc(100% - 36px));
  transform: translate(-50%, -50%);
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(208, 216, 229, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  backdrop-filter: blur(18px);
}

.universe-lock-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.universe-lock-card strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}

.universe-lock-card p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.universe-lock-card button {
  min-height: 36px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  padding: 0 14px;
  font-weight: 850;
  cursor: pointer;
}

.mapped-card {
  display: flex;
  min-height: 192px;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.mapped-card-head,
.venue-row,
.venue-link-row,
.mapped-card-foot,
.outcome-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill,
.category-pill,
.venue-row span,
.outcome-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill,
.category-pill,
.outcome-strip span {
  border: 1px solid var(--line);
  padding: 0 8px;
  color: var(--muted);
  background: var(--panel-soft);
}

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

.mapped-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.3;
}

.mapped-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.venue-row span {
  justify-content: center;
  width: 24px;
  background: var(--navy);
  color: #ffffff;
}

.venue-link-row {
  align-items: center;
}

.venue-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(9, 36, 75, 0.22);
  border-radius: 8px;
  padding: 0 9px;
  color: var(--navy);
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.venue-link:hover {
  border-color: rgba(9, 36, 75, 0.44);
  background: var(--panel-soft);
}

.mapped-card-foot {
  margin-top: auto;
  flex-direction: column;
}

.mapped-card-foot strong {
  color: var(--navy);
}

.mapped-card-foot small {
  color: var(--muted);
}

.arena-demo-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}

.arena-demo-copy,
.arena-demo-figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.06);
}

.arena-demo-copy {
  padding: 24px;
}

.arena-demo-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.05;
}

.arena-demo-copy p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.arena-demo-copy a {
  display: inline-flex;
  margin-top: 18px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  padding: 11px 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.arena-demo-figure {
  margin: 0;
  overflow: hidden;
}

.arena-demo-image {
  display: block;
  width: 100%;
  height: auto;
}

.arena-demo-figure figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.arena-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 16px;
  padding-bottom: 76px;
}

.arena-shell.is-blurred {
  filter: blur(6px);
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
}

.arena-panel,
.arena-canvas-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.06);
  padding: 16px;
}

.arena-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.arena-panel-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.arena-panel-head > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.arena-panel-head button,
.arena-market-card button,
.leg-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.market-picker input,
.market-picker select,
.arena-controls select,
.arena-controls input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 10px 11px;
}

.market-picker {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  max-height: 760px;
}

.arena-market-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.arena-market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 10px;
}

.arena-market-card.is-selected {
  border-color: rgba(49, 95, 189, 0.42);
  background: var(--accent-soft);
}

.arena-market-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.arena-market-card strong {
  display: block;
  margin: 3px 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
}

.arena-market-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.arena-market-card button {
  min-width: 58px;
  min-height: 34px;
}

.arena-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  margin-bottom: 12px;
}

.arena-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.arena-canvas-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

#arenaCanvas {
  display: block;
  width: 100%;
  height: auto;
}

.arena-leg-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.arena-leg-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
}

.arena-leg-card > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.arena-leg-card h3 {
  margin: 5px 0 6px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}

.arena-leg-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.leg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.leg-actions button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.leg-actions button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.arena-summary {
  display: grid;
  gap: 10px;
}

.arena-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
}

.arena-summary small,
.truth-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.arena-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 22px;
}

.arena-summary p,
.truth-table p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.truth-table {
  margin-top: 14px;
  overflow: auto;
}

.truth-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.truth-table th,
.truth-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 6px;
  text-align: left;
}

.truth-table td:last-child {
  color: var(--navy);
  font-weight: 850;
}

.blog-layout {
  display: grid;
  gap: 18px;
  padding-bottom: 76px;
}

.blog-feature,
.blog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(20, 33, 61, 0.06);
}

.blog-feature {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.blog-feature h2 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.08;
}

.blog-feature p:not(.post-date) {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

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

.blog-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 18px;
}

.blog-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.22;
}

.blog-card p:not(.post-date) {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.compact-blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.post-date {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.blog-feature span,
.blog-card span {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 5px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.blog-card-footer a,
.article-hero a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  padding: 0 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.blog-article-page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 58px 0 84px;
}

.article-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article-hero a {
  justify-self: start;
  border-color: var(--line);
  background: var(--panel);
  color: var(--navy);
}

.article-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 52px;
  line-height: 1.02;
}

.article-hero p:last-child {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.article-body {
  display: grid;
  gap: 18px;
}

.article-body p {
  margin: 0;
  color: #33415c;
  font-size: 18px;
  line-height: 1.82;
}

.docs-link-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.docs-link-row a {
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  padding: 11px 14px;
  color: #ffffff;
  font-weight: 800;
}

.docs-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 190px;
  gap: 34px;
  width: min(1280px, calc(100% - 48px));
  padding: 42px 0 84px;
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}

.docs-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.docs-sidebar strong,
.docs-toc strong {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 14px;
}

.docs-sidebar a,
.docs-toc a {
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
}

.docs-sidebar a:hover,
.docs-toc a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.docs-article {
  min-width: 0;
}

.docs-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}

.docs-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--navy);
  font-size: 52px;
  line-height: 1;
}

.docs-hero p:last-child {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.docs-block {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.docs-block h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.15;
}

.docs-block h3 {
  margin: 26px 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.docs-block p {
  max-width: 840px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

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

.docs-card-grid article,
.docs-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.docs-card-grid h3 {
  margin: 0 0 8px;
}

.docs-card-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
}

.docs-block pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  padding: 18px;
  color: #e5edf7;
}

.docs-block code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
}

.docs-callout {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  background: var(--accent-soft);
}

.docs-callout strong {
  color: var(--navy);
}

.docs-callout span {
  color: var(--muted);
  line-height: 1.65;
}

.docs-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.docs-next a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 11px 14px;
  color: var(--navy);
  font-weight: 800;
}

.docs-next a:first-child {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.pricing-hero {
  display: grid;
  gap: 18px;
  padding: 76px 0 34px;
  text-align: center;
}

.pricing-hero h1 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
}

.pricing-hero p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.pricing-paths,
.pricing-grid,
.pricing-detail-grid,
.pricing-faq {
  display: grid;
  gap: 16px;
}

.pricing-paths {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}

.pricing-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
}

.pricing-faq {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}

.pricing-path-card,
.pricing-card,
.pricing-detail-grid article,
.pricing-faq article,
.pricing-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pricing-path-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

.pricing-path-card.is-featured,
.pricing-card.is-highlighted {
  border-color: rgba(49, 95, 189, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.pricing-path-card h2,
.pricing-card h2,
.pricing-detail-grid h2,
.pricing-cta h2 {
  margin: 0;
  color: var(--navy);
}

.pricing-path-card p:not(.eyebrow),
.pricing-card p,
.pricing-detail-grid li,
.pricing-faq p,
.pricing-cta p {
  color: var(--muted);
  line-height: 1.62;
}

.pricing-path-card a,
.pricing-card a,
.pricing-cta a {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  padding: 0 14px;
  color: #ffffff;
  font-weight: 850;
}

.pricing-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
}

.plan-label {
  width: fit-content;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 4px 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.plan-price {
  margin: 0;
  color: var(--navy) !important;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1 !important;
}

.plan-copy {
  margin: 0;
}

.pricing-card ul,
.pricing-detail-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.pricing-card a {
  margin-top: auto;
}

.pricing-detail-grid article,
.pricing-faq article {
  padding: 22px;
}

.pricing-faq h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.pricing-faq p {
  margin: 0;
}

.pricing-cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 30px 0 72px;
  padding: 32px;
  text-align: center;
}

.pricing-cta p {
  max-width: 680px;
  margin: 0;
}

.empty-state {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 14px 18px;
  }

  .brand,
  .nav-cta {
    justify-self: center;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .terminal-grid,
  .opportunity-card,
  .workflow-steps,
  .docs-main,
  .docs-card-grid,
  .arena-demo-stage,
  .arena-shell,
  .arena-leg-list,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .docs-sidebar,
  .docs-toc {
    position: static;
    max-height: none;
  }

  .docs-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
  }

  .docs-toc {
    display: none;
  }

  .docs-hero h1 {
    font-size: 40px;
  }

  .article-hero h1 {
    font-size: 40px;
  }

  .article-body p {
    font-size: 16px;
  }

  .opportunity-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  .top-nav {
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  .top-nav a {
    flex: 1;
    text-align: center;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions,
  .controls,
  .section-heading,
  .query-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .terminal-grid {
    padding: 14px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .price-pill {
    min-width: 100%;
  }

  .hub-panel,
  .hub-primary,
  .dashboard-toolbar,
  .mapped-grid,
  .blurred-preview,
  .arena-controls,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .blurred-preview {
    min-height: 210px;
  }

  .universe-lock-card {
    width: min(100% - 24px, 680px);
  }

  .hub-primary,
  .dashboard-toolbar {
    align-items: stretch;
  }

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

  .dashboard-toolbar {
    flex-direction: column;
  }

  .dashboard-toolbar input {
    min-width: 0;
    width: 100%;
  }
}
