:root {
  --bg: #f7f6f2;
  --paper: #ffffff;
  --ink: #111114;
  --ink-2: #3b3b43;
  --muted: #74737b;
  --line: #e4e2db;
  --line-2: #d6d3ca;
  --accent: #6d5ef0;
  --accent-soft: #eeebff;
  --green: #2f9e62;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center; font-size: 14px; font-weight: 700;
}
nav { display: flex; align-items: center; gap: 28px; }
nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
nav a:hover, nav a.active { color: var(--ink); }
nav a.lang { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 9px; }
nav a.lang:hover { background: var(--paper); }
:lang(zh-CN) body, html:lang(zh-CN) { font-family: Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif; }
html:lang(zh-CN) .hero h1 { letter-spacing: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.15; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff !important; text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 11px 18px; border-radius: 6px;
  border: 1px solid var(--ink); transition: transform .15s ease, background .15s ease;
}
.btn::after { content: "→"; font-family: var(--mono); font-size: 13px; }
.btn:hover { background: #2a2a31; transform: translateY(-1px); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line-2); }
.btn-ghost::after { content: none; }
.btn-ghost:hover { background: var(--paper); }
.btn-light { background: #fff; color: var(--ink) !important; border-color: #fff; }
.btn-light:hover { background: #ecebe6; }

/* Labels */
.eyebrow, .tag, .label, .mock-note, .kpis small, .step span {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em;
}
.eyebrow { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 18px; }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 24px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 500px; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.art svg { width: 100%; height: auto; display: block; }
.art .tag { font-size: 10px; fill: var(--muted); }
.art .tag.dark { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .art .layer { animation: float 6s ease-in-out infinite; }
  .art .l2 { animation-delay: -2s; }
  .art .l3 { animation-delay: -4s; }
}
@keyframes float { 50% { transform: translateY(-6px); } }

.strip { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.strip span { flex: 1 1 160px; padding: 20px 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); border-left: 1px solid var(--line); text-align: center; }
.strip .label { flex: 0 0 auto; border-left: 0; padding-left: 0; font-size: 11px; color: var(--muted); text-align: left; }

/* Sections */
.band { padding: 104px 0; border-bottom: 1px solid var(--line); }
.band.soft { background: #efede6; }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; max-width: 760px; }
.sec-head h2, .split h2, .cta-band h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 16px; }
.sec-head p, .split p { color: var(--ink-2); font-size: 17px; margin: 0; }
.muted { color: var(--muted); }

/* Console mock */
.mock {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 30px 60px -30px rgba(30, 25, 70, .18);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.mock-body { padding: 24px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kpis small { display: block; font-size: 10px; color: var(--muted); }
.kpis b { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.kpis em { font-style: normal; font-size: 12px; margin-left: 8px; color: var(--green); font-family: var(--mono); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.chart i { flex: 1; background: var(--accent-soft); border-top: 2px solid var(--accent); border-radius: 3px 3px 0 0; }
.chart i:last-child { background: var(--accent); }
.rows { border: 1px solid var(--line); border-radius: 10px; }
.row { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.meta { background: var(--accent); }
.dot.tt { background: var(--green); }
.dot.g { background: #c9a227; }
.pill { margin-left: auto; font-size: 11px; font-family: var(--mono); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.pill.on { color: var(--green); background: #eef8f2; border-color: #cbe9d6; }
.pill.test { color: var(--accent); background: var(--accent-soft); border-color: #dcd6ff; }
.pill.off { color: var(--muted); background: #f4f3ef; }
.num { width: 64px; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.mock-note { grid-column: 1 / -1; margin: 0; font-size: 10px; color: var(--muted); text-align: right; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); transition: background .2s ease; }
.feat:hover { background: var(--paper); }
.ic { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; display: grid; place-items: center; margin-bottom: 28px; background: var(--paper); }
.ic svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.step span { display: inline-block; font-size: 12px; color: var(--accent); border: 1px solid #dcd6ff; background: var(--accent-soft); border-radius: 6px; padding: 3px 8px; margin-bottom: 40px; }
.step span::before { content: "STEP 0"; }
.step h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Security */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 20px; width: 20px; height: 20px; border-radius: 50%; background: #eef8f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232f9e62' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.checks a { color: var(--ink); }

/* CTA */
.cta-band { background: var(--ink); color: #fff; padding: 112px 0; text-align: center; }
.cta-band p { color: #b7b6bf; font-size: 17px; margin: 0 0 32px; }

/* Footer */
footer.site { background: var(--bg); padding-top: 64px; font-size: 14px; color: var(--muted); }
footer.site .wrap:first-child { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
footer.site h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; color: var(--ink); margin: 0 0 14px; }
footer.site p { margin: 0 0 8px; }
footer.site a { text-decoration: none; color: var(--muted); }
footer.site a:hover { color: var(--ink); }
footer.site .brand { color: var(--ink); margin-bottom: 16px; }
.copy { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 32px; font-size: 13px; }

/* Legal pages */
main.doc { padding: 72px 0 96px; }
main.doc h1 { font-size: 44px; letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; margin: 0 0 10px; }
main.doc h2 { font-size: 20px; letter-spacing: -0.01em; margin: 44px 0 10px; }
main.doc p, main.doc li { color: var(--ink-2); }
main.doc a { color: var(--accent); }
.updated { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 36px; }
.info { border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; background: var(--paper); }
.info p { margin: 4px 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 48px; gap: 24px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  footer.site .wrap:first-child { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  nav a:not(.btn):not(.lang) { display: none; }
  .band { padding: 72px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .strip span { flex-basis: 50%; border-left: 0; text-align: left; padding-left: 0; }
  .num { width: auto; }
  .row { flex-wrap: wrap; }
  main.doc h1 { font-size: 34px; }
}
