.agent-detail {
  background: var(--white);
}

.agent-detail .shell {
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin: 0 auto;
}

.agent-detail .section {
  padding: var(--section-space) 0;
}

.agent-detail .section-kicker,
.agent-detail .micro-label {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-detail .section-heading,
.agent-detail .section-copy {
  max-width: 900px;
}

.agent-detail .section-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.agent-detail .section-heading h2,
.agent-detail .section-copy h2 {
  max-width: 860px;
  margin-bottom: 1.25rem;
}

.agent-detail .section-heading > p:last-child,
.agent-detail .section-copy > p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.agent-hero {
  position: relative;
  display: flex;
  min-height: 780px;
  padding-top: 84px;
  align-items: center;
  overflow: hidden;
  background: var(--warm-cloud);
}

.agent-hero-image,
.agent-hero-shade {
  position: absolute;
  inset: 84px 0 0;
  width: 100%;
  height: calc(100% - 84px);
}

.agent-hero-image {
  object-fit: cover;
  object-position: center;
}

.agent-hero-shade {
  background: linear-gradient(90deg, rgba(255, 247, 232, 1) 0%, rgba(255, 247, 232, 0.98) 25%, rgba(255, 247, 232, 0.75) 43%, rgba(255, 247, 232, 0.08) 68%);
}

.agent-hero .hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 7.5rem) var(--gutter) 4rem;
}

.agent-hero h1 {
  width: min(650px, 52vw);
  margin-bottom: 1.5rem;
  font-size: clamp(3.1rem, 5vw, 5.3rem);
}

.agent-hero .hero-copy > p {
  width: min(610px, 50vw);
  margin-bottom: 1.8rem;
  color: #394154;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.agent-hero .hero-actions,
.final-cta .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.agent-trust-strip {
  display: flex;
  max-width: 640px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agent-trust-strip span {
  padding: 0.5rem 0.7rem;
  color: var(--orbit);
  border: 1px solid rgba(16, 23, 47, 0.2);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.action-section {
  background: var(--white);
}

.action-visual {
  position: relative;
  margin: 0 0 2rem;
}

.action-visual::after {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 36%;
  height: 38%;
  border-right: 10px solid var(--teal);
  border-bottom: 10px solid var(--teal);
  content: "";
}

.action-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius-medium);
}

.action-flow {
  display: grid;
  margin-top: 3rem;
  grid-template-columns: repeat(5, 1fr);
}

.action-step {
  position: relative;
  min-height: 250px;
  padding: 1.5rem 1.35rem;
  border-top: 5px solid var(--blue);
  border-right: 1px solid var(--mist);
  background: var(--white);
}

.action-step:nth-child(2) { border-top-color: var(--teal); }
.action-step:nth-child(3) { border-top-color: var(--amber); }
.action-step:nth-child(4) { border-top-color: var(--coral); }
.action-step:nth-child(5) { border-top-color: var(--orbit); border-right: 0; }

.action-step b {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.action-step:nth-child(2) b { color: var(--teal); }
.action-step:nth-child(3) b { color: #c16b00; }
.action-step:nth-child(4) b { color: var(--coral); }
.action-step:nth-child(5) b { color: var(--orbit); }

.action-step h3 {
  margin: 1rem 0 0.75rem;
  font-size: 1.2rem;
}

.action-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.levers-section {
  color: var(--warm-cloud);
  background: var(--coral);
}

.levers-section .section-kicker,
.levers-section .section-heading h2 {
  color: var(--warm-cloud);
}

.levers-section .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.88);
}

.feature-grid,
.service-grid,
.timeline-grid,
.pricing-grid,
.industry-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-grid.three,
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.levers-section .feature-grid {
  gap: 0;
}

.feature-card {
  overflow: hidden;
  color: var(--orbit);
  background: var(--white);
}

.levers-section .feature-card {
  min-height: 100%;
  border-right: 1px solid var(--mist);
}

.levers-section .feature-card:last-child {
  border-right: 0;
}

.lever-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card h3,
.feature-card p,
.service-card h3,
.service-card p {
  margin-right: 1.6rem;
  margin-left: 1.6rem;
}

.feature-card h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  margin-bottom: 1.8rem;
  color: var(--muted);
}

.calculator-section {
  color: var(--white);
  background: var(--orbit);
}

.calc-grid,
.split-grid,
.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.calculator-section .section-kicker { color: var(--teal); }
.calculator-section h2 { color: var(--white); }
.calculator-section .section-copy > p { color: rgba(255, 255, 255, 0.75); }

.calc-note {
  max-width: 620px;
  margin-top: 2rem;
  padding-left: 1rem;
  color: var(--white);
  border-left: 4px solid var(--amber);
  font-weight: 700;
}

.roi-card,
.contact-form {
  display: grid;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  gap: 1rem;
  border-radius: var(--radius-medium);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.roi-card label,
.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--orbit);
  font-size: 0.82rem;
  font-weight: 700;
}

.roi-card input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  color: var(--orbit);
  border: 1px solid var(--mist);
  border-radius: var(--radius-small);
  background: var(--cloud-white);
}

.roi-card input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(10, 115, 255, 0.16);
}

.roi-output {
  padding: 1.1rem;
  color: var(--orbit);
  border-left: 5px solid var(--coral);
  background: var(--warm-cloud);
}

.roi-output.accent {
  color: var(--white);
  border-left-color: var(--teal);
  background: var(--blue);
}

.roi-output span,
.roi-output strong {
  display: block;
}

.roi-output span {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.roi-output strong {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.spectrum-section {
  color: var(--warm-cloud);
  background: var(--coral);
}

.spectrum-section .section-kicker,
.spectrum-section h2 {
  color: var(--warm-cloud);
}

.timeline-grid,
.process-row {
  grid-template-columns: repeat(4, 1fr);
}

.timeline-card {
  min-height: 275px;
  padding: 2rem 1.5rem;
  color: var(--orbit);
  background: var(--warm-cloud);
}

.timeline-card:nth-child(2) { background: var(--teal); }
.timeline-card:nth-child(3) { background: var(--amber); }
.timeline-card:nth-child(4) { color: var(--white); background: var(--orbit); }
.timeline-card:nth-child(4) h3 { color: var(--white); }

.timeline-card b {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin: 2.5rem 0 0.75rem;
}

.timeline-card p {
  margin: 0;
  color: inherit;
}

.system-section {
  background: var(--white);
}

.check-list {
  display: grid;
  padding: 0;
  margin: 2rem 0 0;
  gap: 0.75rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.workflow-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.workflow-map div {
  display: grid;
  min-height: 145px;
  padding: 1.3rem;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
}

.workflow-map div:nth-child(2) { color: var(--orbit); background: var(--teal); }
.workflow-map div:nth-child(3) { color: var(--orbit); background: var(--amber); }
.workflow-map div:nth-child(4) { background: var(--coral); }
.workflow-map div:nth-child(5) { background: #3155bd; }
.workflow-map div:nth-child(6) { background: var(--orbit); }

.capability-section {
  background: var(--warm-cloud);
}

.service-grid.five {
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.service-card {
  min-height: 330px;
  padding: 2rem 0 1.5rem;
  border-right: 1px solid rgba(16, 23, 47, 0.14);
}

.service-card:last-child { border-right: 0; }

.icon-badge {
  display: grid;
  width: 58px;
  height: 58px;
  margin-left: 1.6rem;
  place-items: center;
  color: var(--white);
  background: var(--blue);
}

.service-card:nth-child(2) .icon-badge { color: var(--orbit); background: var(--teal); }
.service-card:nth-child(3) .icon-badge { color: var(--orbit); background: var(--amber); }
.service-card:nth-child(4) .icon-badge { background: var(--coral); }
.service-card:nth-child(5) .icon-badge { background: var(--orbit); }

.icon-badge svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.8;
}

.service-card h3 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.examples-section {
  background: var(--cloud-white);
}

.industry-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.industry-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(16, 23, 47, 0.08);
}

.industry-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.industry-card div {
  padding: 2rem;
}

.industry-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.industry-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.industry-card b {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  color: var(--orbit);
  border-top: 3px solid var(--amber);
  font-size: 0.82rem;
}

.leverage-section {
  color: var(--orbit);
  background: var(--amber);
}

.leverage-section .section-kicker { color: var(--orbit); }
.leverage-section .section-copy > p { color: rgba(16, 23, 47, 0.75); }

.math-panel {
  display: grid;
  background: var(--orbit);
}

.math-panel div {
  padding: 1.6rem 1.8rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.math-panel div:last-child { border-bottom: 0; }

.math-panel span,
.math-panel strong {
  display: block;
}

.math-panel span {
  margin-bottom: 0.35rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-section {
  background: var(--white);
}

.pricing-card {
  display: flex;
  min-height: 510px;
  padding: 2rem;
  flex-direction: column;
  border-top: 6px solid var(--blue);
  background: var(--cloud-white);
}

.pricing-card:nth-child(2) {
  border-top-color: var(--coral);
  background: var(--warm-cloud);
}

.pricing-card:nth-child(3) { border-top-color: var(--orbit); }

.pricing-card h3 { margin-bottom: 0.75rem; }
.pricing-card > p { min-height: 76px; color: var(--muted); }

.pricing-card > strong {
  display: block;
  margin: 1.4rem 0 0.4rem;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.pricing-card > span {
  min-height: 50px;
  color: var(--muted);
  font-size: 0.85rem;
}

.pricing-card .check-list {
  margin: 1.5rem 0 2rem;
}

.pricing-card .btn {
  margin-top: auto;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 700;
}

.btn-primary { color: var(--white); background: var(--blue); }
.btn-outline { color: var(--orbit); border-color: var(--orbit); background: transparent; }
.btn-secondary { color: var(--orbit); background: var(--white); }

.pilot-section {
  color: var(--orbit);
  background: var(--teal);
}

.pilot-section .section-kicker { color: var(--orbit); }
.pilot-section .timeline-card { background: rgba(255, 255, 255, 0.82); }
.pilot-section .timeline-card:nth-child(4) { color: var(--white); background: var(--orbit); }

.security-section {
  background: var(--white);
}

.security-section .feature-card {
  min-height: 270px;
  padding: 2rem 0;
  border-top: 5px solid var(--blue);
  background: var(--cloud-white);
}

.security-section .feature-card:nth-child(2) { border-top-color: var(--teal); }
.security-section .feature-card:nth-child(3) { border-top-color: var(--coral); }

.faq-section {
  background: var(--cloud-white);
}

.faq-list {
  display: grid;
  max-width: 940px;
  gap: 0;
}

.faq-list details {
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--mist);
}

.faq-list summary {
  color: var(--orbit);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
}

.faq-list details p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.request-section {
  color: var(--white);
  background: var(--blue);
}

.request-section .section-kicker { color: var(--amber); }
.request-section h2 { color: var(--white); }
.request-section .section-copy > p { color: rgba(255, 255, 255, 0.82); }

.contact-card {
  display: grid;
  margin-top: 2rem;
  gap: 0.4rem;
}

.contact-card a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.contact-form .btn { cursor: pointer; }
.contact-form [data-form-status] { margin: 0; color: var(--muted); font-size: 0.82rem; }

.final-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--orbit);
}

.final-cta::after {
  position: absolute;
  right: -6vw;
  bottom: -15vw;
  width: 32vw;
  height: 32vw;
  border: 8vw solid var(--blue);
  border-radius: 50%;
  content: "";
  opacity: 0.22;
}

.final-cta .shell {
  position: relative;
  z-index: 1;
}

.final-cta .section-kicker { color: var(--teal); }
.final-cta h2 { max-width: 780px; color: var(--white); }
.final-cta p { max-width: 700px; color: rgba(255, 255, 255, 0.75); font-size: 1.08rem; }

.agent-footer {
  grid-template-columns: minmax(280px, 1fr) auto auto auto;
}

.agent-footer .footer-brand p {
  max-width: 460px;
}

.agent-footer h4 {
  margin: 0.4rem 0 0.25rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

@media (max-width: 1180px) {
  .service-grid.five {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card:nth-child(3) { border-right: 0; }

  .industry-card {
    grid-template-columns: 1fr;
  }

  .industry-card img {
    min-height: 260px;
    max-height: 360px;
  }

  .agent-footer {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .agent-footer .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .agent-hero {
    min-height: 760px;
    padding-top: 74px;
  }

  .agent-hero-image,
  .agent-hero-shade {
    inset: 74px 0 0;
    height: calc(100% - 74px);
  }

  .agent-hero-image { object-position: 58% center; }

  .agent-hero-shade {
    background: linear-gradient(90deg, rgba(255, 247, 232, 0.98) 0%, rgba(255, 247, 232, 0.93) 44%, rgba(255, 247, 232, 0.2) 84%);
  }

  .agent-hero h1,
  .agent-hero .hero-copy > p {
    width: min(620px, 76vw);
  }

  .action-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .action-step:nth-child(2n) { border-right: 0; }
  .action-step:last-child { grid-column: 1 / -1; }

  .feature-grid.three,
  .pricing-grid,
  .industry-grid,
  .calc-grid,
  .split-grid,
  .request-grid {
    grid-template-columns: 1fr;
  }

  .levers-section .feature-grid {
    gap: 1rem;
  }

  .levers-section .feature-card { border-right: 0; }

  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid.five {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(3) { border-right: 1px solid rgba(16, 23, 47, 0.14); }
  .service-card:nth-child(2n) { border-right: 0; }
  .service-card:last-child { grid-column: 1 / -1; border-right: 0; }

  .pricing-card {
    min-height: 0;
  }

  .pricing-card > p,
  .pricing-card > span {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .agent-detail .section {
    padding: 4.75rem 0;
  }

  .agent-detail .section-heading h2,
  .agent-detail .section-copy h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .agent-hero {
    display: block;
    min-height: 920px;
  }

  .agent-hero-image {
    height: 55%;
    object-position: 61% center;
  }

  .agent-hero-shade {
    height: 69%;
    background: linear-gradient(180deg, rgba(255, 247, 232, 0.86) 0%, rgba(255, 247, 232, 0.88) 48%, var(--warm-cloud) 100%);
  }

  .agent-hero .hero-copy {
    padding: 5.25rem var(--gutter) 3rem;
  }

  .agent-hero h1,
  .agent-hero .hero-copy > p {
    width: 100%;
  }

  .agent-hero h1 {
    font-size: clamp(2.65rem, 11vw, 3.4rem);
  }

  .agent-hero .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .agent-hero .hero-actions .button {
    width: 100%;
  }

  .agent-trust-strip span {
    background: rgba(255, 255, 255, 0.82);
  }

  .action-visual::after {
    right: -7px;
    bottom: -7px;
    border-width: 7px;
  }

  .action-flow,
  .timeline-grid,
  .workflow-map,
  .service-grid.five {
    grid-template-columns: 1fr;
  }

  .action-step,
  .action-step:nth-child(2n) {
    min-height: 0;
    border-right: 0;
  }

  .action-step:last-child,
  .service-card:last-child {
    grid-column: auto;
  }

  .service-card,
  .service-card:nth-child(3) {
    min-height: 0;
    padding-bottom: 2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 23, 47, 0.14);
  }

  .industry-card div {
    padding: 1.5rem;
  }

  .industry-card img {
    min-height: 240px;
  }

  .roi-card,
  .contact-form {
    padding: 1.25rem;
  }

  .final-cta .hero-actions {
    flex-direction: column;
  }

  .final-cta .btn {
    width: 100%;
  }

  .agent-footer {
    grid-template-columns: 1fr;
  }

  .agent-footer .footer-note {
    grid-column: auto;
  }
}
