/* =========================================================
   Mizunara Studio
   Component / Hero
========================================================= */

.hero {
  display: grid;

  grid-template-columns:
    1.1fr
    0.9fr;

  align-items: center;

  gap: 80px;

  min-height: 85vh;
}

/* =========================================================
   EYEBROW
========================================================= */

.eyebrow {
  display: inline-block;

  margin-bottom: 25px;

  padding: 10px 18px;

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.4);

  color: var(--gold);

  font-weight: 600;
}

/* =========================================================
   CONTENT
========================================================= */

.hero h1 {
  margin-bottom: 25px;

  font-size: 4.2rem;

  line-height: 1.05;
}

.hero p {
  max-width: 600px;

  margin-bottom: 30px;

  font-size: 1.15rem;

  line-height: 1.8;

  opacity: 0.9;
}

/* =========================================================
   HERO LIST
========================================================= */

.hero-list {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;

  margin-bottom: 35px;
}

.hero-list li {
  display: flex;

  align-items: center;

  padding: 12px 16px;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.35);
}

.hero-list img {
  width: 20px;
  height: 20px;

  margin-right: 10px;

  flex-shrink: 0;
}

/* =========================================================
   ACTIONS
========================================================= */

.hero-actions {
  display: flex;

  gap: 16px;
}

/* =========================================================
   PHONE CONTAINER
========================================================= */

.phone-container {
  display: flex;

  justify-content: center;
}

/* =========================================================
   PHONE MOCKUP
========================================================= */

.hero-phone-mockup {
  position: relative;

  width: 330px;
  height: 680px;

  padding: 12px;

  border-radius: 46px;

  background:
    linear-gradient(
      145deg,
      #1d1d1d,
      #3b3b3b
    );

  box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.18);
}

/* =========================================================
   NOTCH
========================================================= */

.phone-notch {
  position: absolute;

  top: 12px;
  left: 50%;

  z-index: 10;

  width: 110px;
  height: 24px;

  transform:
    translateX(-50%);

  border-radius:
    0 0 16px 16px;

  background: black;
}

/* =========================================================
   PHONE SCREEN
========================================================= */

.hero-phone-screen {
  width: 100%;
  height: 100%;

  overflow-x: hidden;
  overflow-y: auto;

  border-radius: 34px;

  background: white;

  scrollbar-width: none;

  -ms-overflow-style: none;
}

.hero-phone-screen::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   SCROLL HINT
========================================================= */

.scroll-hint {
  position: absolute;

  top: 50%;
  right: -28px;

  transform:
    translateY(-50%)
    rotate(90deg);

  color: var(--gold);

  font-size: 0.8rem;
  font-weight: 600;

  letter-spacing: 2px;
}

/* =========================================================
   FRAME
========================================================= */

.hero-demo-frame {
  display: block;

  width: 100%;
  height: 100%;

  border: none;
}

/* =========================================================
   VIDEO MOCKUP
========================================================= */

.hero-video-container {
  position: relative;

  min-height: 720px;
}

.video-phone {
  z-index: 5;

  width: 310px;
  height: 640px;
}

.hero-demo-video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* =========================================================
   FLOATING FEATURES
========================================================= */

.floating-feature {
  position: absolute;

  z-index: 8;

  display: flex;

  align-items: center;

  gap: 9px;

  padding: 12px 16px;

  border:
    1px solid
    rgba(255, 255, 255, 0.45);

  border-radius: 999px;

  background:
    rgba(255, 255, 255, 0.65);

  backdrop-filter:
    blur(16px);

  -webkit-backdrop-filter:
    blur(16px);

  box-shadow:
    0 18px 45px
    rgba(0, 0, 0, 0.08);

  color: var(--dark);

  font-size: 0.85rem;
  font-weight: 600;

  opacity: 0;

  transform:
    translateY(12px)
    scale(0.96);

  animation:
    featureCycle
    12s
    ease-in-out
    infinite;
}

.floating-feature img {
  width: 18px;
  height: 18px;

  flex-shrink: 0;
}

/* =========================================================
   POSITIONS
========================================================= */

.feature-1 {
  top: 65px;
  left: 15px;

  animation-delay: 0s;
}

.feature-2 {
  top: 150px;
  right: 0;

  animation-delay: 2s;
}

.feature-3 {
  top: 220px;
  left: -5px;

  animation-delay: 4s;
}

.feature-4 {
  right: 10px;
  bottom: 300px;

  animation-delay: 6s;
}

.feature-5 {
  bottom: 190px;
  left: 40px;

  animation-delay: 8s;
}

.feature-6 {
  right: 40px;
  bottom: 110px;

  animation-delay: 10s;
}

/* =========================================================
   FLOATING FEATURE ANIMATION
========================================================= */

@keyframes featureCycle {

  0% {
    opacity: 0;

    transform:
      translateY(12px)
      scale(0.96);
  }

  8% {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }

  18% {
    opacity: 1;

    transform:
      translateY(-6px)
      scale(1);
  }

  26% {
    opacity: 0;

    transform:
      translateY(-14px)
      scale(0.96);
  }

  100% {
    opacity: 0;

    transform:
      translateY(-14px)
      scale(0.96);
  }
}

/* =========================================================
   TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 1100px) {

  .hero {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .hero-list {
    max-width: 500px;

    margin:
      0
      auto
      35px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-video-container {
    min-height: 680px;
  }

  .video-phone {
    width: 290px;
    height: 600px;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

  .hero h1 {
    font-size: 3rem;
  }

  .hero-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .hero-video-container {
    min-height: 560px;

    margin-top: 30px;
  }

  .video-phone {
    width: 250px;
    height: 520px;
  }

  .floating-feature {
    padding: 9px 12px;

    font-size: 0.72rem;
  }

  .floating-feature img {
    width: 15px;
    height: 15px;
  }

  .feature-1 {
    top: 60px;
    left: 0;
  }

  .feature-2 {
    top: 110px;
    right: 0;
  }

  .feature-3 {
    top: 190px;
    left: 0;
  }

  .feature-4 {
    right: 0;
    bottom: 240px;
  }

  .feature-5 {
    bottom: 150px;
    left: 20px;
  }

  .feature-6 {
    right: 0;
    bottom: 70px;
  }
}