.ai-service-page {
  overflow-x: hidden;
}

.ai-service-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.ai-service-page .main-nav a[aria-current="page"] {
  color: var(--purple);
}

.ai-hero {
  position: relative;
  padding: clamp(74px, 8vw, 116px) 0 clamp(62px, 7vw, 96px);
  overflow: hidden;
}

.ai-hero::before {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  right: -310px;
  top: -350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 157, .16), rgba(122, 66, 220, .08) 42%, transparent 70%);
  pointer-events: none;
}

.ai-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(460px, 1.06fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
}

.ai-hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 22px;
  font-size: clamp(46px, 5.3vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.ai-hero-copy .hero-lead {
  max-width: 680px;
}

.hero-caveat {
  max-width: 620px;
  margin: 25px 0 0;
  padding-left: 18px;
  border-left: 3px solid rgba(0, 169, 157, .5);
  color: var(--muted);
  font-size: .95rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: .88rem;
}

.breadcrumbs a:hover {
  color: var(--purple);
}

.ai-demo {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.ai-lab {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 1px solid rgba(122, 66, 220, .16);
  border-radius: 34px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 32px 80px rgba(59, 35, 93, .15);
  backdrop-filter: blur(18px);
}

.ai-lab::before {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(122, 66, 220, .05), rgba(0, 169, 157, .05));
}

.lab-head {
  display: grid;
  grid-template-columns: 48px 1fr 9px;
  align-items: center;
  gap: 12px;
  padding: 6px 7px 16px;
}

.lab-head strong,
.lab-head small {
  display: block;
}

.lab-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .76rem;
}

.lab-head > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2bc39a;
  box-shadow: 0 0 0 6px rgba(43, 195, 154, .12);
}

.lab-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), #9f6fe9 52%, var(--teal));
  box-shadow: 0 12px 25px rgba(122, 66, 220, .25);
  color: #fff;
  font-weight: 900;
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 7px;
  border-radius: 18px;
  background: #f2eff9;
}

.lab-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 9px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #696072;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.lab-tabs button:hover {
  transform: translateY(-1px);
  color: var(--purple);
}

.lab-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 6px 20px rgba(77, 52, 108, .11);
}

.lab-tabs button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(122, 66, 220, .09);
}

.lab-stage {
  display: grid;
  gap: 14px;
  padding: 18px 2px 2px;
}

.lab-message {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 18px;
}

.lab-message small,
.lab-analysis small {
  display: block;
  margin-bottom: 5px;
  color: inherit;
  opacity: .65;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lab-message p {
  margin: 0;
  font-size: .91rem;
  line-height: 1.55;
}

.lab-message.user {
  justify-self: end;
  color: #fff;
  background: linear-gradient(135deg, #7450cb, #8b5edc);
  border-bottom-right-radius: 5px;
}

.lab-message.assistant {
  justify-self: start;
  color: #2f2938;
  background: linear-gradient(135deg, rgba(0, 169, 157, .1), rgba(122, 66, 220, .09));
  border: 1px solid rgba(0, 169, 157, .12);
  border-bottom-left-radius: 5px;
}

.lab-analysis {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  width: 88%;
  margin-left: 6%;
  padding: 11px 13px;
  border: 1px dashed rgba(122, 66, 220, .3);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
}

.pulse-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  font-size: .75rem;
  font-weight: 900;
}

.pulse-core::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(122, 66, 220, .35);
  border-radius: inherit;
  animation: soft-pulse 2.6s ease-in-out infinite;
}

.context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.context-chips span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: #5f5669;
  font-size: .68rem;
  font-weight: 700;
}

.demo-orbit {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(122, 66, 220, .18);
  pointer-events: none;
}

.orbit-a {
  width: 150px;
  height: 150px;
  top: -35px;
  right: -30px;
}

.orbit-b {
  width: 90px;
  height: 90px;
  left: -28px;
  bottom: -20px;
  border-color: rgba(0, 169, 157, .23);
}

@keyframes soft-pulse {
  0%, 100% { transform: scale(.9); opacity: .35; }
  50% { transform: scale(1.08); opacity: .8; }
}

.difference-section {
  background: linear-gradient(180deg, #fbfaff, #f4f1fa);
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.difference-card {
  position: relative;
  min-height: 330px;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(122, 66, 220, .11);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(64, 45, 91, .08);
}

.difference-card.intelligent {
  background: linear-gradient(145deg, #fff, #f3fbfa 65%, #f4effc);
}

.difference-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 18px;
  color: var(--purple);
  background: rgba(122, 66, 220, .09);
  font-size: 1.35rem;
  font-weight: 900;
}

.intelligent .difference-icon {
  color: #007e76;
  background: rgba(0, 169, 157, .11);
}

.difference-card h3,
.ai-solution h3,
.ai-example h3,
.principle h3 {
  margin: 0;
}

.difference-card > p {
  max-width: 620px;
  margin: 12px 0 22px;
}

.difference-card b {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.difference-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 19px;
}

.choice-note {
  margin-top: 18px;
  padding: 18px 22px;
  border-left: 4px solid var(--teal);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
}

.choice-note b {
  color: var(--ink);
}

.usefulness-layout {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.usefulness-layout .section-heading {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.usefulness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.useful-item {
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgba(122, 66, 220, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(64, 45, 91, .07);
}

.useful-item:nth-child(2),
.useful-item:nth-child(4) {
  transform: translateY(24px);
}

.useful-item > span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--purple);
  font-weight: 900;
}

.useful-item h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
}

.useful-item p {
  margin: 0;
  color: var(--muted);
}

.solutions-section {
  background: #25212e;
  color: #fff;
}

.solutions-section .section-heading p,
.solutions-section .kicker {
  color: #cfc4dc;
}

.solutions-list {
  display: grid;
  gap: 16px;
}

.ai-solution {
  display: grid;
  grid-template-columns: 72px minmax(220px, .85fr) minmax(300px, 1fr);
  gap: 22px 26px;
  align-items: start;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
}

.solution-index {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(157, 103, 235, .9), rgba(0, 169, 157, .85));
  font-weight: 900;
}

.solution-main h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.solution-main p,
.ai-solution dd {
  color: #d5cedd;
}

.solution-main p {
  margin: 10px 0 0;
}

.solution-flow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 4px;
}

.solution-flow span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  font-size: .72rem;
  white-space: nowrap;
}

.solution-flow i {
  color: #6bd2c9;
  font-style: normal;
}

.ai-solution dl {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.ai-solution dt {
  margin-bottom: 7px;
  color: #86e2da;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ai-solution dd {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
}

.examples-list {
  display: grid;
  gap: 14px;
}

.ai-example {
  padding: 16px;
  border: 1px solid rgba(122, 66, 220, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(64, 45, 91, .07);
}

.ai-example-main {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: center;
}

.example-image,
.example-symbol {
  height: 148px;
  overflow: hidden;
  border-radius: 17px;
}

.example-image {
  position: relative;
}

.example-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-symbol {
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  background: linear-gradient(145deg, #efe8fb, #ddf6f3);
  color: var(--purple);
}

.example-symbol span {
  font-size: 2rem;
  font-weight: 900;
}

.example-symbol b {
  color: #71677b;
  font-size: .72rem;
  letter-spacing: .15em;
}

.example-copy small {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark, #007d75);
  font-weight: 800;
  letter-spacing: .04em;
}

.example-copy p {
  margin: 8px 0 12px;
}

.case-toggle {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(122, 66, 220, .24);
  border-radius: 999px;
  background: #f5f0fc;
  color: var(--purple);
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.case-toggle:hover {
  border-color: rgba(122, 66, 220, .5);
  background: #eee4fb;
}

.case-toggle:focus-visible {
  outline: 3px solid rgba(0, 169, 157, .28);
  outline-offset: 3px;
}

.case-toggle:active {
  transform: translateY(1px);
}

.case-less,
.ai-example.is-expanded .case-more {
  display: none;
}

.ai-example.is-expanded .case-less {
  display: inline;
}

.case-details-shell {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .38s ease, opacity .28s ease;
}

.ai-example.is-expanded .case-details-shell {
  grid-template-rows: 1fr;
  opacity: 1;
}

.case-details {
  min-height: 0;
  overflow: hidden;
}

.case-details section:first-child {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(122, 66, 220, .13);
}

.case-details section + section {
  margin-top: 16px;
}

.case-details h4 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: .98rem;
}

.case-details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.principles-section {
  background: linear-gradient(180deg, #f5f2fb, #fcfbfe);
}

.principles-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 20px 70px;
}

.principles-layout > .section-heading {
  grid-row: span 2;
  margin: 0;
}

.principles-list {
  display: grid;
  gap: 8px;
}

.principle {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(122, 66, 220, .12);
}

.principle > span {
  color: var(--purple);
  font-weight: 900;
}

.principle p {
  margin: 5px 0 0;
  color: var(--muted);
}

.limits-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 23px;
  border: 1px solid rgba(0, 169, 157, .16);
  border-radius: 22px;
  background: #fff;
}

.limits-card > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(0, 169, 157, .11);
  color: #007d75;
  font-size: 1.2rem;
  font-weight: 900;
}

.limits-card h3,
.limits-card p {
  margin: 0;
}

.limits-card p {
  margin-top: 7px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid rgba(122, 66, 220, .16);
}

.faq-list details {
  padding: 0;
  border-bottom: 1px solid rgba(122, 66, 220, .16);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(122, 66, 220, .09);
  color: var(--purple);
  font-size: 1.25rem;
}

.faq-list details p {
  max-width: 780px;
  margin: -5px 0 22px;
  color: var(--muted);
}

.ai-contact {
  padding-top: 0;
}

.ai-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(34px, 6vw, 68px);
  border-radius: 34px;
  background: linear-gradient(125deg, #2d2638, #4e3472 55%, #176f70);
  color: #fff;
  box-shadow: 0 30px 70px rgba(63, 42, 91, .18);
}

.ai-contact-panel h2 {
  max-width: 820px;
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.ai-contact-panel p {
  max-width: 720px;
  margin: 0;
  color: #ddd5e6;
}

.ai-contact-panel .button {
  flex: 0 0 auto;
  color: #2d2638;
  background: #fff;
}

@media (max-width: 1080px) {
  .ai-hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 36px;
  }

  .ai-solution {
    grid-template-columns: 64px 1fr;
  }

  .solution-flow {
    grid-column: 2;
    justify-content: flex-start;
  }

  .ai-solution dl {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .ai-hero-grid,
  .usefulness-layout,
  .principles-layout {
    grid-template-columns: 1fr;
  }

  .ai-hero-grid {
    gap: 48px;
  }

  .ai-demo {
    width: min(100%, 620px);
    margin: 0 auto;
  }

  .usefulness-layout .section-heading {
    position: static;
  }

  .principles-layout > .section-heading {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .ai-hero {
    padding: 50px 0 64px;
  }

  .ai-hero-copy h1 {
    font-size: clamp(2.55rem, 12vw, 4.2rem);
  }

  .difference-grid,
  .usefulness-grid {
    grid-template-columns: 1fr;
  }

  .useful-item:nth-child(2),
  .useful-item:nth-child(4) {
    transform: none;
  }

  .ai-solution {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }

  .solution-index {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .solution-flow,
  .ai-solution dl {
    grid-column: 1 / -1;
  }

  .solution-flow {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 4px;
  }

  .solution-flow span {
    white-space: normal;
  }

  .ai-solution dl {
    grid-template-columns: 1fr;
  }

  .ai-example-main {
    grid-template-columns: 120px 1fr;
    gap: 18px;
  }

  .example-image,
  .example-symbol {
    height: 130px;
  }

  .ai-contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .breadcrumbs {
    margin-bottom: 20px;
  }

  .ai-hero-grid {
    gap: 34px;
  }

  .ai-lab {
    padding: 11px;
    border-radius: 24px;
  }

  .lab-head {
    grid-template-columns: 42px 1fr 8px;
  }

  .lab-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .lab-tabs {
    gap: 4px;
    padding: 5px;
  }

  .lab-tabs button {
    min-width: 0;
    padding: 8px 5px;
    font-size: .72rem;
  }

  .lab-tabs button span {
    display: none;
  }

  .lab-stage {
    padding-top: 13px;
  }

  .lab-message,
  .lab-analysis {
    max-width: 94%;
  }

  .lab-analysis {
    width: 94%;
    margin-left: 3%;
  }

  .lab-message p {
    font-size: .83rem;
  }

  .context-chips span:nth-child(3) {
    display: none;
  }

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

  .ai-example {
    padding: 14px;
  }

  .ai-example-main {
    grid-template-columns: 1fr;
  }

  .example-image,
  .example-symbol {
    height: 180px;
  }

  .example-copy {
    padding: 3px 5px 8px;
  }

  .case-toggle {
    width: 100%;
  }

  .case-details {
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-core::after {
    animation: none;
  }

  .case-details-shell,
  .case-toggle {
    transition: none;
  }
}

/* Revision 002: static portrait and two distinct AI solution groups */
.ai-portrait {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.ai-portrait figure {
  position: relative;
  z-index: 2;
  width: min(80%, 450px);
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 32px 8px 32px 8px;
  background: transparent;
  box-shadow: none;
}

.ai-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 32px 8px 32px 8px;
  filter: drop-shadow(0 30px 35px rgba(49, 24, 70, .16));
}

.portrait-glow {
  position: absolute;
  z-index: 1;
  width: 86%;
  aspect-ratio: 1;
  right: -7%;
  bottom: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 157, .2), rgba(122, 66, 220, .1) 48%, transparent 72%);
  filter: blur(6px);
}

.solutions-section {
  background: linear-gradient(180deg, #f7f4fb, #fcfbfe);
  color: var(--ink);
}

.solutions-section .section-heading p {
  color: var(--muted);
}

.solutions-section .kicker {
  color: var(--purple);
}

.solution-group {
  padding: clamp(28px, 5vw, 54px);
  border-radius: 34px;
}

.solution-group + .solution-group {
  margin-top: 24px;
}

.funnel-group {
  border: 1px solid rgba(122, 66, 220, .14);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 60px rgba(64, 45, 91, .08);
}

.agent-group {
  color: #fff;
  background:
    radial-gradient(circle at 85% 0, rgba(0, 169, 157, .24), transparent 34%),
    linear-gradient(135deg, #27212f, #413057 58%, #1f5558);
  box-shadow: 0 26px 70px rgba(46, 34, 60, .18);
}

.group-heading {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 980px;
  margin-bottom: 30px;
}

.group-number {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--purple), #a36ce8);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(122, 66, 220, .22);
}

.agent-group .group-number {
  background: linear-gradient(135deg, #9b68e9, var(--teal));
}

.group-label {
  display: block;
  margin-bottom: 5px;
  color: var(--purple);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.agent-group .group-label {
  color: #76ded5;
}

.group-heading h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.group-heading p {
  max-width: 920px;
  margin: 12px 0 0;
  color: var(--muted);
}

.agent-group .group-heading p {
  color: #d8d0df;
}

.funnel-ai-grid,
.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.agent-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.funnel-ai-card,
.agent-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 25px;
  border-radius: 24px;
}

.funnel-ai-card {
  border: 1px solid rgba(122, 66, 220, .12);
  background: linear-gradient(145deg, #fff, #faf8fd);
}

.agent-card {
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .075);
  backdrop-filter: blur(10px);
}

.agent-card:last-child {
  grid-column: 2;
}

.group-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: rgba(122, 66, 220, .1);
  color: var(--purple);
  font-size: 1.1rem;
  font-weight: 900;
}

.agent-card .group-card-icon {
  color: #fff;
  background: linear-gradient(135deg, rgba(157, 103, 235, .78), rgba(0, 169, 157, .72));
}

.funnel-ai-card h3,
.agent-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.funnel-ai-card > p,
.agent-card > p {
  margin: 11px 0 22px;
}

.funnel-ai-card > p {
  color: var(--muted);
}

.agent-card > p {
  color: #d9d2e0;
}

.funnel-ai-card > div,
.agent-card > div {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(122, 66, 220, .11);
}

.agent-card > div {
  border-top-color: rgba(255, 255, 255, .11);
}

.funnel-ai-card b,
.agent-card b {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.funnel-ai-card b {
  color: var(--purple);
}

.agent-card b {
  color: #76ded5;
}

.funnel-ai-card div span,
.agent-card div span {
  font-size: .84rem;
  line-height: 1.55;
}

.agent-card div span {
  color: #d9d2e0;
}

.group-summary,
.integration-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 17px;
}

.group-summary {
  background: linear-gradient(90deg, rgba(122, 66, 220, .09), rgba(0, 169, 157, .08));
}

.integration-note {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
}

.group-summary b,
.integration-note b {
  flex: 0 0 auto;
}

.group-summary span {
  color: var(--muted);
}

.integration-note span {
  color: #d9d2e0;
}

.choice-section {
  background: #fff;
}

.choice-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.choice-option {
  position: relative;
  min-height: 310px;
  padding: clamp(27px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(122, 66, 220, .13);
  border-radius: 28px;
  background: linear-gradient(145deg, #fbf8ff, #fff);
  box-shadow: 0 18px 50px rgba(64, 45, 91, .07);
}

.choice-option.agent {
  background: linear-gradient(145deg, #f5fbfa, #f8f4fc);
}

.choice-option > span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--purple);
  font-weight: 900;
}

.choice-option h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.choice-option p {
  margin: 12px 0 26px;
  color: var(--muted);
}

.choice-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-route b {
  padding: 8px 11px;
  border-radius: 10px;
  background: #fff;
  color: #51475d;
  font-size: .74rem;
  box-shadow: 0 7px 18px rgba(64, 45, 91, .08);
}

.choice-route i {
  color: var(--teal);
  font-style: normal;
}

.choice-footnote {
  margin: 18px 0 0;
  padding: 18px 22px;
  border-left: 4px solid var(--teal);
  border-radius: 0 16px 16px 0;
  background: #f6fbfa;
  color: var(--muted);
}

.choice-footnote b {
  color: var(--ink);
}

@media (max-width: 980px) {
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .ai-portrait figure {
    width: min(80%, 396px);
  }

  .ai-portrait img {
    height: auto;
  }

  .solution-group {
    padding: 24px 16px;
    border-radius: 26px;
  }

  .group-heading {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
  }

  .group-number {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .funnel-ai-grid,
  .agent-grid,
  .choice-comparison {
    grid-template-columns: 1fr;
  }

  .funnel-ai-card,
  .agent-card {
    min-height: 0;
  }

  .group-summary,
  .integration-note {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .ai-portrait figure {
    border-width: 5px;
    border-radius: 26px;
  }

  .group-heading {
    grid-template-columns: 1fr;
  }
}
