:root {
  --brand: #7549ff;
  --brand-2: #8a63ff;
  --brand-dark: #4a2fd6;
  --green: #10d07a;
  --pink: #ff4b79;
  --text: #111217;
  --muted: #696b78;
  --line: #ececf2;
  --soft: #f7f7fb;
  --card: #ffffff;
  --shadow: 0 18px 42px rgba(22, 18, 60, .12);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #efeff3;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }

.page-wrapper,
.navbar,
.mobile-menu,
.lang-toast,
.download-loading {
  width: min(100%, 445px);
  margin-left: auto;
  margin-right: auto;
}

.page-wrapper {
  background: #fff;
  overflow: hidden;
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(0,0,0,.03);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(239,239,246,.88);
  backdrop-filter: blur(16px);
  transition: box-shadow .2s ease, height .2s ease;
}
.navbar.scrolled { box-shadow: 0 10px 28px rgba(28, 23, 64, .08); }
.navbar-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.navbar-logo img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.navbar-logo span { font-size: 20px; font-weight: 900; letter-spacing: -.5px; white-space: nowrap; }
.desktop-nav-links { display: none; }
.lang-btn { color: var(--muted); cursor: pointer; user-select: none; }
.navbar-cta {
  display: none;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(117, 73, 255, .28);
  opacity: 0;
  transform: translateY(-3px);
  transition: .2s ease;
}
.navbar-cta.visible { display: inline-flex; opacity: 1; transform: translateY(0); }
.hamburger {
  width: 30px;
  height: 24px;
  display: grid;
  align-content: space-between;
  cursor: pointer;
}
.hamburger span { display: block; height: 2px; background: #222; border-radius: 999px; }

.hero { padding: 38px 28px 26px; text-align: center; }
.hero-image { width: 100%; margin: 0 auto 28px; }
.hero-image img { width: 100%; border-radius: 32px; }
.hero-title,
.section-title {
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -1.4px;
}
.hl { color: var(--brand); }
.hero-sub,
.section-desc {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 360px;
}
.btn-primary {
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  padding: 15px 34px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 38px rgba(117, 73, 255, .28);
  cursor: pointer;
  min-width: 168px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary:active { transform: scale(.98); filter: brightness(.98); }

.stats { padding: 22px 22px 10px; background: #fff; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 10px;
  background: linear-gradient(180deg, #fbfbff, #fff);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(24, 20, 64, .06);
}
.stat-item { text-align: center; }
.stat-num { color: var(--brand); font-size: 24px; font-weight: 950; line-height: 1; }
.stat-label { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.langs-scroll,
.moments-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 20px -22px 0; padding: 0 22px 8px; }
.langs-scroll::-webkit-scrollbar,
.moments-scroll::-webkit-scrollbar,
.search-scroll::-webkit-scrollbar { display: none; }
.langs-track { display: flex; gap: 12px; min-width: max-content; }
.langs-track .lang-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(28, 23, 64, .06);
  color: #24252b;
  font-weight: 800;
  font-size: 13px;
}
.langs-track .lang-item img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.section { padding: 58px 28px; background: #fff; }
.section.gray { background: linear-gradient(180deg, #fafafe, #f5f5fb); }
.intro-section { padding-top: 46px; padding-bottom: 24px; }
.section-tag {
  display: inline-flex;
  margin: 0 0 13px;
  color: var(--brand);
  font-weight: 950;
  letter-spacing: .08em;
  font-size: 12px;
  text-transform: uppercase;
}
.section-tag.badge {
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  letter-spacing: 0;
}
.section-img,
.video-call-img { margin-top: 28px; }
.section-img img,
.video-call-img img { width: 100%; border-radius: 34px; box-shadow: var(--shadow); }
.phone-frame { margin-top: 28px; display: flex; justify-content: center; }
.phone-frame img {
  width: min(100%, 315px);
  border-radius: 38px;
  filter: drop-shadow(0 24px 38px rgba(26, 22, 56, .2));
}

.toolbox-list { margin-top: 28px; display: grid; gap: 12px; }
.toolbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(24,20,64,.07);
  color: #292a32;
  font-weight: 850;
}
.toolbox-icon { display: inline-flex; width: 28px; margin-right: 10px; }

.moments-track { display: flex; gap: 14px; min-width: max-content; }
.moment-card {
  width: 280px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(25, 20, 64, .10);
}
.moment-user { display: flex; align-items: center; gap: 10px; }
.moment-avatar {
  width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 950;
}
.moment-meta { min-width: 0; }
.moment-name { font-weight: 950; font-size: 14px; }
.moment-time { color: #a0a2ad; font-size: 11px; font-weight: 700; margin-left: 3px; }
.moment-flags { margin-top: 4px; color: var(--muted); font-size: 12px; }
.lang-tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 19px; border-radius: 999px;
  background: #f1efff; color: var(--brand); font-size: 10px; font-weight: 900;
}
.moment-photo { height: 136px; border-radius: 20px; margin-top: 14px; display: grid; place-items: center; }
.moment-emoji { font-size: 44px; }
.moment-text { margin-top: 12px; font-size: 13px; line-height: 1.42; color: #333541; }
.moment-tags { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.moment-tag { color: var(--brand); background: #f3f0ff; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 850; }
.moment-actions { margin-top: 13px; display: flex; gap: 15px; color: var(--muted); font-size: 12px; }
.moment-share { margin-left: auto; }

.search-section { padding-left: 0; padding-right: 0; text-align: center; }
.search-section > .section-title,
.search-section > .section-desc { padding-left: 28px; padding-right: 28px; }
.search-scroll { overflow-x: auto; margin-top: 26px; padding: 8px 18px 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.world-map-wrap { position: relative; width: 720px; height: 350px; margin: 0 auto; }
.world-map-bg { width: 100%; height: 100%; object-fit: contain; opacity: .68; }
.float-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 22, 60, .15);
  white-space: nowrap;
}
.float-pill.reverse { padding: 8px 14px 8px 10px; }
.pill-text { font-weight: 950; color: #23242a; }
.pill-avatar { position: relative; width: 44px; height: 44px; }
.pill-avatar > img:first-child { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.pill-flag { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }

.partners-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.partner-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  border-radius: 25px;
  background: #ddd;
  box-shadow: 0 15px 34px rgba(24,20,64,.12);
}
.partner-card > img:first-child { width: 100%; height: 100%; min-height: 214px; object-fit: cover; }
.partner-card:after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.58)); }
.partner-flag { position: absolute; right: 12px; top: 12px; width: 35px; height: 35px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; z-index: 2; }
.partner-info { position: absolute; left: 13px; right: 13px; bottom: 12px; z-index: 2; color: #fff; }
.partner-name { font-size: 17px; font-weight: 950; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.partner-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.partner-tag { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; }

.reviews-grid { margin-top: 26px; display: grid; gap: 13px; }
.review-card { padding: 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 28px rgba(24,20,64,.07); }
.review-stars { color: #ffb820; letter-spacing: 1px; font-size: 15px; }
.review-title { margin-top: 10px; font-weight: 950; font-size: 18px; }
.review-text { margin-top: 8px; color: #4d4f5b; line-height: 1.55; font-size: 14px; }
.review-author { margin-top: 14px; color: #9a9ca8; font-size: 12px; font-weight: 800; }

.bottom-cta { padding: 62px 28px 48px; text-align: center; background: linear-gradient(180deg, #fff, #f6f4ff); }
.more-apps { padding: 32px 28px; background: #fff; }
.more-apps-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #4e505c; font-size: 11px; font-weight: 850; }
.app-item img { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 18px rgba(24,20,64,.10); }

.footer-nav { padding: 28px; background: #fafafe; border-top: 1px solid var(--line); }
.footer-group { margin-bottom: 22px; display: grid; gap: 10px; }
.footer-group-title { font-weight: 950; color: #22242c; }
.footer-group a { color: #686b78; font-size: 14px; }
.footer-bottom { padding: 24px 28px 34px; background: #fff; border-top: 1px solid var(--line); }
.footer-bottom-logo { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 950; }
.footer-bottom-logo img { width: 36px; height: 36px; border-radius: 10px; }
.footer-icp { margin-top: 14px; display: grid; gap: 5px; color: #9a9ca8; font-size: 12px; line-height: 1.35; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #fff;
  transform: translateX(110%);
  transition: transform .25s ease;
  overflow-y: auto;
  box-shadow: -18px 0 42px rgba(0,0,0,.15);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--line); }
.menu-close { border: 0; background: #f2f2f7; color: #222; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 18px; }
.mobile-nav { display: grid; gap: 4px; padding: 18px 24px; }
.mobile-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); color: #23252c; font-size: 18px; font-weight: 900; }
.mobile-lang-section { padding: 12px 24px 34px; }
.mobile-lang-current { color: var(--brand); font-weight: 950; margin-bottom: 12px; }
.mobile-lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mobile-lang-grid .lang-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: 850;
  color: #4c4e5a;
}
.mobile-lang-grid .lang-item.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.lang-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  width: auto;
  max-width: min(92vw, 410px);
  padding: 12px 15px;
  border-radius: 16px;
  background: rgba(25, 24, 34, .92);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 110;
  text-align: center;
}
.lang-toast.show { opacity: 1; transform: translate(-50%, 0); }
.download-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
}
.download-loading.show { display: flex; }
.loading-content {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px 28px;
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #eee9ff;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loading-text { color: #3f4050; font-weight: 900; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 760px) {
  .page-wrapper,
  .navbar,
  .mobile-menu,
  .download-loading { width: min(100%, 980px); }
  .navbar { padding: 0 42px; }
  .hamburger { display: none; }
  .desktop-nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: 20px; color: #4e505d; font-weight: 850; font-size: 14px; }
  .navbar-cta { display: inline-flex; opacity: 1; transform: none; }
  .hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 36px; text-align: left; padding: 72px 64px 54px; }
  .hero-image { order: 2; margin: 0; }
  .hero-body { order: 1; }
  .hero-title { font-size: 58px; }
  .section { padding: 76px 64px; }
  .section-title { font-size: 46px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .more-apps-grid { max-width: 460px; }
  .footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 42px 64px; }
  .footer-group { margin: 0; align-content: start; }
  .footer-bottom { padding: 28px 64px 38px; }
}

@media (max-width: 374px) {
  .navbar { padding: 0 18px; }
  .hero, .section, .bottom-cta, .more-apps, .footer-nav, .footer-bottom { padding-left: 22px; padding-right: 22px; }
  .hero-title, .section-title { font-size: 34px; }
  .hero-sub, .section-desc { font-size: 16px; }
  .partners-grid { gap: 10px; }
  .partner-card, .partner-card > img:first-child { min-height: 190px; }
}
