/* ==============================
   Hero
   ============================== */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background: var(--color-hero-bg);
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
}

/* Grid texture overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 20%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: -250px;
  right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { transform: translate(0, 0) scale(1); opacity: 0.8; }
  to { transform: translate(-30px, 20px) scale(1.08); opacity: 1; }
}

.hero__bg-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-dot--1 {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 55%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero__bg-dot--2 {
  width: 160px;
  height: 160px;
  bottom: 15%;
  right: 25%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
  animation: heroFloat 5s ease-in-out infinite reverse;
}

.hero__bg-dot--3 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 8%;
  background: rgba(255, 255, 255, 0.05);
  animation: heroFloat 6s ease-in-out infinite 1s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}
.hero__content {
  position: relative;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  margin-bottom: 28px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero__tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
  animation: hero-pulse 2s ease-in-out infinite;
}

@keyframes hero-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.1); }
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero__title-highlight {
  background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 40%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(52, 211, 153, 0.3));
}

.hero__subtitle {
  margin: 0 0 36px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
}

/* Quick stats strip */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.price--hero {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.price--hero .price__badge {
  background: rgba(255, 183, 77, 0.2);
  color: #ffd89a;
}

.price--hero .price__old {
  color: rgba(255, 255, 255, 0.45);
}

.price--hero .price__current {
  color: #fff;
  font-size: 2.4rem;
}

.price--hero .price__label {
  color: rgba(255, 255, 255, 0.65);
}

.hero__stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero__stat-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.hero__stat-pill svg {
  color: #6ee7b7;
  flex-shrink: 0;
}

/* ---------- Feature cards ---------- */
.hero__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.hero__feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero__feature:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero__feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  color: #6ee7b7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.hero__feature:hover .hero__feature-icon {
  transform: scale(1.08) rotate(-3deg);
}

.hero__feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__feature-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.hero__feature-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

/* ---------- CTA ---------- */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__btn {
  position: relative;
  overflow: hidden;
  padding: 15px 34px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__btn:hover {
  text-decoration: none;
  transform: translateY(-3px);
}

.hero__btn--primary {
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

.hero__btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.5s ease;
}

.hero__btn--primary:hover::after {
  left: 120%;
}

.hero__btn--primary:hover {
  background: #f0fdf4;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.25);
  color: var(--color-accent);
}

.hero__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* ---------- Visual side ---------- */
.hero__visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: start;
  position: sticky;
  top: var(--hero-video-sticky-top);
  z-index: 2;
  width: 100%;
  padding-top: 36px;
}

.hero__visual-glow {
  position: absolute;
  top: 12%;
  left: 18%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  animation: heroGlow 6s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: 92%;
  max-width: 480px;
  height: 78%;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(13, 92, 74, 0.28));
  filter: blur(28px);
  opacity: 0.85;
  transform: rotateX(14deg) rotateY(-18deg) translateZ(-40px) translate(28px, 32px);
  pointer-events: none;
  z-index: 0;
  animation: heroVideoShadowFloat 5.5s ease-in-out infinite;
}

@keyframes heroVideoShadowFloat {
  0%, 100% {
    transform: rotateX(14deg) rotateY(-18deg) translateZ(-40px) translate(28px, 32px);
  }
  50% {
    transform: rotateX(12deg) rotateY(-20deg) translateZ(-50px) translate(34px, 38px);
  }
}

.hero__video-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  perspective: 1100px;
  perspective-origin: 42% 42%;
  transform-style: preserve-3d;
}

.hero__video-mockup {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transform: rotateX(11deg) rotateY(-18deg) translateZ(36px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  animation: mockupFloat 5s ease-in-out infinite;
}

.hero__video-mockup:hover {
  animation: none;
  transform: rotateX(8deg) rotateY(-20deg) translateZ(52px);
}

.hero__visual:has(.hero__video-mockup:hover)::before {
  animation: none;
  filter: blur(32px);
  opacity: 0.95;
  transform: rotateX(12deg) rotateY(-20deg) translateZ(-55px) translate(36px, 40px);
}

.hero__video-player {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left-color: rgba(255, 255, 255, 0.32);
  border-right-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow:
    24px 32px 60px rgba(0, 0, 0, 0.35),
    -16px 24px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 8px 0 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero__video-player:hover {
  border-left-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    28px 36px 70px rgba(0, 0, 0, 0.4),
    -20px 28px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 8px 0 24px rgba(0, 0, 0, 0.1);
}

.hero__video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__video-bar-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__video-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 260px;
  padding: 28px 24px 24px;
  overflow: hidden;
  background: #0a1210;
}

.hero__video-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero__video-slide.is-active {
  opacity: 1;
}

.hero__video-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 20, 16, 0.12) 0%, rgba(8, 20, 16, 0.52) 100%),
    radial-gradient(circle at 50% 50%, rgba(13, 92, 74, 0.12) 0%, transparent 62%);
  pointer-events: none;
}

.hero__video-play {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0d5c4a 0%, #1a9a7d 100%);
  color: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  overflow: hidden;
}

.hero__video-play svg {
  display: block;
  width: 90px;
  height: 90px;
  margin: 0;
  flex-shrink: 0;
}

.hero__video-player:hover .hero__video-play {
  transform: scale(1.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.hero__video-screen-label {
  position: relative;
  z-index: 2;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.hero__video-caption {
  margin: 22px 0 0;
  padding: 0 8px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  transform: rotateX(8deg) rotateY(-14deg);
  transform-origin: center top;
}

.hero__video-caption strong {
  color: #a7f3d0;
  font-weight: 600;
}

.hero__mockup-dots {
  display: flex;
  gap: 7px;
}

.hero__mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.hero__mockup-dot--red { background: #f87171; }
.hero__mockup-dot--yellow { background: #fbbf24; }
.hero__mockup-dot--green { background: #4ade80; }

@keyframes mockupFloat {
  0%, 100% {
    transform: rotateX(11deg) rotateY(-18deg) translateZ(36px) translateY(0);
  }
  50% {
    transform: rotateX(9deg) rotateY(-20deg) translateZ(48px) translateY(-10px);
  }
}

/* ---------- Video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 16, 0.82);
  backdrop-filter: blur(6px);
}

.video-modal__dialog {
  position: relative;
  width: min(100%, 960px);
  z-index: 1;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s ease;
}

.video-modal.is-open .video-modal__dialog {
  transform: translateY(0) scale(1);
}

.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-modal__frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.video-modal__frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero {
    padding: 90px 0 70px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    position: static;
    display: flex;
    max-width: 520px;
    margin-inline: auto;
    padding-top: 0;
  }

  .hero__visual::before {
    display: none;
  }

  .hero__video-mockup {
    transform: none;
    animation: none;
  }

  .hero__video-caption {
    transform: none;
  }

  .hero__subtitle {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 70px 0 56px;
  }

  .hero__stats {
    gap: 8px;
  }

  .hero__stat-pill {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .hero__features {
    gap: 8px;
  }

  .hero__feature {
    padding: 14px 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__btn {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero__bg-dot,
  .hero__video-mockup,
  .hero__visual-glow,
  .hero__visual::before {
    animation: none;
  }
}
