:root {
  --bg: #f5f6f8;
  --bg-2: #e9ecf1;
  --fg: #12161d;
  --muted: #5c6573;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(18, 22, 29, 0.08);
  --accent: #ff5a3c;
  --accent-fg: #fff;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e13;
    --bg-2: #161b24;
    --fg: #eef1f5;
    --muted: #9aa3b0;
    --card: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "PingFang TC",
    "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
header nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover, header nav a[aria-current="page"] { color: var(--fg); }

select#lang {
  font: inherit;
  font-size: 13px;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}

@media (max-width: 560px) {
  header.site .wrap { gap: 12px; }
  .brand span { display: none; }
  header nav { gap: 12px; font-size: 13px; }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 40px;
}
.hero-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 24px 0 18px;
}
.hero p.sub { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero .meta { font-size: 13px; color: var(--muted); margin-top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}
.btn.is-soon { background: var(--bg-2); color: var(--muted); cursor: default; }
.btn.accent { background: var(--accent); color: var(--accent-fg); }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
  background: var(--bg-2);
}
.hero .shot { max-width: 340px; margin-left: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; text-align: center; }
  .hero p.sub { margin-left: auto; margin-right: auto; }
  .hero .shot { margin: 8px auto 0; max-width: 280px; }
}

/* Trust cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px 0 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* Features */
.feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.feature:nth-child(even) { grid-template-columns: 1fr 300px; }
.feature:nth-child(even) .shot { order: 2; }
.feature-index { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }
.feature h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 6px 0 12px; letter-spacing: -0.01em; }
.feature p { font-size: 17px; color: var(--muted); margin: 0; max-width: 30em; }
@media (max-width: 760px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 28px; text-align: center; padding: 44px 0; }
  .feature:nth-child(even) .shot { order: 0; }
  .feature .shot { max-width: 260px; margin: 0 auto; }
  .feature p { margin: 0 auto; }
}

/* Document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc .intro {
  font-size: 18px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 32px;
}
.doc ol { padding-left: 1.4em; margin: 0; }
.doc ol li { margin-bottom: 22px; }
.doc ol li::marker { color: var(--muted); font-weight: 600; }
.doc ol h2 { font-size: 18px; margin: 0 0 4px; }
.doc ol p { margin: 0; color: var(--muted); }
.doc h2.section { font-size: 22px; margin: 40px 0 14px; }

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 16px 28px 16px 0;
  position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
}
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--muted); }

.contact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact p { margin: 0 0 18px; color: var(--muted); }
.contact .addr { margin: 12px 0 0; font-size: 14px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer.site nav { display: flex; gap: 16px; margin-left: auto; }
footer.site a { text-decoration: none; color: var(--muted); }
footer.site a:hover { color: var(--fg); }
