/* Visa Assistance + AI Automation homepage service sections */
.visa-showcase,
.ai-showcase {
  position: relative;
  padding: 118px 0;
  overflow: hidden;
}

.visa-showcase {
  background: linear-gradient(180deg, #fff 0%, #f1fcfd 100%);
}

.showcase-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.showcase-head h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.02;
}

.section-lead {
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button-ghost:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px) scale(1.015);
}

/* ---- Visa bento grid ---- */
.visa-bento {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
}

.bento-tile {
  position: relative;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(188, 229, 234, .55);
  box-shadow: 0 10px 26px rgba(23, 89, 105, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(23, 89, 105, .14);
}

.bento-photo {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  overflow: hidden;
  min-height: 0;
}

.bento-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 47, 0) 45%, rgba(7, 21, 47, .62) 100%);
}

.bento-stat {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 18px;
  color: #fff;
}

.bento-stat strong {
  display: block;
  font-size: 26px;
  letter-spacing: -1.2px;
}

.bento-stat span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #d9f0f3;
}

.bento-group {
  grid-row: 1 / 2;
  padding: 26px 24px;
}

.tile-num {
  display: block;
  color: #8db8c0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 12px 0 14px;
  border-radius: 12px;
  background: var(--cyan-100);
  color: #2a7584;
}

.tile-icon svg {
  width: 19px;
  height: 19px;
}

.bento-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: -.4px;
  color: var(--navy);
}

.bento-group ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bento-group li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
}

.bento-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.bento-value {
  grid-column: 2 / 5;
  grid-row: 2 / 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  background: linear-gradient(120deg, #f6fefb 0%, #eefcfa 100%);
}

.bento-value .value-prop {
  flex: 1 1 320px;
  margin: 0;
  color: #2c3b3f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

/* ---- AI automation showcase ---- */
.ai-showcase {
  padding: 96px 0;
  background: linear-gradient(180deg, #f8fdfd 0%, #e6f8f9 100%);
}

.ai-showcase::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -110px;
  top: -90px;
  border-radius: 50%;
  background: rgba(88, 199, 72, .1);
  filter: blur(10px);
}

.ai-showcase .showcase-head {
  margin-bottom: 40px;
}

.ai-flow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 22px 30px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(188, 229, 234, .55);
  box-shadow: 0 10px 26px rgba(23, 89, 105, .08);
}

.workflow-node {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.node-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan-100);
  color: #2a7584;
  font-size: 16px;
}

.workflow-node strong {
  color: var(--navy);
  font-size: 11.5px;
  letter-spacing: .2px;
}

.workflow-node span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
}

.workflow-node.is-automation .node-dot {
  background: linear-gradient(135deg, var(--green) 0%, #3ea6c9 100%);
  color: #fff;
}

.workflow-line {
  flex: 0 1 70px;
  align-self: center;
  height: 4px;
  margin-top: -26px;
  overflow: visible;
}

.workflow-line line {
  stroke: #cfe9ec;
  stroke-width: 1.5;
}

.workflow-line .pulse-dot {
  fill: var(--green);
}

.ai-bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.ai-tile {
  padding: 20px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(188, 229, 234, .55);
  box-shadow: 0 8px 20px rgba(23, 89, 105, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}

.ai-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(23, 89, 105, .12);
}

.ai-tile .tile-num {
  color: #8db8c0;
}

.ai-tile h3 {
  margin: 10px 0 7px;
  font-size: 14.5px;
  letter-spacing: -.2px;
  color: var(--navy);
}

.ai-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.ai-tile-lead {
  background: linear-gradient(120deg, #f0fbf2 0%, #eafaf9 100%);
  border-color: rgba(88, 199, 72, .3);
}

.ai-cta-banner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 30px;
  border-radius: 22px;
  background: linear-gradient(120deg, #f6fefb 0%, #eefcfa 100%);
  border: 1px solid rgba(188, 229, 234, .55);
}

.ai-cta-banner strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.5px;
  color: var(--navy);
}

.ai-cta-banner span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

/* Visible by default; JS only arms the hidden state once it can guarantee the reveal will fire. */
.reveal {
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.reveal-armed.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion:reduce) {
  .reveal.reveal-armed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bento-tile,
  .ai-tile,
  .button-ghost,
  .button {
    transition: none;
  }
}

@media (max-width:960px) {
  .ai-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:800px) {

  .visa-showcase,
  .ai-showcase {
    padding: 70px 0;
  }

  .showcase-head {
    margin-bottom: 36px;
  }

  .showcase-head h2 {
    font-size: 36px;
    letter-spacing: -2px;
  }

  .visa-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-photo {
    grid-column: 1;
    grid-row: auto;
    min-height: 220px;
  }

  .bento-group {
    grid-row: auto;
  }

  .bento-value {
    grid-column: 1;
    grid-row: auto;
  }

  .ai-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px;
  }

  .workflow-line {
    display: none;
  }

  .ai-bento {
    grid-template-columns: 1fr;
  }

  .ai-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}