.hero {
  width: 100%;
  max-width: 1200px;

  min-height: calc(100vh - 90px);

  margin: auto;

  padding: 60px 24px 90px;

  display: grid;

  grid-template-columns:
    0.95fr 1.05fr;

  align-items: center;

  gap: 75px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-bottom: 23px;

  padding: 8px 14px;

  border-radius: 100px;

  background: var(--primary-light);
  color: var(--primary);

  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 600px;

  margin-bottom: 24px;

  font-size: clamp(48px, 5.5vw, 74px);

  line-height: 1.04;

  letter-spacing: -3px;
}

.hero h1 span {
  color: var(--primary);
}

.description {
  max-width: 550px;

  margin-bottom: 34px;

  color: var(--secondary);

  font-size: 18px;
  line-height: 1.7;
}

.download-area {
  display: flex;
  align-items: center;
  gap: 18px;

  flex-wrap: wrap;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;

  padding: 13px 22px 13px 14px;

  border-radius: 16px;

  background: var(--primary);
  color: var(--on-primary);

  text-decoration: none;

  box-shadow:
    0 14px 30px
    rgba(94, 44, 237, 0.25);

  transition: 0.2s ease;
}

.download-button:hover {
  background: var(--primary-dark);

  transform: translateY(-2px);

  box-shadow:
    0 18px 38px
    rgba(94, 44, 237, 0.30);
}

.download-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.15);

}

.download-icon svg {
  width: 27px;
  height: 27px;
}

.download-text small {
  display: block;

  margin-bottom: 2px;

  font-size: 10px;
  font-weight: 600;

  opacity: 0.75;
}

.download-text strong {
  display: block;

  font-size: 16px;
}

.apk-info {
  color: var(--muted);

  font-size: 13px;
}

.official {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 22px;

  color: #898490;

  font-size: 12px;
}

.official-check {
  width: 20px;
  height: 20px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--primary-light);
  color: var(--primary);

  font-size: 11px;
  font-weight: 800;
}

.hero-image-area {
  position: relative;

  animation: image-in 0.8s 0.12s ease-out both;
}

.image-decoration {
  position: absolute;

  width: 160px;
  height: 160px;

  right: -35px;
  top: -35px;

  z-index: -1;

  border-radius: 50%;

  background: var(--primary-light);
}

.image-decoration-bottom {
  position: absolute;

  width: 100px;
  height: 100px;

  left: -30px;
  bottom: -30px;

  z-index: -1;

  border-radius: 30px;

  background: var(--primary-soft);

  transform: rotate(20deg);
}

.hero-image-wrapper {
  position: relative;

  overflow: hidden;

  border-radius: 32px;

  box-shadow:
    0 30px 70px
    rgba(44, 27, 83, 0.14);
}

.hero-image {
  display: block;

  width: 100%;
  height: 520px;

  object-fit: cover;
}

.hero-image-wrapper::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 65%,
      rgba(44, 20, 90, 0.12)
    );

  pointer-events: none;
}

.alert-card {
  position: absolute;

  left: -35px;
  bottom: 30px;

  z-index: 5;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 18px;

  border:
    1px solid rgba(94, 44, 237, 0.08);

  border-radius: 18px;

  background: var(--floating-background);

  box-shadow:
    0 18px 45px
    rgba(30, 20, 55, 0.16);

  animation: gentle-float 3.5s 1s ease-in-out infinite;
}

.alert-icon {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 14px;

  background: var(--primary);
  color: var(--on-primary);

  font-size: 20px;
}

.alert-text small {
  display: block;

  margin-bottom: 3px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.4px;
}

.alert-text strong {
  font-size: 14px;
}

.features {
  width: 100%;

  padding: 75px 24px;

  background: var(--primary-soft);
}

.features-container {
  width: 100%;
  max-width: 1200px;

  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 32px;
}

.feature {
  text-align: center;

  transition: transform 0.2s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 56px;
  height: 56px;

  margin: 0 auto 17px;

  display: grid;
  place-items: center;

  border-radius: 17px;

  background: var(--primary-light);
  color: var(--primary);

  font-size: 24px;

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

.feature:hover .feature-icon {
  transform: rotate(-4deg) scale(1.06);
}

.feature-icon svg {
  width: 26px;
  height: 26px;

  display: block;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin-bottom: 8px;

  font-size: 16px;
}

.feature p {
  max-width: 250px;

  margin: auto;

  color: var(--secondary);

  font-size: 13px;
  line-height: 1.6;
}

.final-section {
  padding: 90px 24px;

  text-align: center;
}

.final-logo {
  width: 90px;
  height: 90px;

  margin-bottom: 15px;

  object-fit: contain;
}

.final-section h2 {
  margin-bottom: 12px;

  font-size: 38px;

  letter-spacing: -1px;
}

.final-section h2 span {
  color: var(--primary);
}

.final-section p {
  max-width: 520px;

  margin: 0 auto 28px;

  color: var(--secondary);

  font-size: 15px;
  line-height: 1.7;
}

.final-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 24px;

  border-radius: 14px;

  background: var(--primary);
  color: white;

  text-decoration: none;

  font-weight: 700;

  box-shadow:
    0 12px 25px
    rgba(94, 44, 237, 0.20);

  transition: 0.2s ease;
}

.play-store-icon {
  width: 22px;
  height: 22px;
}

.final-download:hover {
  background: var(--primary-dark);

  transform: translateY(-2px);
}

:root[data-theme="dark"] .download-button,
:root[data-theme="dark"] .final-download {
  background: var(--primary-light);
  color: var(--primary);
}

:root[data-theme="dark"] .download-button:hover,
:root[data-theme="dark"] .final-download:hover {
  background: var(--primary-hover);
}

@keyframes image-in {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
  }
}

@keyframes gentle-float {
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-image-area,
  .alert-card {
    animation: none;
  }

  .feature,
  .feature-icon {
    transition: none;
  }
}

@media (max-width: 900px) {

  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;

    gap: 65px;

    padding-top: 50px;

    text-align: center;
  }

  .description {
    margin-left: auto;
    margin-right: auto;
  }

  .download-area {
    justify-content: center;
  }

  .official {
    justify-content: center;
  }

  .hero-image-area {
    width: 100%;
    max-width: 700px;

    margin: auto;
  }

  .alert-card {
    left: 20px;
  }
}

@media (max-width: 600px) {

  .hero {
    min-height: auto;

    padding:
      34px 16px
      54px;

    gap: 38px;
  }

  .badge {
    margin-bottom: 18px;
    padding: 7px 11px;

    font-size: 11px;
  }

  .hero h1 {
    margin-bottom: 18px;

    font-size: clamp(36px, 11.5vw, 42px);
    line-height: 1.06;

    letter-spacing: -1.7px;
  }

  .description {
    margin-bottom: 26px;

    font-size: 15px;
    line-height: 1.6;
  }

  .download-button {
    width: 100%;
    max-width: 290px;

    justify-content: center;
  }

  .apk-info {
    width: 100%;
  }

  .hero-image-wrapper {
    border-radius: 20px;
  }

  .hero-image {
    height: auto;

    aspect-ratio: 1487 / 1060;
  }

  .image-decoration,
  .image-decoration-bottom {
    display: none;
  }

  .alert-card {
    left: 12px;
    bottom: 12px;

    gap: 9px;
    padding: 9px 12px;

    border-radius: 14px;
  }

  .alert-icon {
    width: 36px;
    height: 36px;

    border-radius: 11px;
  }

  .alert-text strong {
    font-size: 12px;
  }

  .features {
    padding:
      50px 18px;
  }

  .features-container {
    grid-template-columns: 1fr;

    gap: 34px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;

    margin-bottom: 14px;
  }

  .feature p {
    max-width: 290px;
  }

  .final-section {
    padding:
      54px 18px;
  }

  .final-section h2 {
    font-size: 30px;
  }

  .final-section p {
    font-size: 14px;
  }
}

@media (max-width: 380px) {

  .hero h1 {
    font-size: 34px;
  }

  .alert-card {
    max-width: calc(100% - 24px);
  }
}
