/* ==========================================================================
   IMESH ONE AGENT — page stylesheet
   --------------------------------------------------------------------------
   Loaded ONLY by imesh-one-agent.html.

   SCOPING RULES (do not break these):
   1. Every selector in this file is prefixed `.one-agent-`.
   2. Overrides of shared classes (.app-banner, .app-banner-content, ...) are
      always qualified by `.one-agent-banner` / `.one-agent-*` so they cannot
      reach any other page.
   3. This page does NOT load gobel.css. gobel.css redefines
      `.app-banner-wrapper` without the `padding-top: 78px` that clears the
      fixed 78px header for the split hero — adding it would push the hero
      copy underneath the navbar.

   The site has no CSS custom properties and no global `body { font-family }`,
   so every rule below declares `font-family: 'Roboto'` explicitly.

   Palette
     brand pink        #EC277B
     navy              #001F48
     navy gradient     linear-gradient(150.29deg, #001F48 26.26%, #092346 89.87%)
     accent blue       #277BEC
     heading ink       #252525 / #111827
     body ink          #374151
     danger            #FF5A5F
     success           #5DBB63
   ========================================================================== */


/* --------------------------------------------------------------------------
   Shared layout helpers
   -------------------------------------------------------------------------- */

.one-agent-container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Section heading block, matching .info-of-imesh-istio-content's type scale
   but usable on the dark sections too. */
.one-agent-head {
  text-align: center;
  margin: 0 auto 56px auto;
  max-width: 860px;
}

.one-agent-head h2 {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-size: 40px;
  line-height: 50px;
  color: #252525;
  margin: 0 0 10px 0;
}

.one-agent-head .one-agent-head-sub {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 26px;
  line-height: 36px;
  color: #111827;
  margin: 0 0 18px 0;
}

.one-agent-head p {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #374151;
  margin: 0;
}

/* Dark variant of the heading block (used by the lifecycle section). */
.one-agent-head--light h2,
.one-agent-head--light .one-agent-head-sub {
  color: #ffffff;
}

.one-agent-head--light p {
  color: rgba(255, 255, 255, 0.78);
}


/* --------------------------------------------------------------------------
   1. Hero — scoped overrides of the shared .app-banner split hero
   -------------------------------------------------------------------------- */

/* imesh-istio-platform.css pins .app-banner-wrapper to exactly
   calc(100vh - 78px). This hero carries an extra tagline line and would clip
   on shorter viewports, so relax it to a min-height. */
.one-agent-banner .app-banner-wrapper {
  height: auto;
  min-height: calc(100vh - 78px);
  padding: 150px 0 90px;
}

.one-agent-banner .app-banner-content h1 {
  line-height: 62px;
  max-width: 560px;
}

/* imesh-istio-platform.css hard-codes `width: 500px` on this paragraph,
   which overflows below ~540px viewport width. */
.one-agent-banner .app-banner-content p {
  width: 100%;
  max-width: 530px;
  margin: 0 0 20px 0;
}

.one-agent-hero-tagline {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: #ffffff;
  margin: 28px 0 40px 0;
}

/* The hero PNG is a mascot rendered on a PURE WHITE background, so it cannot
   sit directly on the navy gradient without reading as a pasted-in rectangle.
   It is presented as a deliberate white panel with a brand-coloured halo.

   Alternative if a circular crop is ever preferred instead of the panel:
     .one-agent-hero-visual img {
       aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
     }
*/
.one-agent-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.one-agent-hero-visual::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: -4%;
  bottom: -4%;
  background: radial-gradient(circle at 50% 45%,
      rgba(236, 39, 123, 0.30) 0%,
      rgba(39, 123, 236, 0.20) 45%,
      rgba(39, 123, 236, 0) 72%);
  filter: blur(46px);
  pointer-events: none;
}

.one-agent-hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 470px;
  height: auto;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  /* The source is 1280x720 with the mascot occupying only the middle third,
     so rendered at its native ratio it reads as a wide empty white strip.
     Crop to a square so the mascot fills the panel. */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 48% 52%;
}


/* --------------------------------------------------------------------------
   2. Why IMESH ONE AGENT — four feature cards
   -------------------------------------------------------------------------- */

.one-agent-why {
  width: 100%;
  background: #ffffff;
  padding: 90px 0 20px 0;
}

.one-agent-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.one-agent-why-card {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  border-radius: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.one-agent-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 31, 72, 0.10);
}

.one-agent-why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.75);
}

.one-agent-why-icon svg {
  width: 30px;
  height: 30px;
}

.one-agent-why-card h3 {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
  color: #111827;
  margin: 0 0 14px 0;
}

.one-agent-why-card p {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 27px;
  color: #374151;
  margin: 0;
}

.one-agent-why-punch {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 26px !important;
  color: #001F48 !important;
  margin: auto 0 0 0 !important;
  padding-top: 20px;
}

/* Card colour variants — deliberately NOT named .blue-card / .green-card etc,
   because those names are unprefixed and already defined several times over in
   css/solutions-section.css. */
.one-agent-card-blue {
  background: #f1f6ff;
  border: 1px solid #bdd3ff;
}

.one-agent-card-blue .one-agent-why-icon {
  color: #277BEC;
}

.one-agent-card-pink {
  background: #fff1f7;
  border: 1px solid #f8c3da;
}

.one-agent-card-pink .one-agent-why-icon {
  color: #EC277B;
}

.one-agent-card-purple {
  background: #f7f1fd;
  border: 1px solid #d9c0f0;
}

.one-agent-card-purple .one-agent-why-icon {
  color: #7c3aed;
}

.one-agent-card-green {
  background: #eef9f1;
  border: 1px solid #bfe3cb;
}

.one-agent-card-green .one-agent-why-icon {
  color: #2f9e44;
}


/* --------------------------------------------------------------------------
   3. What ONE AGENT manages — four content-left / image-right blocks
   -------------------------------------------------------------------------- */

.one-agent-platform {
  width: 100%;
  background: #ffffff;
  padding: 40px 0 20px 0;
}

.one-agent-platform-row {
  display: grid;
  /* The image gets the LARGER share: these are ~1536x1024 architecture
     diagrams whose labels stop being legible much below 640px wide. */
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  gap: 56px;
  align-items: center;
  padding: 56px 40px;
  border-radius: 28px;
  margin-bottom: 32px;
}

.one-agent-platform-row--tint {
  background: #f7f9fc;
}

.one-agent-platform-num {
  display: inline-block;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: #EC277B;
  margin-bottom: 4px;
}

.one-agent-platform-copy h3 {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-size: 30px;
  line-height: 40px;
  color: #252525;
  margin: 0 0 6px 0;
}

.one-agent-platform-sub {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: #277BEC;
  margin: 0 0 16px 0;
}

.one-agent-platform-copy > p {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 27px;
  color: #374151;
  margin: 0 0 20px 0;
}

/* 8-9 bullets in a single column makes the copy far taller than the diagram,
   so they run in two columns on wide viewports.
   Grid rather than `columns: 2` — multi-column can strand a wrapped bullet
   across the gutter, and grid honours row-gap predictably. */
.one-agent-platform-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 6px;
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}

.one-agent-platform-list li {
  position: relative;
  padding-left: 20px;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 26px;
  color: #252525;
}

/* Same navy-gradient dot the shared .istio-envoy-content lists use, rebuilt
   under our own prefix so we never depend on that selector. */
.one-agent-platform-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(150.29deg, #001F48 26.26%, #092346 89.87%);
}

.one-agent-platform-outcome {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 27px;
  color: #252525;
  margin: 0;
  padding: 14px 18px;
  background: #ffffff;
  border-left: 3px solid #EC277B;
  border-radius: 0 10px 10px 0;
}

.one-agent-platform-row--tint .one-agent-platform-outcome {
  background: #ffffff;
}

.one-agent-platform-row:not(.one-agent-platform-row--tint) .one-agent-platform-outcome {
  background: #f7f9fc;
}

.one-agent-platform-outcome strong {
  font-weight: 600;
  color: #001F48;
}

.one-agent-platform-visual {
  margin: 0;
  position: relative;
}

.one-agent-platform-visual a {
  display: block;
  text-decoration: none;
}

.one-agent-platform-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

/* Diagram labels are small; give people an obvious way to open the full-size
   PNG rather than pulling in a lightbox dependency. */
.one-agent-platform-zoom {
  display: block;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  color: #6B7280;
  text-align: center;
  margin-top: 12px;
}

.one-agent-platform-visual a:hover .one-agent-platform-zoom {
  color: #EC277B;
}

.one-agent-platform-visual a:hover img {
  border-color: #bdd3ff;
}


/* --------------------------------------------------------------------------
   4. How ONE AGENT works — six lifecycle steps on the navy band
   -------------------------------------------------------------------------- */

.one-agent-lifecycle {
  width: 100%;
  background: linear-gradient(150.29deg, #001F48 26.26%, #092346 89.87%);
  padding: 90px 0;
  margin: 60px 0 0 0;
}

.one-agent-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.one-agent-step {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.one-agent-step-num {
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-size: 62px;
  line-height: 72px;
  color: rgba(236, 39, 123, 0.22);
  pointer-events: none;
}

.one-agent-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(236, 39, 123, 0.16);
  color: #ff77ad;
  margin-bottom: 20px;
}

.one-agent-step-icon svg {
  width: 24px;
  height: 24px;
}

.one-agent-step h3 {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.one-agent-step p {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.one-agent-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
}

.one-agent-flow span {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  line-height: 22px;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.one-agent-flow i {
  font-style: normal;
  color: #EC277B;
  font-size: 18px;
  line-height: 22px;
}

.one-agent-flow-note {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  margin: 24px 0 0 0;
}


/* --------------------------------------------------------------------------
   5. Without ONE AGENT vs With ONE AGENT
   -------------------------------------------------------------------------- */

.one-agent-compare {
  width: 100%;
  background: #ffffff;
  padding: 90px 0 40px 0;
}

.one-agent-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.one-agent-compare-panel {
  padding: 40px 36px;
  border-radius: 24px;
}

.one-agent-compare-panel h3 {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  margin: 0 0 26px 0;
}

.one-agent-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.one-agent-compare-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: #252525;
  margin-bottom: 18px;
}

.one-agent-compare-list li:last-child {
  margin-bottom: 0;
}

.one-agent-compare-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.one-agent-compare-mark svg {
  width: 15px;
  height: 15px;
}

.one-agent-compare-panel--without {
  background: #fff9f8;
  border: 1px solid #ffd9d9;
}

.one-agent-compare-panel--without h3 {
  color: #d13b3f;
}

.one-agent-compare-panel--without .one-agent-compare-mark {
  border: 2px solid #FF5A5F;
  color: #FF5A5F;
}

.one-agent-compare-panel--with {
  background: #f2f8ff;
  border: 1px solid #bdd3ff;
}

.one-agent-compare-panel--with h3 {
  color: #277BEC;
}

.one-agent-compare-panel--with .one-agent-compare-mark {
  border: 1px solid rgba(39, 123, 236, 0.25);
  background: rgba(39, 123, 236, 0.08);
  color: #277BEC;
}

.one-agent-compare-punch {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 22px;
  line-height: 32px;
  color: #001F48;
  text-align: center;
  margin: 44px 0 0 0;
}


/* --------------------------------------------------------------------------
   6. Built for enterprise infrastructure
   -------------------------------------------------------------------------- */

.one-agent-enterprise {
  width: 100%;
  background: #ffffff;
  padding: 60px 0 20px 0;
}

.one-agent-enterprise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 40px;
}

.one-agent-enterprise-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid #e5e7eb;
}

.one-agent-enterprise-icon {
  flex: 0 0 auto;
  color: #5DBB63;
  margin-top: 2px;
}

.one-agent-enterprise-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.one-agent-enterprise-item h3 {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #111827;
  margin: 0 0 6px 0;
}

.one-agent-enterprise-item p {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 25px;
  color: #374151;
  margin: 0;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .one-agent-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .one-agent-platform-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .one-agent-platform-row {
    gap: 40px;
    padding: 48px 32px;
  }
}

@media (max-width: 1024px) {
  .one-agent-lifecycle-grid,
  .one-agent-enterprise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .one-agent-enterprise-grid {
    gap: 4px 32px;
  }

  .one-agent-hero-visual img {
    max-width: 400px;
  }

  .one-agent-banner .app-banner-content h1 {
    font-size: 42px;
    line-height: 54px;
  }
}

/* Platform rows stack: the diagram then renders at full container width,
   where its labels are legible again. */
@media (max-width: 991px) {
  .one-agent-banner .app-banner-wrapper {
    height: auto;
    min-height: 0;
    padding: 130px 0 70px;
  }

  .one-agent-banner .app-banner-content p {
    max-width: 100%;
  }

  .one-agent-banner .app-banner-content h1 {
    max-width: 100%;
  }

  .one-agent-hero-visual {
    margin-top: 48px;
  }

  .one-agent-platform-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .one-agent-platform-visual img {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .one-agent-head {
    margin-bottom: 40px;
  }

  .one-agent-head h2 {
    font-size: 26px;
    line-height: 36px;
  }

  .one-agent-head .one-agent-head-sub {
    font-size: 20px;
    line-height: 30px;
  }

  .one-agent-why,
  .one-agent-compare {
    padding: 50px 0 10px 0;
  }

  .one-agent-lifecycle {
    padding: 50px 0;
    margin-top: 40px;
  }

  .one-agent-enterprise {
    padding: 40px 0 10px 0;
  }

  .one-agent-why-grid,
  .one-agent-lifecycle-grid,
  .one-agent-compare-grid,
  .one-agent-enterprise-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .one-agent-platform-row {
    padding: 36px 20px;
    border-radius: 20px;
  }

  .one-agent-platform-copy h3 {
    font-size: 24px;
    line-height: 34px;
  }

  .one-agent-platform-num {
    font-size: 32px;
    line-height: 40px;
  }

  /* The arrow chip row wraps badly on phones. */
  .one-agent-flow {
    display: none;
  }

  .one-agent-flow-note {
    margin-top: 36px;
  }

  .one-agent-compare-punch {
    font-size: 18px;
    line-height: 28px;
  }

  .one-agent-banner .app-banner-content h1 {
    font-size: 32px;
    line-height: 42px;
  }

  .one-agent-hero-tagline {
    font-size: 16px;
    line-height: 26px;
    margin: 22px 0 32px 0;
  }
}

@media (max-width: 576px) {
  .one-agent-why-card,
  .one-agent-compare-panel {
    padding: 28px 22px;
  }

  .one-agent-step {
    padding: 26px 22px;
  }

  .one-agent-platform-row {
    padding: 30px 16px;
  }

  /* The hero CTAs sit side by side via .app-banner-content-btn-content-main's
     display:flex; let them stack instead of overflowing. */
  .one-agent-banner .app-banner-content-btn-content-main {
    flex-wrap: wrap;
    gap: 14px;
  }

  .one-agent-banner .app-banner-content-btn-content a {
    margin-right: 0;
  }
}
