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

:root {
  --primary: #0f3866;
  --primary-light: #1a5099;
  --accent: #3a7eff;
  --text: #1a1a2e;
  --muted: #666;
  --bg: #fff;
  --card-bg: #f0f5ff;
  --border: #e0eaff;
  --footer-bg: #0a1f3c;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-width: 375px;
  overflow-x: hidden;
}

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

/* ── Header ─────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header .logo img { height: 32px; }

/* ── Warning Banner (desktop) ────────────────────── */
.warning-banner {
  background: #eef4ff;
  border-bottom: 1px solid #ccdcff;
  padding: 20px 48px;
}
.warning-banner h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}
.warning-banner p {
  font-size: 13px;
  color: #444;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}
.warning-banner p span {
  display: block;
  padding-left: 1em;
}

/* ── Warning Modal (mobile overlay) ─────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-box h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-right: 32px;
}
.modal-box p {
  font-size: 13px;
  color: #444;
  line-height: 1.9;
}
.modal-box p span { display: block; padding-left: 1em; }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  font-size: 18px;
  line-height: 1;
  border: none;
}

/* ── Hero Section ────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 60px 64px;
  min-height: 520px;
  background: linear-gradient(135deg, #f7faff 0%, #eef3ff 100%);
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-text p {
  font-size: 17px;
  color: #333;
  line-height: 2;
  margin-bottom: 28px;
}
.promo-box {
  background: linear-gradient(135deg, #e8f0ff, #d0e3ff);
  border: 1px solid #b3ceff;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--primary);
  line-height: 1.9;
}
.promo-box .highlight {
  font-size: 20px;
  font-weight: 800;
  color: #e63946;
  background: #fff3f4;
  padding: 2px 10px;
  border-radius: 6px;
}

.hero-visual { flex: 0 0 360px; position: relative; }
.app-image-wrap {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,56,102,.18);
}
.app-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.dl-btn:hover { background: var(--primary-light); }
.dl-btn img { width: 20px; height: 20px; filter: brightness(10); }

/* ── CTA Section ─────────────────────────────────── */
.cta-section {
  background: var(--primary);
  padding: 48px 48px;
  text-align: center;
}
.cta-section h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 8px;
}
.cta-section h2 .price {
  color: #7dd3fc;
}
.cta-section h3 {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.7);
  margin-bottom: 28px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  border: none;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.28); }

/* ── Section common ──────────────────────────────── */
.section {
  padding: 72px 64px;
  text-align: center;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef3ff;
  border: 1px solid #c7d9ff;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}
.section-badge img { width: 18px; height: 18px; }
.section h2 {
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
}

/* ── Features Grid ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,56,102,.1);
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  position: relative;
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Download Grid ───────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.download-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,56,102,.1);
}
.download-card .dl-icon {
  width: 52px;
  height: 52px;
  position: relative;
}
.download-card .dl-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.download-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

/* ── Footer ──────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  padding: 32px 24px;
  text-align: center;
}
.footer p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 2;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .warning-banner { display: none; }

  .hero {
    flex-direction: column;
    padding: 40px 24px;
    min-height: auto;
  }
  .hero-visual { flex: none; width: 100%; max-width: 300px; margin: 0 auto; }
  .hero-text h2 { font-size: 30px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 48px 24px; }
  .cta-section { padding: 40px 24px; }
  .cta-section h2 { font-size: 20px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-text h2 { font-size: 26px; }
}
