.hero {
  width: 100dvw;
  height: 100dvh;
  padding: clamp(0.5rem, 1.2vw, 0.85rem);
}

.hero__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: clamp(0.75rem, 1.6vw, 1.25rem);
  overflow: hidden;
  background: #fdfcfa url("../../assets/hero/hero-bg.png") center / cover no-repeat;
  animation: hero-frame-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---------- Water ripple canvas (desktop only) ---------- */

.hero__ripple {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .hero__ripple {
    display: block;
  }
}

/* ---------- Content ---------- */

.hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  font-family: system-ui, sans-serif;
  color: #17181a;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  color: rgba(23, 24, 26, 0.75);
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__badge-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #17181a;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero__subtitle {
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(23, 24, 26, 0.65);
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Primary CTA: same pixel-chevron language as the navbar button */
.hero__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.45rem 0.45rem 1.15rem;
  border-radius: 0.5rem;
  background: #17181a;
  font-size: 0.85rem;
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
}

.hero__cta-box {
  --px: 2px;
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  background: #ffffff;
  overflow: hidden;
}

.hero__cta-chevron {
  position: absolute;
  top: calc(50% - 3.5 * var(--px));
  left: calc(50% - 2 * var(--px));
  width: var(--px);
  height: var(--px);
  color: #17181a;
  background: currentColor;
  box-shadow:
    var(--px) var(--px),
    calc(2 * var(--px)) calc(2 * var(--px)),
    calc(3 * var(--px)) calc(3 * var(--px)),
    calc(2 * var(--px)) calc(4 * var(--px)),
    var(--px) calc(5 * var(--px)),
    0 calc(6 * var(--px));
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero__cta-chevron:nth-child(2) {
  transform: translateX(-1.35rem);
}

@media (hover: hover) {
  .hero__cta:hover .hero__cta-chevron {
    transform: translateX(1.35rem);
  }

  .hero__cta:hover .hero__cta-chevron:nth-child(2) {
    transform: translateX(0);
  }
}

.hero__link {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(23, 24, 26, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .hero__link:hover {
    color: #17181a;
  }
}

/* ---------- Load animations ---------- */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-frame-in {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__frame,
  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__actions {
    animation: none;
  }
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}
