/* ==========================================================================
   YieldVector OS — Page 3: Decision AI (ai-intelligence.css)
   Dedicated stylesheet preserving shared header, layout, and footer tokens.
   ========================================================================== */

.ambient-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 46% 36% at 10% 12%, rgba(196, 75, 26, 0.12) 0%, rgba(196, 75, 26, 0) 72%),
    radial-gradient(ellipse 50% 40% at 88% 16%, rgba(31, 91, 99, 0.14) 0%, rgba(31, 91, 99, 0) 74%),
    radial-gradient(ellipse 44% 38% at 22% 52%, rgba(60, 85, 112, 0.10) 0%, rgba(60, 85, 112, 0) 72%),
    radial-gradient(ellipse 48% 36% at 82% 58%, rgba(196, 75, 26, 0.12) 0%, rgba(196, 75, 26, 0) 74%),
    radial-gradient(ellipse 52% 40% at 32% 88%, rgba(31, 91, 99, 0.14) 0%, rgba(31, 91, 99, 0) 75%),
    radial-gradient(ellipse 42% 34% at 84% 92%, rgba(60, 85, 112, 0.10) 0%, rgba(60, 85, 112, 0) 72%);
}

/* Active navigation lock */
.nav-menu a.is-current {
  position: relative;
  color: var(--brand-molten);
  font-weight: 700;
}

.nav-menu a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: var(--brand-molten);
  border-radius: 1px;
}

/* Page main vertical rhythm */
.ai-main {
  padding: clamp(2.5rem, 4.5vw, 4rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.ai-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

/* Authentic Liquid Glass surface */
.ai-glass {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.42));
  backdrop-filter: blur(24px) saturate(165%);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  border: 1px solid rgba(31, 42, 60, 0.12);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    var(--glass-shadow);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

/* Hero split */
.ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  gap: clamp(1.75rem, 3.8vw, 3.25rem);
  align-items: center;
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 0 clamp(0.5rem, 1.2vw, 1rem);
}

.ai-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 2.95vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--ink-primary);
  margin: 0 0 1.2rem;
}

.accent-teal {
  color: var(--brand-teal);
}

.ai-hero-copy {
  max-width: 56ch;
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-body);
  margin: 0;
}

.ai-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ai-hero-visual svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
}

/* Shared section typography */
.section-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 2.15vw, 1.95rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.022em;
  color: var(--ink-primary);
  margin: 0 0 0.75rem;
}

.section-lead {
  font-family: var(--font-sans);
  font-size: 0.99rem;
  font-weight: 500;
  line-height: 1.62;
  color: var(--ink-body);
  max-width: 66ch;
  margin: 0;
}

/* Section 01: Top split + 2-column comparison */
.ai-contrast-top {
  display: grid;
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(31, 42, 60, 0.1);
}

.ai-contrast-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ai-contrast-visual svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
}

.compare-grid,
.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 2vw, 1.65rem);
}

.agents-grid {
  margin-top: 1.65rem;
}

.compare-col,
.agent-col {
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(31, 42, 60, 0.09);
  border-radius: var(--radius-md);
  padding: 1.45rem 1.55rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.compare-col--teal {
  border-top: 3px solid var(--brand-teal);
}

.compare-col--crimson {
  border-top: 3px solid rgba(220, 38, 38, 0.72);
}

.agent-col--molten {
  border-top: 3px solid var(--brand-molten);
}

.agent-col--teal {
  border-top: 3px solid var(--brand-teal);
}

.compare-col h3,
.agent-col h3 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  margin: 0 0 1.05rem;
}

/* Scannable point-by-point lists */
.ai-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ai-points li {
  position: relative;
  padding-left: 1.05rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.58;
  color: var(--ink-body);
}

.ai-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-teal);
}

.compare-col--crimson .ai-points li::before {
  background-color: rgba(220, 38, 38, 0.72);
}

.agent-col--molten .ai-points li::before {
  background-color: var(--brand-molten);
}

.ai-points strong {
  color: var(--ink-primary);
  font-weight: 700;
}

/* Section 03: 3-Stage Calibration */
.calibration-grid {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
  margin-top: 1.5rem;
}

.calibration-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.calibration-stage {
  border-left: 2.5px solid var(--ink-steel);
  padding: 0.15rem 0 0.15rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-body);
}

.calibration-stage--two {
  border-left-color: var(--brand-teal);
}

.calibration-stage--three {
  border-left-color: var(--status-ok);
}

.calibration-stage strong {
  color: var(--ink-primary);
  font-weight: 700;
}

.calibration-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.calibration-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

/* Section 04: Compact Governance Bar */
.governance-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem) clamp(1.6rem, 2.8vw, 2.35rem);
}

.governance-col h3 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
  margin: 0 0 0.45rem;
}

.governance-col p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.58;
  color: var(--ink-body);
  margin: 0;
}

.governance-col--right {
  border-left: 1px solid rgba(31, 42, 60, 0.12);
  padding-left: 2rem;
}

/* Handoff bar */
.next-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 2.2vw, 1.8rem) clamp(1.6rem, 2.8vw, 2.35rem);
}

.next-page-copy h3 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
  margin: 0 0 0.35rem;
}

.next-page-copy p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-body);
  max-width: 60ch;
  margin: 0;
}

.next-page-action {
  flex-shrink: 0;
}

/* Responsive locks */
@media (max-width: 960px) {
  .ai-hero,
  .ai-contrast-top,
  .compare-grid,
  .agents-grid,
  .calibration-grid {
    grid-template-columns: 1fr;
  }

  .ai-hero-visual,
  .ai-contrast-visual,
  .calibration-visual {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .governance-bar {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .governance-col--right {
    border-left: none;
    border-top: 1px solid rgba(31, 42, 60, 0.12);
    padding-left: 0;
    padding-top: 1.35rem;
  }

  .next-page-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === YVOS_LIQUID_GLASS_PAGE_V2 === */
.ambient-mesh {
  background-color: #EEF3F8;
  background-image:
    radial-gradient(ellipse 50% 40% at 88% 8%, rgba(31, 91, 99, 0.21) 0%, transparent 66%),
    radial-gradient(ellipse 50% 40% at 10% 24%, rgba(196, 75, 26, 0.145) 0%, transparent 68%),
    radial-gradient(ellipse 48% 38% at 84% 56%, rgba(60, 85, 112, 0.18) 0%, transparent 66%),
    radial-gradient(ellipse 50% 40% at 14% 84%, rgba(31, 91, 99, 0.18) 0%, transparent 68%);
}
