:root {
  --page-max: 760px;
  --text: #ffffff;
  --muted: rgba(224, 239, 255, 0.84);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #031024;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.screen-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 9, 25, 0.6), rgba(2, 9, 25, 0.9)),
    url('../images/bg-mobile.jpg') center top / cover no-repeat;
  filter: saturate(1.08);
  transform: scale(1.02);
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: calc(10px + var(--safe-top)) 10px calc(18px + var(--safe-bottom));
}

.landing-page {
  width: min(100%, var(--page-max));
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(123, 199, 255, 0.14);
  background: linear-gradient(180deg, rgba(3, 16, 44, 0.74), rgba(4, 12, 32, 0.92));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.hero {
  position: relative;
  min-height: 404px;
  padding: 22px 16px 110px;
  background:
    linear-gradient(180deg, rgba(1, 11, 37, 0.08), rgba(1, 11, 37, 0.62) 42%, rgba(1, 11, 37, 0.96) 100%),
    url('../images/bg-mobile.jpg') center top / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(66, 170, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(6, 26, 70, 0.18), transparent 24%);
}

.hero__lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 2% 3%, rgba(255,255,255,0.96), rgba(255,255,255,0.08) 10%, transparent 22%),
    radial-gradient(circle at 98% 3%, rgba(255,255,255,0.96), rgba(255,255,255,0.08) 10%, transparent 22%);
  pointer-events: none;
}

.hero__graffiti {
  position: absolute;
  top: 16px;
  margin: 0;
  font-size: clamp(1.7rem, 5.2vw, 2.5rem);
  line-height: 0.95;
  font-weight: 900;
  color: rgba(196, 222, 255, 0.34);
  text-shadow: 0 0 24px rgba(73, 170, 255, 0.18);
  transform: rotate(-10deg);
}
.hero__graffiti--left { left: 16px; }
.hero__graffiti--right { right: 16px; text-align: right; transform: rotate(10deg); }

.hero__brand {
  position: relative;
  z-index: 1;
  max-width: 78%;
  margin: 0 auto;
  padding-top: 10px;
  text-align: center;
}

.hero__logo {
  width: min(72vw, 260px);
  margin: 0 auto;
  filter: drop-shadow(0 0 14px rgba(78, 178, 255, 0.25));
}

.hero__brand-link { display: block; width: fit-content; margin: 0 auto; }
.hero__brand-link:focus-visible,
.platform-card:focus-visible,
.promo__button:focus-visible,
.promo-modal__close:focus-visible {
  outline: 3px solid #6beeff;
  outline-offset: 4px;
}

.hero__title {
  margin: 14px 0 8px;
  font-size: clamp(1.55rem, 4.8vw, 2.35rem);
  line-height: 1.18;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(66, 181, 255, 0.2);
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.35rem);
  line-height: 1.2;
  font-weight: 800;
  color: #6beeff;
  letter-spacing: 0.16em;
}

.platforms,
.feature-row,
.contact-grid,
.benefits {
  padding-left: 14px;
  padding-right: 14px;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: -68px;
  position: relative;
  z-index: 2;
}

.platform-card {
  padding: 12px 10px 14px;
  border-radius: 22px;
  border: 1px solid rgba(114, 194, 255, 0.4);
  background: linear-gradient(180deg, rgba(10, 43, 108, 0.94), rgba(6, 17, 47, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 20px rgba(0,0,0,0.28), 0 0 20px rgba(42, 129, 255, 0.12);
  text-align: center;
}

.platform-card__media {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  padding: 8px;
}
.platform-card__media--light {
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.92), rgba(213, 228, 255, 0.88));
}
.platform-card__media--dark {
  background: linear-gradient(180deg, rgba(9, 13, 24, 0.95), rgba(20, 28, 50, 0.92));
}
.platform-card__media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.platform-card h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.06;
}
.platform-card p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 98px;
  padding: 10px 6px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 30, 76, 0.94), rgba(4, 15, 43, 0.96));
  border: 1px solid rgba(100, 175, 255, 0.2);
}
.feature-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 219, 100, 0.12);
  font-size: 1.2rem;
}
.feature-item h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.12;
}
.feature-item p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.contact-card {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(104, 181, 255, 0.34);
  background: linear-gradient(180deg, rgba(9, 38, 95, 0.95), rgba(6, 19, 54, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 20px rgba(0,0,0,0.22);
}
.contact-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
}
.contact-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 18px;
  font-size: 2.1rem;
/*  background: linear-gradient(180deg, rgba(20, 32, 67, 0.95), rgba(8, 13, 32, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);*/
}
.contact-card__icon--green {
  /*background: linear-gradient(180deg, #2edd88, #12985b);*/
  color: #ffffff;
  font-weight: 900;
  font-family: Arial, sans-serif;
}
.contact-card h3 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 900;
}
.contact-card p {
  margin: 6px 0 0;
  font-size: 0.84rem;
  line-height: 1.32;
  color: var(--muted);
}
.contact-card__contact {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(114, 194, 255, 0.25);
}
.contact-card__contact span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.contact-card__contact strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  line-height: 1.3;
  color: #75cfff;
  cursor: text;
  -webkit-user-select: all;
  user-select: all;
}
.contact-card--safex .contact-card__contact strong { color: #5fe0ae; }

.promo {
  position: relative;
  margin: 18px 14px 0;
  /*padding-left: 68px;*/
}
.promo__gift {
  position: absolute;
  left: 0;
  bottom: -4px;
  font-size: 4.2rem;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25));
}
.promo__button {
  display: flex;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 208, 95, 0.9);
  background: linear-gradient(180deg, #ff724d 0%, #df1b18 52%, #c10000 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15), 0 0 30px rgba(255, 119, 59, 0.38), 0 14px 26px rgba(84, 8, 8, 0.38);
}
.promo__arrow {
  font-size: 2rem;
  font-weight: 900;
  color: #fff0aa;
}
.promo__text {
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff8cc;
  text-shadow: 0 0 12px rgba(255, 231, 158, 0.4);
}

body.is-modal-open { overflow: hidden; }
.promo-modal {
  width: min(92vw, 760px);
  max-width: 760px;
  max-height: calc(100vh - 40px - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - 40px - var(--safe-top) - var(--safe-bottom));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: #071a3c;
  border: 1px solid rgba(114, 194, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.promo-modal[open] { display: flex; flex-direction: column; }
.promo-modal::backdrop { background: rgba(0, 5, 18, 0.8); }
.promo-modal [hidden] { display: none; }
.promo-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(114, 194, 255, 0.2);
}
.promo-modal__header h2 { margin: 0; font-size: 1.2rem; }
.promo-modal__close {
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.promo-modal__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
.promo-modal__image { width: 100%; height: auto; border-radius: 10px; }
.promo-modal__status { margin: 20px 0; text-align: center; line-height: 1.6; color: var(--muted); }

.benefits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.benefit {
  min-height: 104px;
  padding: 12px 6px 10px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 31, 82, 0.95), rgba(5, 18, 47, 0.98));
  border: 1px solid rgba(88, 160, 255, 0.24);
}
.benefit__icon {
  display: block;
  margin-bottom: 8px;
  font-size: 1.65rem;
}
.benefit span:last-child {
  display: block;
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgba(238, 246, 255, 0.96);
}

.footer {
  padding: 22px 14px 28px;
  text-align: center;
}
.footer__cn {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  color: #38b6ff;
  text-shadow: 0 0 16px rgba(56, 182, 255, 0.55);
}
.footer__en {
  margin: 8px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  color: rgba(227, 239, 255, 0.74);
}

@media (max-width: 480px) {
  .page-wrap { padding-left: 6px; padding-right: 6px; }
  .landing-page { border-radius: 22px; }
  .hero { min-height: 368px; padding: 16px 10px 96px; }
  .hero__brand { max-width: 84%; }
  .hero__graffiti { font-size: 1.42rem; }
  .platforms,
  .feature-row,
  .contact-grid,
  .benefits { padding-left: 10px; padding-right: 10px; }
  .platforms { gap: 8px; margin-top: -56px; }
  .platform-card { padding: 10px 8px 12px; border-radius: 18px; }
  .platform-card__media { height: 74px; border-radius: 14px; }
  .platform-card h2 { font-size: 1.38rem; }
  .platform-card p { font-size: 0.73rem; }
  .feature-row { gap: 6px; }
  .feature-item { min-height: 92px; padding-left: 4px; padding-right: 4px; }
  .feature-item__icon { width: 30px; height: 30px; font-size: 1rem; }
  .feature-item h3 { font-size: 0.82rem; }
  .feature-item p { font-size: 0.62rem; }
  .contact-grid { gap: 8px; }
  .contact-card { padding: 12px; border-radius: 18px; }
  .contact-card__head { gap: 8px; min-height: 64px; }
  .contact-card__icon { width: 52px; height: 52px; border-radius: 14px; font-size: 1.7rem; }
  .contact-card h3 { font-size: 1.38rem; }
  .contact-card p { font-size: 0.73rem; }
  .promo { margin-left: 10px; margin-right: 10px; }
  .promo__gift { font-size: 3.1rem; }
  .promo__button { min-height: 70px; gap: 8px; padding: 12px 14px; }
  .promo__arrow { font-size: 1.5rem; }
  .benefits { gap: 6px; }
  .benefit { min-height: 94px; padding-left: 4px; padding-right: 4px; border-radius: 16px; }
  .benefit__icon { font-size: 1.3rem; }
  .benefit span:last-child { font-size: 0.68rem; }
  .footer__cn { font-size: 1.34rem; }
  .footer__en { font-size: 0.6rem; letter-spacing: 0.26em; }
}

@media (min-width: 768px) {
  .screen-bg {
    background:
      linear-gradient(180deg, rgba(3, 10, 26, 0.52), rgba(3, 10, 26, 0.85)),
      url('../images/bg-desktop.jpg') center center / cover no-repeat;
  }
  .landing-page {
    width: min(100%, 960px);
  }
  .hero {
    min-height: 420px;
    padding: 26px 26px 118px;
    background:
      linear-gradient(180deg, rgba(1, 11, 37, 0.1), rgba(1, 11, 37, 0.66) 44%, rgba(1, 11, 37, 0.96) 100%),
      url('../images/bg-desktop.jpg') center top / cover no-repeat;
  }
  .hero__brand {
    max-width: 44%;
    padding-top: 6px;
  }
  .hero__logo { width: 280px; }
  .platforms,
  .feature-row,
  .contact-grid,
  .benefits {
    padding-left: 22px;
    padding-right: 22px;
  }
  .platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -64px;
  }
  .platform-card__media { height: 88px; }
  .feature-row {
    gap: 12px;
  }
  .feature-item {
    min-height: 110px;
  }
  .contact-grid {
    gap: 14px;
  }
  .promo {
    margin-left: 22px;
    margin-right: 22px;
  }
  .benefits { gap: 12px; }
}
