:root {
  --bg: #15171C;
  --panel: #1C1F26;
  --panel-2: #222731;
  --line: #2B313C;
  --text: #E7E9EC;
  --muted: #9AA1AD;
  --accent: #2FB79A;
  --accent-ink: #0E2E27;
  --lav: #F1E6F8;
  --warn: #D9A441;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #5FD3B9; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace; font-size: .9em; }
code { background: var(--panel-2); padding: .1em .35em; border-radius: 5px; }
pre { background: #0F1115; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

header.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(21,23,28,.92); backdrop-filter: blur(8px); z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
header.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.top nav a:hover { color: var(--text); }

.hero { padding: 72px 0 40px; text-align: center; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.12; margin: 0 auto 18px; max-width: 18ch; letter-spacing: -.01em; }
.hero p.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; margin: 0 auto 28px; }
.tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.tags span { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--muted); }

.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--panel-2); }
.btn:hover { color: var(--text); border-color: #3C4452; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #45C7AA; color: var(--accent-ink); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 10px; }
section .sub { color: var(--muted); margin: 0 0 28px; max-width: 46em; }

.diagram { margin: 8px auto 0; max-width: 960px; }
.diagram img { display: block; width: 100%; border-radius: 18px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card .k { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 650; margin-bottom: 6px; }

ul.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
ul.feat li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; color: var(--muted); }
ul.feat li b { color: var(--text); display: block; margin-bottom: 2px; }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.stat b { display: block; font-size: 30px; color: var(--text); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: var(--muted); font-style: italic; margin: 0 0 24px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* privacy page */
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; margin: 56px 0 6px; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: #CDD1D7; }
.doc li { margin-bottom: 6px; }
.doc .short { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.doc .short p:last-child, .doc .short ul:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  header.top nav { gap: 14px; }
  header.top .wrap { padding-top: 8px; padding-bottom: 8px; }
  .hero { padding-top: 48px; }
  section { padding: 44px 0; }
  .wrap { padding: 0 16px; }
}
