:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #647084;
  --line: #dfe5ed;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --brand: #315efb;
  --brand-dark: #2246c7;
  --danger: #b42318;
  --success: #16794b;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); line-height: 1.65; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
.site-header {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); z-index: 5;
}
.brand { color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { color: var(--ink); }
.link-button { border: 0; background: transparent; cursor: pointer; color: var(--ink); padding: 0; }
main { min-height: calc(100vh - 130px); }
.hero {
  padding: 96px 5vw 80px; background:
  radial-gradient(circle at 82% 18%, #dbe4ff 0, transparent 30%),
  linear-gradient(145deg, #fff 0, #f6f8ff 100%);
}
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 10px 0 16px; font-size: clamp(42px, 7vw, 76px); line-height: 1.05; letter-spacing: -.05em; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.03em; margin-top: 0; }
h3 { margin: 0 0 8px; }
.hero p { max-width: 720px; font-size: 19px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; border-radius: 10px; padding: 11px 18px;
  cursor: pointer; font-weight: 650;
}
.button:hover { background: var(--brand-dark); text-decoration: none; }
.button-secondary { color: var(--brand); background: #fff; }
.button-small { padding: 6px 12px; border-radius: 8px; }
.button-danger { background: var(--danger); border-color: var(--danger); }
.section { padding: 70px 5vw; }
.section-soft { background: var(--soft); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff;
  box-shadow: 0 8px 30px rgba(31, 48, 78, .05);
}
.card p, .muted { color: var(--muted); }
.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: #e9eeff; color: var(--brand);
  font-weight: 800; margin-bottom: 16px;
}
.page { max-width: 1180px; margin: 0 auto; padding: 46px 24px 80px; }
.page-narrow { max-width: 560px; }
.form-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
label { display: grid; gap: 7px; margin: 14px 0; font-weight: 600; }
input, select {
  width: 100%; border: 1px solid #cbd3df; border-radius: 9px; padding: 10px 12px;
  color: var(--ink); background: #fff;
}
input:focus, select:focus { outline: 3px solid #dce4ff; border-color: var(--brand); }
.check { grid-template-columns: 20px 1fr; align-items: start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.error, .notice { padding: 12px 14px; border-radius: 9px; margin: 12px 0; }
.error { color: var(--danger); background: #fff1f0; }
.notice { color: #174ea6; background: #eef4ff; }
.success { color: var(--success); background: #edf9f3; }
.toolbar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 22px 0; }
.toolbar label { min-width: 160px; margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.metric strong { display: block; font-size: 30px; line-height: 1.2; }
.chart-card { grid-column: span 1; color: var(--brand); }
.chart-card h3, .chart-card p { color: var(--ink); }
.chart-card svg { display: block; width: 100%; height: 180px; background: linear-gradient(#fff, #f7f9fd); border-radius: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); white-space: nowrap; }
td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-block; border-radius: 999px; padding: 2px 9px; background: #eef2f7; font-size: 13px; }
.status-ok { background: #e8f7ef; color: var(--success); }
.loading { padding: 80px 5vw; color: var(--muted); }
.empty { text-align: center; padding: 60px 24px; border: 1px dashed #bcc7d6; border-radius: 16px; }
.account-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
dialog { width: min(92vw, 520px); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
dialog::backdrop { background: rgba(17, 25, 39, .45); }
footer {
  min-height: 66px; border-top: 1px solid var(--line); padding: 20px 5vw;
  display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
}
@media (max-width: 820px) {
  .site-header { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; }
  .grid, .grid-3, .metrics { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .section { padding-top: 50px; padding-bottom: 50px; }
}
