/* CryptoQClaw · 静态官网主样式
 * 设计参考：Typefully / Buffer / Linear（内容自动化 SaaS）
 * 主题：默认深色，浅色通过 prefers-color-scheme 自动切换
 * 字体：中文系统字体优先（PingFang / 思源 / 微软雅黑），无 Google Fonts
 */

:root {
  /* Dark theme (default) */
  --bg-primary:   #0a0e1a;
  --bg-elevated:  #131829;
  --bg-card:      #161c2e;
  --text-primary: #e8ecf3;
  --text-muted:   #8b94a8;
  --accent:       #00ff9d;   /* 终端绿 - CTA */
  --accent-hover: #00e589;
  --accent-2:     #4d7cff;   /* 调度蓝 - 状态色 */
  --border:       #1f2638;
  --shadow:       0 4px 20px rgba(0, 0, 0, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary:   #ffffff;
    --bg-elevated:  #f6f8fc;
    --bg-card:      #ffffff;
    --text-primary: #0a0e1a;
    --text-muted:   #5a6478;
    --accent:       #00c97a;
    --accent-hover: #00b36a;
    --accent-2:     #2d5cd6;
    --border:       #e1e6f0;
    --shadow:       0 4px 20px rgba(15, 23, 42, 0.08);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family:
    "PingFang SC",
    "Noto Sans SC",
    "Microsoft YaHei",
    "Source Han Sans SC",
    system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

img, svg { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: light) {
  .site-header { background: rgba(255, 255, 255, 0.85); }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text-primary); }

.brand-mark {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-muted);
  font-size: 14px;
}
.nav a:hover { color: var(--text-primary); }

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #04130a;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.tg-btn:hover { background: var(--accent-hover); color: #04130a; }
.tg-btn:active { transform: translateY(1px); }

/* ---------- Main ---------- */
main {
  flex: 1 0 auto;
}

section {
  padding: clamp(48px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: 0; }

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.section-lead {
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 18px);
  margin: 0 0 40px 0;
  max-width: 60ch;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: clamp(64px, 12vw, 128px) 0 clamp(48px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 80%;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(0, 255, 157, 0.10), transparent 70%),
    radial-gradient(40% 40% at 70% 10%, rgba(77, 124, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 18ch;
  font-weight: 800;
}
.hero .sub {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-row > * { width: 100%; max-width: 320px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #04130a;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  min-height: 56px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 255, 157, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #04130a;
  box-shadow: 0 12px 32px rgba(0, 255, 157, 0.35);
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-bar li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Selling points / cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card .icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Steps strip ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #04130a;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.step h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Sample posts ---------- */
.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) {
  .sample-grid { grid-template-columns: repeat(3, 1fr); }
}
.sample {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sample .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-2);
  background: rgba(77, 124, 255, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sample .body {
  color: var(--text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
}
.sample .meta {
  color: var(--text-muted);
  font-size: 12px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(0, 255, 157, 0.08), transparent 70%);
}
.final-cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 40px 0 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) {
  .site-footer .container { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h5 {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer .copyright {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}
.site-footer .copyright a {
  margin: 0 8px;
}

/* ---------- Article (compliance / faq / contact) ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article h1 {
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  line-height: 1.25;
}
.article .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.article h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.article h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}
.article p, .article ul, .article ol {
  margin: 0 0 16px 0;
  line-height: 1.8;
  color: var(--text-primary);
}
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: 6px; }
.article strong { color: var(--text-primary); font-weight: 600; }
.article .callout {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
  font-size: 14px;
}

/* ---------- FAQ ---------- */
details.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 80px 0;
}
.notfound .code {
  font-size: clamp(72px, 18vw, 140px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.notfound p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ---------- Visually hidden ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
