:root {
  color-scheme: light;
  --bg: #0b1220;
  --surface: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --primary: #10b981;
  --primary-2: #34d399;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(900px 560px at 10% 0%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(900px 560px at 90% 10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(900px 560px at 30% 100%, rgba(244, 114, 182, 0.12), transparent 60%),
    linear-gradient(180deg, #08101f 0%, #0a1326 48%, #070d18 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 18, 0.6);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.brand-name {
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.nav a {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.06); }
.btn:active { transform: translateY(0); }
.btn.primary {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(52, 211, 153, 0.92));
  color: #05201a;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.sub {
  margin: 0 0 20px;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.meta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}
.meta .dot { opacity: 0.5; }

.hero-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-inner { padding: 18px; }
.hero-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  background: rgba(10, 15, 25, 0.75);
}

.section {
  padding: 46px 0;
}
.section-accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.01em;
}
.lead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 820px;
  line-height: 1.8;
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.download-head {
  margin-bottom: 18px;
}

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

.platform-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  padding: 18px;
}

.platform-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.platform-label {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

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

.status-pill {
  flex: 0 0 auto;
  min-width: 64px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill[data-state="ready"] {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.12);
}

.status-pill[data-state="pending"] {
  color: rgba(255, 255, 255, 0.62);
}

.status-pill[data-state="error"] {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(248, 113, 113, 0.12);
}

.platform-summary {
  min-height: 48px;
  margin: 18px 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.platform-meta {
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.platform-meta div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: baseline;
}

.platform-meta dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.platform-meta dd {
  margin: 0;
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.platform-action {
  width: 100%;
  margin-top: auto;
}

.faq details {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 10px 0 0; color: var(--muted); line-height: 1.8; }

.footer {
  padding: 30px 0 40px;
  color: rgba(255, 255, 255, 0.62);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.muted { color: rgba(255, 255, 255, 0.62); }
.footer a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.22); }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 0; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding-top: 54px; }
  .cards { grid-template-columns: 1fr; }
}
