.ai-glass {
  border: 1px solid transparent;
  background:
    radial-gradient(ellipse at 5% 0%, #c1f4ffb3, transparent 56%) padding-box,
    radial-gradient(ellipse at 100% 100%, #cbd5ffb8, transparent 62%) padding-box,
    var(--ai-glass-surface, linear-gradient(145deg, #ffffffee, #f4f8fff2)) padding-box,
    var(--glass-rim, linear-gradient(135deg, #fff, #aae9f6 24%, #fff 55%, #b9caff 82%, #fff)) border-box;
  box-shadow: 0 18px 44px -30px #345f9b88, inset 0 1px 1px #fff;
}

.ai-workflow {
  display: grid;
  gap: clamp(16px, 2.4vw, 27px);
}

.ai-workflow > h2,
.ai-create-card > h2 {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 3.15rem);
  line-height: 1.16;
  letter-spacing: -.045em;
  text-align: center;
  text-wrap: balance;
}

.ai-workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.ai-workflow-step {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 11px;
  padding: clamp(20px, 3vw, 34px) clamp(15px, 2.3vw, 28px);
  border-radius: 24px;
  text-align: center;
}

.ai-step-number {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: 3px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #fff, #ddf3fb 58%, #c9e6f8);
  box-shadow: 0 6px 17px #397baf25, inset 0 0 0 1px #fff9;
  color: #194d87;
  font-size: 1.05rem;
  font-weight: 800;
}

.ai-workflow-step:nth-child(2) .ai-step-number {
  background: radial-gradient(circle at 30% 20%, #fff, #e6edff 58%, #cad6fc);
  color: #333c92;
}

.ai-workflow-step:nth-child(3) .ai-step-number {
  background: radial-gradient(circle at 30% 20%, #fff, #e2f7f8 58%, #c1e9ed);
  color: #0a6273;
}

.ai-workflow-step h3,
.ai-video-options h3 {
  font-size: clamp(1.14rem, 1.8vw, 1.5rem);
  line-height: 1.24;
  letter-spacing: -.028em;
}

.ai-workflow-step p,
.ai-video-options p,
.ai-dream-card p,
.ai-create-card p {
  color: #3d5573;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ai-video-options {
  padding: clamp(16px, 2.8vw, 32px);
  border-radius: 25px;
}

.ai-video-options p {
  margin-top: 8px;
}

.ai-video-options dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid #d8e5f3;
  border-radius: 17px;
  background: #dbe7f3;
}

.ai-video-options dl > div {
  padding: clamp(12px, 1.8vw, 20px);
  background: linear-gradient(145deg, #fdfefe, #eef5ff);
}

.ai-video-options dt {
  margin-bottom: 5px;
  color: #486380;
  font-size: .8rem;
  font-weight: 740;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ai-video-options dd {
  margin: 0;
  color: #203650;
  font-weight: 650;
  line-height: 1.5;
}

.ai-dream-card,
.ai-create-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(21px, 3vw, 35px);
  --ai-glass-surface: linear-gradient(144deg, #effbff 6%, #fff 48%, #eaf0ff);
}

.ai-dream-card {
  display: grid;
  align-content: center;
  min-height: 205px;
  padding: clamp(22px, 5vw, 56px);
}

.ai-dream-card::before,
.ai-create-card::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.ai-dream-card::before {
  inset: -62% -16% auto auto;
  width: clamp(280px, 57%, 710px);
  height: 204%;
  transform: rotate(-17deg);
  border: 1px solid #ffffffbe;
  border-radius: 52% 48% 49% 51%;
  background:
    radial-gradient(ellipse at 36% 38%, #ffffffb0, transparent 56%),
    radial-gradient(ellipse at 75% 75%, #b8c4ff7d, transparent 69%),
    radial-gradient(ellipse at 5% 30%, #b9eeff9c, transparent 67%);
  box-shadow: inset 0 0 42px #fff, inset 0 0 93px #a4d9f566, 0 0 32px #9ab8ff28;
}

.ai-dream-copy {
  width: min(66%, 680px);
}

.ai-dream-card h3 {
  color: #183c76;
  font-size: clamp(1.8rem, 3.3vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.ai-dream-card p {
  max-width: 54ch;
  margin-top: 11px;
}

.ai-create-card {
  padding: clamp(30px, 5.5vw, 62px) clamp(14px, 4vw, 44px);
  text-align: center;
}

.ai-create-card::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, #86bfff4f, transparent 58%),
    radial-gradient(ellipse at 32% 0%, #9bf2f76e, transparent 54%),
    radial-gradient(ellipse at 86% 28%, #b7aeff40, transparent 54%);
}

.ai-create-card > h2 {
  color: #183c76;
}

.ai-create-card > p {
  max-width: 56ch;
  margin: 12px auto 0;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  text-wrap: balance;
}

.ai-create-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  margin-top: 23px;
  padding: 5px 5px 5px 17px;
  border: 1px solid #294dc0;
  border-radius: 999px;
  background: linear-gradient(145deg, #245cc7, #3843bc);
  box-shadow: 0 9px 20px #385dd544, inset 0 1px 1px #e0ebff83;
  color: #fff;
  font-weight: 740;
}

.ai-create-link:hover {
  background: linear-gradient(145deg, #204eac, #3039a7);
}

.ai-create-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff73;
  border-radius: 50%;
  background: #e7f6ff;
  color: #244f9f;
}

.ai-create-arrow .icon {
  width: 17px;
  height: 17px;
  transform: rotate(-32deg);
}

html[lang="my"] .ai-workflow h2,
html[lang="my"] .ai-workflow h3,
html[lang="my"] .ai-create-card h2 {
  letter-spacing: 0;
  line-height: 1.45;
}

html[lang="my"] .ai-video-options dt {
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .ai-workflow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-workflow-step {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 13px;
    row-gap: 5px;
    justify-items: start;
    text-align: left;
  }

  .ai-step-number {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    margin: 0;
  }

  .ai-dream-copy {
    width: min(88%, 530px);
  }
}

@media (max-width: 480px) {
  .ai-video-options dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-dream-copy {
    width: 100%;
  }

  .ai-dream-card::before {
    opacity: .45;
  }
}
