.hero-section {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 852px);
  margin-top: -92px;
  overflow: hidden;
  padding-top: 92px;
  background:
    radial-gradient(
      circle at 91% 6%,
      rgb(69 191 209 / 13%),
      transparent 35%
    ),
    linear-gradient(180deg, #f9fdfe 0%, #ffffff 82%);
}

.hero-section__glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 76%,
      rgb(91 85 155 / 4%),
      transparent 30%
    );
}

.hero-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 584px) minmax(0, 544px);
  align-items: center;
  width: 100%;
  max-width: 1286px;
  min-height: min(calc(100svh - 92px), 760px);
  margin-inline: auto;
  padding: 42px 19px 64px 45px;
  gap: 94px;
}

@media (max-width: 1023px) {
  .hero-section {
    min-height: min(100svh, 836px);
    margin-top: -76px;
    padding-top: 76px;
  }

  .hero-section__inner {
    min-height: min(calc(100svh - 76px), 760px);
  }
}

.hero-section__content {
  position: relative;
  z-index: 2;
  inset-block-start: -18px;
  min-width: 0;
}

.hero-section__eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 13px;
  border: 1px solid rgb(69 191 209 / 35%);
  border-radius: 999px;
  background: rgb(69 191 209 / 10%);
  color: var(--color-brand-primary-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.hero-section__eyebrow svg {
  width: 18px;
  height: 18px;
}

.hero-section__title {
  max-width: 610px;
  margin: 23px 0 0;
  color: var(--color-text);
  font-size: clamp(46px, 4.35vw, 64px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.hero-section__title-line {
  display: block;
  white-space: nowrap;
}

.hero-title-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--color-brand-secondary);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-title-accent::after {
  position: absolute;
  z-index: -1;
  inset-inline: -7px -5px;
  inset-block-end: 8px;
  height: 12px;
  border-radius: 999px 45% 999px 42%;
  content: "";
  background: rgb(69 191 209 / 38%);
  transform: rotate(-1.2deg);
}

.hero-section__description {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 2;
}

.hero-section__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-section__primary-action,
.hero-section__secondary-action {
  display: inline-flex;
  min-width: 155px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 23px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.hero-section__primary-action {
  border: 1px solid var(--color-brand-secondary);
  background: var(--color-brand-secondary);
  color: white;
  box-shadow: 0 14px 32px rgb(91 85 155 / 20%);
}

.hero-section__primary-action svg {
  width: 19px;
  height: 19px;
}

.hero-section__primary-action:hover {
  border-color: var(--color-brand-secondary-dark);
  background: var(--color-brand-secondary-dark);
  box-shadow: 0 18px 38px rgb(91 85 155 / 26%);
  transform: translateY(-2px);
}

.hero-section__secondary-action {
  border: 1px solid rgb(69 191 209 / 70%);
  background: rgb(255 255 255 / 88%);
  color: var(--color-text);
}

.hero-section__secondary-action:hover {
  border-color: var(--color-brand-primary);
  background: var(--color-brand-primary-light);
  transform: translateY(-2px);
}

.hero-section__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid #e4e5ed;
}

.hero-section .hero-pillar {
  display: flex;
  min-height: auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.hero-section .hero-pillar + .hero-pillar {
  border-inline-start: 1px solid #e4e5ed;
}

.hero-section .hero-pillar strong {
  color: var(--color-brand-secondary);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.5;
}

.hero-section .hero-pillar span {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}

.hero-section__visual {
  position: relative;
  z-index: 1;
  inset-block-start: -16px;
  width: 100%;
  max-width: 544px;
  margin-inline: auto;
}

.hero-section__visual-outline {
  position: absolute;
  z-index: -1;
  inset: 22px -18px -20px 20px;
  border: 1px solid rgb(69 191 209 / 55%);
  border-radius: 38px;
}

.hero-section__visual-outline::after {
  position: absolute;
  inset-inline-start: 72%;
  inset-block-end: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid rgb(69 191 209 / 65%);
  border-radius: 50%;
  content: "";
  background: white;
}

.hero-section__visual-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 40px;
  background: #d9f6fa;
  box-shadow: 0 28px 70px rgb(63 59 89 / 9%);
}

.hero-section__visual-frame::after {
  position: absolute;
  inset: 21px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 31px;
  content: "";
  pointer-events: none;
}

.hero-section__visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-care-card {
  --hero-care-edge-angle: 0deg;
  position: absolute;
  z-index: 3;
  inset-block: auto 10px;
  right: auto;
  left: 50%;
  display: flex;
  width: 238px;
  min-height: 76px;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: 19px;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 78%),
    rgb(243 252 253 / 58%)
  );
  box-shadow:
    0 18px 44px rgb(63 59 89 / 14%),
    0 0 0 1px rgb(69 191 209 / 13%),
    inset 0 1px 0 rgb(255 255 255 / 92%);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  isolation: isolate;
}

.hero-care-card::before {
  position: absolute;
  z-index: -1;
  inset: -3px;
  padding: 3px;
  border-radius: 22px;
  content: "";
  pointer-events: none;
  background: conic-gradient(
    from var(--hero-care-edge-angle),
    transparent 0deg 210deg,
    rgb(69 191 209 / 16%) 238deg,
    rgb(168 235 243 / 96%) 270deg,
    rgb(91 85 155 / 72%) 302deg,
    transparent 336deg 360deg
  );
  filter: drop-shadow(0 0 8px rgb(69 191 209 / 48%));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: hero-care-card-edge-light 8s linear infinite;
}

@property --hero-care-edge-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes hero-care-card-edge-light {
  to {
    --hero-care-edge-angle: 360deg;
  }
}

.hero-care-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(91 85 155 / 18%);
  border-radius: 12px;
  background: rgb(255 255 255 / 42%);
  color: var(--color-brand-secondary);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 38%);
}

.hero-care-card__icon svg {
  width: 22px;
  height: 22px;
}

.hero-care-card__text {
  min-width: 0;
  line-height: 1.4;
}

.hero-care-card__text strong {
  display: block;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
}

.hero-care-card__text span {
  display: block;
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hero-section__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    max-width: 1240px;
    padding-inline: 32px;
    gap: 38px;
  }

  .hero-section__title {
    font-size: 48px;
  }

  .hero-section__description {
    font-size: 16px;
  }

  .hero-section .hero-pillar {
    padding-inline: 8px;
  }

  .hero-section .hero-pillar strong {
    font-size: 15px;
  }

  .hero-section .hero-pillar span {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    min-height: auto;
  }

  .hero-section__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 42px 24px 72px;
    gap: 52px;
  }

  .hero-section__content {
    inset-block-start: 0;
    text-align: center;
  }

  .hero-section__eyebrow {
    margin-inline: auto;
  }

  .hero-section__title,
  .hero-section__description {
    margin-inline: auto;
  }

  .hero-section__actions {
    justify-content: center;
  }

  .hero-section__visual {
    inset-block-start: 0;
    max-width: 540px;
  }
}

@media (max-width: 620px) {
  .hero-section__inner {
    display: flex;
    flex-direction: column;
    padding: 30px 14px 54px;
    gap: 0;
  }

  .hero-section__content {
    display: contents;
  }

  .hero-section__eyebrow {
    order: 1;
    min-height: 30px;
    padding: 3px 11px;
    font-size: 13px;
  }

  .hero-section__title {
    order: 2;
    text-align: center;
  }

  .hero-section__description {
    order: 3;
    text-align: center;
  }

  .hero-section__actions {
    order: 4;
  }

  .hero-section__visual {
    order: 5;
    margin-top: 34px;
  }

  .hero-section__pillars {
    order: 6;
    width: 100%;
  }

  .hero-section__title {
    max-width: 470px;
    margin-top: 16px;
    font-size: clamp(34px, 10vw, 42px);
    letter-spacing: -0.025em;
    line-height: 1.27;
  }

  .hero-section__title-line {
    white-space: normal;
  }

  .hero-section__description {
    max-width: 380px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero-section__description br {
    display: none;
  }

  .hero-section__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 430px;
    margin: 20px auto 0;
    gap: 10px;
  }

  .hero-section__primary-action,
  .hero-section__secondary-action {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding-inline: 13px;
    border-radius: 13px;
    font-size: 15px;
  }

  .hero-section__pillars {
    grid-template-columns: 1fr;
    margin-top: 26px;
    padding: 10px;
    gap: 8px;
    border: 1px solid rgb(69 191 209 / 22%);
    border-radius: 22px;
    background: rgb(247 252 253 / 92%);
    box-shadow: 0 16px 38px rgb(63 59 89 / 6%);
  }

  .hero-section .hero-pillar {
    position: relative;
    min-height: 76px;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 36px 12px 14px;
    border: 1px solid #e5e8ef;
    border-radius: 15px;
    background: rgb(255 255 255 / 94%);
    text-align: right;
  }

  .hero-section .hero-pillar + .hero-pillar {
    border-inline-start: 0;
  }

  .hero-section .hero-pillar::before {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 16px;
    width: 9px;
    height: 9px;
    border: 2px solid rgb(69 191 209 / 36%);
    border-radius: 50%;
    background: var(--color-brand-primary);
    box-shadow: 0 0 0 5px rgb(69 191 209 / 9%);
    content: "";
    transform: translateY(-50%);
  }

  .hero-section .hero-pillar strong {
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-section .hero-pillar span {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.55;
    white-space: normal;
  }

  .hero-section__visual-outline {
    inset: 12px -5px -10px 10px;
    border-radius: 25px;
  }

  .hero-section__visual-frame {
    border-radius: 25px;
  }

  .hero-section__visual-frame::after {
    inset: 12px;
    border-radius: 18px;
  }

  .hero-care-card {
    inset-block: auto 8px;
    right: auto;
    left: 50%;
    width: min(230px, calc(100% - 28px));
    min-height: 66px;
    padding: 10px 12px;
    gap: 10px;
    border-radius: 17px;
    transform: translateX(-50%);
  }

  .hero-care-card__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero-care-card__text strong {
    font-size: 14px;
  }

  .hero-care-card__text span {
    margin-top: 3px;
    font-size: 11px;
  }

  .hero-title-accent::after {
    inset-block-end: 5px;
    height: 9px;
  }
}

@media (max-width: 380px) {
  .hero-section__actions {
    grid-template-columns: 1fr;
    max-width: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section__primary-action,
  .hero-section__secondary-action {
    transition-duration: 0.01ms !important;
  }

  .hero-care-card::before {
    animation: none !important;
  }
}
