/* Agentic Analyst — product page styles, all scoped under .aa-shell. */

.aa-shell {
  --aa-bg:         oklch(0.1896 0.0206 275.51);
  --aa-card:       oklch(0.1299 0.0121 274.01);
  --aa-card-2:     oklch(0.165 0.018 275);
  --aa-line:       rgba(180, 160, 240, 0.10);
  --aa-line-2:     rgba(180, 160, 240, 0.18);
  --aa-line-3:     rgba(180, 160, 240, 0.28);

  --aa-fg:         oklch(0.985 0 0);
  --aa-fg-dim:     oklch(0.78 0.012 275);
  --aa-fg-faint:   oklch(0.55 0.015 275);
  --aa-fg-quiet:   oklch(0.42 0.012 275);

  --aa-accent:     #b34fff;
  --aa-purple:     #7f00ff;
  --aa-purple-2:   #e100ff;
  --aa-cyan:       #4facfe;
  --aa-cyan-2:     #00f2fe;

  --aa-grad:        linear-gradient(135deg, #7f00ff 0%, #e100ff 50%, #4facfe 100%);
  --aa-grad-text:   linear-gradient(95deg, #c98aff 0%, #e9a3ff 45%, #79c4ff 100%);
  --aa-grad-purple: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
  --aa-grad-cyan:   linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);

  --aa-font:        "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --aa-mono:        "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  background: var(--aa-bg);
  color: var(--aa-fg);
  font-family: var(--aa-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Body bg switch so there's no flash of site-default behind page transitions. */
body.aa-page { background: oklch(0.1896 0.0206 275.51); }

.aa-shell ::selection { background: rgba(179, 79, 255, 0.45); color: white; }
.aa-shell a { color: inherit; transition: color .15s ease; }
.aa-shell button { font-family: inherit; }

/* ── Atoms ──────────────────────────────────────────────────── */
.aa-container { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.aa-mono {
  font-family: var(--aa-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aa-fg-faint);
}
.aa-mono--accent { color: var(--aa-accent); }
.aa-mono--purple { color: #e9a3ff; }
.aa-mono--cyan { color: #9bd1ff; }
.aa-mono--dim { color: var(--aa-fg-dim); }
.aa-mono--quiet { color: var(--aa-fg-quiet); }

.aa-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--aa-mono); font-size: 11px; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 999px;
}
.aa-pill--canonical {
  color: #e9a3ff;
  background: rgba(179, 79, 255, 0.10);
  border: 1px solid rgba(179, 79, 255, 0.30);
}
.aa-pill--canonical::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: linear-gradient(135deg, #7f00ff, #e100ff);
}
.aa-pill--source {
  color: #9bd1ff;
  background: rgba(79, 172, 254, 0.10);
  border: 1px solid rgba(79, 172, 254, 0.30);
}
.aa-pill--source::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
}

.aa-grad-text {
  background-image: var(--aa-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  /* italic slant overhangs the text bounding box; small right pad keeps the
     trailing letter from being clipped by parent overflow or a tight wrap. */
  display: inline-block;
  padding-right: 0.08em;
}

.aa-section-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.aa-section-eyebrow__rule {
  width: 22px; height: 1px; background: var(--aa-accent); opacity: 0.6;
}
.aa-section-eyebrow__rule--cyan { background: #4facfe; }

.aa-display {
  font-family: var(--aa-font); font-weight: 600;
  letter-spacing: -0.025em; color: var(--aa-fg); margin: 0;
  text-wrap: balance;
}
.aa-display--xxl { font-size: 72px; line-height: 1.02; letter-spacing: -0.035em; }
.aa-display--xl  { font-size: 64px; line-height: 1.02; letter-spacing: -0.035em; }
.aa-display--lg  { font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; }
.aa-display--md  { font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; }

.aa-h3 {
  font-family: var(--aa-font); font-weight: 500;
  letter-spacing: -0.02em; color: var(--aa-fg);
  margin: 14px 0;
  text-wrap: balance;
}

.aa-body {
  font-family: var(--aa-font); font-size: 14.5px; line-height: 1.55;
  color: var(--aa-fg-dim); margin: 0;
  text-wrap: pretty;
}
.aa-body--lg { font-size: 16px; line-height: 1.6; }
.aa-body--xl { font-size: 20px; line-height: 1.5; }

/* ── Buttons ────────────────────────────────────────────────── */
.aa-btn {
  font-family: var(--aa-font); font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  text-decoration: none;
}
.aa-btn--primary {
  color: white;
  background: var(--aa-grad);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: none;
  padding: 14px 24px; font-size: 15px;
  box-shadow: 0 0 32px rgba(179, 79, 255, 0.45);
  transition: background-position .4s ease, transform .15s ease;
}
.aa-btn--primary:hover { background-position: 100% 50%; }
.aa-btn--ghost {
  color: var(--aa-fg);
  background: transparent;
  border: 1px solid var(--aa-line-3);
  padding: 14px 22px; font-size: 15px;
}
.aa-btn--lg { padding: 16px 28px; font-size: 16px; }
.aa-btn--lg.aa-btn--primary { box-shadow: 0 0 40px rgba(179, 79, 255, 0.5); }

/* ── Hero ───────────────────────────────────────────────────── */
.aa-hero {
  position: relative;
  min-height: 920px;
  padding: 120px 0 80px;
  background: var(--aa-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--aa-line);
}
.aa-hero__backdrop {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.aa-hero__glow {
  position: absolute; width: 760px; height: 760px;
  filter: blur(8px);
  border-radius: 50%;
}
.aa-hero__glow--p {
  top: -240px; left: -120px;
  background: radial-gradient(closest-side, rgba(127,0,255,0.42), rgba(127,0,255,0) 70%);
  animation: aaGlowDrift 18s ease-in-out infinite alternate;
}
.aa-hero__glow--c {
  bottom: -260px; right: -160px;
  width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(79,172,254,0.36), rgba(79,172,254,0) 70%);
  animation: aaGlowDrift2 22s ease-in-out infinite alternate;
}
.aa-hero__dots {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(180,160,240,0.18) 0.8px, transparent 0.8px);
  background-size: 44px 44px;
}
.aa-hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 70%, transparent 0%, var(--aa-bg) 85%);
}
.aa-hero__content {
  position: relative; z-index: 2;
}
.aa-hero__center {
  max-width: 1180px; margin: 40px auto 0; text-align: center;
}
.aa-eyebrow-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--aa-line-2);
  background: rgba(255, 255, 255, 0.02);
}
.aa-eyebrow-tag__dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--aa-grad-purple);
  box-shadow: 0 0 10px rgba(225, 0, 255, 0.7);
}
.aa-lede {
  font-family: var(--aa-font); font-size: 20px; line-height: 1.5;
  color: var(--aa-fg-dim); max-width: 680px; margin: 28px auto 0;
  text-wrap: pretty;
}
.aa-hero__ctas {
  display: flex; gap: 14px; justify-content: center; margin-top: 40px;
  flex-wrap: wrap;
}
.aa-hero__demo {
  max-width: 1120px; margin: 76px auto 0; position: relative;
}
.aa-hero__demo-floor {
  position: absolute; left: 15%; right: 15%; bottom: -40px; height: 140px;
  background: radial-gradient(closest-side, rgba(179,79,255,0.32), rgba(79,172,254,0) 70%);
  filter: blur(20px); pointer-events: none;
}

/* Ask frame */
.aa-ask {
  position: relative;
  background: linear-gradient(180deg, rgba(20,16,32,0.92) 0%, rgba(14,12,22,0.96) 100%);
  border: 1px solid var(--aa-line-2);
  border-radius: 14px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(180, 160, 240, 0.05),
    0 0 80px rgba(127, 0, 255, 0.18);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.aa-ask__header {
  padding: 12px 18px; border-bottom: 1px solid var(--aa-line);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
}
.aa-ask__header-left { display: flex; align-items: center; gap: 10px; }
.aa-ask__lights { display: flex; gap: 6px; }
.aa-ask__lights span {
  width: 7px; height: 7px; border-radius: 999px;
  background: rgba(180, 160, 240, 0.25);
}
.aa-ask__lights span:first-child { background: #9bd1ff; }
.aa-ask__body {
  display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 380px;
}
.aa-ask__col {
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.aa-ask__col--question { border-right: 1px solid var(--aa-line); }
.aa-ask__question-text {
  font-family: var(--aa-font); font-size: 22px; line-height: 1.3;
  color: var(--aa-fg); letter-spacing: -0.01em;
  min-height: 90px;
}
.aa-cursor {
  display: inline-block; width: 2px; height: 22px; margin-left: 2px;
  background: var(--aa-accent); vertical-align: text-top;
  animation: aaBlink 0.9s steps(2) infinite;
}
.aa-ask__spacer { flex: 1; }
.aa-ask__pills {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.aa-ask__row {
  display: flex; justify-content: space-between; align-items: center;
}
.aa-reveal {
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
}
.aa-reveal.is-on { opacity: 1; transform: translateY(0); }
.aa-reveal--d1 { transition-delay: 0s; }
.aa-reveal--d2 { transition-delay: .1s; }
.aa-reveal--d3 { transition-delay: .2s; }

.aa-summary {
  font-family: var(--aa-font); font-size: 15px; line-height: 1.45;
  color: var(--aa-fg);
}
.aa-summary .down { color: #ff8bd1; }
.aa-summary .neutral { color: var(--aa-fg); }
.aa-summary .up { color: #9bd1ff; }

.aa-provenance {
  padding-top: 14px;
  border-top: 1px dashed var(--aa-line-2);
  display: flex; flex-direction: column; gap: 10px;
}
.aa-provenance__links { display: flex; gap: 18px; margin-top: 4px; }
.aa-provenance__links a {
  font-family: var(--aa-mono); font-size: 11px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.aa-provenance__links a.purple { color: var(--aa-accent); }
.aa-provenance__links a.cyan { color: #9bd1ff; }

/* Variance bars (hero + demo) */
.aa-bars {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--aa-line);
  border-radius: 8px;
  padding: 14px 16px;
}
.aa-bars__head {
  display: flex; justify-content: space-between; margin-bottom: 12px;
}
.aa-bars__row {
  display: grid; grid-template-columns: 120px 1fr 56px;
  align-items: center; gap: 10px;
  font-family: var(--aa-mono); font-size: 10.5px;
  margin-bottom: 6px;
}
.aa-bars__row:last-child { margin-bottom: 0; }
.aa-bars__row--compact { grid-template-columns: 92px 1fr 40px; font-size: 10px; gap: 8px; margin-bottom: 5px; }
.aa-bars__label { color: var(--aa-fg-dim); }
.aa-bars__track {
  position: relative; height: 12px; background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
}
.aa-bars__row--compact .aa-bars__track { height: 10px; }
.aa-bars__zero {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--aa-line-2);
}
.aa-bars__fill {
  position: absolute; top: 1px; bottom: 1px; border-radius: 1px; opacity: 0.85;
}
.aa-bars__val { text-align: right; }
.aa-bars__val.up { color: #79c4ff; }
.aa-bars__val.down { color: #ff8bd1; }

/* ── Section frame ──────────────────────────────────────────── */
.aa-section { padding: 120px 0; background: var(--aa-bg); position: relative; }
.aa-section--card {
  background: var(--aa-card);
  border-top: 1px solid var(--aa-line);
  border-bottom: 1px solid var(--aa-line);
}
.aa-section--top-rule { border-top: 1px solid var(--aa-line); }

.aa-twocol {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: flex-end; margin-bottom: 56px;
}
.aa-twocol--balanced { grid-template-columns: 1fr 1fr; }

/* ── Problem ────────────────────────────────────────────────── */
.aa-grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--aa-line);
  border: 1px solid var(--aa-line);
  border-radius: 8px; overflow: hidden;
}
.aa-cell {
  background: var(--aa-bg); padding: 32px 28px 36px;
}
.aa-cell h3 { font-size: 22px; line-height: 1.25; }

/* ── Demo cards ─────────────────────────────────────────────── */
.aa-demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.aa-demo-card {
  background: var(--aa-card);
  border: 1px solid var(--aa-line-2);
  border-radius: 12px;
  padding: 24px 24px 22px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.aa-demo-card::before {
  content: ""; position: absolute; top: -80px; right: -80px;
  width: 200px; height: 200px;
  pointer-events: none; filter: blur(6px);
  background: radial-gradient(closest-side, rgba(127, 0, 255, 0.18), transparent 70%);
}
.aa-demo-card.is-cyan::before {
  background: radial-gradient(closest-side, rgba(79, 172, 254, 0.16), transparent 70%);
}
.aa-demo-card__head {
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.aa-demo-card__q {
  font-family: var(--aa-font); font-size: 22px; line-height: 1.25;
  letter-spacing: -0.015em; color: var(--aa-fg);
  position: relative;
}
.aa-demo-card__q::before { content: "›"; color: #e9a3ff; margin-right: 8px; }
.aa-demo-card__panel {
  padding: 14px 16px; background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--aa-line); border-radius: 8px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.aa-demo-card__answer {
  font-family: var(--aa-font); font-size: 14.5px; line-height: 1.5;
  color: var(--aa-fg); margin: 0; text-wrap: pretty;
}
.aa-demo-card__receipts {
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.aa-demo-card__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.aa-toggle {
  background: transparent; border: 1px solid var(--aa-line-2);
  color: var(--aa-fg-dim); cursor: pointer;
  padding: 8px 12px; border-radius: 6px;
  font-family: var(--aa-mono); font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
}
.aa-toggle__caret { transition: transform .2s; display: inline-block; }
.aa-toggle[aria-expanded="true"] .aa-toggle__caret { transform: rotate(90deg); }
.aa-code {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--aa-line); border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--aa-mono); font-size: 11.5px; color: #c0d8ff;
  line-height: 1.55; white-space: pre-wrap; margin: 0;
}
.aa-code__comment { color: #e9a3ff; }
.aa-code[hidden] { display: none; }

/* Grouped bar chart */
.aa-grouped {
  display: flex; flex-direction: column; gap: 8px;
}
.aa-grouped__bars {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; height: 110px; padding-bottom: 4px;
  border-bottom: 1px solid var(--aa-line-2);
}
.aa-grouped__group {
  flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.aa-grouped__pair {
  display: flex; gap: 3px; align-items: flex-end; height: 100px;
}
.aa-grouped__bar { width: 14px; border-radius: 2px 2px 0 0; }
.aa-grouped__bar--a { background: rgba(180, 160, 240, 0.35); }
.aa-grouped__bar--b { background: linear-gradient(180deg, #b34fff, #7f00ff); }
.aa-grouped__labels {
  display: flex; justify-content: space-between; gap: 14px;
  font-family: var(--aa-mono); font-size: 9.5px; color: var(--aa-fg-faint);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.aa-grouped__labels span { flex: 1; text-align: center; }

/* Cohort card */
.aa-cohort { display: flex; flex-direction: column; gap: 10px; }
.aa-cohort__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: rgba(127, 0, 255, 0.08);
  border: 1px solid rgba(179, 79, 255, 0.30); border-radius: 6px;
}
.aa-cohort__title { font-family: var(--aa-font); font-size: 13px; color: var(--aa-fg); }
.aa-cohort__attrs {
  display: grid; grid-template-columns: 1fr; gap: 4px;
}
.aa-cohort__attr {
  display: flex; justify-content: space-between;
  padding: 4px 0; border-bottom: 1px dashed var(--aa-line);
  font-family: var(--aa-mono); font-size: 10.5px;
}
.aa-cohort__attr span:first-child { color: var(--aa-fg-faint); }
.aa-cohort__attr span:last-child { color: var(--aa-fg-dim); }
.aa-cohort__count {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px;
}
.aa-cohort__count strong {
  font-family: var(--aa-font); font-size: 22px; font-weight: 500;
  color: var(--aa-fg); letter-spacing: -0.02em;
}

/* Schedule tile */
.aa-sched {
  padding: 14px 16px; background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--aa-line-2); border-radius: 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.aa-sched__head { display: flex; align-items: center; gap: 10px; }
.aa-sched__icon {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--aa-grad-purple);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--aa-mono); font-size: 11px; font-weight: 600;
}
.aa-sched__title { font-family: var(--aa-font); font-size: 13px; color: var(--aa-fg); }
.aa-sched__kv {
  display: grid; grid-template-columns: 90px 1fr; row-gap: 4px; column-gap: 10px;
  font-family: var(--aa-mono); font-size: 10.5px;
}
.aa-sched__kv span:nth-child(odd) { color: var(--aa-fg-faint); }
.aa-sched__kv span:nth-child(even) { color: var(--aa-fg-dim); }
.aa-sched__foot {
  margin-top: 4px; padding-top: 10px;
  border-top: 1px dashed var(--aa-line-2);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--aa-mono); font-size: 10px; color: var(--aa-fg-faint);
}
.aa-sched__dot {
  width: 6px; height: 6px; border-radius: 999px; background: #79c4ff;
  box-shadow: 0 0 8px rgba(121, 196, 255, 0.6);
}

/* ── Architecture ───────────────────────────────────────────── */
.aa-arch-wash {
  position: absolute; top: 20%; left: 50%; width: 900px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(127,0,255,0.18), rgba(79,172,254,0.12) 50%, transparent 80%);
  filter: blur(20px); pointer-events: none;
}
.aa-arch-side {
  display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px;
}
.aa-arch-side__left, .aa-arch-side__right {
  display: flex; align-items: center; gap: 10px;
}
.aa-arch-side__right { justify-content: flex-end; }
.aa-arch-side__rule { width: 22px; height: 1px; }
.aa-arch-side__rule--c { background: #4facfe; }
.aa-arch-side__rule--p { background: #b34fff; }

.aa-arch { position: relative; }
.aa-arch__rail {
  position: absolute; left: 5%; right: 5%; top: 38px; height: 2px;
  background: linear-gradient(90deg, #00f2fe 0%, #4facfe 25%, #b34fff 50%, #e100ff 75%, #7f00ff 100%);
  opacity: 0.55; border-radius: 1px;
}
.aa-arch__pulse {
  position: absolute; top: 36px; left: 0; right: 0; height: 6px;
  pointer-events: none; overflow: hidden;
}
.aa-arch__pulse::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 60px; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, white, transparent);
  opacity: 0.6; filter: blur(2px);
  animation: aaRail 6s linear infinite;
}
.aa-arch__layers {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  position: relative;
}
.aa-arch__layer {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.aa-arch__node-wrap {
  position: relative; width: 100%; height: 76px;
  display: flex; justify-content: center;
}
.aa-arch__node {
  width: 18px; height: 18px; border-radius: 999px;
  margin-top: 28px; border: 2px solid var(--aa-bg);
}
.aa-arch__node--data {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  box-shadow: 0 0 18px rgba(79, 172, 254, 0.45);
}
.aa-arch__node--agent {
  background: linear-gradient(135deg, #7f00ff, #e100ff);
  box-shadow: 0 0 18px rgba(225, 0, 255, 0.45);
}
.aa-arch__node--middle {
  width: 26px; height: 26px; margin-top: 24px;
  background: linear-gradient(135deg, #4facfe 0%, #b34fff 50%, #e100ff 100%);
  box-shadow: 0 0 36px rgba(179, 79, 255, 0.55);
}
.aa-arch__layer h4 {
  font-family: var(--aa-font); font-size: 18px; font-weight: 500;
  color: var(--aa-fg); margin: 4px 0 0; letter-spacing: -0.01em;
}
.aa-arch__layer p {
  font-family: var(--aa-font); font-size: 13px; line-height: 1.5;
  color: var(--aa-fg-dim); margin: 8px 0 0; text-wrap: pretty;
}

.aa-arch-punch {
  margin-top: 36px; padding: 16px 22px;
  border: 1px solid var(--aa-line-2);
  background: rgba(255, 255, 255, 0.02); border-radius: 8px;
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
}
.aa-arch-punch__icon {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--aa-grad-purple);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aa-arch-punch__icon span {
  width: 10px; height: 10px; border-radius: 999px; background: white;
}
.aa-arch-punch__main {
  display: flex; align-items: center; gap: 14px;
}
.aa-arch-punch__title {
  font-family: var(--aa-font); font-size: 15px; color: var(--aa-fg);
}
.aa-arch-punch__sub {
  font-family: var(--aa-mono); font-size: 11px; color: var(--aa-fg-faint);
  margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ── Sources ────────────────────────────────────────────────── */
.aa-source-group {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 24px 0; border-top: 1px solid var(--aa-line);
}
.aa-source-group__label { display: flex; flex-direction: column; gap: 6px; }
.aa-source-group__note {
  font-family: var(--aa-font); font-size: 12px; color: var(--aa-fg-quiet);
  line-height: 1.4; margin-top: 4px; max-width: 200px;
}
.aa-source-group__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.aa-connector {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--aa-line-2);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
}
.aa-connector--soon { background: rgba(255, 255, 255, 0.01); opacity: 0.7; }
.aa-connector__mono {
  width: 30px; height: 30px; border-radius: 6px;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--aa-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em; flex-shrink: 0;
}
.aa-connector__icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--aa-line-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aa-connector__icon img { width: 18px; height: 18px; display: block; }
.aa-connector__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.aa-connector__name {
  font-family: var(--aa-font); font-size: 13px; font-weight: 500;
  color: var(--aa-fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aa-connector__status {
  font-family: var(--aa-mono); font-size: 9.5px; color: #9bd1ff;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.aa-connector--soon .aa-connector__status { color: var(--aa-fg-faint); }

.aa-source-foot {
  margin-top: 32px; padding: 18px 22px; border-top: 1px solid var(--aa-line);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--aa-mono); font-size: 11px; color: var(--aa-fg-faint);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ── Surfaces ───────────────────────────────────────────────── */
.aa-surfaces {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--aa-line);
  border: 1px solid var(--aa-line); border-radius: 8px; overflow: hidden;
}
.aa-surface {
  background: var(--aa-card); padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 16px;
}
.aa-surface__head {
  display: flex; justify-content: space-between; align-items: center;
}
.aa-surface__thumb {
  width: 100%; height: 120px;
  background: linear-gradient(180deg, rgba(20,16,32,0.6), rgba(14,12,22,0.85));
  border: 1px solid var(--aa-line); border-radius: 8px;
  padding: 12px; overflow: hidden; position: relative;
}
.aa-surface h3 {
  font-family: var(--aa-font); font-weight: 600; font-size: 22px;
  color: var(--aa-fg); margin: 0; letter-spacing: -0.02em;
}
.aa-surface p {
  font-family: var(--aa-font); font-size: 14px; line-height: 1.55;
  color: var(--aa-fg-dim); margin: 8px 0 0; text-wrap: pretty;
}

/* Surface thumb specifics */
.aa-th-ask { display: flex; flex-direction: column; gap: 6px; }
.aa-th-ask__top { display: flex; align-items: center; gap: 6px; }
.aa-th-ask__dot { width: 6px; height: 6px; border-radius: 999px; background: #b34fff; }
.aa-th-ask__bar {
  height: 8px; flex: 1;
  background: linear-gradient(90deg, rgba(180,160,240,0.4), rgba(180,160,240,0.05));
  border-radius: 2px;
}
.aa-th-ask__bubble {
  padding: 8px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--aa-line); border-radius: 4px;
  display: flex; flex-direction: column; gap: 5px;
}
.aa-th-ask__line1 { height: 5px; width: 85%; background: rgba(255,255,255,0.18); border-radius: 1px; }
.aa-th-ask__line2 { height: 5px; width: 70%; background: rgba(255,255,255,0.10); border-radius: 1px; }
.aa-th-ask__chips { display: flex; gap: 4px; margin-top: 4px; }
.aa-th-ask__chips span {
  height: 10px; border-radius: 999px;
}
.aa-th-ask__chips span:first-child { width: 36px; background: rgba(179,79,255,0.25); border: 1px solid rgba(179,79,255,0.4); }
.aa-th-ask__chips span:last-child { width: 30px; background: rgba(79,172,254,0.25); border: 1px solid rgba(79,172,254,0.4); }

.aa-th-dash { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; height: 100%; }
.aa-th-dash > div {
  background: rgba(255,255,255,0.02); border: 1px solid var(--aa-line);
  border-radius: 4px; position: relative; overflow: hidden;
}
.aa-th-dash svg { width: 100%; height: 100%; }
.aa-th-dash__bars {
  display: flex; align-items: flex-end; height: 100%; gap: 2px; padding: 4px;
}
.aa-th-dash__bars span { flex: 1; background: rgba(180,160,240,0.3); }
.aa-th-dash__bars span:nth-child(5) { background: #4facfe; }
.aa-th-dash__kpi {
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; height: 100%;
}
.aa-th-dash__kpi strong { font-family: var(--aa-font); font-size: 18px; color: #e9a3ff; font-weight: 500; }
.aa-th-dash__kpi small { font-family: var(--aa-mono); font-size: 7px; color: var(--aa-fg-faint); }
.aa-th-dash__list { padding: 4px; display: flex; flex-direction: column; gap: 2px; }
.aa-th-dash__list span { height: 3px; background: rgba(180,160,240,0.3); border-radius: 1px; }

.aa-th-rep { display: flex; gap: 8px; height: 100%; }
.aa-th-rep__card {
  flex: 1; background: rgba(255,255,255,0.03);
  border: 1px solid var(--aa-line); border-radius: 4px;
  padding: 6px; display: flex; flex-direction: column; gap: 3px;
}
.aa-th-rep__card:nth-child(1) { transform: translateY(0) rotate(1.5deg); }
.aa-th-rep__card:nth-child(2) { transform: translateY(4px) rotate(0deg); }
.aa-th-rep__card:nth-child(3) { transform: translateY(8px) rotate(-1.5deg); }
.aa-th-rep__card span:nth-child(1) { height: 4px; width: 70%; background: rgba(255,255,255,0.2); }
.aa-th-rep__card span:nth-child(2) { height: 3px; width: 90%; background: rgba(255,255,255,0.08); }
.aa-th-rep__card span:nth-child(3) { height: 3px; width: 60%; background: rgba(255,255,255,0.08); }
.aa-th-rep__card span:nth-child(4) { flex: 1; }
.aa-th-rep__card span:nth-child(5) { height: 3px; width: 32px; background: rgba(179,79,255,0.4); }

.aa-th-per { display: flex; flex-direction: column; gap: 6px; }
.aa-th-per__hero {
  padding: 6px 8px; border: 1px solid rgba(179,79,255,0.4);
  background: rgba(179,79,255,0.08); border-radius: 4px;
  display: flex; align-items: center; gap: 6px;
}
.aa-th-per__hero > span:nth-child(1) {
  width: 8px; height: 8px; border-radius: 999px; background: var(--aa-grad-purple);
}
.aa-th-per__hero > span:nth-child(2) {
  height: 4px; flex: 1; background: rgba(180,160,240,0.3);
}
.aa-th-per__hero > span:nth-child(3) { font-family: var(--aa-mono); font-size: 7px; color: #e9a3ff; }
.aa-th-per__row {
  padding: 4px 8px; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.02); border-radius: 3px;
}
.aa-th-per__row > span:nth-child(1) { width: 5px; height: 5px; border-radius: 999px; background: rgba(180,160,240,0.4); }
.aa-th-per__row > span:nth-child(2) { height: 3px; flex: 1; background: rgba(180,160,240,0.15); }
.aa-th-per__row > span:nth-child(3) { font-family: var(--aa-mono); font-size: 7px; color: var(--aa-fg-faint); }

.aa-th-know { display: flex; gap: 6px; height: 100%; align-items: flex-start; }
.aa-th-know__doc {
  flex: 1; height: 90px; background: rgba(255,255,255,0.025);
  border: 1px solid var(--aa-line); border-radius: 4px;
  padding: 6px; display: flex; flex-direction: column; gap: 3px;
}
.aa-th-know__doc span:nth-child(1) { height: 3px; width: 60%; background: rgba(255,255,255,0.18); }
.aa-th-know__doc.is-active span:nth-child(1) { background: #4facfe; }
.aa-th-know__doc span:nth-child(2),
.aa-th-know__doc span:nth-child(3),
.aa-th-know__doc span:nth-child(4) { height: 2px; background: rgba(255,255,255,0.10); }
.aa-th-know__doc span:nth-child(2) { width: 85%; }
.aa-th-know__doc span:nth-child(3) { width: 70%; }
.aa-th-know__doc span:nth-child(4) { width: 90%; }
.aa-th-know__doc small {
  margin-top: auto;
  font-family: var(--aa-mono); font-size: 7px; color: var(--aa-fg-faint);
}

.aa-th-sem { display: flex; flex-direction: column; gap: 5px; }
.aa-th-sem__row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; background: rgba(255,255,255,0.02); border-radius: 3px;
}
.aa-th-sem__row > span:nth-child(1) {
  width: 6px; height: 6px; border-radius: 1.5px;
}
.aa-th-sem__row.is-approved > span:nth-child(1) { background: #79c4ff; }
.aa-th-sem__row.is-review > span:nth-child(1) { background: #e9a3ff; }
.aa-th-sem__name { font-family: var(--aa-mono); font-size: 9px; color: var(--aa-fg-dim); flex: 1; }
.aa-th-sem__status { font-family: var(--aa-mono); font-size: 7px; color: var(--aa-fg-faint); text-transform: uppercase; }

/* ── Defensibility / Inspector ──────────────────────────────── */
.aa-inspector {
  background: var(--aa-bg);
  border: 1px solid var(--aa-line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.aa-inspector__head {
  padding: 12px 18px; border-bottom: 1px solid var(--aa-line);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}
.aa-inspector__head-left { display: flex; align-items: center; gap: 10px; }
.aa-inspector__icon {
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--aa-grad-purple);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 11px; font-family: var(--aa-mono); font-weight: 600;
}
.aa-inspector__body {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--aa-line);
}
.aa-inspector__col {
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
}
.aa-inspector__col:first-child { border-right: 1px solid var(--aa-line); }
.aa-inspector__items { display: flex; flex-direction: column; gap: 8px; }
.aa-inspector__item--canonical {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  padding: 6px 10px; background: rgba(127, 0, 255, 0.05);
  border: 1px solid rgba(179, 79, 255, 0.20); border-radius: 6px;
  align-items: center;
}
.aa-inspector__item--source {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px;
  padding: 6px 10px; background: rgba(79, 172, 254, 0.05);
  border: 1px solid rgba(79, 172, 254, 0.20); border-radius: 6px;
  align-items: center;
}
.aa-inspector__name { font-family: var(--aa-font); font-size: 13px; color: var(--aa-fg); }
.aa-inspector__meta { font-family: var(--aa-mono); font-size: 10px; color: var(--aa-fg-faint); }
.aa-inspector__meta--cyan { color: #9bd1ff; }
.aa-inspector__sql {
  padding: 18px 22px; background: rgba(0, 0, 0, 0.25);
}
.aa-inspector__sql-label { margin-bottom: 8px; display: block; }
.aa-inspector__sql pre {
  margin: 0; font-family: var(--aa-mono); font-size: 11.5px; line-height: 1.6;
  color: #c0d8ff; white-space: pre-wrap;
}

.aa-trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--aa-line); border: 1px solid var(--aa-line);
  margin-top: 56px; border-radius: 8px; overflow: hidden;
}
.aa-trust__cell {
  background: var(--aa-bg); padding: 24px 22px 26px;
}
.aa-trust__cell h3 {
  font-family: var(--aa-font); font-weight: 500; font-size: 19px;
  color: var(--aa-fg); margin: 10px 0; letter-spacing: -0.015em;
}
.aa-trust__cell p {
  font-family: var(--aa-font); font-size: 13.5px; line-height: 1.55;
  color: var(--aa-fg-dim); margin: 0; text-wrap: pretty;
}

/* ── Social proof ───────────────────────────────────────────── */
.aa-proof {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center;
}
.aa-logos {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.aa-logos__cell {
  height: 56px; border: 1px dashed var(--aa-line-2); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--aa-mono); font-size: 11.5px; color: var(--aa-fg-faint);
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.015);
}
.aa-logos__note {
  margin-top: 14px; font-family: var(--aa-mono); font-size: 11px;
  color: var(--aa-fg-quiet); letter-spacing: 0.05em;
}
.aa-quote {
  padding: 32px 36px; border: 1px solid var(--aa-line-2);
  border-radius: 12px; background: var(--aa-bg);
  position: relative; overflow: hidden;
}
.aa-quote::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(127,0,255,0.16), transparent 70%);
  pointer-events: none;
}
.aa-quote__text {
  font-family: var(--aa-font); font-size: 30px; line-height: 1.25;
  letter-spacing: -0.02em; color: var(--aa-fg);
  position: relative; text-wrap: balance;
}
.aa-quote__text .q { color: var(--aa-fg-faint); }
.aa-quote__author {
  margin-top: 28px; display: flex; align-items: center; gap: 14px;
  padding-top: 22px; border-top: 1px solid var(--aa-line);
}
.aa-quote__avatar {
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--aa-grad);
}
.aa-quote__name { font-family: var(--aa-font); font-size: 14px; color: var(--aa-fg); }
.aa-quote__title {
  font-family: var(--aa-mono); font-size: 11px; color: var(--aa-fg-faint);
  letter-spacing: 0.05em; text-transform: uppercase; margin-top: 2px;
}
.aa-quote__spacer { flex: 1; }

/* ── Closing CTA ────────────────────────────────────────────── */
.aa-close {
  position: relative; padding: 140px 0 120px;
  background: var(--aa-bg); overflow: hidden;
}
.aa-close__wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(127,0,255,0.28), transparent 60%),
    radial-gradient(ellipse at 75% 65%, rgba(79,172,254,0.22), transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.aa-close__divider {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--aa-line-3), transparent);
}
.aa-close__inner { position: relative; text-align: center; }
.aa-close__logo {
  display: flex; justify-content: center; margin-bottom: 36px;
}
.aa-close__logo > span {
  filter: drop-shadow(0 0 40px rgba(179, 79, 255, 0.55));
  display: inline-flex;
}
.aa-close__lede {
  font-family: var(--aa-font); font-size: 18px; line-height: 1.55;
  color: var(--aa-fg-dim); max-width: 620px; margin: 28px auto 0;
  text-wrap: pretty;
}
.aa-close__ctas {
  display: flex; gap: 14px; justify-content: center; margin-top: 44px;
  flex-wrap: wrap;
}
.aa-close__meta {
  margin-top: 48px; display: inline-flex; align-items: center; gap: 22px;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--aa-line-2); background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap; justify-content: center;
}
.aa-close__meta-item { display: flex; align-items: center; gap: 8px; }
.aa-close__meta-item span { font-family: var(--aa-font); font-size: 13px; color: var(--aa-fg); }

/* ── AA Logo ────────────────────────────────────────────────── */
.aa-logo { display: block; flex-shrink: 0; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes aaBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes aaGlowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes aaGlowDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -20px) scale(1.05); }
}
@keyframes aaRail {
  0%   { transform: translateX(0%); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.8; }
  100% { transform: translateX(calc(100vw + 60px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aa-hero__glow--p, .aa-hero__glow--c, .aa-arch__pulse::after { animation: none; }
  .aa-cursor { animation: none; opacity: 1; }
  .aa-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .aa-display--xxl { font-size: 56px; }
  .aa-display--xl { font-size: 52px; }
  .aa-display--lg { font-size: 40px; }
  .aa-display--md { font-size: 36px; }
  .aa-twocol { grid-template-columns: 1fr; gap: 24px; }
  .aa-arch__layers { grid-template-columns: repeat(3, 1fr); }
  .aa-arch__rail, .aa-arch__pulse { display: none; }
  .aa-trust { grid-template-columns: repeat(2, 1fr); }
  .aa-proof { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .aa-container { padding: 0 28px; }
  .aa-hero { min-height: 0; padding: 96px 0 64px; }
  .aa-display--xxl { font-size: 42px; }
  .aa-display--xl { font-size: 40px; }
  .aa-display--lg { font-size: 32px; }
  .aa-display--md { font-size: 28px; }
  .aa-ask__body { grid-template-columns: 1fr; }
  .aa-ask__col--question { border-right: none; border-bottom: 1px solid var(--aa-line); }
  .aa-grid3, .aa-demo-grid, .aa-surfaces, .aa-trust { grid-template-columns: 1fr; }
  .aa-arch__layers { grid-template-columns: 1fr 1fr; }
  .aa-source-group { grid-template-columns: 1fr; gap: 12px; }
  .aa-source-foot { flex-direction: column; gap: 8px; align-items: flex-start; }
  .aa-section { padding: 80px 0; }
  .aa-close { padding: 96px 0; }
}
