.gateway-page {
  background: #fbf7f7;
}
.gateway-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(255, 255, 255, 0.12),
      transparent 28%
    ),
    linear-gradient(125deg, var(--ugc-red-dark), var(--ugc-red) 58%, #c81536);
}
.gateway-header::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -220px;
  width: 530px;
  height: 530px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(255, 255, 255, 0.03),
    0 0 0 104px rgba(255, 255, 255, 0.025);
}
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}
.header-action {
  min-height: 42px;
  padding-inline: 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}
.header-action:hover {
  background: rgba(255, 255, 255, 0.17);
}
.gateway-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 0.7fr;
  align-items: center;
  min-height: 420px;
  padding-block: 70px 82px;
}
.hero-copy h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero-copy h1 em {
  color: #ffc4ce;
  font-family: var(--font-serif);
  font-weight: 400;
}
.hero-copy p {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}
.hero-mark {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 220px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 20px rgba(255, 255, 255, 0.035);
}
.hero-mark span {
  margin-bottom: -32px;
  font-family: var(--font-serif);
  font-size: 4rem;
}
.hero-mark small {
  margin-top: -40px;
  color: #ffd9df;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.gateway-section {
  padding-block: 78px 92px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}
.section-heading > p {
  max-width: 380px;
  margin: 0 0 7px;
  color: var(--muted);
}
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gateway-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.gateway-card:hover {
  transform: translateY(-4px);
  border-color: #dfbdc4;
  box-shadow: var(--shadow-md);
}
.gateway-card-featured {
  color: #fff;
  background: linear-gradient(140deg, var(--ugc-red-dark), var(--ugc-red));
  border-color: transparent;
}
.gateway-card-library {
  color: #fff;
  background: linear-gradient(140deg, var(--black), var(--black-light));
  border-color: var(--gold-dark);
}
.gateway-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--ugc-red);
  background: #fff0f2;
  font-size: 0.8rem;
  font-weight: 900;
}
.gateway-card-featured .gateway-icon,
.gateway-card-library .gateway-icon {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.1);
}
.gateway-card-copy strong,
.gateway-card-copy small {
  display: block;
}
.gateway-card-copy strong {
  margin-top: 2px;
  font-size: 1.06rem;
}
.gateway-card-copy small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}
.gateway-card-featured small,
.gateway-card-library small {
  color: rgba(255, 255, 255, 0.7);
}
.card-arrow {
  font-size: 1.15rem;
  opacity: 0.7;
}
.library-invite {
  color: #fff;
  background: var(--black);
  border-top: 1px solid #29251b;
}
.invite-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-block: 66px;
}
.invite-inner h2 {
  max-width: 700px;
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 400;
  line-height: 1.12;
}
.invite-inner p {
  max-width: 680px;
  margin: 16px 0 0;
  color: #b7b3a9;
}
.gateway-footer {
  margin-top: auto;
  color: #a49c9e;
  background: #1c1517;
  font-size: 0.8rem;
}
.gateway-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
}
@media (max-width: 900px) {
  .gateway-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-mark {
    width: 170px;
  }
}
@media (max-width: 700px) {
  .header-action {
    width: 44px;
    padding: 0;
    font-size: 0;
  }
  .header-action span {
    font-size: 1rem;
  }
  .gateway-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 68px;
  }
  .hero-mark {
    display: none;
  }
  .section-heading,
  .invite-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .gateway-grid {
    grid-template-columns: 1fr;
  }
  .gateway-card {
    min-height: 145px;
  }
  .gateway-footer .container {
    flex-direction: column;
  }
}
