:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #1c1f2e;
  --muted: #5c6478;
  --line: #e6e8f0;
  --brand: #5b4dff;
  --brand-2: #3d8bff;
  --gold: #e8b84a;
  --cta: #ff7a3c;
  --hero-a: #3b2f8a;
  --hero-b: #5b4dff;
  --hero-c: #3d8bff;
  --footer: #1a1d2b;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(40, 44, 80, 0.08);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 232, 240, 0.9);
}

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.logo__mark {
  display: flex;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.nav a {
  color: #2d3348;
}

.nav a:hover {
  color: var(--brand);
}

.nav__cta {
  padding: 8px 18px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--cta), #ff9a3c);
  box-shadow: 0 6px 16px rgba(255, 122, 60, 0.28);
}

  .nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .nav-burger {
    display: none;
  }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 48%, var(--hero-c) 100%);
  color: #fff;
  padding: 72px 0 80px;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.hero__glow--a {
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  background: rgba(246, 211, 107, 0.18);
}

.hero__glow--b {
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.1);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: break-word;
}

.hero__lead {
  margin: 0 0 32px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
  overflow-wrap: break-word;
}

.download {
  display: flex;
  align-items: center;
  gap: 22px;
}

.qr {
  width: 148px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}

.qr img {
  margin: 0 auto 8px;
}

.qr span {
  font-size: 12px;
  color: var(--muted);
}

.store {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store__btn {
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.store__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.store__btn--brand {
  background: var(--brand);
  color: #fff;
}

.store__btn:hover {
  transform: translateY(-1px);
}

/* Phone mock */
.hero__phone {
  display: flex;
  justify-content: center;
}

.phone {
  width: 260px;
  padding: 12px;
  border-radius: 36px;
  background: #12131a;
  box-shadow: 0 24px 60px rgba(12, 16, 40, 0.35);
}

.phone__notch {
  width: 92px;
  height: 8px;
  margin: 4px auto 10px;
  border-radius: 8px;
  background: #2a2d3a;
}

.phone__screen {
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #1b1340 0%, #2a1b5c 100%);
}

.mini-app {
  padding: 16px 14px 20px;
  min-height: 360px;
}

.mini-app__bar {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.mini-app__tags {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mini-app__tags span {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.mini-app__tags .is-on {
  color: #1b1340;
  background: var(--gold);
}

.mini-app__card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-app__card p {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.balls i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  background: #fff;
  color: #c23b3b;
  font-weight: 700;
}

.balls__more {
  background: transparent !important;
  color: #fff !important;
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

.mini-app__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.mini-app__row div {
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  text-align: center;
}

/* Intro */
.intro {
  background: var(--card);
  padding: 88px 0 72px;
}

.intro__inner {
  max-width: 760px;
  text-align: center;
}

.intro h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

.intro__desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.intro__legal {
  margin: 0 0 28px;
  color: #b42318;
  font-size: 14px;
}

.lottery-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lottery-tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef0ff;
  color: var(--brand);
  font-size: 13px;
}

/* Features */
.features {
  padding: 20px 0 88px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.feature__icon--a { background: linear-gradient(135deg, #7c6bff, #3d8bff); }
.feature__icon--b { background: linear-gradient(135deg, #ff8a3d, #ffc14d); }
.feature__icon--c { background: linear-gradient(135deg, #5ad0c6, #3d8bff); }
.feature__icon--d { background: linear-gradient(135deg, #f06b9a, #7c6bff); }

/* Footer */
.footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
}

.footer p {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer a {
  color: #c9c6ff;
}

.footer__about {
  margin-top: 12px;
}

.footer__meta {
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__meta p {
  margin: 0 0 6px;
}

.logo--light {
  color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid,
  .feature-grid,
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    cursor: pointer;
    z-index: 2;
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta {
    margin-top: 10px;
    text-align: center;
    border-bottom: 0;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .hero__grid,
  .feature-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .download {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .store,
  .store__btn {
    width: min(220px, 100%);
  }

  .intro,
  .features {
    padding-left: 0;
    padding-right: 0;
  }

  .intro {
    padding-top: 56px;
  }
}
