@font-face {
  font-family: "Rilis Display";
  src: url("../font/super_hom_black.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", Arial, sans-serif;
  color: #fff;
  background: #06040d;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #06040d;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 60% 35%, rgba(94, 16, 145, 0.17), transparent 31%),
    linear-gradient(180deg, #07050f 0%, #07050e 69%, #0c0619 100%);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100%, 1920px);
  height: 120px;
  padding: 25px clamp(36px, 6.25vw, 120px);
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 19px;
  width: max-content;
  font-family: "Rilis Display", "Arial Rounded MT Bold", sans-serif;
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 4.05vw, 78px);
  color: #bfbfbf;
  font-size: 28px;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fb18c6;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  right: -11px;
  bottom: -1px;
  width: 16px;
  height: 13px;
  background: url("../img/nav-active-arrow.svg") center / contain no-repeat;
}

.header-download,
.store-button--apk {
  border: 0;
  color: #fff;
  background: linear-gradient(128deg, #7700ff 4%, #fb18c6 96%);
  box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.06);
}

.header-download {
  justify-self: end;
  width: 241px;
  height: 69px;
  border-radius: 20px;
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
}

.header-download:hover,
.store-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero {
  position: relative;
  width: min(100%, 1920px);
  height: 1080px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.98;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  top: 248px;
  left: clamp(100px, 11.25vw, 216px);
  width: 660px;
}

.hero-copy h1 {
  width: 600px;
  margin: 0;
}

.hero-copy h1 img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-description {
  margin: 0 0 34px;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}

.hero-description strong {
  color: #d952bd;
  font-weight: 400;
}

.hero-feature {
  margin-bottom: 48px;
}

.hero-feature h2 {
  margin: 0 0 11px;
  color: #e72bb6;
  font-size: 41px;
  font-weight: 900;
  font-style: italic;
  line-height: 1.2;
}

.hero-feature h2 i {
  position: relative;
  top: -14px;
  padding: 0 12px 0 0;
  color: #fff;
  font-size: 19px;
  font-style: normal;
}

.hero-feature h2 i:last-child {
  padding: 0 0 0 12px;
}

.hero-feature p {
  margin: 0;
  color: #bcbcbc;
  font-size: 24px;
  line-height: 1.4;
}

.download-actions {
  display: flex;
  gap: 64px;
}

.store-button {
  width: 272px;
  height: 75px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-button--google {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(#080711, #080711) padding-box,
    linear-gradient(138deg, #4b1863 5%, #d086e6 15%, #646ebb 38%, #ab33ab 89%, #f3bc99 99%) border-box;
}

.store-button--google img {
  width: 31px;
  height: 34px;
  object-fit: contain;
}

.store-button--apk svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.phone-slides {
  position: absolute;
  z-index: 3;
  top: 166px;
  left: 61%;
  width: 494px;
  aspect-ratio: 494 / 799;
}

.phone-slide {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* Switching slides should not blend the two differently composed phone renders. */
  transition: none;
}

.phone-slide--second {
  opacity: 0;
}

.hero.is-slide-two .phone-slide--first {
  opacity: 0;
}

.hero.is-slide-two .phone-slide--second {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  z-index: 8;
  top: 443px;
  width: 50px;
  height: 90px;
  border: 0;
  border-radius: 25px;
  color: #fff;
  background: #3b2957;
  cursor: pointer;
}

.carousel-arrow span {
  display: block;
  margin-top: -7px;
  font-family: Arial, sans-serif;
  font-size: 57px;
  line-height: 1;
}

.carousel-arrow--left {
  left: 40px;
}

.carousel-arrow--right {
  right: 40px;
}

.slider-dots {
  position: absolute;
  z-index: 8;
  bottom: 111px;
  left: 50%;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
}

.slider-dots button.active {
  width: 14px;
  border-radius: 8px;
  background: linear-gradient(128deg, #7700ff, #fb18c6);
}

.swipe-up {
  position: absolute;
  z-index: 8;
  bottom: 8px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #d9d9d9;
  font-size: 16px;
  transform: translateX(-50%);
}

.swipe-up img {
  width: 36px;
  height: 36px;
  display: block;
}

.features {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 96px), 1536px);
  margin: 0 auto;
  padding: 67px 0 132px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px;
}

.features::before {
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 100%;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.features::before {
  z-index: -1;
  background: url("../image/rilis/features-background-composite.png") center / 100% 100% no-repeat;
}

.feature-card {
  min-height: 170px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(#251d32, #251d32) padding-box,
    linear-gradient(138deg, #4b1863 5%, #d086e6 15%, #646ebb 38%, #ab33ab 89%, #f3bc99 99%) border-box;
}

.feature-card img {
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.feature-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.4;
}

.feature-card p {
  margin: 0;
  color: #9c9c9c;
  font-size: 24px;
  line-height: 1.4;
}

.site-footer {
  position: relative;
  z-index: 2;
  min-height: 130px;
  margin-top: -130px;
  padding: 38px 24px 0;
  text-align: center;
}

.site-footer p {
  margin: 0 0 10px;
  color: #9c9c9c;
  font-size: 14px;
}

.site-footer nav {
  width: 600px;
  height: 48px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.site-footer a {
  position: relative;
  flex: 0 0 150px;
  width: 150px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9d9d9;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.site-footer a + a::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 1px;
  height: 20px;
  background: #eee;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  top: 50%;
  bottom: auto;
  max-width: calc(100vw - 40px);
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  background: rgba(37, 29, 50, 0.96);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.38), 0 0 28px rgba(220, 32, 184, 0.22);
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 18px));
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/*
 * The desktop artwork is based on a 1920px-wide canvas. Scale every desktop
 * size from the same proportions so the composition remains intact from small
 * laptops through 2K/4K displays.
 */
@media (min-width: 901px) {
  .site-header {
    width: 100%;
    height: 6.25vw;
    padding: 1.302vw 6.25vw;
    grid-template-columns: 14.583vw 1fr 14.583vw;
  }

  .brand {
    gap: 0.99vw;
    font-size: 1.771vw;
  }

  .brand img {
    width: 3.542vw;
    height: 3.542vw;
    border-radius: 0.781vw;
  }

  .main-nav {
    gap: 4.063vw;
    font-size: 1.458vw;
  }

  .main-nav a.active::after {
    right: -0.573vw;
    bottom: -0.052vw;
    width: 0.833vw;
    height: 0.677vw;
  }

  .header-download {
    width: 12.552vw;
    height: 3.594vw;
    border-radius: 1.042vw;
    font-size: 1.458vw;
  }

  .hero {
    width: 100%;
    height: 56.25vw;
  }

  .hero-copy {
    top: 12.917vw;
    left: 11.25vw;
    width: 34.375vw;
  }

  .hero-copy h1 {
    width: 31.25vw;
  }

  .hero-description {
    margin-bottom: 1.771vw;
    font-size: 0.833vw;
  }

  .hero-feature {
    margin-bottom: 2.5vw;
  }

  .hero-feature h2 {
    margin-bottom: 0.573vw;
    font-size: 2.135vw;
  }

  .hero-feature h2 i {
    top: -0.729vw;
    padding-right: 0.625vw;
    font-size: 0.99vw;
  }

  .hero-feature h2 i:last-child {
    padding: 0 0 0 0.625vw;
  }

  .hero-feature p {
    font-size: 1.25vw;
  }

  .download-actions {
    gap: 3.333vw;
  }

  .store-button {
    width: 14.167vw;
    height: 3.906vw;
    border-radius: 0.99vw;
    gap: 0.938vw;
    font-size: 1.354vw;
  }

  .store-button--google img {
    width: 1.615vw;
    height: 1.771vw;
  }

  .store-button--apk svg {
    width: 1.615vw;
    height: 1.615vw;
  }

  .phone-slides {
    top: 8.646vw;
    width: 25.729vw;
  }

  .carousel-arrow {
    top: 23.073vw;
    width: 2.604vw;
    height: 4.688vw;
    border-radius: 1.302vw;
  }

  .carousel-arrow span {
    margin-top: -0.365vw;
    font-size: 2.969vw;
  }

  .carousel-arrow--left {
    left: 2.083vw;
  }

  .carousel-arrow--right {
    right: 2.083vw;
  }

  .slider-dots {
    bottom: 5.781vw;
    gap: 0.625vw;
  }

  .slider-dots button {
    width: 0.521vw;
    height: 0.521vw;
  }

  .slider-dots button.active {
    width: 0.729vw;
    border-radius: 0.417vw;
  }

  .swipe-up {
    bottom: 0.417vw;
    gap: 0.156vw;
    font-size: 0.833vw;
  }

  .swipe-up img {
    width: 1.875vw;
    height: 1.875vw;
  }

  .features {
    width: 80%;
    padding: 3.49vw 0 6.875vw;
    gap: 5.208vw;
  }

  .feature-card {
    min-height: 8.854vw;
    padding: 1.042vw 1.563vw;
    gap: 1.563vw;
    border-radius: 1.042vw;
  }

  .feature-card img {
    flex-basis: 6.771vw;
    width: 6.771vw;
    height: 6.771vw;
  }

  .feature-card h2 {
    margin-bottom: 0.521vw;
    font-size: 1.667vw;
  }

  .feature-card p {
    font-size: 1.25vw;
  }

  .site-footer {
    min-height: 6.771vw;
    margin-top: -6.771vw;
    padding: 1.979vw 1.25vw 0;
  }

  .site-footer p {
    margin-bottom: 0.521vw;
    font-size: 0.729vw;
  }

  .site-footer nav {
    width: 31.25vw;
    height: 2.5vw;
  }

  .site-footer a {
    flex-basis: 7.813vw;
    width: 7.813vw;
    height: 2.5vw;
    font-size: 0.833vw;
  }

  .site-footer a + a::before {
    top: 0.729vw;
    height: 1.042vw;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    height: auto;
    padding: 18px 22px;
    grid-template-columns: 1fr auto;
    transform: none;
    left: 0;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 20px;
    justify-content: flex-start;
    overflow-x: auto;
    font-size: 17px;
  }

  .header-download {
    width: 156px;
    height: 48px;
    border-radius: 14px;
    font-size: 18px;
  }

  .hero {
    height: auto;
    min-height: 1080px;
    padding: 58px 24px 130px;
  }

  .hero-copy {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 650px);
    margin: 0 auto;
    text-align: center;
    transform: none;
  }

  .hero-copy h1 {
    width: 100%;
  }

  .hero-description {
    margin-top: 18px;
  }

  .hero-feature h2 {
    font-size: 34px;
  }

  .hero-feature p {
    font-size: 19px;
  }

  .download-actions {
    justify-content: center;
    gap: 18px;
  }

  .store-button {
    width: min(44vw, 260px);
    font-size: 20px;
  }

  .phone-slides {
    position: relative;
    top: auto;
    left: auto;
    width: 310px;
    margin: 50px auto 0;
    transform: none;
  }

  .carousel-arrow {
    display: none;
  }

  .features {
    width: min(calc(100% - 36px), 720px);
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 42px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .main-nav {
    width: 100%;
    gap: 20px;
    font-size: 15px;
    justify-content: space-between;
    overflow: visible;
  }

  .hero {
    min-height: 1010px;
    padding-top: 42px;
  }

  .download-actions {
    flex-direction: column;
    align-items: center;
  }

  .store-button {
    width: 272px;
    height: 68px;
  }

  .phone-slides {
    margin-top: 32px;
    width: 290px;
    transform: none;
  }

  .slider-dots {
    bottom: 104px;
  }

  .feature-card {
    min-height: 132px;
    padding: 16px;
    gap: 14px;
  }

  .feature-card img {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }

  .feature-card h2 {
    margin-bottom: 5px;
    font-size: 23px;
  }

  .feature-card p {
    font-size: 16px;
  }

  .site-footer nav {
    width: 100%;
  }

  .site-footer a {
    flex-basis: 25%;
    width: 25%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
