:root {
  --bg: #071015;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.16);
  --text: #eef7f2;
  --muted: rgba(238, 247, 242, 0.7);
  --soft: rgba(238, 247, 242, 0.52);
  --brand: #31c48d;
  --brand-2: #56a4ff;
  --gold: #d7ad62;
  --danger: #d95454;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1180px;
}

[data-theme="porcelain"] {
  --bg: #f5f8f4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(29, 61, 52, 0.14);
  --text: #17251f;
  --muted: rgba(23, 37, 31, 0.72);
  --soft: rgba(23, 37, 31, 0.54);
  --brand: #15966b;
  --brand-2: #386fae;
  --gold: #a97835;
  --shadow: 0 22px 60px rgba(22, 45, 38, 0.14);
}

[data-theme="titanium"] {
  --bg: #17191e;
  --surface: rgba(255, 255, 255, 0.09);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f8f6ef;
  --muted: rgba(248, 246, 239, 0.72);
  --soft: rgba(248, 246, 239, 0.54);
  --brand: #c39c61;
  --brand-2: #6ea2c8;
  --gold: #e4c174;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.3)),
    url("img/generated/bg-obsidian.png") center / cover no-repeat;
  content: "";
}

body[data-theme="porcelain"]::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.56)),
    url("img/generated/bg-porcelain.png") center / cover no-repeat;
}

body[data-theme="titanium"]::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34)),
    url("img/generated/bg-titanium.png") center / cover no-repeat;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--brand) 13%, transparent), transparent 36%),
    linear-gradient(250deg, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), color-mix(in srgb, var(--bg) 86%, transparent) 70%);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 21, 0.82);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.brand-link {
  display: flex;
  align-items: center;
  min-width: 194px;
  gap: 12px;
}

.brand-link img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(49, 196, 141, 0.22);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 28%, transparent);
}

.brand-name {
  display: grid;
  gap: 0;
  font-weight: 800;
  line-height: 1.2;
}

.brand-name small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 230px;
  gap: 10px;
}

.theme-switcher {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  gap: 3px;
}

.theme-switcher button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.theme-switcher button[aria-pressed="true"] {
  color: var(--text);
  background: var(--surface-strong);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  padding: 84px 0 68px;
  overflow: hidden;
}

.hero.compact {
  padding-bottom: 44px;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px var(--brand);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
  background: var(--surface-strong);
}

.btn.primary {
  border-color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 78%, transparent);
  color: #071015;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 55%, var(--brand)));
}

.btn.gold {
  border-color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 75%, transparent);
  color: #16120b;
  background: linear-gradient(135deg, var(--gold), #f0d9a1);
}

.metric-strip {
  display: grid;
  max-width: 800px;
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.metric {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.metric span {
  color: var(--soft);
  font-size: 13px;
}

.device-frame {
  position: relative;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface-strong), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.device-frame::before {
  position: absolute;
  inset: 12px;
  border-radius: 6px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  content: "";
}

.device-frame img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.device-frame.hero-shot img {
  aspect-ratio: 16 / 10;
}

.floating-card {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: min(310px, 72%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 21, 0.88);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.floating-card strong {
  display: block;
  margin-bottom: 6px;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section.tight {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 28px;
}

.section-head p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.card p,
.feature p,
.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--line));
  border-radius: 8px;
  color: var(--brand);
  background: rgba(49, 196, 141, 0.13);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}

.product-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-panel + .product-panel {
  margin-top: 22px;
}

.product-panel .device-frame {
  align-self: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.showcase-stack {
  display: grid;
  gap: 18px;
}

.screenshot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot.tall img {
  aspect-ratio: 9 / 13;
}

.screenshot.wide img {
  aspect-ratio: 16 / 9;
}

.split {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.comparison th,
.comparison td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  color: var(--text);
  background: var(--surface-strong);
}

.comparison td {
  color: var(--muted);
}

.comparison tr:last-child td {
  border-bottom: 0;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: #06120d;
  background: var(--brand);
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  content: "✓";
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 13px;
}

.contact-item strong {
  font-size: 18px;
}

.qr-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.qr-card img {
  width: 100%;
  border-radius: 8px;
  background: #fff;
}

.notice {
  border-left: 3px solid var(--brand);
  padding: 18px 20px;
  color: var(--muted);
  background: var(--surface);
}

.cta-band {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, transparent), transparent),
    var(--surface);
}

.cta-band p {
  max-width: 720px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--soft);
  background: rgba(7, 16, 21, 0.82);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a:hover,
.beian:hover {
  color: var(--text);
}

.privacy-doc {
  max-width: 860px;
}

.privacy-doc .card {
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .nav {
    min-height: 64px;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 16, 21, 0.94);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 8px;
  }

  .nav-actions {
    min-width: auto;
  }

  .menu-button {
    display: block;
  }

  .hero-grid,
  .split,
  .product-panel,
  .showcase-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .grid.four,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand-link {
    min-width: 0;
  }

  .brand-name small {
    display: none;
  }

  .theme-switcher {
    display: none;
  }

  .hero {
    padding: 54px 0 44px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .lead {
    font-size: 16px;
  }

  .metric-strip,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 50px 0;
  }

  .section-head {
    display: block;
  }

  .floating-card {
    position: static;
    width: auto;
    margin-top: 14px;
  }

  .comparison {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cta-band {
    padding: 26px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
