:root {
  --lime: #b6e04a;
  --lime-deep: #9acc2e;
  --olive: #243510;
  --olive-dark: #152208;
  --ink: #1a280c;
  --text: rgba(0, 0, 0, 0.92);
  --text-2: rgba(0, 0, 0, 0.68);
  --text-3: rgba(0, 0, 0, 0.5);
  --white: #fff;
  --radius-pill: 999px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  min-width: 320px;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font-family: inherit; }

.skip {
  position: absolute;
  left: -999px;
}

/* ── Sticky nav ── */
.nav-wrap {
  position: sticky;
  top: 20px;
  z-index: 30;
  display: flex;
  justify-content: center;
  height: 0;
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(800px, calc(100vw - 32px));
  height: 56px;
  padding: 0 10px 0 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 30px rgba(20, 34, 8, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  transform: translateY(-8px);
  overflow: visible;
}

.nav.is-light {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(0, 0, 0, 0.06);
  color: #111;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand span {
  font-size: 16px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.nav.is-light .nav-links a { color: rgba(0, 0, 0, 0.45); }

.nav-links a:hover { color: inherit; }

.nav-links a.is-active {
  color: #fff;
  font-weight: 700;
}

.nav.is-light .nav-links a.is-active {
  color: #111;
  font-weight: 700;
}

.nav-download-wrap {
  position: relative;
  flex-shrink: 0;
}

.nav-qr {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 14px;
  min-width: 228px;
  padding: 10px 16px 10px 10px;
  border-radius: 20px;
  background: rgba(20, 28, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.nav-qr.is-open {
  display: flex;
}

.nav-qr::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateX(-50%) rotate(45deg);
}

.nav.is-light .nav-qr {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px rgba(20, 34, 8, 0.16);
}

.nav.is-light .nav-qr .qr-meta {
  color: #111;
}

.nav.is-light .nav-qr .qr-meta span {
  color: rgba(0, 0, 0, 0.5);
}

.nav-download {
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.nav-download.is-active {
  background: #111;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
}

.nav.is-light .nav-download {
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.55);
  background: transparent;
}

.nav.is-light .nav-download.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.nav.is-light .nav-download:hover {
  color: #111;
}

.nav.is-light .nav-download.is-active:hover {
  background: #222;
  color: #fff;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  padding: 88px 24px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 118%, rgba(182, 224, 74, 0.55), transparent 42%),
    radial-gradient(circle at 18% 8%, rgba(202, 217, 182, 0.18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(182, 224, 74, 0.16), transparent 28%),
    linear-gradient(180deg, #121a09 0%, #1c2c0d 58%, #3d5a18 100%);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.hero-brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero-brand h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.slogan {
  margin-top: 28px;
  max-width: 820px;
  text-align: center;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.18;
}

.sub {
  margin-top: 18px;
  max-width: none;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
  white-space: nowrap;
}

.download-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 188px;
  height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 0;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn svg { flex-shrink: 0; }

.btn-ios {
  background: #fff;
  color: rgba(0, 0, 0, 0.92);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.btn-ios:hover { transform: translateY(-1px); }

.btn-android {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 18px 36px rgba(182, 224, 74, 0.22);
}

.btn-android:hover {
  background: var(--lime-deep);
  transform: translateY(-1px);
}

.btn-ios.dark {
  background: #111;
  color: #fff;
}

.qr-row {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.qr-box {
  width: 92px;
  height: 92px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
}

.qr-box img,
.qr-box canvas {
  width: 80px !important;
  height: 80px !important;
}

.qr-meta {
  color: rgba(255, 255, 255, 0.88);
}

.qr-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.qr-meta span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}

.meta-line {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.phones {
  position: relative;
  width: min(920px, 100%);
  height: 592px;
  margin-top: 48px;
}

.phone {
  position: absolute;
  overflow: hidden;
  border-radius: 40px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
  background: transparent;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.phone-main {
  width: 270px;
  height: 592px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-left {
  width: 212px;
  height: 465px;
  left: 8%;
  top: 70px;
  transform: rotate(-8deg);
  z-index: 2;
  opacity: 0.92;
}

.phone-right {
  width: 212px;
  height: 465px;
  right: 8%;
  top: 70px;
  transform: rotate(8deg);
  z-index: 2;
  opacity: 0.92;
}

/* ── Features ── */
.features {
  padding: 88px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}

.features h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.8px;
  text-align: center;
}

.features .lead {
  margin-top: 16px;
  max-width: none;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  white-space: nowrap;
}

.cards {
  width: min(1260px, 100%);
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card {
  scroll-margin-top: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 420px;
  padding: 36px 64px;
  border-radius: 28px;
  border: 1px solid #ececec;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
    linear-gradient(285deg, #f3f6e8 -4%, #fff 50%, #e7f0d8 100%);
}

.card:nth-child(even) { flex-direction: row-reverse; }

.card-copy { max-width: 420px; }

.card h3 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.card p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.card-shot {
  width: min(360px, 42%);
  flex-shrink: 0;
}

.card-shot img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(36, 53, 16, 0.14);
}

.cta {
  padding: 72px 24px 48px;
  text-align: center;
  background: #fff;
}

.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.8px;
}

.cta p {
  margin: 16px auto 0;
  max-width: 720px;
  color: var(--text-2);
  line-height: 1.7;
}

.cta .download-row { margin-top: 28px; }

.cta-tip {
  margin-top: 16px !important;
  font-size: 13px;
  color: var(--text-3) !important;
}

/* ── Footer ── */
.footer {
  padding: 20px 48px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}

.footer-copy {
  margin: 0;
}

.footer-copy span {
  color: var(--text-3);
}

.footer a {
  color: rgba(0, 0, 0, 0.78);
  text-decoration: none;
}

.footer a:hover { color: #4a6a22; }

.footer-links {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

/* ── Toast / modal ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(18, 26, 9, 0.92);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 50;
}

.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 12, 8, 0.48);
  padding: 20px;
}

.dialog.is-open { display: flex; }

.dialog-card {
  width: min(420px, 100%);
  padding: 28px 24px 20px;
  border-radius: 20px;
  background: #fff;
}

.dialog-card h3 { font-size: 18px; margin-bottom: 10px; }

.dialog-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}

.dialog-card button {
  margin-top: 18px;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 980px) {
  .phones { height: 526px; }
  .phone-main { width: 240px; height: 526px; }
  .phone-left, .phone-right { width: 180px; height: 395px; }
  .card { padding: 28px; gap: 24px; min-height: 0; }
}

@media (max-width: 799px) {
  .nav-wrap { display: none; }

  .hero { padding: 48px 18px 40px; min-height: auto; }

  .hero-brand { margin-top: 0; }
  .hero-brand img { width: 48px; height: 48px; }
  .hero-brand h1 { font-size: 28px; }

  .sub {
    white-space: normal;
    padding: 0 12px;
    font-size: 15px;
  }

  .features .lead {
    white-space: normal;
    padding: 0 16px;
    font-size: 15px;
  }

  .qr-row, .qr-card { display: none; }

  .btn { width: min(280px, 100%); }

  .phones {
    height: 504px;
    margin-top: 32px;
  }

  .phone-left, .phone-right { display: none; }

  .phone-main {
    width: 230px;
    height: 504px;
  }

  .card,
  .card:nth-child(even) {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px 28px;
  }

  .card-copy { max-width: none; }

  .card-shot { width: min(280px, 80%); }

  .guide-inner { grid-template-columns: 1fr; }

  .cta { padding: 56px 18px 32px; }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 32px;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }
}
