/* platform-ai.css — AI chain operations page
   global.css provides: tokens, reset, body, .wrap, .rv/.v,
   nav, footer, responsive base.
   btn-primary, btn-secondary, btn-white, btn-ghost are defined
   here because home.css does not load on inner pages.
   This file is page-scope only — no global overrides.
   ─────────────────────────────────────────────────────── */

/* ── Buttons (home.css defines these; required on all inner pages) ── */
.btn-primary {
  font-family: var(--f-sans);
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
  padding: 11px 28px; border-radius: var(--r-sm);
  background: var(--navy); color: #fff; border: none;
  box-shadow: 0 1px 2px rgba(12,31,61,.2), 0 4px 16px rgba(12,31,61,.16);
  transition: background .2s, transform .1s, box-shadow .2s;
  display: inline-block; text-decoration: none; cursor: pointer;--amber:#f59e0b;}
.btn-primary:hover { background: var(--navy-mid); box-shadow: 0 2px 4px rgba(12,31,61,.2), 0 8px 24px rgba(12,31,61,.18);--amber:#f59e0b;}
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  font-family: var(--f-sans);
  font-size: 13.5px; font-weight: 400; letter-spacing: -.01em;
  padding: 11px 28px; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-600);
  border: 1px solid var(--warm-300);
  transition: color .18s, border-color .18s, background .18s;
  display: inline-block; text-decoration: none; cursor: pointer;
}
.btn-secondary:hover { color: var(--ink-900); border-color: var(--warm-400); background: var(--warm-50); }

/* ── Section tag (defined here; global.css does not include it) ── */
.section-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 10px;
}

/* ── Section header (home.css defines these; required on inner pages too) ── */
.section-header {
  margin-bottom: 44px;
}
.section-header h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  color: var(--ink-900);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-500);
  max-width: 480px;
  line-height: 1.6;
}
body.hc .section-header p { color: var(--ink-600); }

/* ═══════════════════════════════════════════════════════
   PAGE HERO — Tier 2 split
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   SIGNAL BAND
   ═══════════════════════════════════════════════════════ */
.ai-signal-section { background: var(--navy);--amber:#f59e0b;}
.ai-signal-band {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
}
.ai-signal-item {
  padding: 48px 40px;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-signal-num {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1; letter-spacing: -.03em;
  color: var(--white); display: block;
}
.ai-signal-label {
  font-size: 12px; font-weight: 300; line-height: 1.55;
  color: rgba(255,255,255,.5);
  display: block; min-height: 4em;
}
.ai-signal-div {
  width: 1px; background: rgba(255,255,255,.1); align-self: stretch;
}
body.hc .ai-signal-section { background: #00102a;--amber:#f59e0b;}
body.hc .ai-signal-num { color: #ffffff; }
body.hc .ai-signal-label { color: rgba(255,255,255,.75); }
@media (max-width: 1024px) {
  .ai-signal-band { grid-template-columns: 1fr 1fr; }
  .ai-signal-div { display: none; }
  .ai-signal-item { padding: 36px 32px; }
  .ai-signal-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .ai-signal-item:nth-child(1),
  .ai-signal-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .ai-signal-label { min-height: auto; }
}
@media (max-width: 768px) {
  .ai-signal-band { grid-template-columns: 1fr; }
  .ai-signal-item {
    padding: 28px 20px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
  }
  .ai-signal-item:last-child { border-bottom: none !important; }
}

/* ═══════════════════════════════════════════════════════
   INTRO
   ═══════════════════════════════════════════════════════ */
.ai-intro-section {
  padding: 104px 0;
  background: var(--off-white);
}
.ai-intro-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}
.ai-intro-text h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1; color: var(--ink-900);
  margin: 8px 0 28px;
}
.ai-intro-text p {
  font-size: 14px; font-weight: 300;
  line-height: 1.75; color: var(--ink-600);
  max-width: 580px; margin-bottom: 18px;
}
.ai-intro-text p:last-child { margin-bottom: 0; }

/* Stats sidebar */
.ai-intro-aside {
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 8px;
}
.ai-aside-stat {
  border-left: 2px solid var(--warm-200);
  padding-left: 22px;
}
.ai-aside-num {
  display: block;
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15;
  color: var(--ink-900); margin-bottom: 8px;
}
.ai-aside-label {
  font-size: 13px; font-weight: 300;
  line-height: 1.5; color: var(--ink-500);
}
.ai-aside-link {
  color: var(--ink-700); font-weight: 400;
  border-bottom: 1px solid var(--warm-300);
  transition: border-color .15s, color .15s;
}
.ai-aside-link:hover { color: var(--ink-900); border-color: var(--ink-900); }

/* ═══════════════════════════════════════════════════════
   CAPABILITIES GRID
   ═══════════════════════════════════════════════════════ */
.ai-caps-section {
  padding: 104px 0;
  background: var(--white);
}
.ai-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--warm-200);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.ai-cap-card {
  background: var(--white);
  padding: 28px 24px 24px;
  display: flex; flex-direction: column;
  gap: 0;
  transition: background .18s;
}
.ai-cap-card:hover { background: var(--off-white); }

/* Icon — ink square with amber accent, not a ghost box */
.ai-cap-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--warm-100);
  border-radius: var(--r-md) var(--r-md) 0 0;
  margin: -20px -20px 20px -20px;
  width: calc(100% + 40px);
  overflow: hidden;
  flex-shrink: 0;
}
.ai-cap-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Before/after slider ── */
.ai-cap-slider { position: relative; cursor: ew-resize; user-select: none; }

.slider-track {
  position: relative;
  width: 100%; height: 100%;
}
.slider-after,
.slider-before {
  position: absolute; inset: 0;
  overflow: hidden;
}
.slider-after img,
.slider-before img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
.slider-before {
  clip-path: inset(0 50% 0 0); /* controlled by JS */
}
.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.slider-grip {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(14,14,12,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.slider-grip::before,
.slider-grip::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.slider-grip::before {
  border-right: 6px solid var(--ink-500);
  margin-right: 6px;
}
.slider-grip::after {
  border-left: 6px solid var(--ink-500);
}
.slider-label {
  position: absolute;
  bottom: 10px;
  font-family: var(--f-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--white);
  background: rgba(14,14,12,.45);
  padding: 3px 7px;
  border-radius: var(--r-sm);
  pointer-events: none;
  z-index: 3;
}
.slider-label-before { left: 10px; }
.slider-label-after  { right: 10px; }

.ai-cap-tag {
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.ai-cap-card h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: 19px;
  line-height: 1.2; color: var(--ink-900);
  margin-bottom: 10px;
}
.ai-cap-card p {
  font-size: 13px; font-weight: 300;
  line-height: 1.65; color: var(--ink-600);
  flex: 1;
  margin-bottom: 16px;
}

/* Chain command — visually distinct footer of card */
.ai-cap-chain {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 400;
  color: var(--ink-400);
  background: var(--warm-50);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  line-height: 1.5;
  word-break: break-all;
  margin-top: auto;
}
.ai-cb { color: var(--amber); }

/* Request row */
.ai-caps-request {
  padding: 20px 28px;
  background: var(--warm-50);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-md);
  text-align: center;
}
.ai-caps-request p {
  font-size: 13.5px; font-weight: 300;
  color: var(--ink-500); line-height: 1.6;
}
.ai-caps-request strong { font-weight: 500; color: var(--ink-700); }
.ai-caps-request a {
  color: var(--ink-900); font-weight: 500;
  border-bottom: 1px solid var(--warm-300);
  transition: border-color .15s;
}
.ai-caps-request a:hover { border-color: var(--ink-900); }

/* ═══════════════════════════════════════════════════════
   DEMO SECTION
   ═══════════════════════════════════════════════════════ */
.ai-demo-section {
  padding: 104px 0;
  background: var(--warm-50);
  border-top: 1px solid var(--warm-200);
  border-bottom: 1px solid var(--warm-200);
}
.ai-demo-tabs {
  display: flex; gap: 2px;
  background: var(--warm-200);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-md);
  padding: 3px;
  width: 100%;
  margin-bottom: 32px;
}
.ai-demo-tab {
  font-family: var(--f-sans); font-size: 13px; font-weight: 400;
  color: var(--ink-500); background: transparent; border: none;
  padding: 9px 20px; border-radius: var(--r-sm);
  cursor: pointer; flex: 1; text-align: center;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.ai-demo-tab:hover { color: var(--ink-900); background: rgba(255,255,255,.6); }
.ai-demo-tab.on {
  background: var(--white); color: var(--ink-900);
  font-weight: 500; box-shadow: var(--shadow-xs);
}
.ai-demo-stage { position: relative; }
.ai-demo-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.ai-demo-panel.active { display: grid; }
.ai-demo-frame {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--warm-100);
  overflow: hidden;
  border-right: 1px solid var(--warm-200);
}
.ai-demo-frame iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}
.ai-demo-meta {
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.ai-demo-meta .ai-cap-tag { margin-bottom: 4px; }
.ai-demo-meta h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: 22px;
  line-height: 1.15; color: var(--ink-900);
  margin: 0 0 4px;
}
.ai-demo-meta p {
  font-size: 14px; font-weight: 300;
  line-height: 1.65; color: var(--ink-600);
}
.ai-demo-chain-block {
  margin-top: 8px;
  background: var(--ink-900);
  border-radius: var(--r-md);
  padding: 14px 16px;--amber:#f59e0b;}
.ai-demo-chain-label {
  display: block;
  font-family: var(--f-mono); font-size: 9px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 8px;
}
.ai-demo-chain-block code {
  font-family: var(--f-mono); font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,.7);
  line-height: 1.65; word-break: break-all;
}

/* ═══════════════════════════════════════════════════════
   GATEWAY / REDUNDANCY SECTION
   ═══════════════════════════════════════════════════════ */
.ai-gateway-section {
  padding: 104px 0;
  background: var(--off-white);
}
.ai-gateway-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 72px;
  align-items: stretch;
}
.ai-gateway-text h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1; color: var(--ink-900);
  margin: 8px 0 20px;
}
.ai-gateway-text p {
  font-size: 14px; font-weight: 300;
  line-height: 1.75; color: var(--ink-600);
  max-width: 520px; margin-bottom: 16px;
}
.ai-gateway-list {
  list-style: none;
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 11px;
}
.ai-gateway-list li {
  font-size: 13.5px; font-weight: 300;
  line-height: 1.6; color: var(--ink-600);
  padding-left: 18px; position: relative;
}
.ai-gateway-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px;
  border-radius: 50%; background: var(--amber);
}
.ai-gateway-list a {
  color: var(--ink-900); font-weight: 500;
  border-bottom: 1px solid var(--warm-300);
  transition: border-color .15s;
}
.ai-gateway-list a:hover { border-color: var(--ink-900); }

/* ── Pipeline animation panel ── */
.ai-pipeline-anim {
  background: var(--navy);
  border: 1px solid var(--navy-accent);
  border-radius: var(--r-xl);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  box-sizing: border-box;
  font-family: var(--f-mono);--amber:#f59e0b;}

/* ── Callers row ── */
.anim-header {
  display: flex;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-accent);
  flex-shrink: 0;
}

.anim-label {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .13em;
  color: var(--amber);
  text-transform: uppercase;
}

.anim-callers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  opacity: 0;
  transition: opacity .5s;
  flex-shrink: 0;
}
.anim-callers.visible { opacity: 1; }

.anim-caller {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--navy-light);
  border: 1px solid var(--navy-accent);
  border-radius: var(--r-md);
  padding: 12px 10px;
  transition: border-color .4s, background .4s;--amber:#f59e0b;}
.anim-caller.active {
  border-color: var(--amber);
  background: var(--navy-mid);
}
.anim-caller-b.active {
  border-color: var(--warm-300);
}

.anim-caller-icon {
  color: var(--warm-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .4s;
}
.anim-caller.active .anim-caller-icon { color: var(--amber); }
.anim-caller-b.active .anim-caller-icon { color: var(--warm-200); }
.anim-caller-icon svg { width: 16px; height: 16px; }

.anim-caller-label {
  font-family: var(--f-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--warm-300);
  text-align: center;
}
.anim-caller-sub {
  font-family: var(--f-mono);
  font-size: 7px;
  color: var(--warm-400);
  text-align: center;
}

/* ── Vertical connector lines ── */
.anim-connector-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  opacity: 0;
  transition: opacity .4s;
  flex-shrink: 0;
}
.anim-connector-row.visible { opacity: 1; }

.anim-conn-line {
  height: 18px;
  position: relative;
}
.anim-conn-line::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 100%;
  background: var(--navy-accent);
  transform: translateX(-50%);
  transition: background .5s;
}
.anim-conn-line.flowing::before { background: var(--amber); }
.anim-conn-line.flowing-b::before { background: var(--warm-300); }

/* ── Chain command node ── */
.anim-stage {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.anim-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-light);
  border: 1px solid var(--navy-accent);
  border-radius: var(--r-md);
  padding: 12px 18px;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity .5s, border-color .4s, background .4s;--amber:#f59e0b;}
.anim-node.active {
  opacity: 1;
  border-color: var(--amber);
  background: var(--navy-mid);
}

.anim-bracket {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--amber);
  line-height: 1;
  opacity: .6;
  flex-shrink: 0;
}

.anim-node-label {
  font-family: var(--f-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--warm-400);
  margin-bottom: 3px;
}

.anim-node-cmd {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--white);
}

/* ── Provider fork ── */
.anim-fork {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity .5s;
  flex-shrink: 0;
}
.anim-fork.visible { opacity: 1; }

.anim-path {
  display: flex;
  align-items: center;
}

.anim-path-line {
  flex: 1;
  height: 2px;
  background: var(--navy-accent);
  position: relative;
  overflow: hidden;
}
.anim-path-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 60%, transparent 100%);
  transition: none;
}
.anim-path-line.flowing::after {
  left: 110%;
  transition: left .8s ease-in;
}
.anim-path-line-out::after { transition-delay: .2s; }

.anim-provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--navy-light);
  border: 1px solid var(--navy-accent);
  border-radius: var(--r-md);
  padding: 9px 14px;
  min-width: 130px;
  opacity: .45;
  transition: opacity .4s, border-color .4s, background .4s;--amber:#f59e0b;}
.anim-provider.active {
  opacity: 1;
  border-color: var(--warm-300);
  background: var(--navy-mid);--amber:#f59e0b;}
.anim-provider-alt.active { border-color: var(--warm-400); }

.anim-provider-badge {
  font-family: var(--f-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--amber);
}
.anim-badge-alt { color: var(--warm-400); }

.anim-provider-name {
  font-family: var(--f-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--white);
}

.anim-provider-sub {
  font-family: var(--f-mono);
  font-size: 7.5px;
  color: var(--warm-400);
}

/* ── Store / normalize step ── */
.anim-store-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity .5s;
  flex-shrink: 0;
}
.anim-store-row.visible { opacity: 1; }

.anim-conn-vert {
  width: 1px;
  height: 14px;
  background: var(--navy-accent);
  transition: background .4s;
}
.anim-conn-vert.flowing { background: var(--amber); }

.anim-store {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-light);
  border: 1px solid var(--navy-accent);
  border-radius: var(--r-md);
  padding: 10px 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .4s, background .4s;--amber:#f59e0b;}
.anim-store.active {
  border-color: var(--amber);
  background: var(--navy-mid);
}

.anim-store-icon {
  color: var(--warm-400);
  flex-shrink: 0;
  transition: color .4s;
  display: flex;
}
.anim-store.active .anim-store-icon { color: var(--amber); }
.anim-store-icon svg { width: 16px; height: 16px; }

.anim-store-label {
  font-family: var(--f-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--warm-300);
  margin-bottom: 2px;
}
.anim-store-sub {
  font-family: var(--f-mono);
  font-size: 7.5px;
  color: var(--warm-400);
}

/* ── Outputs ── */
.anim-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  opacity: 0;
  transition: opacity .5s;
  flex-shrink: 0;
  overflow: hidden;
}
.anim-outputs.visible { opacity: 1; }

.anim-output {
  background: var(--navy-light);
  border: 1px solid var(--navy-accent);
  border-radius: var(--r-md);
  padding: 11px 12px;
  transition: border-color .4s, background .4s;
  min-width: 0;
  overflow: hidden;--amber:#f59e0b;}
.anim-output.lit {
  border-color: var(--amber);
  background: var(--navy-mid);
}
.anim-output-alt.lit { border-color: var(--warm-300); }

.anim-output-badge {
  font-family: var(--f-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anim-output-badge-alt { color: var(--warm-400); }

.anim-output-title {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--warm-100);
  margin-bottom: 5px;
}

.anim-output-data {
  font-family: var(--f-mono);
  font-size: 8.5px;
  color: var(--warm-400);
  transition: color .4s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.anim-output.lit .anim-output-data { color: var(--warm-200); }

/* ── Footer ── */
.anim-footer {
  border-top: 1px solid var(--navy-accent);
  padding-top: 10px;
  flex-shrink: 0;
  margin-top: auto;
}

.anim-step-indicator {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--warm-400);
  transition: color .3s;
}


/* ═══════════════════════════════════════════════════════
   BENEFITS
   ═══════════════════════════════════════════════════════ */
.ai-benefits-section {
  padding: 104px 0;
  background: var(--white);
  border-top: 1px solid var(--warm-200);
}
.ai-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ai-benefit-card {
  background: var(--off-white);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 0;
  transition: border-color .18s, box-shadow .18s;
}
.ai-benefit-card:hover {
  border-color: var(--warm-300);
  box-shadow: var(--shadow-sm);
}

/* Benefit icon — light box, legible stroke */
.ai-benefit-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--warm-100);
  border: 1px solid var(--warm-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  flex-shrink: 0;
  margin-bottom: 20px;
}
.ai-benefit-icon svg { width: 18px; height: 18px; }
.ai-benefit-card h3 {
  font-family: var(--f-serif); font-weight: 400; font-size: 19px;
  line-height: 1.2; color: var(--ink-900);
  margin-bottom: 12px;
}
.ai-benefit-card p {
  font-size: 13.5px; font-weight: 300;
  line-height: 1.7; color: var(--ink-600);
}

/* ═══════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════ */
.ai-cta-section {
  background: var(--navy); padding: 104px 52px;
  text-align: center; position: relative; overflow: hidden;--amber:#f59e0b;}
.ai-cta-section::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,74,128,.3), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.ai-cta-section::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .07;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
}
.ai-cta-inner { position: relative; z-index: 2; }
.ai-cta-section .section-tag { color: var(--amber); margin-bottom: 18px; }
.ai-cta-inner h2 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--white); letter-spacing: -.025em;
  line-height: 1.05; margin-bottom: 14px;
}
.ai-cta-inner p {
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,.92);
  max-width: 380px; margin: 0 auto 32px; line-height: 1.55;
}
.ai-cta-btns {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.ai-cta-section .btn-white {
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
  padding: 12px 28px; border-radius: var(--r-sm);
  background: var(--white); color: var(--navy); border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  text-decoration: none; display: inline-flex; align-items: center;
  transition: opacity .18s, transform .1s;
}
.ai-cta-section .btn-white:hover { opacity: .93; }
.ai-cta-section .btn-white:active { transform: scale(.98); }

/* ═══════════════════════════════════════════════════════
   HIGH CONTRAST
   ═══════════════════════════════════════════════════════ */
body.hc .ai-cap-card { background: #ffffff; }
body.hc .ai-cap-card:hover { background: var(--warm-50); }
body.hc .ai-cap-img { background: var(--warm-200); }
body.hc .ai-benefit-icon { background: var(--warm-200); border-color: var(--warm-300); color: var(--ink-700); }
body.hc .ai-pipeline-anim { background: #00102a; border-color: #1e4a80;--amber:#f59e0b;}
body.hc .ai-benefit-card { background: var(--warm-50); border-color: var(--warm-300); }
body.hc .ai-cta-section { background: #00102a;--amber:#f59e0b;}
body.hc .ai-cta-inner h2 { color: #ffffff; }
body.hc .ai-cta-inner p  { color: rgba(255,255,255,.85); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ai-intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .ai-intro-aside { flex-direction: row; flex-wrap: wrap; gap: 20px; display: flex; }
  .ai-aside-stat { flex: 1 1 160px; }
  .ai-caps-grid { grid-template-columns: 1fr 1fr; }
  .ai-demo-panel.active { grid-template-columns: 1fr; }
  .ai-demo-frame { border-right: none; border-bottom: 1px solid var(--warm-200); }
  .ai-demo-meta { padding: 28px 28px 32px; }
  .ai-gateway-inner { grid-template-columns: 1fr; gap: 48px; }
  .ai-pipeline-anim { max-width: 520px; }
  .ai-benefits-grid { gap: 14px; }
  .ai-intro-section,
  .ai-caps-section,
  .ai-demo-section,
  .ai-gateway-section,
  .ai-benefits-section { padding: 80px 0; }
  .ai-cta-section { padding: 80px 40px; }
}

@media (max-width: 768px) {
  .ai-caps-grid { grid-template-columns: 1fr; }
  .ai-demo-tabs { flex-wrap: wrap; }
  .ai-intro-aside { flex-direction: column; }
  .ai-benefits-grid { grid-template-columns: 1fr; gap: 14px; }
  .ai-intro-section,
  .ai-caps-section,
  .ai-demo-section,
  .ai-gateway-section,
  .ai-benefits-section { padding: 64px 0; }
  .ai-cta-section { padding: 72px 20px; }
}

@media (max-width: 480px) {
  .ai-benefit-card { padding: 22px 20px; }
  .ai-cap-card { padding: 22px 18px 20px; }
  .ai-intro-section,
  .ai-caps-section,
  .ai-demo-section,
  .ai-gateway-section,
  .ai-benefits-section { padding: 52px 0; }
  .ai-cta-section { padding: 56px 16px; }
}
