:root {
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --fg: #10182b;
  --fg-muted: #5b6579;
  --line: #e3e7f0;
  --accent: #2f5bff;
  --accent-soft: #e8edff;
  --green: #2f8f5b;
  --radius: 18px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-soft: #121b2c;
    --fg: #eef2fb;
    --fg-muted: #9aa6bf;
    --line: #223049;
    --accent: #7b98ff;
    --accent-soft: #1a2740;
    --green: #63d29a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
}

header.site img { width: 30px; height: 30px; border-radius: 8px; }
header.site .brand { font-weight: 700; letter-spacing: -0.01em; }
header.site nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
header.site nav a { color: var(--fg-muted); }
header.site nav a:hover { color: var(--fg); text-decoration: none; }

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

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

.eyebrow {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 16px 0 14px;
}

.lede { font-size: 17px; color: var(--fg-muted); margin: 0 0 26px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
}

.btn:hover { text-decoration: none; border-color: var(--accent); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover { filter: brightness(1.06); }

.hero-phone {
  display: block;
  max-width: 400px;
  margin-left: auto;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 10px;
  box-shadow: 0 24px 60px -30px rgba(16, 24, 43, 0.45);
}

.hero-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.hero-phone:hover { border-color: var(--accent); }

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.shots a { display: block; }
.shots a:hover img { border-color: var(--accent); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  background: rgba(8, 12, 22, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  width: auto;
  max-width: min(560px, 100%);
  height: auto;
  border-radius: 16px;
  background: #fff;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

section { padding: 46px 0; }

h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.section-note { color: var(--fg-muted); margin: 0 0 22px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--fg-muted); font-size: 14.5px; }

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shots figure { margin: 0; }
.shots figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

code { font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  color: var(--fg);
  font-size: 14.5px;
}

.callout.warn { border-left-color: #e0932c; background: color-mix(in srgb, #e0932c 12%, transparent); }

ul.plain { padding-left: 20px; color: var(--fg-muted); }
ul.plain li { margin: 6px 0; }
ul.plain strong { color: var(--fg); }

footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--fg-muted);
  font-size: 14px;
}

footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer.site a { color: var(--fg-muted); }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-phone { margin: 8px auto 0; max-width: 320px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  header.site nav { gap: 12px; font-size: 13px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .hero-phone { max-width: 260px; }
  .lightbox { padding: 12px; }
  header.site nav a:nth-child(3),
  header.site nav a:nth-child(4) { display: none; }
}
