/* =========================================================
   HERO
========================================================= */

.hero {
  width: 100%;
  padding: 22px 0 0;
}

/* =========================================================
   CARD
========================================================= */

.hero__card {
  position: relative;
  isolation: isolate;

  width: 100%;
  min-height: 290px;

  overflow: hidden;

  border: 1px solid rgba(142, 190, 216, 0.13);
  border-radius: 14px;

  background: linear-gradient(135deg, #122f40 0%, #102b3a 52%, #0d2533 100%);

  box-shadow: 0 14px 34px rgba(2, 17, 25, 0.11);
}

/* =========================================================
   FULL IMAGE LAYER
========================================================= */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: linear-gradient(135deg, #143547, #0e2836);
}

.hero__image {
  display: block;

  width: 100%;
  height: 100%;

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

  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__placeholder {
  width: 100%;
  height: 100%;

  background: radial-gradient(circle at 70% 35%, rgba(48, 143, 213, 0.12), transparent 30%), linear-gradient(135deg, #143446, #0c2634);
}

/* =========================================================
   OVERLAY FOR READABILITY
========================================================= */

.hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;

  background: linear-gradient(90deg, rgba(10, 31, 45, 0.94) 0%, rgba(10, 31, 45, 0.88) 26%, rgba(10, 31, 45, 0.66) 44%, rgba(10, 31, 45, 0.24) 68%, rgba(10, 31, 45, 0.1) 100%);
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;

  background: radial-gradient(circle at 12% 24%, rgba(45, 144, 222, 0.16), transparent 34%);
}

/* =========================================================
   CONTENT
========================================================= */

.hero__content {
  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  min-height: 290px;
  min-width: 0;
  max-width: 56%;

  padding: 38px 40px;
}

/* =========================================================
   BADGE
========================================================= */

.hero__badge {
  display: inline-flex;
  align-items: center;

  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;

  border: 1px solid rgba(105, 180, 232, 0.18);
  border-radius: 999px;

  background: rgba(45, 137, 204, 0.08);
  color: #92c7e8;

  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.2px;
}

/* =========================================================
   TITLE
========================================================= */

.hero__title {
  max-width: 620px;
  margin: 0 0 13px;

  color: #ffffff;

  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -1.4px;
}

/* =========================================================
   TEXT
========================================================= */

.hero__text {
  max-width: 560px;

  color: #d2e0e8;

  font-size: 14px;
  line-height: 1.65;
}

.hero__text p {
  margin: 0 0 14px;
}

.hero__text p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   BUTTON
========================================================= */

.hero__button {
  position: relative;
  isolation: isolate;

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

  gap: 9px;

  min-height: 44px;
  margin-top: 20px;
  padding: 0 20px;

  overflow: hidden;

  border: 1px solid rgba(107, 191, 255, 0.3);
  border-radius: 7px;

  background: linear-gradient(180deg, #2194ef 0%, #147bd9 100%);

  color: #ffffff;

  font-size: 13px;
  line-height: 1;
  font-weight: 750;
  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    0 8px 22px rgba(12, 102, 179, 0.18);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.hero__button::before {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;

  content: '';
  background: currentColor;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 12v9H4v-9M2 7h20v5H2zM12 7v14M12 7H7.5A2.5 2.5 0 1 1 10 4.5L12 7Zm0 0h4.5A2.5 2.5 0 1 0 14 4.5L12 7Z'/%3E%3C/svg%3E") center / contain no-repeat;

  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M20 12v9H4v-9M2 7h20v5H2zM12 7v14M12 7H7.5A2.5 2.5 0 1 1 10 4.5L12 7Zm0 0h4.5A2.5 2.5 0 1 0 14 4.5L12 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero__button::after {
  margin-left: 2px;

  content: '→';

  font-size: 17px;
  line-height: 1;

  transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero__button:hover {
    border-color: rgba(128, 205, 255, 0.46);

    background: linear-gradient(180deg, #2b9df7 0%, #1986e5 100%);

    transform: translateY(-2px);

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 10px 27px rgba(13, 111, 193, 0.25);
  }

  .hero__button:hover::after {
    transform: translateX(3px);
  }

  .hero__card:hover .hero__image {
    transform: scale(1.025);
  }
}

.hero__button:active {
  transform: translateY(0) scale(0.98);
}

/* =========================================================
   DECOR
========================================================= */

.hero__glow {
  position: absolute;
  top: -120px;
  left: -90px;
  z-index: 0;

  width: 330px;
  height: 330px;

  border-radius: 50%;
  background: rgba(38, 146, 225, 0.08);
  filter: blur(24px);

  pointer-events: none;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .hero__card {
    min-height: 280px;
  }

  .hero__content {
    min-height: 280px;
    max-width: 61%;

    padding: 30px 28px;
  }

  .hero__title {
    font-size: clamp(32px, 4.2vw, 42px);
  }

  .hero__text {
    font-size: 13.5px;
  }
}

/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 760px) {
  .hero {
    padding-top: 18px;
  }

  .hero__card {
    min-height: 300px;

    border-radius: 12px;
  }

  .hero__image {
    object-position: 58% center;
  }

  .hero__media::before {
    background: linear-gradient(90deg, rgba(10, 31, 45, 0.97) 0%, rgba(10, 31, 45, 0.91) 30%, rgba(10, 31, 45, 0.72) 48%, rgba(10, 31, 45, 0.24) 72%, rgba(10, 31, 45, 0.08) 100%);
  }

  .hero__content {
    justify-content: center;

    min-height: 300px;

    max-width: 62%;

    padding: 26px 24px;
  }

  .hero__badge {
    min-height: 25px;

    margin-bottom: 10px;

    padding: 0 9px;

    font-size: 9.5px;
  }

  .hero__title {
    margin-bottom: 9px;

    font-size: 31px;
    line-height: 1.06;

    letter-spacing: -0.8px;
  }

  .hero__text {
    max-width: 360px;

    font-size: 12px;
    line-height: 1.5;
  }

  .hero__text p {
    margin-bottom: 9px;
  }

  .hero__button {
    min-height: 40px;

    margin-top: 14px;

    padding: 0 15px;

    font-size: 12px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero__image,
  .hero__button,
  .hero__button::after {
    transition: none !important;
  }
}
