@font-face {
  font-family: 'Melodrama';
  src: url('assets/fonts/05\ Minerva\ Modern/fonnts.com-MinervaModern_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg-dark: #2e2f33;
  --text-light: rgba(255, 255, 255, 0.88);
  --text-soft: rgba(255, 255, 255, 0.74);
  --bar-bg: #dddddd;
  --bar-text: #333333;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Melodrama', serif;
  background: var(--bg-dark);
  color: var(--text-light);
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('assets/bg-img/bg.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(31, 32, 35, 0.72), rgba(31, 32, 35, 0.82)),
    rgba(25, 26, 30, 0.18);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 54px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 110px;
  text-align: center;
}

.hero-logo {
  width: min(1020px, 70vw);
  max-width: 100%;
  margin-bottom: -100px;
  display: block;
  margin-top: -100px;
}

.hero-text {
  width: min(760px, 78vw);
  max-width: 100%;
  color: var(--text-soft);
}

.hero-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

.hero-text p + p {
  margin-top: 18px;
}

.affiliate-block {
  margin-top: 72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  gap: 10px;
  margin-left: 450px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease;
}

.affiliate-block:hover {
  opacity: 0.8;
}

.affiliate-text {
  margin: 58px 0 0 0;
  font-size: 13px;
  color: var(--text-light);
}

.affiliate-logo {
  width: 170px;
  max-width: 48vw;
  display: block;
}

/* Desktop bottom bar */
.desktop-social {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 54px;
  background: var(--bar-bg);
  display: flex;
  align-items: center;
}

.desktop-social a {
  flex: 1;
  text-align: center;
  color: var(--bar-text);
  font-size: 20px;
  line-height: 1;
  transition: opacity 0.25s ease;
}

.desktop-social a:hover {
  opacity: 0.68;
}

/* Mobile floating icons */
.mobile-social {
  display: none;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-logo {
    width: min(620px, 76vw);
  }

  .hero-text {
    width: min(680px, 82vw);
  }

  .hero-text p {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    background-image: url('assets/bg-img/phone_bg.png');
    background-position: center center;
  }

  .hero-content {
    min-height: 100vh;
    padding: 42px 22px 140px;
    justify-content: center;
  }

  .hero-logo {
    width: 100vw;
    margin-top: 0;
    margin-bottom: -16px;
  }

  .hero-text {
    width: 100%;
    max-width: 320px;
  }

  .hero-text p {
    font-size: 10.5px;
    line-height: 1.55;
  }

  .hero-text p + p {
    margin-top: 14px;
  }

  .affiliate-block {
    margin-top: 48px;
    margin-left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .affiliate-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
  }

  .affiliate-logo {
    width: 130px;
    max-width: 46vw;
  }

  .desktop-social {
    display: none;
  }

  .mobile-social {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .mobile-social a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.88;
    transition: opacity 0.25s ease;
  }

  .mobile-social a:hover {
    opacity: 1;
  }

  .mobile-social svg {
    width: 24px;
    height: 24px;
    fill: rgba(255, 255, 255, 0.72);
    display: block;
  }
}

/* Small phones */
@media (max-width: 430px) {
  .hero-content {
    padding: 36px 18px 132px;
  }

  .hero-logo {
    width: 100vw;
    margin-bottom: -14px;
  }

  .hero-text {
    max-width: 290px;
  }

  .hero-text p {
    font-size: 10px;
    line-height: 1.5;
  }

  .affiliate-block {
    margin-top: 42px;
    gap: 6px;
  }

  .affiliate-text {
    font-size: 10.5px;
  }

  .affiliate-logo {
    width: 120px;
  }

  .mobile-social {
    bottom: 28px;
    gap: 20px;
  }

  .mobile-social svg {
    width: 22px;
    height: 22px;
  }
}