/* ============================================================
   ai-intelligence.css â€” Mastery Logistics Systems
   AI & Intelligence page-specific styles.
   Global styles live in style.css.
   Desktop styles first. Mobile overrides at the bottom.

   COMPONENT REUSE:
   - .banner â€” slim warm band component.
   - .feature / .feature--reverse â€” standard alternating two-column
     feature block.
   - .cta-banner â€” standard closing CTA.

   NEW COMPONENTS INTRODUCED HERE:
   - .video-placeholder â€” distinct from image placeholder; includes
     a copper play button overlay so it reads as video, not image.
   - .ai-hero â€” hero with video on the right side.
   - .chat â€” Leo chat visual used inside feature blocks (Sections
     3 and 4). Dark panel with user/bot message bubbles. Bot
     responses can include an embedded confirmation card.
   - .cards2 / .cards2__card â€” 2-card warm block for "How Leo
     works for you" with dark chat-style visuals on the cards.
   - .ci-vis â€” Custom Instructions card visual (user setting +
     Leo acknowledgement).
   - .mem-vis â€” Memories card visual (list of remembered defaults).
   - .multi-agent / .leo-stack â€” dark section: request bubble into
     the Leo pill, two-way connector, MasterMind chip container.
   - .cards3 â€” 3-card warm block for "Open by design" / Beyond
     Leo — three equal cards.

   PAGE STRUCTURE:
   1. Hero (dark, two-column with video right)
   2. Slim banner (light warm)
   3. Find Information feature (white, chat right)
   4. Take Action feature (white, alt â€” chat left)
   5. 2-card How Leo Works (light warm)
   6. Multi-agent forward-looking (dark)
   7. 3-card Open Platform (light warm)
   8. CTA banner (dark)
============================================================ */


/* ============================================================
   SHARED â€” VIDEO PLACEHOLDER COMPONENT
   Distinct from image placeholder. Has a copper play button to
   make clear it's a video, not an image. Used when an asset
   slot is for video content.
============================================================ */
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(252, 147, 101, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, #1a1a1a, #2a2320);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(252, 147, 101, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 147, 101, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.video-placeholder__play {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fc9365, #b25d42);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(178, 93, 66, 0.4);
}

.video-placeholder__play svg {
  color: var(--color-white);
  margin-left: 0.25rem;
}

.video-placeholder__label {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(252, 147, 101, 0.95);
  letter-spacing: 0.02em;
}

.video-placeholder__note {
  position: relative;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ============================================================
   SECTION 1 â€” HERO
   Dark. Two-column with video on the right.
============================================================ */
.ai-hero {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.ai-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(178, 93, 66, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.ai-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.ai-hero__content {
  max-width: 480px;
}

.ai-hero__content .eyebrow {
  color: var(--color-copper-light);
}

.ai-hero__headline {
  font-size: 3rem;
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.ai-hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 460px;
}

.ai-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ai-hero__media {
  position: relative;
  width: 100%;
}

.ai-hero__video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}


/* ============================================================
   SECTION 2 â€” SLIM BANNER
   Light warm. Same component as other capability pages.
============================================================ */
.banner {
  background: #faf6f3;
  padding: 1.75rem 0;
  border-top: 0.5px solid rgba(178, 93, 66, 0.12);
  border-bottom: 0.5px solid rgba(178, 93, 66, 0.12);
  text-align: center;
}

.banner__text {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

.banner__highlight {
  color: var(--color-copper);
}


/* ============================================================
   SECTIONS 3 & 4 â€” FIND INFORMATION + TAKE ACTION FEATURES
   White. Standard side-by-side feature block. Each has a Leo
   chat visual on one side.
============================================================ */
.feature {
  background: var(--color-white);
}

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature--reverse .feature__content {
  order: 2;
}

.feature--reverse .feature__media {
  order: 1;
}

.feature__content .eyebrow {
  color: var(--color-copper-dark);
  margin-bottom: 0.875rem;
}

.feature__heading {
  font-size: var(--font-size-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0.5rem 0 1.75rem;
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.feature__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
}

.feature__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(178, 93, 66, 0.12);
  color: var(--color-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature__media {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ----- LEO CHAT VISUAL ----- */
/* Confirmation card embedded inside a bot message (Section 4) */
/* ============================================================
   SECTION 5 â€” 2-CARD: HOW LEO WORKS FOR YOU
   Light warm. Two cards with dark chat-style visuals.
============================================================ */
.cards2 {
  background: #faf6f3;
}

.cards2__head {
  max-width: 680px;
  margin: 0 auto 2rem;
}

.cards2__head .eyebrow {
  color: var(--color-copper-dark);
}

.cards2__head h2 {
  color: var(--color-text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.625rem;
}

.cards2__head .text-lead {
  color: var(--color-text-secondary);
  margin: 0 auto;
  max-width: 580px;
}

.cards2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
}

.cards2__card {
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cards2__visual {
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem;
}

.cards2__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(252, 147, 101, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 147, 101, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.cards2__body {
  padding: 1.125rem 1.375rem 1.375rem;
}

.cards2__body h4 {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.cards2__body p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}


/* ----- CUSTOM INSTRUCTIONS CARD VISUAL ----- */
.ci-vis {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  width: 100%;
  max-width: 240px;
}

.ci-vis__msg {
  padding: 0.4375rem 0.6875rem;
  border-radius: 8px;
  font-size: 0.625rem;
  line-height: 1.4;
}

.ci-vis__msg--user {
  background: rgba(252, 147, 101, 0.2);
  color: var(--color-white);
  align-self: flex-end;
  border: 0.5px solid rgba(252, 147, 101, 0.35);
}

.ci-vis__msg--ack {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  align-self: flex-start;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.ci-vis__check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-copper-light);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* ----- MEMORIES CARD VISUAL ----- */
.mem-vis {
  position: relative;
  width: 100%;
  max-width: 240px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(252, 147, 101, 0.25);
  border-radius: 8px;
  padding: 0.6875rem 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.mem-vis__header {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(252, 147, 101, 0.85);
  font-weight: var(--weight-bold);
}

.mem-vis__item {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.85);
}

.mem-vis__icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(252, 147, 101, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(252, 147, 101, 0.95);
  flex-shrink: 0;
}


/* ============================================================
   SECTION 6 â€” MULTI-AGENT (dark, forward-looking)
   Centered eyebrow + h2 + sub above a hub-and-spoke diagram.
============================================================ */
.multi-agent {
  position: relative;
  background: #0a0a0a;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  overflow: hidden;
}

.multi-agent__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(178, 93, 66, 0.12), transparent 70%);
  pointer-events: none;
}

.multi-agent__head {
  position: relative;
  max-width: 780px;
  margin: 0 auto 2.25rem;
}

.multi-agent__head .eyebrow {
  color: var(--color-copper-light);
}

.multi-agent__heading {
  color: var(--color-white);
  font-size: clamp(1.625rem, 4vw, 2rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.025em;
  margin: 0.375rem 0 0.75rem;
  line-height: 1.15;
}

.multi-agent__sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 620px;
}

/* Leo-on-MasterMind stack: request bubble → Leo pill → two-way
   connector (context up, action down) → MasterMind container with
   the eight mode chips. Three chips carry a staggered highlight
   glow; static under prefers-reduced-motion. */
.leo-stack {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.leo-stack::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  width: 80%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(252, 147, 101, 0.12) 0%, rgba(178, 93, 66, 0.05) 45%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.leo-stack > * {
  position: relative;
  z-index: 1;
}

.leo-stack__request {
  display: inline-block;
  background: rgba(28, 19, 14, 0.92);
  border: 1px solid var(--color-copper);
  border-radius: 10px;
  color: var(--color-white);
  font-size: 0.78125rem;
  font-weight: var(--weight-medium);
  padding: 11px 18px;
}

.leo-stack__connector {
  width: 100%;
  height: 34px;
  display: block;
}

.leo-stack__connector line {
  stroke: rgba(178, 93, 66, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
}

.leo-stack__connector--two-way line {
  stroke: rgba(252, 147, 101, 0.7);
}

.leo-stack__arrow {
  fill: var(--color-copper);
}

.leo-stack__leo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 44px;
  border-radius: 12px;
  background: var(--gradient-copper);
  box-shadow: 0 0 26px rgba(252, 147, 101, 0.4);
}

.leo-stack__leo-name {
  font-size: 1.1875rem;
  font-weight: var(--weight-bold);
  color: var(--color-white);
}

.leo-stack__platform {
  border: 1px solid rgba(252, 147, 101, 0.5);
  border-radius: 16px;
  background: rgba(32, 21, 15, 0.72);
  padding: 22px 26px 26px;
  text-align: center;
}

.leo-stack__platform-name {
  font-size: 0.9375rem;
  font-weight: var(--weight-bold);
  color: var(--color-white);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.leo-stack__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.leo-stack__chip {
  background: rgba(20, 14, 11, 0.85);
  border: 1px solid rgba(252, 147, 101, 0.35);
  border-radius: 9px;
  color: var(--color-white);
  font-size: 0.71875rem;
  font-weight: var(--weight-semibold);
  padding: 9px 15px;
  white-space: nowrap;
}

.leo-stack__chip--highlight {
  animation: leoChipGlow 4.5s ease-in-out infinite;
}

.leo-stack__chip--h1 { animation-delay: 0s; }
.leo-stack__chip--h2 { animation-delay: 0.9s; }
.leo-stack__chip--h3 { animation-delay: 1.8s; }

@keyframes leoChipGlow {
  0%, 45%, 100% {
    border-color: rgba(252, 147, 101, 0.35);
    box-shadow: 0 0 0 rgba(252, 147, 101, 0);
  }
  15%, 30% {
    border-color: var(--color-copper);
    box-shadow: 0 0 14px rgba(252, 147, 101, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leo-stack__chip--highlight {
    animation: none;
    border-color: var(--color-copper);
  }
}


/* ============================================================
   SECTION 7 â€” 3-CARD: OPEN PLATFORM
   Light warm. Reframed around openness. "Bring Your Own AI"
   leads â€” lifted with a subtle gradient background.
============================================================ */
.cards3 {
  background: #faf6f3;
}

.cards3__head {
  max-width: 680px;
  margin: 0 auto 2rem;
}

.cards3__head .eyebrow {
  color: var(--color-copper-dark);
}

.cards3__head h2 {
  color: var(--color-text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.625rem;
}

.cards3__head .text-lead {
  color: var(--color-text-secondary);
  margin: 0 auto;
  max-width: 580px;
}

.cards3__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.125rem;
}

.cards3__card {
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 10px;
  padding: 1.5rem 1.625rem 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.cards3__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(252, 147, 101, 0.15), rgba(178, 93, 66, 0.28));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-copper);
}

.cards3__card h4 {
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin: 0;
  letter-spacing: -0.01em;
}

.cards3__card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}


/* ============================================================
   SECTION 8 â€” CTA BANNER
   Dark. Standard closing.
============================================================ */
.cta-banner {
  background: #0a0a0a;
  border-top: 0.5px solid #1f1f1f;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(178, 93, 66, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  margin-bottom: 1rem;
}


/* ============================================================
   RESPONSIVE â€” MOBILE OVERRIDES
============================================================ */
@media (max-width: 768px) {

  /* The slim strip is a single line of display copy that earns its
     place on a wide screen but reads as another wall of text on a
     phone. Hidden on mobile only; desktop is unchanged. */
  .banner {
    display: none;
  }

  /* Hero â€” single column */
  .ai-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Single column, with the CTA below the visual rather than above
     it. .ai-hero__actions is nested inside .ai-hero__content, so it
     cannot be ordered past .ai-hero__media on its own; display:
     contents lifts the copy's children into the hero grid so all five
     can be ordered together. The wrapper is a plain div, so nothing
     is lost from the accessibility tree.

     Row gap drops to 0 because it would otherwise apply between every
     line of copy, not just between the blocks. Each element's own
     margins space them, exactly as they do on desktop. */
  .ai-hero__inner {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .ai-hero__content {
    display: contents;
  }

  .ai-hero .eyebrow {
    order: 1;
  }

  .ai-hero__headline {
    order: 2;
    font-size: clamp(2.25rem, 9vw, 3rem);
  }

  .ai-hero__sub {
    order: 3;
  }

  .ai-hero__media {
    order: 4;
  }

  .ai-hero__actions {
    order: 5;
    margin-top: 2rem;
    flex-direction: column;
    align-items: stretch;
  }

  .ai-hero__actions > a {
    text-align: center;
    justify-content: center;
  }

  /* Banner */
  .banner {
    padding: 1.25rem 0;
  }

  /* Feature blocks â€” single column, visual above content */
  .feature__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature--reverse .feature__content,
  .feature--reverse .feature__media {
    order: initial;
  }

  .feature__media {
    order: 2;
  }

  .feature__content {
    order: 1;
  }

  /* 2-card grid */
  .cards2__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Leo stack â€” smaller heading, request, chips, and pill */
  .multi-agent__heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .leo-stack__request {
    font-size: 0.625rem;
    padding: 8px 12px;
  }

  .leo-stack__chip {
    font-size: 0.5625rem;
    padding: 7px 10px;
  }

  .leo-stack__leo {
    padding: 11px 30px;
  }

  .leo-stack__leo-name {
    font-size: 0.9375rem;
  }

  /* 3-card grid â€” collapse to single column on mobile */
  .cards3__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* CTA */
  .cta-banner__heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

}
