.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 4.8vw, 4.2rem) 0 clamp(2.2rem, 4vw, 3.4rem);
  background: var(--color-bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(65% 70% at 75% 38%, rgba(246, 247, 249, 0) 0%, var(--color-bg) 74%),
    linear-gradient(180deg, rgba(246, 247, 249, 0.06), var(--color-bg) 92%);
}

.heroBleed {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.heroBleed__img {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  object-fit: cover;
  filter: blur(26px) saturate(0.95);
  transform: scale(1.04);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  will-change: opacity;
}

.hero[data-state="before"] .heroBleed__img--before { opacity: 0.22; }
.hero[data-state="before"] .heroBleed__img--after  { opacity: 0; }

.hero[data-state="after"] .heroBleed__img--before  { opacity: 0; }
.hero[data-state="after"] .heroBleed__img--after   { opacity: 0.24; }


.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: center;
}



.hero__content {
  max-width: 640px;
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  color: #5b6472;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 2.3vw + 1.2rem, 3.25rem);
  line-height: 1.08;
  color: var(--color-text);
  text-wrap: balance;
}

.hero__sub {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.08rem);
  line-height: 1.65;
  max-width: 58ch;
}

.hero__bullets {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.hero__bullets li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--color-text);
  line-height: 1.45;
}

.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(224, 106, 42, 0.12);
}

.hero__actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__note {
  margin: 0.8rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;

  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--color-surface);
  border-color: rgba(17, 24, 39, 0.2);
}



.heroCard {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.heroCard__media {
  position: relative;
  width: 100%;
  max-width: 750px; 
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: #0f1115;
  box-shadow:
    0 18px 45px rgba(17, 24, 39, 0.15),
    0 8px 18px rgba(17, 24, 39, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.heroCard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.10)),
    linear-gradient(0deg, rgba(0,0,0,0.18), rgba(0,0,0,0.08) 35%, rgba(0,0,0,0));
}

.heroImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 420ms var(--ease);
  will-change: opacity;
}

.heroImg--before { opacity: 0; }
.heroImg--after  { opacity: 1; }

.hero[data-state="before"] .heroImg--before { opacity: 1; }
.hero[data-state="before"] .heroImg--after  { opacity: 0; }

.hero[data-state="after"] .heroImg--before  { opacity: 0; }
.hero[data-state="after"] .heroImg--after   { opacity: 1; }


.heroBadge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  opacity: 0.85;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
}

.heroBadge__dot {
  width: 0.5rem;
  height: 0.5rem;
  opacity: 0.95;
  border-radius: 999px;
  background: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(224, 106, 42, 0.14);
}

.heroControls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  opacity: 0.85;

  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}


.heroToggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.heroToggle__btn {
  border: 0;
  background: transparent;
  color: #111827;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.heroToggle__btn.is-active {
  background: #111827;
  color: #fff;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .heroCard__media {
    max-width: 540px;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 1.5rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.25rem;
  }

  .hero__content {
    max-width: none;
  }

  .heroCard {
    justify-content: stretch;
  }

.heroCard__media {
  position: relative;
  width: 100%;
  max-width: 680px;   /* bylo 600px */
  aspect-ratio: 4 / 3; /* bylo 16 / 10 */
  border-radius: 22px;
  overflow: hidden;
  background: #0f1115;
  box-shadow:
    0 18px 45px rgba(17, 24, 39, 0.13),
    0 8px 18px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

  .heroBleed__img {
    filter: blur(18px) saturate(0.95);
    opacity: 0.16 !important; 
  }

  .heroControls {
    left: 12px;
    right: 12px;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .heroToggle__btn {
    padding: 0.5rem 0.7rem;
  }

  .heroArrow {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heroImg,
  .heroBleed__img,
  .heroArrow,
  .heroToggle__btn,
  .btn-secondary {
    transition: none;
  }
}