* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: #fff;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Helvetica,
    Segoe UI,
    Arial,
    Roboto,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft Yahei",
    sans-serif;
}

img {
  max-width: 100%;
  vertical-align: top;
}

a {
  text-decoration: none;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
  z-index: 1;
}

.hero-bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 28px 48px 0;
  pointer-events: none;
}

.header_container,
.section_left {
  pointer-events: auto;
}

.header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.higolive {
  height: 36px;
  width: auto;
  display: block;
}

.language_switch {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  user-select: none;
}

.tooltip_text {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.tooltip_down {
  width: 10px;
  height: auto;
  display: block;
}

.tooltip_box {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  background: #fff;
  border-radius: 8px;
  display: none;
  z-index: 20;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.tooltip_box div {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  color: #222;
  white-space: nowrap;
  cursor: pointer;
}

.tooltip_box div:hover {
  background: #f3e6c8;
}

.hero-body {
  flex: 1;
  position: static;
}

.section_left {
  position: absolute;
  right: calc(51.5% + 70px);
  top: 42%;
  transform: translateY(-50%);
  width: 23%;
  max-width: 380px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
}

.app-logo {
  width: 42%;
  max-width: 148px;
  height: auto;
  display: block;
  border-radius: 28px;
}

.section_description {
  color: #fff;
  font-size: clamp(12px, 1.05vw, 16px);
  line-height: 1.7;
  margin-top: 1.2em;
  width: 100%;
  max-width: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.section_description .al {
  direction: rtl;
}

.recharge {
  display: block;
  width: 42%;
  max-width: 148px;
  margin-top: 1.4em;
  transition: transform 0.2s ease;
}

.recharge img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}

.recharge:hover {
  transform: scale(1.04);
}

/* Phone screen overlay — measured from index_bg.png (2400x1400) */
.phone-col {
  position: absolute;
  left: 53.2917%;
  top: 13%;
  width: 17%;
  height: 58.0714%;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 7.4% / 3.7%;
  background: #111;
}

.swipe-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.swipe-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.swipe-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  user-select: none;
}

.indicators {
  position: absolute;
  left: 53.2917%;
  top: 74.7%;
  width: 17%;
  height: 2.2%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.indicator {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(28, 16, 10, 0.45);
}

.indicator.is-active {
  background: #fff;
  transform: scale(1.15);
}

.bottom_conainer {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 28px 16px 40px;
  background: #fff;
}

.bottom_link {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.bottom_link a {
  color: #6f6f6f;
  padding: 0 28px;
  text-align: center;
}

.bottom_link a:hover {
  color: #333;
}

.bottom_link a:first-child {
  border-right: 1px solid #d0d0d0;
}

@media (max-width: 1280px) {
  .hero-overlay {
    padding: 22px 32px 0;
  }
}

@media (max-width: 1100px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #120c08 url("./index_bg.png") 18% 30% / cover no-repeat;
  }

  .hero::after {
    display: none;
  }

  .hero-bg {
    display: none;
  }

  .hero-overlay {
    position: relative;
    inset: auto;
    order: 1;
    padding: 20px 20px 8px;
  }

  .hero-body {
    flex: none;
    justify-content: center;
    padding: 28px 0 12px;
  }

  .section_left {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .app-logo {
    width: 128px;
  }

  .section_description {
    font-size: 15px;
  }

  .recharge {
    width: 128px;
    max-width: none;
  }

  .phone-col {
    position: relative;
    left: auto;
    top: auto;
    order: 2;
    width: min(68vw, 300px);
    height: auto;
    aspect-ratio: 408 / 813;
    margin: 8px auto 0;
    border: 8px solid #161616;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  }

  .phone-screen {
    border-radius: 28px;
  }

  .indicators {
    position: relative;
    left: auto;
    top: auto;
    order: 3;
    width: auto;
    height: auto;
    margin: 16px auto 28px;
    gap: 10px;
  }

  .indicator {
    width: 9px;
    height: 9px;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .higolive {
    height: 28px;
  }

  .language_switch {
    padding: 6px 10px;
  }

  .tooltip_text {
    font-size: 13px;
  }

  .app-logo {
    width: 112px;
    border-radius: 22px;
  }

  .section_description {
    font-size: 14px;
    line-height: 1.65;
    margin-top: 16px;
  }

  .recharge {
    margin-top: 20px;
  }

  .recharge {
    width: 112px;
  }

  .phone-col {
    width: min(72vw, 280px);
    border-width: 6px;
    border-radius: 30px;
  }

  .phone-screen {
    border-radius: 24px;
  }

  .bottom_link a {
    padding: 0 16px;
    font-size: 13px;
  }
}
