:root {
  --ink: #08090c;
  --surface: #111218;
  --surface-2: #181a22;
  --surface-3: #22252f;
  --gold: #e4b84a;
  --gold-light: #f5d078;
  --gold-dim: rgba(228, 184, 74, 0.14);
  --rose: #c94b6a;
  --text: #f2f0eb;
  --text-soft: #a8a4b8;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-xl: 28px;
  --header-h: 58px;
  --bar-h: 0px;
  --max: 1080px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--bar-h) + 12px);
}

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.has-bar { padding-top: var(--bar-h); }
body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container { width: min(var(--max), calc(100% - 28px)); margin-inline: auto; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(8, 9, 12, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

body.menu-open .topbar {
  z-index: 1120;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.logo-link img { width: 38px; height: 38px; border-radius: 10px; }

.logo-link strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.06em;
}

.logo-link small {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-main {
  display: none;
  gap: 4px;
}

.nav-main a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 14px;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text);
  background: var(--gold-dim);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ink);
  z-index: 1100;
  padding: 16px 24px 32px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 1px 0 var(--line);
}

.nav-drawer.open { display: flex; }

body.menu-open .sticky-apps,
body.menu-open .sticky-apps.show {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-100%) !important;
}

body.menu-open {
  --bar-h: 0px;
}

body.menu-open.has-bar {
  padding-top: 0;
}

.nav-drawer a {
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .nav-main { display: flex; }
  .nav-toggle { display: none; }
}

/* Fixed download bar */
.sticky-apps {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 880;
  background: rgba(17, 18, 24, 0.97);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.sticky-apps.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-apps .bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
  padding: 10px 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.sticky-apps .bar-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-soft);
  font-size: 10px;
  text-align: center;
}

.sticky-apps .bar-grid img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.sticky-apps .bar-grid span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .sticky-apps .bar-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 10px 8px;
    padding: 12px 20px;
  }
  .sticky-apps .bar-grid img { width: 52px; height: 52px; }
}

/* Ads zone */
.ads-section {
  padding: 18px 0 8px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink) 100%);
}

.ads-section .ads-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

#ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease;
}

#ads a:hover img { transform: translateY(-3px) scale(1.03); }

#ads .caption {
  height: 16px;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

/* Hero */
.hero-band {
  padding: 36px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(228, 184, 74, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-wrap {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-text .eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-text .lead {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 20px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pills span {
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.metric {
  padding: 14px 10px;
  background: var(--surface-2);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
}

.metric b {
  display: block;
  font-size: 20px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.metric i {
  font-style: normal;
  font-size: 11px;
  color: var(--text-soft);
}

/* Overlapping phones */
.phone-stack {
  position: relative;
  width: min(100%, 320px);
  height: 380px;
  margin: 0 auto;
}

.phone-frame {
  position: absolute;
  width: 148px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(228, 184, 74, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: var(--surface-3);
}

.phone-frame img { width: 100%; aspect-ratio: 9/19; object-fit: cover; }

.phone-frame:nth-child(1) { top: 0; left: 0; transform: rotate(-8deg); z-index: 1; }
.phone-frame:nth-child(2) { top: 24px; left: 88px; transform: rotate(4deg); z-index: 2; }
.phone-frame:nth-child(3) { top: 100px; left: 20px; transform: rotate(-3deg); z-index: 3; }
.phone-frame:nth-child(4) { top: 130px; left: 110px; transform: rotate(7deg); z-index: 4; }

@media (min-width: 768px) {
  .hero-wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
  .phone-stack { width: 340px; height: 420px; margin-left: auto; }
  .phone-frame { width: 168px; }
  .phone-frame:nth-child(2) { left: 100px; }
  .phone-frame:nth-child(4) { left: 124px; }
}

/* Section common */
.section { padding: 52px 0; }
.section-alt { background: var(--surface); }

.section-head {
  margin-bottom: 32px;
  text-align: center;
}

.section-head .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(22px, 4vw, 30px);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto;
  font-size: 14px;
}

/* 3:7 content blocks */
.ratio-block {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}

.ratio-block.reverse .ratio-media { order: 2; }
.ratio-block.reverse .ratio-copy { order: 1; }

.ratio-media img {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ratio-copy h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.ratio-copy p {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 14px;
}

.ratio-copy ul {
  margin: 12px 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.ratio-copy li { margin-bottom: 6px; }

@media (min-width: 768px) {
  .ratio-block {
    grid-template-columns: 3fr 7fr;
    gap: 32px;
    margin-bottom: 48px;
  }
  .ratio-block.reverse { grid-template-columns: 7fr 3fr; }
  .ratio-block.reverse .ratio-media { order: 2; }
  .ratio-block.reverse .ratio-copy { order: 1; }
}

/* Feature cards horizontal */
.feat-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feat-card {
  padding: 22px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.feat-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.feat-card h3 { font-size: 16px; margin-bottom: 6px; }
.feat-card p { font-size: 13px; color: var(--text-soft); }

@media (min-width: 640px) {
  .feat-scroll { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .feat-scroll { grid-template-columns: repeat(3, 1fr); }
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq-item h3 { font-size: 16px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-soft); }

/* CTA */
.cta-band {
  padding: 48px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  border-top: 1px solid var(--line);
}

.cta-band h2 { font-size: 24px; margin-bottom: 10px; }
.cta-band p { color: var(--text-soft); margin-bottom: 20px; font-size: 14px; }

.btn-gold {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, #c99a2e 100%);
  color: #1a1408;
  font-weight: 700;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(228, 184, 74, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
  color: #1a1408;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(228, 184, 74, 0.35);
}

/* Breadcrumb */
.crumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.crumb a { color: var(--text-soft); }
.crumb a:hover { color: var(--gold); }
.crumb span { color: var(--text); }

/* Sub pages */
.page-title {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title h1 { font-size: 28px; margin-bottom: 8px; }
.page-title p { color: var(--text-soft); font-size: 14px; }

.legal-body h2 {
  font-size: 18px;
  margin: 28px 0 10px;
  color: var(--gold-light);
}

.legal-body p,
.legal-body li {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 10px;
}

.legal-body ul { margin-left: 20px; margin-bottom: 16px; }

/* Error pages */
.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.error-page .code {
  font-size: 72px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 { font-size: 22px; margin-bottom: 10px; }
.error-page p { color: var(--text-soft); margin-bottom: 20px; font-size: 14px; }

/* Footer */
.site-foot {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.foot-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.foot-brand img { width: 42px; border-radius: 10px; margin-bottom: 10px; }
.foot-brand p { font-size: 13px; color: var(--text-soft); }

.foot-links h4 {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.foot-links a {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  padding: 4px 0;
}

.foot-copy {
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Pure text SEO blocks */
.text-panel {
  padding: 28px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.text-panel h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
}

.text-panel p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.seo-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .seo-grid { grid-template-columns: repeat(2, 1fr); }
}

.seo-grid .text-panel { margin-bottom: 0; height: 100%; }

.img-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.img-strip img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 9/16;
  object-fit: cover;
  width: 100%;
}

@media (min-width: 640px) {
  .img-strip { grid-template-columns: repeat(4, 1fr); }
}
