
:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-elev: rgba(10, 16, 34, 0.92);
  --bg-soft: rgba(16, 24, 48, 0.88);
  --text: #f3f7ff;
  --muted: #a9b7d6;
  --line: rgba(140, 168, 255, 0.18);
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  --accent: #4d79ff;
  --accent2: #62d7ff;
  --accent3: #f05b6b;
  --radius: 22px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  background:
    radial-gradient(circle at top left, rgba(77, 121, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(240, 91, 107, 0.12), transparent 26%),
    linear-gradient(180deg, #050816 0%, #060b17 100%);
}
body.theme-download { --accent: #4d79ff; --accent2: #76d2ff; --accent3: #f05b6b; }
body.theme-help { --accent: #6f68ff; --accent2: #66ddff; --accent3: #ff7a59; }
body.theme-news { --accent: #ff6b5b; --accent2: #ffd166; --accent3: #8be9fd; }
body.theme-story { --accent: #f0b84b; --accent2: #7b8cff; --accent3: #ff7a59; }
body.theme-product { --accent: #24d1c8; --accent2: #4d79ff; --accent3: #f05b6b; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page { width: 100%; overflow: clip; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(6, 10, 22, 0.84);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex: 0 0 38px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(77, 121, 255, 0.22);
}
.brand__name { font-size: 16px; font-weight: 800; line-height: 1.1; }
.brand__sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover { color: var(--text); }
.topbar__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ghost {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #6697ff);
  box-shadow: 0 12px 28px rgba(77, 121, 255, 0.30);
}
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 92px;
}
.hero {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.hero__inner {
  display: grid;
  gap: 28px;
  padding: 40px;
}
.hero--split .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); align-items: center; }
.hero--center .hero__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero--banner .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8fb0ff;
  font-size: 12px;
  font-weight: 800;
}
.hero h1, .section__head h2, .footer h3 {
  max-width: 600px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}
.hero__visual {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__visual--contain img { object-fit: contain; background: rgba(255,255,255,0.03); }
.section { margin-top: 26px; }
.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section__head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}
.section__head p { margin: 0; color: var(--muted); max-width: 60ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.panel, .mini-card, .story-card, .article-card, .note-card, .faq details, .route-card, .compare-table, .gallery figure, .cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.panel { padding: 18px; }
.panel__top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.panel h3, .mini-card h3, .story-card h3, .article-card h3, .note-card h3, .route-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  max-width: 600px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.panel p, .mini-card p, .story-card p, .article-card p, .note-card p, .route-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.panel img, .article-card img, .story-card img, .mini-card img {
  margin-top: 14px;
  border-radius: 18px;
  width: 100%;
  object-fit: cover;
}
.device-card { padding: 16px; }
.device-card img { aspect-ratio: 16/10; }
.device-card .label { font-size: 13px; color: #9cb2df; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.device-card .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.list { display: grid; gap: 12px; }
.list--steps .list__item, .timeline .list__item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}
.list__num {
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #6c8dff);
  color: #fff; font-weight: 800; font-size: 13px;
}
.list__title { margin: 0; font-weight: 800; }
.list__text { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { aspect-ratio: 16/10; object-fit: cover; }
.gallery figcaption { padding: 12px 14px 16px; color: var(--muted); font-size: 14px; }
.compare-table {
  width: 100%;
  overflow: hidden;
}
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-align: left;
  font-size: 14px;
}
.compare-table th { color: #f4f7ff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,0.03); }
.faq details { padding: 0 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq .faq__body { padding: 0 0 18px; color: var(--muted); }
.cta-band {
  margin-top: 26px;
  padding: 24px 26px;
  background:
    linear-gradient(135deg, rgba(77, 121, 255, 0.18), rgba(6, 10, 22, 0.88)),
    rgba(13, 20, 42, 0.95);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(24px, 2.8vw, 36px); }
.cta-band p { margin: 0; color: var(--muted); }
.footer {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
}
.footer__grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer__links { display: grid; gap: 6px; justify-items: end; }
.footer__title { margin: 0 0 8px; color: #f4f7ff; }
.footer--download .footer__links, .footer--help .footer__links, .footer--content .footer__links, .footer--simple .footer__links { grid-auto-flow: row; }
.footer--simple .footer__grid { grid-template-columns: 1fr; }
.footer--simple .footer__links { justify-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer__links a { color: var(--text); }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.muted { color: var(--muted); }
.kicker { letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: #90b0ff; font-weight: 800; }

@media (max-width: 1100px) {
  .hero--split .hero__inner, .hero--banner .hero__inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .topbar__inner { flex-wrap: wrap; justify-content: center; }
  .nav { order: 3; width: 100%; justify-content: center; }
  .hero__inner { padding: 22px; }
  .hero__meta, .grid-2, .grid-3, .grid-4, .gallery, .footer--simple .footer__links { grid-template-columns: 1fr; }
  .cta-band__inner, .section__head, .footer__grid { grid-template-columns: 1fr; display: grid; }
  .footer__links { justify-items: start; }
}
