:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f9f7;
  color: #17201d;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background: #f7f9f7;
}

a {
  color: inherit;
}

.gateway {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: clamp(2.5rem, 6vh, 4.5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at center, rgb(247 249 247 / 0%) 20%, #f7f9f7 82%),
    radial-gradient(circle, rgb(10 72 56 / 20%) 1.2px, transparent 1.4px);
  background-size: auto, 24px 24px;
  animation: atmosphere-in 1.2s ease-out both;
}

.atmosphere::after {
  content: none;
}

.brand {
  width: min(100%, 58rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  animation: rise-in 700ms 80ms ease-out both;
}

.brand img {
  border-radius: 11px;
}

.intro {
  width: min(100%, 58rem);
  margin-inline: auto;
  max-width: 42rem;
  margin-top: auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #0a4838;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  animation: rise-in 700ms 160ms ease-out both;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  animation: rise-in 820ms 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.guidance {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: #68736f;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  animation: rise-in 700ms 320ms ease-out both;
}

.platforms {
  width: min(100%, 58rem);
  margin-inline: auto;
  border-top: 1px solid rgb(23 32 29 / 20%);
  animation: rise-in 800ms 300ms ease-out both;
}

.platform {
  --platform-accent: #c56b3d;
  position: relative;
  display: grid;
  grid-template-columns: 2rem 4.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  min-height: clamp(9.5rem, 18vh, 12rem);
  padding: 1.4rem 0;
  border-bottom: 1px solid rgb(23 32 29 / 20%);
  text-decoration: none;
  transition: color 220ms ease, padding 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.platform::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--platform-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.platform--hodi {
  --platform-accent: #0a4838;
}

.platform--hodi img {
  background: #f7f9f7;
}

.platform:hover,
.platform:focus-visible {
  padding-inline: 1.25rem;
  color: #fff;
  outline: none;
}

.platform:hover::before,
.platform:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.platform__number {
  align-self: start;
  color: #7b8581;
  font: 600 0.68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.platform img {
  width: clamp(3.6rem, 6vw, 4.75rem);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 1.2rem 3rem rgb(0 0 0 / 18%);
  transition: transform 320ms ease;
}

.platform:hover img,
.platform:focus-visible img {
  transform: rotate(-3deg) scale(1.04);
}

.platform__copy {
  display: grid;
  gap: 0.55rem;
}

.platform__copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.platform__copy small {
  color: #68736f;
  font-size: 0.86rem;
  line-height: 1.4;
  transition: color 220ms ease;
}

.platform:hover small,
.platform:focus-visible small {
  color: rgb(255 255 255 / 78%);
}

.platform__arrow {
  font-size: 1.6rem;
  transition: transform 220ms ease;
}

.platform:hover .platform__arrow,
.platform:focus-visible .platform__arrow {
  transform: translate(0.3rem, -0.3rem);
}

footer {
  width: min(100%, 58rem);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: #77817d;
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  animation: rise-in 700ms 440ms ease-out both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes atmosphere-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 820px) {
  .intro {
    margin-top: 1rem;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
  }

  .platform {
    grid-template-columns: 1.5rem 3.75rem minmax(0, 1fr) auto;
    min-height: 8.5rem;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .gateway {
    padding: 1.25rem;
  }

  .platform {
    grid-template-columns: 3.8rem minmax(0, 1fr) auto;
  }

  .platform__number {
    display: none;
  }

  .platform__copy small {
    max-width: 13rem;
  }

  footer {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
