/* ============================================================
   Custom Agents page — hero
   Figma node 2728:314 (file O6AVpSlkUQ3zKaRTlWvzNG)
   Split hero: text left (aligned to the site container),
   exported graphic boxed on the right; aurora gradient behind.
   Loaded after staging-trojai-environment.webflow.css.
   ============================================================ */

.hero_ca_section {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--swatch--light-100-o20);
}
/* drop the section's default vertical padding (nav clearance + spacing
   are handled on the content column) */
.hero_ca_section.u-section {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── Background aurora glow (exported Figma "A" group) ── */
.hero_ca_bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}
.hero_ca_bg_img {
  position: absolute;
  top: -8%;
  left: 50%;
  width: 100%;
  min-width: 75rem;        /* keep the glow broad on smaller desktops */
  max-width: 110rem;       /* and from over-scaling on ultrawide */
  height: auto;
  transform: translateX(-50%);
  /* additive, low-opacity: an ambient top glow that blends into the
     dark panel rather than splitting the hero light/dark (Figma "A"
     group is ~52% + plus-lighter) */
  mix-blend-mode: screen;
  opacity: 0.4;
}

.hero_ca_layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
}

.hero_ca_content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* top pad clears the overlap nav; left pad aligns the text to the
     site container's left edge while the section stays full-bleed */
  padding-top: 9rem;
  padding-bottom: 4rem;
  padding-right: 2.5rem;
  padding-left: max(var(--site--margin), calc((100% - var(--max-width--main)) / 2));
}

.hero_ca_inner {
  display: flex;
  flex-direction: column;
  gap: 1.875rem;          /* 30px — heading group → button */
  max-width: 34rem;
}

.hero_ca_text {
  display: flex;
  flex-direction: column;
  gap: 1.0625rem;         /* 17px — H1 → subhead */
}

/* match the Figma heading leading (53px / 60px) — a touch airier
   than the site H1 default of 1.0 */
.hero_ca_text h1 {
  line-height: 1.13;
}

/* button hugs its content (left-aligned pill), not full column width */
.hero_ca_inner .button_main_wrap {
  align-self: flex-start;
}

/* Visual is an aspect-locked box: the box matches the graphic's own
   ratio, so it never crops or distorts — it just scales, and caps on
   wide screens via max-width. */
.hero_ca_visual {
  position: relative;
  flex: 0 0 46%;
  max-width: 46rem;
  align-self: center;
  aspect-ratio: 739 / 800;
}
.hero_ca_visual_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* box ratio == image ratio → no crop */
  object-position: center;
}

/* ── Tablet & below: stack, graphic under the copy ── */
@media screen and (max-width: 991px) {
  .hero_ca_layout {
    flex-direction: column;
  }
  .hero_ca_content {
    padding-top: 8rem;
    padding-bottom: 3rem;
    padding-right: var(--site--margin);
  }
  .hero_ca_inner {
    max-width: none;
  }
  .hero_ca_visual {
    flex: none;
    width: 100%;
    max-width: none;
    align-self: stretch;
    aspect-ratio: 739 / 640;
  }
  .hero_ca_bg_img {
    min-width: 0;
    width: 160%;           /* broaden the glow across the stacked hero */
  }
}


/* ============================================================
   Custom Agents — "Secure Custom Agentic Workflows" (node 2728:349)
   2-col framed layout: intro + dashboard image (left), lead +
   workflow step list (right). Side/grid lines + scroll reveal.
   ============================================================ */

.ca_wf_section {
  position: relative;
  overflow: clip;
  padding-top: 5.5rem;        /* breathing room above the top rule */
}
.ca_wf_section.u-section {
  padding-bottom: 0;
}

/* full-bleed horizontal rules (top / bottom) */
.ca_wf_rule {
  height: 0;
  border-top: 1px solid var(--swatch--light-100-o20);
}

/* framed container: vertical side lines at the container edges */
.ca_wf_frame {
  position: relative;
  max-width: var(--max-width--main);
  width: calc(100% - var(--site--margin) * 2);
  margin-inline: auto;
  border-left: 1px solid var(--swatch--light-100-o20);
  border-right: 1px solid var(--swatch--light-100-o20);
}

.ca_wf_grid {
  display: grid;
  grid-template-columns: 44fr 56fr;
}

/* center divider line = left column's right edge, spanning full height */
.ca_wf_col--left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--swatch--light-100-o20);
}
.ca_wf_col--right {
  display: flex;
  flex-direction: column;
  padding: 3.5rem clamp(1.5rem, 3vw, 3rem) 3.5rem clamp(2rem, 4.5vw, 5.25rem);
}

/* ── Left: intro (heading + body) ── */
.ca_wf_intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3.5rem clamp(1.5rem, 3vw, 2.5rem) 3rem clamp(1.5rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid var(--swatch--light-100-o20);   /* mid-left rule */
}
.ca_wf_title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2rem, 1.55rem + 1.7vw, 2.5rem);   /* ~40px */
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--swatch--light-100);
}
.ca_wf_body {
  margin: 0;
  max-width: 34ch;
  font-size: 0.875rem;       /* 14px */
  line-height: 1.5;
  color: var(--swatch--light-100);
  opacity: 0.8;
}

/* ── Left: dashboard image fills the quadrant (glow baked into the image) ── */
.ca_wf_dashboard {
  position: relative;
  flex: 1 1 auto;
  overflow: clip;
  min-height: 20rem;
}
.ca_wf_dashboard_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Right: lead paragraph + workflow title ── */
.ca_wf_lead {
  margin: 0 0 2rem;
  max-width: 30ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);   /* 18px */
  line-height: 1.78;
  color: var(--swatch--light-100);
}
.ca_wf_workflow_title {
  margin: 0 0 2rem;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);   /* 24px */
  line-height: 1.25;
  color: var(--swatch--light-100);
}

/* ── Right: step list with rail + glossy markers ── */
.ca_wf_steplist {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
/* the vertical rail the markers ride on */
.ca_wf_steplist::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  bottom: 1.5rem;
  width: 1px;
  background: var(--swatch--light-100-o20);
}
.ca_wf_step {
  position: relative;
  padding-left: 5.5rem;
}
.ca_wf_step_marker {
  position: absolute;
  left: 0;
  top: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7dffb0 0%, var(--swatch--colorp3) 48%, var(--swatch--colorp1) 100%);
  box-shadow: 0 0 9px rgba(0, 222, 100, 0.55);
}
.ca_wf_step_tick {
  position: absolute;
  left: 19px;
  top: 8px;
  width: 3.25rem;
  height: 1px;
  background: var(--swatch--light-100-o20);
}
.ca_wf_step_num {
  font-size: 0.625rem;       /* 10px */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--swatch--light-100);
  opacity: 0.85;
}
.ca_wf_step_title {
  margin: 0.8rem 0 0.65rem;
  font-weight: 500;
  font-size: 1.25rem;        /* 20px */
  line-height: 1.4;
  color: var(--swatch--light-100);
}
.ca_wf_step_desc {
  margin: 0;
  max-width: 38ch;
  font-size: 0.875rem;       /* 14px */
  line-height: 1.5;
  color: var(--swatch--light-100);
  opacity: 0.85;
}
.ca_wf_step.is-muted {
  opacity: 0.32;             /* step 05 — faded per design */
}

/* ── Tablet & below: stack columns, drop the center divider ── */
@media screen and (max-width: 991px) {
  .ca_wf_section { padding-top: 4rem; }
  .ca_wf_grid { grid-template-columns: 1fr; }
  .ca_wf_col--left { border-right: none; }
  .ca_wf_col--right {
    padding: 3rem clamp(1.25rem, 5vw, 2.5rem) 3.5rem clamp(1.25rem, 5vw, 2.5rem);
    border-top: 1px solid var(--swatch--light-100-o20);
  }
  .ca_wf_intro { padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
  .ca_wf_dashboard {
    flex: none;
    aspect-ratio: 1300 / 1231;
    min-height: 0;
  }
}

@media screen and (max-width: 479px) {
  .ca_wf_step { padding-left: 3.5rem; }
  .ca_wf_step_tick { width: 1.5rem; }
}


/* ============================================================
   Custom Agents — Enterprise Access + Security Risks (node 2732:464)
   LIGHT section: white bg, #1c1c16 / #002017 text, #d9d9d9 borders.
   ============================================================ */

.ca_risk_section {
  background-color: #fff;
  color: #1c1c16;
}

.ca_risk_contain {
  max-width: var(--max-width--main);
  width: calc(100% - var(--site--margin) * 2);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 9vw, 10rem);          /* 160px between sub-sections */
}

/* shared heading look (light) */
.ca_ent_title,
.ca_risks_title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2rem, 1.55rem + 1.7vw, 2.5rem);   /* ~40px */
  line-height: 1.12;
  letter-spacing: -0.04em;
}

/* ── Top: Enterprise Access. Enterprise Risk ── */
.ca_ent_grid {
  border-top: 1px solid #d9d9d9;
  padding-top: 2.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(20rem, 42%, 38.125rem);
  gap: clamp(2rem, 4vw, 3.8rem);
  align-items: stretch;
}
.ca_ent_left {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.ca_ent_head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ca_ent_title { color: #1c1c16; }
.ca_ent_intro {
  margin: 0;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  opacity: 0.8;
}
.ca_ent_checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #d9d9d9;
}
.ca_ent_check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #ebebeb;
  border-bottom: 1px solid #d9d9d9;
  padding: 1.05rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #1c1c16;
}
.ca_ent_check:last-child { border-bottom: none; }
.ca_ent_note { margin: 1.25rem 0 0; max-width: 46ch; font-size: 0.9375rem; line-height: 1.6; color: #000; opacity: 0.8; }
.ca_ent_check_icon {
  flex-shrink: 0;
  width: 1.2rem;
  height: auto;
}
.ca_ent_visual {
  position: relative;
  align-self: stretch;
  min-height: 22rem;
  overflow: clip;
}
.ca_ent_visual_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Bottom: The Security Risks of Custom Agents ── */
.ca_risks {
  border-top: 1px solid #d9d9d9;
}
.ca_risks_head {
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: clamp(2.75rem, 6vw, 5.5rem) clamp(1.5rem, 8vw, 6rem);
}
.ca_risks_title { color: #002017; }
.ca_risks_intro {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #002017;
}
.ca_risks_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}
.ca_risk_card {
  border-right: 1px solid #d9d9d9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  min-height: 13rem;
  padding: 1.5rem 1.75rem 1.75rem;
}
.ca_risk_card:last-child { border-right: none; }
.ca_risk_icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.ca_risk_text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
}
.ca_risk_text strong { font-weight: 700; }
.ca_risks_foot {
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
  height: clamp(2.5rem, 5vw, 9rem);
}

/* ── Tablet & below ── */
@media screen and (max-width: 991px) {
  .ca_ent_grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .ca_ent_visual {
    align-self: auto;
    aspect-ratio: 610 / 640;
    min-height: 0;
    max-width: 34rem;
    width: 100%;
  }
  .ca_risks_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ca_risk_card {
    border-bottom: 1px solid #d9d9d9;
    min-height: 11rem;
  }
  /* keep only inner verticals tidy: every 2nd card drops right border */
  .ca_risk_card:nth-child(2n) { border-right: none; }
  .ca_risk_card:nth-last-child(1),
  .ca_risk_card:nth-last-child(2) { }
}

@media screen and (max-width: 560px) {
  .ca_risks_grid { grid-template-columns: 1fr; }
  .ca_risk_card { border-right: none; min-height: 0; }
}


/* ============================================================
   Custom Agents — How TrojAI Secures Custom Agents (node 2734:418)
   Dark section: pinned right panel + scroll-driven active step /
   image swap (like the home "problem" section). + Final CTA.
   ============================================================ */

.ca_secure_section {
  position: relative;
  background-color: #002017;
  background-image: radial-gradient(115% 80% at 50% 30%, #0a5e46 0%, #033b29 46%, #002017 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ca_secure_contain {
  max-width: var(--max-width--main);
  width: calc(100% - var(--site--margin) * 2);
  margin-inline: auto;
}

.ca_secure_head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 4vw, 3rem);
}
.ca_secure_title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2rem, 1.55rem + 1.7vw, 2.5rem);
  line-height: 1.2;
  color: #fff;
}
.ca_secure_intro {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  opacity: 0.8;
}

.ca_secure_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(19rem, 34%, 26.0625rem);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;          /* visual column matches steps height for sticky travel */
}

.ca_secure_steps {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
}
.ca_secure_step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.4;
  transition: opacity 0.45s ease, border-color 0.45s ease;
}
.ca_secure_step.is-active {
  opacity: 1;
  border-color: rgba(213, 254, 112, 0.55);
}
.ca_secure_step_icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.ca_secure_step_icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.ca_secure_step_title {
  margin: 0 0 0.5rem;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  color: #fff;
}
.ca_secure_step_desc {
  margin: 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}

.ca_secure_visual_col {
  align-self: stretch;
}
.ca_secure_visual {
  position: sticky;
  top: 7.5rem;
}
.ca_secure_panel {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: clip;
  background-color: #00150f;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ca_secure_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ca_secure_img.is-active {
  opacity: 1;
}

/* ── Final CTA: "Secure Your AI Agents Today." ── */
.ca_cta {
  position: relative;
  overflow: clip;
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34rem;
  padding: 4rem 1.5rem;
}
/* exported decorative background (lime corners, grid lines, dots) */
.ca_cta_bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 100rem;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.ca_cta_inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}
.ca_cta_title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.125rem);   /* ~50px */
  line-height: 1.15;
  color: #fff;
  max-width: 16ch;
}
.ca_cta_title strong { font-weight: 700; }

/* ── Tablet & below ── */
@media screen and (max-width: 991px) {
  .ca_secure_layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ca_secure_visual_col {
    order: -1;                    /* panel above the steps */
  }
  .ca_secure_visual {
    position: static;
  }
  .ca_secure_panel {
    max-width: 32rem;
    margin-inline: auto;
  }
  .ca_secure_step {
    opacity: 1;                   /* all steps visible when stacked */
    border-color: rgba(255, 255, 255, 0.16);
  }
  .ca_secure_step.is-active {
    border-color: rgba(213, 254, 112, 0.55);
  }
  .ca_cta {
    min-height: 24rem;
    padding-block: 3rem;
  }
  .ca_cta_bg {
    width: 122%;                  /* enlarge decorations on narrow screens */
    max-width: none;
  }
}
