:root {
  --bg: #0d1620;
  --bg-soft: #131f2b;
  --paper: #ffffff;
  --paper-2: #f3f7fb;
  --text: #13202a;
  --muted: #5d6d79;
  --line: #d8e1e8;
  --brand: #2ad67a;
  --brand-dark: #0f6e4a;
  --warning: #f0ad4e;
  --shadow: 0 18px 40px rgba(13, 22, 32, 0.12);
  --radius: 18px;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #0d1620 0 48%, #eef3f8 48% 100%);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 999;
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.skip-link:focus { left: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 22, 32, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; }

.brand-wordmark { width: 132px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; }

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #06311f;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  padding: 72px 0 84px;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(42, 214, 122, 0.16), transparent 32%),
    linear-gradient(180deg, #0d1620, #131f2b 58%, #eef3f8 58.1%, #eef3f8);
}

.hero-layout {
  display: grid;
  gap: 26px;
}

.hero-copy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.hero h1,
.section-head h2,
.register-strip h2 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.06;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero h1 {
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(2.8rem, 5.6vw, 4.5rem);
}

.hero-lead {
  margin: 18px auto 0;
  max-width: 760px;
  color: rgba(255,255,255,0.84);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #06311f;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 18px;
  width: min(100%, 980px);
  margin: 6px auto 0;
  align-items: start;
}

.apk-badge,
.file-check,
.permission-card,
.download-card,
.register-strip,
.faq-item,
.footer-grid > div {
  box-shadow: var(--shadow);
}

.apk-badge {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.apk-badge img {
  width: 100%;
  border-radius: 18px;
}

.file-check {
  background: rgba(255,255,255,0.96);
  color: var(--text);
  border-radius: 24px;
  padding: 20px;
}

.file-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-check-head img {
  width: 28px;
  height: 28px;
}

.file-rows {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.file-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.file-row span {
  color: var(--muted);
  font-size: 13px;
}

.file-row.active {
  background: linear-gradient(180deg, #fff, #eef8f1);
  border-color: rgba(42,214,122,0.24);
}

.file-row strong {
  color: var(--text);
}

.section {
  padding: 72px 0;
  color: var(--text);
}

.section-alt { background: #fff; }

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-head h2,
.register-strip h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.permission-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 22px;
}

.permission-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.permission-card p {
  margin: 0;
  color: var(--muted);
}

.download-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
  align-items: center;
}

.download-copy { max-width: 560px; }

.download-cards {
  display: grid;
  gap: 14px;
}

.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.download-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.download-card span { color: var(--muted); }

.register-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #0d1620, #1a2632);
  color: #fff;
  border-radius: 24px;
  padding: 26px 28px;
}

.register-strip h2,
.register-strip p { color: #fff; }

.register-strip p { margin-bottom: 0; color: rgba(255,255,255,0.76); }

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 18px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: 999px;
  transform: translateY(-50%);
}

.faq-icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform .2s ease;
}

.faq-item.is-open .faq-icon::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-panel {
  padding: 0 20px 18px;
  color: var(--muted);
}

.site-footer {
  background: #0d1620;
  color: rgba(255,255,255,0.82);
  padding: 36px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 1fr;
  gap: 20px;
}

.footer-logo {
  width: 142px;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: #fff;
}

.footer-meta {
  text-align: right;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--brand);
  color: #06311f;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-meta p { margin: 0; }

@media (max-width: 1080px) {
  .hero-shell,
  .permission-grid,
  .download-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta { text-align: left; }
}

@media (max-width: 760px) {
  .hero,
  .section {
    padding: 58px 0;
  }

  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(13, 22, 32, 0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .nav-cta { text-align: center; margin-top: 6px; }

  .file-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .hero-lead {
    font-size: 16px;
  }

  .register-strip {
    padding: 22px 20px;
  }
}
