/* =========================================
   AI & AUTOMATION PAGE
========================================= */

.ai-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.ai-section .container,
.ai-final-cta .container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ai-eyebrow {
  display: inline-block;
  color: #16b8d4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}

.ai-section h2,
.ai-final-cta h2 {
  color: #fff;
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 750;
}

.ai-section h2 em,
.ai-final-cta h2 em {
  color: #19bdd8;
  font-style: normal;
}

.ai-section p {
  color: #aabbd0;
  line-height: 1.85;
  font-size: 15px;
}

/* Reveal animation */

.ai-animate {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}

.ai-animate.ai-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-capability-row:nth-child(2),
.ai-usecase-item:nth-child(2),
.ai-workflow-step:nth-child(2) {
  transition-delay: .1s;
}

.ai-capability-row:nth-child(3),
.ai-usecase-item:nth-child(3),
.ai-workflow-step:nth-child(3) {
  transition-delay: .2s;
}

.ai-capability-row:nth-child(4),
.ai-usecase-item:nth-child(4),
.ai-workflow-step:nth-child(4) {
  transition-delay: .3s;
}

/* INTRO */

.ai-intro-section {
  background:
    radial-gradient(circle at 80% 50%, rgba(0, 183, 220, .12), transparent 32%),
    #071a33;
}

.ai-intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 75px;
}

.ai-intro-copy h2 {
  max-width: 600px;
}

.ai-intro-copy p {
  max-width: 570px;
  margin-bottom: 28px;
}

.ai-text-link {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: #25c5df;
  font-weight: 700;
  text-decoration: none;
  transition: gap .3s ease;
}

.ai-text-link:hover {
  gap: 20px;
}

/* Animated AI visual */

.ai-intro-visual {
  min-height: 390px;
  position: relative;
  display: grid;
  place-items: center;
}

.ai-visual-glow {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(0, 190, 230, .12);
  filter: blur(45px);
  animation: aiGlow 4s ease-in-out infinite alternate;
}

.ai-visual-center {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(48, 202, 231, .45);
  border-radius: 50%;
  background: linear-gradient(145deg, #102d4d, #07172c);
  box-shadow: 0 0 65px rgba(0, 190, 230, .15), inset 0 0 35px rgba(0, 190, 230, .1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.ai-visual-icon {
  color: #26c9e4;
  font-size: 48px;
  animation: aiFloat 3s ease-in-out infinite;
}

.ai-visual-center strong {
  color: white;
  font-size: 17px;
}

.ai-visual-center small {
  color: #9eb5ca;
  font-size: 11px;
}

.ai-orbit {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border: 1px solid rgba(42, 198, 226, .5);
  border-radius: 15px;
  color: #2ac8e3;
  background: #102b49;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  font-size: 19px;
  animation: aiFloat 3.5s ease-in-out infinite;
}

.ai-orbit-one { top: 12%; left: 18%; }
.ai-orbit-two { top: 15%; right: 14%; animation-delay: .5s; }
.ai-orbit-three { bottom: 14%; left: 17%; animation-delay: 1s; }
.ai-orbit-four { bottom: 13%; right: 17%; animation-delay: 1.5s; }

/* CAPABILITIES */

.ai-capabilities-section {
  background: #091e39;
}

.ai-section-heading {
  max-width: 720px;
  margin-bottom: 55px;
}

.ai-section-heading p {
  max-width: 650px;
}

.ai-capability-list {
  border-top: 1px solid rgba(160, 190, 215, .2);
}

.ai-capability-row {
  display: grid;
  grid-template-columns: 55px 65px 1fr 25px;
  align-items: center;
  gap: 25px;
  padding: 32px 10px;
  border-bottom: 1px solid rgba(160, 190, 215, .2);
  transition: background .35s ease, padding .35s ease;
}

.ai-capability-row:hover {
  padding-left: 22px;
  background: rgba(24, 183, 215, .055);
}

.ai-row-number {
  color: #21c2dd;
  font-size: 14px;
  font-weight: 800;
}

.ai-row-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  color: #25c5df;
  font-size: 23px;
  border: 1px solid rgba(37, 197, 223, .3);
  border-radius: 50%;
  transition: .35s ease;
}

.ai-capability-row:hover .ai-row-icon {
  color: #06162e;
  background: #25c5df;
  transform: rotateY(180deg);
}

.ai-row-content h3 {
  color: white;
  font-size: 21px;
  margin: 0 0 8px;
}

.ai-row-content p {
  margin: 0 0 10px;
  max-width: 760px;
}

.ai-tags {
  color: #27bfd9;
  font-size: 11px;
  letter-spacing: .4px;
}

.ai-row-arrow {
  color: #7c9bb7;
  transition: .3s ease;
}

.ai-capability-row:hover .ai-row-arrow {
  color: #26c9e4;
  transform: translate(4px, -4px);
}

/* USE CASES */

.ai-usecases-section {
  background: #06162e;
}

.ai-usecases-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 50px;
}

.ai-usecases-heading > div {
  max-width: 650px;
}

.ai-usecases-heading > p {
  max-width: 390px;
}

.ai-usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(160, 190, 215, .22);
  border-bottom: 1px solid rgba(160, 190, 215, .22);
}

.ai-usecase-item {
  min-height: 260px;
  padding: 30px 25px;
  border-right: 1px solid rgba(160, 190, 215, .22);
  transition: background .35s ease, transform .35s ease;
}

.ai-usecase-item:last-child {
  border-right: 0;
}

.ai-usecase-item:hover {
  background: rgba(23, 187, 219, .07);
  transform: translateY(-8px);
}

.ai-usecase-item > span {
  display: block;
  color: #22c2dd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 35px;
}

.ai-usecase-item > i {
  display: block;
  color: #29c5df;
  font-size: 30px;
  margin-bottom: 20px;
}

.ai-usecase-item h3 {
  color: white;
  font-size: 19px;
  margin: 0 0 10px;
}

.ai-usecase-item p {
  font-size: 13px;
  margin: 0;
}

/* WORKFLOW */

.ai-workflow-section {
  background:
    radial-gradient(circle at 50% 100%, rgba(20, 177, 214, .1), transparent 45%),
    #0a203b;
}

.ai-workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 20px;
}

.ai-workflow-line {
  position: absolute;
  top: 53px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #20c1dc, #20c1dc, transparent);
}

.ai-workflow-step {
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.ai-step-number {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  color: #071a33;
  background: #25c5df;
  border: 8px solid #0a203b;
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 28px;
  box-shadow: 0 0 0 1px rgba(37, 197, 223, .5);
}

.ai-workflow-step > i {
  color: #26c5df;
  font-size: 23px;
  margin-bottom: 15px;
}

.ai-workflow-step h3 {
  color: white;
  font-size: 20px;
  margin: 12px 0;
}

.ai-workflow-step p {
  font-size: 13px;
}

/* RESPONSIBLE AI */

.ai-trust-section {
  background: #06162e;
}

.ai-trust-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 90px;
}

.ai-trust-visual {
  min-height: 350px;
  display: grid;
  place-items: center;
  position: relative;
}

.ai-trust-circle {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #28c8e2;
  border: 1px solid rgba(40, 200, 226, .55);
  background: radial-gradient(circle, rgba(29, 183, 215, .18), rgba(9, 30, 57, .5));
  box-shadow: 0 0 65px rgba(30, 185, 218, .12);
  animation: aiPulse 3.5s ease-in-out infinite;
}

.ai-trust-circle i {
  font-size: 65px;
}

.ai-trust-circle span {
  color: white;
  font-weight: 700;
}

.ai-trust-line {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(37, 197, 223, .3);
  border-radius: 50%;
  animation: aiRotate 22s linear infinite;
}

.ai-trust-line-two {
  width: 350px;
  height: 350px;
  animation-direction: reverse;
}

.ai-trust-line-three {
  width: 400px;
  height: 400px;
  opacity: .4;
}

.ai-trust-copy p {
  max-width: 650px;
}

.ai-trust-list {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
}

.ai-trust-list li {
  color: #d1dfed;
  padding: 12px 0;
  border-bottom: 1px solid rgba(160, 190, 215, .15);
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 14px;
}

.ai-trust-list i {
  color: #24c4df;
}

/* CTA */

.ai-final-cta {
  padding: 50px 0 100px;
  background: #06162e;
}

.ai-final-cta-inner {
  padding: 60px;
  border: 1px solid rgba(43, 196, 222, .3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(24, 190, 220, .2), transparent 35%),
    linear-gradient(120deg, #102d4d, #0a203b);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.ai-final-cta-inner > div {
  max-width: 700px;
}

.ai-final-cta h2 {
  font-size: clamp(30px, 4vw, 43px);
}

.ai-final-cta p {
  color: #b6c8d9;
  line-height: 1.8;
  margin-bottom: 0;
}

.ai-final-cta .btn {
  flex-shrink: 0;
}

/* KEYFRAMES */

@keyframes aiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes aiGlow {
  from { transform: scale(.9); opacity: .55; }
  to { transform: scale(1.15); opacity: 1; }
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 35px rgba(30, 185, 218, .1); }
  50% { box-shadow: 0 0 75px rgba(30, 185, 218, .23); }
}

@keyframes aiRotate {
  to { transform: rotate(360deg); }
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .ai-intro-grid,
  .ai-trust-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .ai-intro-visual {
    min-height: 330px;
  }

  .ai-usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-usecase-item:nth-child(2) {
    border-right: 0;
  }

  .ai-usecase-item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(160, 190, 215, .22);
  }

  .ai-workflow {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .ai-workflow-line {
    display: none;
  }

  .ai-trust-visual {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .ai-section {
    padding: 70px 0;
  }

  .ai-capability-row {
    grid-template-columns: 35px 45px 1fr;
    gap: 12px;
    padding: 25px 0;
  }

  .ai-row-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .ai-row-content h3 {
    font-size: 17px;
  }

  .ai-row-content p {
    font-size: 13px;
  }

  .ai-row-arrow {
    display: none;
  }

  .ai-usecases-heading {
    display: block;
  }

  .ai-usecase-grid {
    grid-template-columns: 1fr;
  }

  .ai-usecase-item {
    min-height: auto;
    padding: 25px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(160, 190, 215, .22);
  }

  .ai-usecase-item:last-child {
    border-bottom: 0;
  }

  .ai-usecase-item > span {
    margin-bottom: 20px;
  }

  .ai-workflow {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ai-workflow-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 15px;
  }

  .ai-step-number {
    grid-row: span 3;
    margin-bottom: 0;
  }

  .ai-workflow-step > i {
    margin-top: 5px;
  }

  .ai-workflow-step h3 {
    margin: 5px 0;
  }

  .ai-workflow-step p {
    margin-top: 5px;
  }

  .ai-trust-line {
    width: 250px;
    height: 250px;
  }

  .ai-trust-line-two {
    width: 290px;
    height: 290px;
  }

  .ai-trust-line-three {
    width: 320px;
    height: 320px;
  }

  .ai-final-cta {
    padding: 20px 0 70px;
  }

  .ai-final-cta-inner {
    padding: 35px 25px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-animate,
  .ai-visual-glow,
  .ai-visual-icon,
  .ai-orbit,
  .ai-trust-circle,
  .ai-trust-line {
    animation: none !important;
    transition: none !important;
  }

  .ai-animate {
    opacity: 1;
    transform: none;
  }
}