.hg-platform-page-hero,
.hg-platform-feature,
.hg-platform-final {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 132px) clamp(18px, 7vw, 104px);
}

.hg-platform-page-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  min-height: calc(100svh - 76px);
  background:
    radial-gradient(circle at 76% 16%, rgba(194, 154, 96, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 238, 234, 0.95)),
    var(--warm);
}

.hg-platform-page-hero::before,
.hg-platform-final::before {
  position: absolute;
  inset: 42px clamp(18px, 5vw, 72px);
  content: "";
  border: 1px solid rgba(194, 154, 96, 0.2);
  border-radius: 44px;
  pointer-events: none;
}

.hg-platform-page-hero__content,
.hg-platform-page-hero__visual,
.hg-platform-feature__content,
.hg-platform-feature__visual,
.hg-platform-final__content,
.hg-platform-final__visual {
  position: relative;
  z-index: 1;
}

.hg-platform-page-hero h1 {
  max-width: 11ch;
  margin: 10px 0 22px;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hg-platform-page-hero p,
.hg-platform-feature p,
.hg-platform-final p {
  max-width: 44rem;
}

.hg-platform-page-hero__note {
  position: relative;
  padding-left: 20px;
  color: rgba(31, 48, 63, 0.86);
  font-weight: 850;
}

.hg-platform-page-hero__note::before,
.hg-platform-feature__list li::before,
.hg-platform-final p::before {
  position: absolute;
  content: "";
}

.hg-platform-page-hero__note::before {
  top: 0.42em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(194, 154, 96, 0.16);
}

.hg-platform-page-hero__visual,
.hg-platform-feature__visual,
.hg-platform-final__visual {
  margin: 0;
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid rgba(194, 154, 96, 0.32);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    0 34px 90px rgba(31, 48, 63, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.hg-platform-page-hero__visual picture,
.hg-platform-page-hero__visual img,
.hg-platform-feature__visual picture,
.hg-platform-feature__visual img,
.hg-platform-final__visual picture,
.hg-platform-final__visual img {
  display: block;
  width: 100%;
}

.hg-platform-page-hero__visual img,
.hg-platform-feature__visual img,
.hg-platform-final__visual img {
  aspect-ratio: 1448 / 1086;
  border-radius: 24px;
  object-fit: cover;
  object-position: 50% 50%;
}

.hg-platform-page-hero__visual::after,
.hg-platform-feature__visual::after,
.hg-platform-final__visual::after {
  position: absolute;
  inset: 16px;
  content: "";
  border-radius: 26px;
  background:
    linear-gradient(120deg, rgba(20, 34, 49, 0.12), transparent 34%),
    linear-gradient(0deg, rgba(20, 34, 49, 0.26), transparent 30%);
  pointer-events: none;
}

.hg-platform-page-hero.is-platform-active .hg-platform-page-hero__visual,
.hg-platform-feature.is-platform-active .hg-platform-feature__visual,
.hg-platform-final.is-platform-active .hg-platform-final__visual {
  border-color: rgba(194, 154, 96, 0.5);
}

.hg-platform-page-hero__float,
.hg-platform-feature__badge {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 196px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  box-shadow: 0 18px 46px rgba(20, 34, 49, 0.2);
  backdrop-filter: blur(16px);
}

.hg-platform-page-hero__float strong,
.hg-platform-feature__badge strong {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hg-platform-page-hero__float span,
.hg-platform-feature__badge span {
  color: var(--navy);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 900;
}

.hg-platform-page-hero__float--schedule {
  top: clamp(18px, 3vw, 42px);
  left: clamp(18px, 3vw, 42px);
}

.hg-platform-page-hero__float--privacy {
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
}

.hg-platform-page-hero__sidecard {
  position: absolute;
  right: -5%;
  bottom: -12%;
  z-index: 2;
  width: min(320px, 34vw);
  padding: 8px;
  border: 1px solid rgba(194, 154, 96, 0.34);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 70px rgba(31, 48, 63, 0.22);
  transform: rotate(2deg);
}

.hg-platform-page-hero__sidecard img {
  border-radius: 16px;
}

.hg-platform-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(380px, 1.08fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  background: var(--white);
}

.hg-platform-feature:nth-of-type(odd) {
  background:
    radial-gradient(circle at 16% 20%, rgba(194, 154, 96, 0.12), transparent 28%),
    var(--warm);
}

.hg-platform-feature--reverse .hg-platform-feature__content {
  order: 2;
}

.hg-platform-feature h2,
.hg-platform-final h2 {
  max-width: 13ch;
  margin-top: 10px;
  color: var(--navy);
  font-size: clamp(2.35rem, 5.2vw, 5.1rem);
  line-height: 0.95;
}

.hg-platform-feature__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hg-platform-feature__list li {
  position: relative;
  min-height: 52px;
  padding: 14px 14px 14px 42px;
  border: 1px solid rgba(31, 48, 63, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(31, 48, 63, 0.76);
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(31, 48, 63, 0.06);
}

.hg-platform-feature__list li::before {
  top: 18px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(194, 154, 96, 0.12);
}

.hg-platform-feature--dark {
  background:
    radial-gradient(circle at 82% 20%, rgba(194, 154, 96, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(31, 48, 63, 0.98), rgba(20, 34, 49, 0.96)),
    var(--navy);
  color: var(--white);
}

.hg-platform-feature--dark h2 {
  color: var(--white);
}

.hg-platform-feature--dark p {
  color: rgba(255, 255, 255, 0.78);
}

.hg-platform-feature--dark .secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.hg-platform-feature__visual--certificate {
  max-width: min(520px, 100%);
  justify-self: center;
}

.hg-platform-feature__visual--certificate img {
  aspect-ratio: 1059 / 1485;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
}

.hg-platform-feature__badge {
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
}

.hg-platform-final {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(194, 154, 96, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(241, 238, 234, 0.96)),
    var(--warm);
}

@media (max-width: 1080px) {
  .hg-platform-page-hero,
  .hg-platform-feature,
  .hg-platform-final {
    grid-template-columns: 1fr;
  }

  .hg-platform-feature--reverse .hg-platform-feature__content {
    order: 0;
  }

  .hg-platform-page-hero h1,
  .hg-platform-feature h2,
  .hg-platform-final h2 {
    max-width: 15ch;
  }
}

@media (max-width: 680px) {
  .hg-platform-page-hero,
  .hg-platform-feature,
  .hg-platform-final {
    padding: 56px 18px;
  }

  .hg-platform-page-hero::before,
  .hg-platform-final::before {
    inset: 18px;
    border-radius: 28px;
  }

  .hg-platform-page-hero__visual,
  .hg-platform-feature__visual,
  .hg-platform-final__visual {
    padding: 8px;
    border-radius: 26px;
  }

  .hg-platform-page-hero__visual img,
  .hg-platform-feature__visual img,
  .hg-platform-final__visual img {
    min-height: 300px;
    border-radius: 20px;
  }

  .hg-platform-page-hero__visual::after,
  .hg-platform-feature__visual::after,
  .hg-platform-final__visual::after {
    inset: 8px;
    border-radius: 20px;
  }

  .hg-platform-page-hero__sidecard {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
    transform: none;
  }

  .hg-platform-page-hero__float,
  .hg-platform-feature__badge {
    position: relative;
    inset: auto;
    min-width: 0;
    margin: 10px 8px 0;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .hg-platform-feature__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hg-platform-page-hero *,
  .hg-platform-feature *,
  .hg-platform-final * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
