/* ============================================================
   AI Solution — tall cards, large text→phone gap, cropped phones
   Scoped under .ai-solution only
   ============================================================ */

.ai-solution {
  --as-navy: #071a33;
  --as-navy-2: #0b1f3a;
  --as-bg: #06152b;
  --as-card: rgba(10, 28, 52, 0.95);
  --as-gold: #f2a11b;
  --as-gold-2: #ffb21c;
  --as-white: #ffffff;
  --as-muted: #aab7c8;
  --as-border: rgba(255, 255, 255, 0.14);
  --as-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --as-card-h: 720px;
  --as-phone-w: 90%;
  --as-phone-crop: 42%;

  position: relative;
  isolation: isolate;
  padding: 30px 0;
  background: var(--as-bg);
  color: var(--as-white);
  overflow: hidden;
}

.ai-solution__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 36% at 50% 0%, rgba(242, 161, 27, 0.07), transparent 70%),
    var(--as-bg);
}

.ai-solution__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 92% 85% at 50% 42%, #000 35%, transparent 92%);
}

.ai-solution__glow {
  position: absolute;
  left: 50%;
  top: 14%;
  width: min(60vw, 640px);
  height: 220px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 161, 27, 0.08), transparent 70%);
  filter: blur(32px);
}

.ai-solution__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
}

/* ---- Header ---- */

.ai-solution__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.ai-solution__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--as-gold);
}

.ai-solution__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--as-gold);
  box-shadow: 0 0 0 3px rgba(242, 161, 27, 0.18);
  flex-shrink: 0;
}

.ai-solution__title {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--as-white);
}

.ai-solution__accent {
  color: var(--as-gold);
}

.ai-solution__lede {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--as-muted);
}

/* ---- Feature row ---- */

.ai-solution__features {
  list-style: none;
  margin: 0 auto 36px;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  max-width: 100%;
  gap: 0;
}

.ai-solution__feature {
  flex: 1 1 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0 10px;
  position: relative;
}


.ai-solution__feature-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--as-gold);
}

.ai-solution__feature-icon svg {
  width: 100%;
  height: 100%;
}

.ai-solution__feature-text {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}

/* ---- Flow + cards (5 equal columns) ---- */

.ai-solution__flow {
  position: relative;
  margin: 0 0 32px;
  padding-top: 0;
}

.ai-solution__flow-line {
  position: absolute;
  top: 0;
  left: calc(10% + 6px);
  right: calc(10% + 6px);
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(242, 161, 27, 0.25) 0%,
    rgba(242, 161, 27, 0.9) 12%,
    rgba(242, 161, 27, 0.9) 88%,
    rgba(242, 161, 27, 0.25) 100%
  );
  transform-origin: left center;
  z-index: 0;
  pointer-events: none;
}

.ai-solution__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.ai-solution__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 550px;
  padding-top: 0;
}

.ai-solution__number {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #06152b;
  background: linear-gradient(145deg, var(--as-gold-2), var(--as-gold));
  border: 2px solid #06152b;
  box-shadow: 0 0 0 2px rgba(242, 161, 27, 0.22);
}

.ai-solution__chevron {
  position: absolute;
  top: 0;
  right: -14px;
  z-index: 2;
  transform: translateY(-50%);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(242, 161, 27, 0.9);
  pointer-events: none;
}

.ai-solution__card:last-child .ai-solution__chevron {
  display: none;
}

.ai-solution__card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  height: 100%;
  padding: 30px 12px 0;
  border-radius: 18px;
  background: var(--as-card);
  border: 1px solid var(--as-border);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    transform 0.4s var(--as-ease),
    border-color 0.4s var(--as-ease),
    box-shadow 0.4s var(--as-ease);
}

.ai-solution__card-title {
  margin: 0 0 8px;
  flex: 0 0 auto;
  order: 0;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--as-white);
  text-align: center;
  max-width: 100%;
}

.ai-solution__card-text {
  margin: 0 0 20px;
  flex: 0 0 auto;
  order: 1;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--as-muted);
  text-align: center;
  padding: 0 4px;
  max-width: 100%;
}

/* Phone sits at bottom; bottom portion clipped by card overflow */
.ai-solution__image {
  order: 3;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 var(--as-phone-crop);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.ai-solution__image img {
  display: block;
  width: var(--as-phone-w);
  max-width: 230px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  transition: transform 0.45s var(--as-ease);
  user-select: none;
  pointer-events: none;
  /* Scale past crop window so ~55% of phone remains visible */
  transform: scale(1.42);
  transform-origin: top center;
}

@media (hover: hover) and (pointer: fine) {
  .ai-solution__card:hover .ai-solution__card-body {
    transform: translateY(-4px);
    border-color: rgba(242, 161, 27, 0.4);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.38),
      0 0 24px rgba(242, 161, 27, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .ai-solution__card:hover .ai-solution__image img {
    transform: scale(1.46);
  }

  .ai-solution__card:hover .ai-solution__number {
    box-shadow:
      0 0 0 2px rgba(242, 161, 27, 0.28),
      0 0 14px rgba(242, 161, 27, 0.4);
  }
}

/* ---- Summary strip ---- */

.ai-solution__summary {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr) minmax(0, 1.15fr);
  gap: 16px 22px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(7, 26, 51, 0.78);
  border: 1px solid rgba(242, 161, 27, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.ai-solution__summary-lead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-solution__summary-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: var(--as-gold);
  flex-shrink: 0;
}

.ai-solution__summary-icon svg {
  width: 100%;
  height: 100%;
}

.ai-solution__summary-title {
  margin: 0;
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--as-white);
}

.ai-solution__summary-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--as-muted);
}

.ai-solution__summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-solution__summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  position: relative;
}

.ai-solution__summary-item-mark {
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--as-gold);
  box-shadow: 0 0 0 3px rgba(242, 161, 27, 0.16);
}

.ai-solution__summary-item-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--as-gold);
}

.ai-solution__summary-item-text {
  font-size: 0.68rem;
  color: var(--as-muted);
}

@media (prefers-reduced-motion: reduce) {
  .ai-solution__card-body,
  .ai-solution__image img,
  .ai-solution__flow-line {
    transition: none;
  }

  .ai-solution__card:hover .ai-solution__card-body {
    transform: none;
  }
}
