:root {
  --bg: #0d0c14;
  --bg-2: #14121f;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.09);
  --text: #f2f0fa;
  --muted: #a9a3c2;
  --accent: #c8b6ff;
  --accent-2: #7c5cff;
  --radius: 22px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(13, 12, 20, 0.72);
  border-bottom: 1px solid var(--stroke);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 700; letter-spacing: .2px; font-size: 17px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang-btn {
  background: var(--card); color: var(--text); border: 1px solid var(--stroke);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: background .2s;
  font-family: inherit;
  white-space: nowrap; flex: none;
}
.lang-btn:hover { background: var(--card-hover); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5.6vw, 56px); line-height: 1.2; font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 20%, #bdb3e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 20px; font-size: clamp(15px, 2.2vw, 18px); color: var(--muted); }

.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: #6a4bff; top: -260px; left: -120px; }
.g2 { width: 480px; height: 480px; background: #b04b8f; top: -180px; right: -160px; opacity: .35; }

/* ---------- cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; padding: 16px 0 96px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--stroke);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: rgba(200, 182, 255, .28); }
.card-shot { height: 260px; overflow: hidden; background: #171426; }
.card-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform .5s ease;
}
.card:hover .card-shot img { transform: scale(1.04); }
.card-shot.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #15121f 0 12px, #191527 12px 24px);
  color: var(--muted); font-size: 14px;
}
.card-body { padding: 22px 24px 26px; }
.card-body h2 { font-size: 20px; font-weight: 650; }
.card-body h2 span { color: var(--muted); font-weight: 400; font-size: 15px; margin-left: 6px; }
.card-body p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.card-link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 500; }
.card-soon { opacity: .55; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--stroke); padding: 36px 0 48px; text-align: center; color: var(--muted); font-size: 13.5px; }
.footer-links { margin-top: 10px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ---------- app page ---------- */
.app-hero { position: relative; padding: 80px 0 40px; overflow: hidden; }
.app-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.app-title { font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.app-title span { display: block; font-size: 18px; font-weight: 400; color: var(--muted); margin-top: 10px; letter-spacing: 0; }
.app-tagline { margin-top: 22px; font-size: 17px; color: var(--muted); max-width: 46ch; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  font-size: 12.5px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--stroke); background: var(--card); color: #d9d3ef;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 550;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, #8f6bff, #c8b6ff); color: #16101f;
  box-shadow: 0 10px 30px -10px rgba(143, 107, 255, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(143, 107, 255, .9); }
.btn-ghost { border: 1px solid var(--stroke); background: var(--card); color: var(--text); }
.btn-ghost:hover { background: var(--card-hover); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.app-visual { position: relative; }
.app-visual img {
  width: 100%; border-radius: 26px; border: 1px solid var(--stroke);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature {
  padding: 26px; border-radius: 20px; border: 1px solid var(--stroke); background: var(--card);
}
.feature h3 { font-size: 16.5px; font-weight: 620; }
.feature p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.feature .ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(143, 107, 255, .35), rgba(200, 182, 255, .12));
  margin-bottom: 16px; font-size: 18px;
}

.tools-table { width: 100%; border-collapse: collapse; font-size: 14.5px; overflow: hidden; border-radius: 18px; }
.tools-table th, .tools-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--stroke); vertical-align: top; }
.tools-table th { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .04em; background: rgba(255, 255, 255, .03); }
.tools-table td:first-child { white-space: nowrap; color: var(--text); font-weight: 550; width: 1%; }
.tools-table td:last-child { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--stroke); border-radius: 18px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.gallery figure { border-radius: 20px; overflow: hidden; border: 1px solid var(--stroke); background: var(--card); }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { padding: 12px 14px 14px; font-size: 13px; color: var(--muted); }

/* ---------- legal ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.legal .meta { color: var(--muted); font-size: 14px; margin-top: 12px; }
.legal h2 { font-size: 21px; font-weight: 650; margin: 40px 0 14px; padding-top: 8px; }
.legal h3 { font-size: 17px; font-weight: 620; margin: 26px 0 10px; }
.legal p, .legal li { color: #cfc9e2; font-size: 15px; }
.legal p { margin: 12px 0; }
.legal ul, .legal ol { margin: 12px 0 12px 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; margin: 18px 0; }
.legal .table-scroll { overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--stroke); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal td:first-child, .legal th:first-child { white-space: nowrap; }
.legal table { table-layout: auto; }
.legal th { white-space: nowrap; }
.legal th { background: rgba(255, 255, 255, .04); color: var(--text); }
.legal td { color: var(--muted); }
.legal hr { border: none; border-top: 1px solid var(--stroke); margin: 32px 0; }
.legal .note { font-size: 13.5px; color: var(--muted); }
.legal code { background: rgba(255, 255, 255, .07); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .app-hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .app-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .hero { padding: 64px 0 48px; }
  .nav-links { gap: 14px; }
  .nav-links a:first-child { display: none; }
}
@media (max-width: 520px) {
  .nav-inner { padding: 12px 18px; }
  .wrap { padding: 0 18px; }
  .card-shot { height: 210px; }
  .nav-links { gap: 12px; font-size: 13.5px; }
  .nav-links a:not(:nth-child(2)) { display: none; }
}
