html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: #111821;
  color: var(--text-primary);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transform: translateY(-50px);
}

.page-shell {
  overflow-x: clip;
}

.hero-banner {
  position: relative;
  min-height: 860px;
  background: #182230;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/header_bg.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.22) 0%, rgba(14, 20, 28, 0.5) 55%, rgba(17, 24, 33, 0.92) 100%),
    linear-gradient(90deg, rgba(13, 18, 26, 0.86) 0%, rgba(13, 18, 26, 0.48) 34%, rgba(13, 18, 26, 0.16) 58%, rgba(13, 18, 26, 0.74) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 800px;
  display: flex;
  align-items: flex-end;
  padding-top: 4.5rem;
  padding-bottom: 8rem;
}

.hero-copy-block {
  max-width: 40rem;
  padding-bottom: 7rem;
}

.hero-brand-wrap {
  justify-content: center;
  width: 100%;
  margin: 0 0 1rem;
}

.hero-brand-logo {
  width: min(340px, 100%);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4));
}

.hero-kicker {
  color: var(--accent-amber);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}

.hero-copy {
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 38rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.status-box {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-width: min(100%, 38rem);
  padding: 1rem 1.25rem;
  background: rgba(24, 32, 44, 0.84);
  border: 1px solid rgba(163, 184, 204, 0.18);
  border-radius: 1rem;
  box-shadow: var(--hero-shadow);
}

.status-box strong {
  color: var(--accent-amber);
}

.hero-art {
  position: relative;
  min-height: 760px;
}

.hero-logo {
  position: absolute;
  top: 5.5rem;
  left: 50%;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4));
}

.hero-character {
  position: absolute;
  right: -4.5rem;
  bottom: -6.5rem;
  width: min(760px, 54vw);
  max-width: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.4));
}

.feature-section {
  position: relative;
  z-index: 3;
  margin-top: -5.5rem;
  padding-bottom: 5rem;
}

.feature-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
}

.feature-card i {
  color: var(--accent-amber);
  font-size: 1.3rem;
}

.feature-card h2 {
  margin-top: 0.9rem;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 1399.98px) {
  .hero-banner,
  .hero-content {
    min-height: 780px;
  }

  .hero-art {
    min-height: 680px;
  }

  .hero-character {
    width: min(620px, 52vw);
    right: 0;
  }
}

@media (max-width: 991.98px) {
  .hero-banner,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    align-items: flex-start;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .hero-copy-block {
    padding-bottom: 2rem;
  }

  .hero-art {
    min-height: 360px;
    margin-top: -0.75rem;
  }

  .hero-logo {
    top: 0;
    left: 0;
    transform: none;
    width: min(240px, 52vw);
  }

  .hero-character {
    width: min(560px, 88vw);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: -2.5rem;
    z-index: 2;
  }

  .feature-section {
    margin-top: -2.15rem;
    padding-top: 0 !important;
  }

  .feature-section.py-5 {
    padding-top: 0 !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-logo {
    left: -2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-brand-wrap {
    margin-bottom: 0.75rem;
  }

  .hero-content {
    padding-top: 1.4rem;
    padding-bottom: 0.8rem;
  }

  .hero-brand-logo {
    width: min(250px, 76vw);
  }

  .hero-copy-block {
    padding-bottom: 0.75rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-copy {
    font-size: 1rem;
    margin-inline: auto;
  }

  .status-box {
    display: block;
  }

  .hero-art {
    min-height: 240px;
    margin-top: -1.05rem;
  }

  .hero-character {
    width: min(390px, 106vw);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: -1.75rem;
    z-index: 2;
  }

  .feature-section {
    margin-top: -1.1rem;
    padding-top: 0 !important;
  }

  .feature-section.py-5 {
    padding-top: 0 !important;
  }
}

.site-footer {
  position: relative;
  z-index: 3;
  padding: 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

.site-footer__text {
  min-width: 0;
}

.site-footer__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__logo {
  width: 72px;
  height: auto;
  display: block;
  opacity: 0.95;
}

.site-footer__title {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.site-footer__copy {
  margin: 0;
  color: var(--text-muted);
}

.site-footer__resources {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.site-footer__links a {
  color: var(--accent-amber);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--text-primary);
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__socials a {
  color: var(--accent-amber);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
}

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  color: var(--text-primary);
}

.site-footer__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 182px;
  min-height: 56px;
  padding: 0.5rem 0.78rem;
  border-radius: 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, #0b0b0d 0%, #070709 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-badge__logo {
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-badge__logo--play {
  clip-path: polygon(0 5%, 100% 50%, 0 95%);
  background: linear-gradient(140deg, #34a853 12%, #fbbc05 44%, #ea4335 68%, #4285f4 100%);
}

.store-badge__logo--apple i {
  font-size: 1.45rem;
  line-height: 1;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.store-badge__hint {
  font-size: 0.58rem;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  opacity: 0.9;
}

.store-badge__name {
  margin-top: 0.18rem;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
}

.store-badge--google {
  padding-left: 0.68rem;
}

.store-badge--apple {
  padding-left: 0.65rem;
}

.store-badge--apple .store-badge__hint {
  letter-spacing: 0.02em;
  text-transform: none;
}

.store-badge--apple .store-badge__name {
  font-size: 1.38rem;
}

@media (max-width: 767.98px) {
  .site-footer {
    text-align: center;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .site-footer__center {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .site-footer__resources {
    align-items: center;
    width: 100%;
    gap: 0.8rem;
  }

  .site-footer__links {
    justify-content: center;
    gap: 0.75rem 1rem;
    width: 100%;
  }

  .site-footer__socials {
    justify-content: center;
    width: 100%;
  }

  .site-footer__stores {
    justify-content: center;
    width: 100%;
    padding-inline: 1rem;
    gap: 0.75rem;
  }

  .store-badge {
    min-width: 160px;
  }

  .site-footer__copy {
    padding-bottom: 0.35rem !important;
  }
}
