.hero-grid > *,
.process-grid > *,
.solution-grid > *,
.contact-grid > * {
  min-width: 0;
}

.footer-grid img {
  width: 96px;
  height: auto;
  aspect-ratio: 1642 / 958;
  object-fit: contain;
}

.code-lines > div {
  width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.code-lines.typing-active > div:nth-child(1) {
  animation: type-code-line .9s steps(18, end) .1s forwards;
}

.code-lines.typing-active > div:nth-child(2) {
  animation: type-code-line 1.05s steps(21, end) 1.35s forwards;
}

.code-lines.typing-active > div:nth-child(3) {
  animation: type-code-line 1.15s steps(23, end) 2.8s forwards;
}

.code-lines.typing-active > div:nth-child(4) {
  animation: type-code-line .95s steps(17, end) 4.25s forwards;
}

.code-lines.typing-active > div:nth-child(5) {
  animation: type-code-line 1.35s steps(26, end) 5.65s forwards;
}

.code-signature {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.code-lines.typing-complete > div {
  width: 100%;
}

@keyframes type-code-line {
  from { width: 0; }
  to { width: 100%; }
}

.platform-showcase {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 48%, rgba(34, 184, 167, .26), transparent 28%),
    linear-gradient(145deg, #f5f1f8, #d7f5f1);
  box-shadow: inset 0 0 0 1px rgba(50, 19, 79, .06);
}

.foundation-section {
  padding-top: 20px;
  background: linear-gradient(180deg, #fff, #faf8fb);
}

.foundation-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 52px;
}

.foundation-heading > p {
  margin: 0 0 7px;
  color: #6e6873;
  font-size: 17px;
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.foundation-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #e8e1ec;
  border-radius: 22px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.foundation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(50, 19, 79, .12);
}

.foundation-card.foundation-dark {
  color: #fff;
  border-color: #32134f;
  background: #32134f;
}

.foundation-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #32134f;
  background: #d7f5f1;
  font-size: 23px;
}

.foundation-card h3 {
  margin: 22px 0 10px;
  font: 700 19px Sora, sans-serif;
}

.foundation-card p {
  min-height: 120px;
  margin: 0;
  color: #6e6873;
  font-size: 14px;
}

.foundation-dark p {
  color: #d4c9db;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.tech-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #32134f;
  background: #f5f1f8;
  font-size: 10px;
  font-weight: 700;
}

.foundation-dark .tech-tags span {
  color: #b9ece6;
  background: rgba(255, 255, 255, .1);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 0;
  padding: 18px 22px;
  border-radius: 15px;
  color: #514957;
  background: #d7f5f1;
  font-size: 13px;
}

.security-note span {
  color: #148f82;
  font-weight: 800;
}

.form-status:not(:empty) {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 15px 17px;
  border-radius: 13px;
  text-align: left;
}

.form-status strong,
.form-status span {
  display: block;
}

.form-status span {
  font-size: 12px;
}

.form-status.success {
  color: #0c6259;
  border: 1px solid #9ee1d9;
  background: #e5f8f5;
}

.form-status.error {
  color: #8a2020;
  border: 1px solid #efb8b8;
  background: #fff0f0;
}

.submit-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.platform-showcase::before,
.platform-showcase::after {
  content: "";
  position: absolute;
  inset: 13% 20%;
  border: 1px dashed rgba(50, 19, 79, .19);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.platform-showcase::after {
  inset: 25% 9%;
  transform: rotate(25deg);
}

.platform-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 145px;
  height: 145px;
  display: grid;
  place-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: #32134f;
  box-shadow: 0 22px 50px rgba(50, 19, 79, .26);
}

.platform-core span {
  font: 700 32px Sora, sans-serif;
}

.platform-core small {
  max-width: 90px;
  color: #b9ece6;
  font-size: 10px;
  line-height: 1.35;
}

.platform-card {
  position: absolute;
  z-index: 3;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(50, 19, 79, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 15px 35px rgba(50, 19, 79, .12);
}

.platform-card strong,
.platform-card small {
  display: block;
}

.platform-card strong {
  color: #32134f;
  font: 700 14px Sora, sans-serif;
}

.platform-card small {
  color: #6e6873;
  font-size: 10px;
}

.platform-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: #22b8a7;
  font-size: 20px;
}

.platform-android { left: 6%; top: 10%; }
.platform-ios { right: 5%; top: 14%; }
.platform-web { left: 3%; top: 44%; }
.platform-desktop { right: 3%; top: 48%; }
.platform-tv { left: 28%; bottom: 7%; }

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -14px 0 34px;
}

.platform-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #32134f;
  background: #d7f5f1;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .platform-showcase {
    min-height: 540px;
  }

  .foundation-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .foundation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), 1160px);
  }

  .hero h1 span {
    display: block;
  }

  .hero-copy,
  .hero-text,
  .code-card {
    max-width: 100%;
  }

  .platform-showcase {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .foundation-card p {
    min-height: 0;
  }

  .platform-showcase::before,
  .platform-showcase::after {
    display: none;
  }

  .platform-core,
  .platform-card {
    position: static;
    width: 100%;
    min-width: 0;
    transform: none;
  }

  .platform-core {
    height: 105px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .code-lines > div {
    width: 100%;
  }
}
