/* Premium hero redesign */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: 1160px;
  margin: clamp(20px, 3.5vw, 52px) auto clamp(54px, 6vw, 88px);
  padding: clamp(34px, 7vw, 88px) clamp(18px, 5.5vw, 84px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: clamp(28px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.44), rgba(249, 252, 255, 0.3) 48%, rgba(244, 250, 252, 0.32) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.52));
  backdrop-filter: blur(24px) saturate(136%);
  -webkit-backdrop-filter: blur(24px) saturate(136%);
  box-shadow:
    0 36px 84px rgba(15, 23, 42, 0.15),
    0 12px 30px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.hero:hover {
  transform: translateY(-1px);
  box-shadow:
    0 40px 92px rgba(15, 23, 42, 0.16),
    0 14px 34px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -24% -12%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48% 44% at 24% 34%, rgba(120, 220, 200, 0.2) 0%, rgba(120, 220, 200, 0) 72%),
    radial-gradient(42% 40% at 74% 22%, rgba(120, 170, 255, 0.18) 0%, rgba(120, 170, 255, 0) 74%),
    radial-gradient(56% 32% at 50% 92%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 82%);
  filter: blur(74px);
  opacity: 0.34;
  mix-blend-mode: soft-light;
  transform-origin: 50% 50%;
  animation: heroUnderlightFlow 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(78% 56% at 50% 30%, rgba(120, 220, 200, 0.14) 0%, rgba(120, 170, 255, 0.12) 44%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(88% 40% at 50% 0%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 80%);
  background-size: 180% 180%, 100% 100%, 100% 100%;
  background-position: 0% 42%, 0 0, 0 0;
  opacity: 0.42;
  animation: heroSpecularSweep 26s ease-in-out infinite alternate;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  font-family: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #111827;
  text-wrap: balance;
}

.hero > p {
  margin: 22px auto 0;
  max-width: 760px;
  font-family: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.66;
  color: #5b6675;
  text-wrap: balance;
}

.hero .btn {
  margin: 30px auto 0;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 14px;
  border: 1px solid rgba(20, 133, 118, 0.42);
  background: linear-gradient(180deg, #189d89 0%, #138a78 100%);
  box-shadow:
    0 15px 32px rgba(19, 138, 120, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-family: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.hero .btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #169582 0%, #117767 100%);
  box-shadow:
    0 19px 38px rgba(19, 138, 120, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.hero .btn:active {
  transform: translateY(0);
}

.hero-promo-inline {
  position: relative;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  margin: 26px auto 0;
  width: min(720px, 100%);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.36), rgba(249, 252, 255, 0.22) 52%, rgba(244, 250, 253, 0.26) 100%);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-promo-inline::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0) 66%);
  pointer-events: none;
  opacity: 0.34;
  animation: promoSpecularDrift 24s ease-in-out infinite alternate;
}

.hero-promo-inline::after {
  content: "";
  position: absolute;
  inset: -28% -16%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 24% 34%, rgba(120, 220, 200, 0.18) 0%, rgba(120, 220, 200, 0) 68%),
    radial-gradient(circle at 78% 70%, rgba(120, 170, 255, 0.16) 0%, rgba(120, 170, 255, 0) 70%);
  filter: blur(64px);
  opacity: 0.24;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 0;
  animation: promoAmbientPulse 16s ease-in-out infinite alternate;
}

.hero-promo-inline > * {
  position: relative;
  z-index: 1;
}

.hero-promo-inline:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.hero-promo-inline__text {
  margin: 0;
  text-align: center;
  color: #667084;
  font-family: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.hero-promo-inline__label {
  display: inline-block;
}

.hero-promo-inline__meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-promo-inline__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(19, 138, 120, 0.14);
  color: #0f6b5e;
  font: 700 13px/1 "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(19, 138, 120, 0.2);
}

.hero-promo-inline__discount {
  color: #1f2937;
  font-family: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-promo-inline__btn {
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f2937;
  font: 700 13px/1 "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.hero-promo-inline__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(19, 138, 120, 0.28);
  box-shadow: 0 7px 14px rgba(15, 23, 42, 0.11);
}

.hero-promo-inline__btn.is-applied {
  background: rgba(19, 138, 120, 0.14);
  color: #0f5c52;
  border-color: rgba(19, 138, 120, 0.28);
  box-shadow: 0 6px 12px rgba(19, 138, 120, 0.14);
}

@keyframes heroUnderlightFlow {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(1%, 2%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(3%, 1%, 0) scale(1.07);
  }
}

@keyframes heroSpecularSweep {
  0% {
    opacity: 0.34;
    transform: translateX(-1.5%);
    background-position: 0% 42%, 0 0, 0 0;
  }
  50% {
    opacity: 0.4;
    transform: translateX(0%);
    background-position: 52% 50%, 0 0, 0 0;
  }
  100% {
    opacity: 0.46;
    transform: translateX(1.5%);
    background-position: 100% 58%, 0 0, 0 0;
  }
}

@keyframes promoSpecularDrift {
  0% {
    opacity: 0.28;
    transform: translateX(-1.5%);
  }
  100% {
    opacity: 0.38;
    transform: translateX(1.5%);
  }
}

@keyframes promoAmbientPulse {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-promo-inline::before,
  .hero-promo-inline::after {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .hero {
    margin: 18px auto 54px;
    padding: 30px 16px 28px;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 8.4vw, 2.24rem);
    line-height: 1.12;
  }

  .hero > p {
    margin-top: 16px;
    max-width: 94%;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero .btn {
    margin-top: 24px;
    min-height: 48px;
    padding: 0 24px;
  }

  .hero-promo-inline {
    width: min(100%, 460px);
    margin: 18px auto 0;
    padding: 14px 12px;
    border-radius: 18px;
    gap: 10px;
  }

  .hero-promo-inline__text {
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
  }

  .hero-promo-inline__meta {
    display: grid;
    justify-items: center;
    gap: 8px;
  }

  .hero-promo-inline__discount {
    font-size: 13px;
  }

  .hero-promo-inline__btn {
    width: auto;
    max-width: 100%;
    min-width: 190px;
    margin: 0 auto;
    min-height: 40px;
    padding: 10px 16px;
    white-space: nowrap;
    text-align: center;
  }
}
