:root {
  --bg: #0b0d12;
  --surface: #14171f;
  --surface-2: #1b1f29;
  --text: #e8eaf0;
  --muted: #9aa3b2;
  --accent: #6c8cff;
  --accent-2: #8a6cff;
  --border: #262b36;
  --radius: 16px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(11, 13, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}
nav.site a {
  color: var(--muted);
  font-size: 15px;
  margin-left: 22px;
}
nav.site a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 86px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #b9c2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 auto 30px; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn.primary:hover { text-decoration: none; opacity: 0.92; }
.btn.ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn.ghost:hover { text-decoration: none; border-color: var(--accent); }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px 0 80px; }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Legal / content pages */
.doc { padding: 48px 0 90px; }
.doc h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.doc h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: #cfd5e1; font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); color: var(--text); }
.doc td { color: #cfd5e1; }
.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  color: #cfd5e1;
  font-size: 15px;
}
.placeholder {
  background: rgba(255, 196, 0, 0.12);
  border-bottom: 1px dashed #d9a300;
  padding: 0 3px;
  border-radius: 3px;
  color: #ffd86b;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--muted); margin-left: 18px; }
footer.site a:hover { color: var(--text); }
@media (max-width: 600px) { footer.site .wrap { flex-direction: column; } footer.site a { margin: 0 18px 0 0; } }
