@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --gradient-silver: linear-gradient(to bottom, #383838 0%, #6e6e6e 50%, #d3d3d3 80%, #ffffff 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "DM Sans", sans-serif;
}

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

body {
  background: #0b0b0b;
  color: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
}

.text-silver-gradient {
  background: var(--gradient-silver);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.gateway {
  min-height: 100vh;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.gateway-intro {
  display: flex;
  justify-content: center;
  text-align: center;
}

.gateway-brand {
  width: min(100%, 360px);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.gateway-eyebrow,
.gateway-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gateway-eyebrow {
  margin-right: -0.2em;
  margin-bottom: -3rem;
  letter-spacing: 0.2em;
  z-index: 1;
}

.gateway-logo {
  width: 100%;
  height: auto;
  display: block;
}

.gateway-title {
  margin-top: -3rem;
  margin-right: -0.4em;
  letter-spacing: 0.5em;
  z-index: 1;
}

.gateway-connector {
  width: 352px;
  height: 80px;
  margin: -0.5rem auto 0;
}

.connector-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.gateway-flow {
  position: relative;
}

.connector-mobile {
  display: none;
}

.gateway-options {
  display: grid;
  grid-template-columns: repeat(2, 320px);
  justify-content: center;
  gap: 2rem;
}

.gateway-card {
  width: 320px;
  min-height: 430px;
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;

  text-align: center;

  border: 1px solid transparent;
  border-radius: 18px;

  background: linear-gradient(#0f0f0f, #0f0f0f) padding-box, var(--gradient-silver) border-box;

  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.gateway-card-title {
  margin-bottom: 0.5rem;

  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gateway-card-preview {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid transparent;
  border-radius: 14px;

  background: linear-gradient(#101010, #101010) padding-box, var(--gradient-silver) border-box;
}

.gateway-card-preview {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;

  overflow: hidden;

  border: 1px solid transparent;
  border-radius: 14px;

  background: linear-gradient(#101010, #101010) padding-box, var(--gradient-silver) border-box;
}

.gateway-card-action {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.65);
}

a.gateway-card:hover {
  transform: translateY(-4px);

  background: linear-gradient(#131313, #131313) padding-box, var(--gradient-silver) border-box;

  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(255, 255, 255, 0.025);
}

.gateway-card-preview img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center;
}

.gateway-card--disabled {
  opacity: 0.4;
  cursor: default;
}

.site-footer {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 0.875rem;
  color: rgba(245, 245, 245, 0.45);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 28px;
  height: auto;
  display: block;
}

.footer-copyright {
  margin: 0;
}

@media (max-width: 640px) {
  .gateway {
    width: 100%;
    padding: 32px 16px;
    gap: 1.5rem;
  }

  .gateway-brand {
    width: min(100%, 280px);
  }

  .gateway-eyebrow,
  .gateway-title {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .gateway-eyebrow {
    margin-right: -0.2em;
    margin-bottom: -3rem;
    letter-spacing: 0.2em;
    white-space: nowrap;
    z-index: 1;
  }

  .gateway-title {
    margin-top: -2.2rem;
  }

  .gateway-connector {
    display: none;
  }

  .gateway-flow {
    width: 100%;
    margin-top: 2.5rem;
  }

  .connector-mobile {
    position: absolute;
    top: -5rem;
    left: 0;
    z-index: 0;

    display: block;
    width: 100%;
    height: calc(100% + 2.5rem);

    overflow: visible;
    pointer-events: none;
  }

  .gateway-options {
    position: relative;
    z-index: 1;

    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3rem;

    padding-top: 1rem;
  }

  .gateway-card {
    width: min(100%, 280px);
    min-height: auto;
    padding: 1.25rem;
    gap: 1rem;
  }

  .gateway-card-preview {
    max-width: 220px;
  }

  .gateway-card-title {
    margin-bottom: 0.25rem;
  }

  .gateway-options {
    position: relative;
    z-index: 1;

    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2rem;

    padding-top: 1rem;
  }

  .site-footer {
    width: min(100% - 32px, 1100px);
    padding: 24px 0 32px;
  }
}
