:root {
  --bg: #0e0e16;
  --surface: #171723;
  --surface-2: #1e1e2e;
  --border: #2a2a3c;
  --text: #ececf3;
  --muted: #a3a3b8;
  --accent: #ff3d77;
  --accent-2: #ff6a5c;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

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

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 14, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 72px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 480px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 61, 119, .22), transparent 70%);
}
.hero-icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 18px 50px rgba(255, 61, 119, .28); }
.hero-logo { width: 168px; height: 168px; border-radius: 36px; box-shadow: 0 18px 50px rgba(255, 61, 119, .28); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 28px 0 16px; letter-spacing: -.5px; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); max-width: 620px; margin: 0 auto 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 600;
}
.badge svg { width: 18px; height: 18px; fill: #3ddc84; }
.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 75px; width: auto; }
.play-badge:hover { filter: brightness(1.12); }

/* Features */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(24px, 3.4vw, 32px); text-align: center; margin: 0 0 12px; }
.section .lead { color: var(--muted); text-align: center; max-width: 640px; margin: 0 auto 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 61, 119, .12); margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; color: var(--muted); font-size: 15px; }
.note strong { color: var(--text); }

/* Legal / document pages */
.doc { padding: 48px 0 64px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 6px; letter-spacing: -.3px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; padding-top: 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: #d4d4e0; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); background: var(--surface-2); }
.doc td { color: #d4d4e0; }
.callout { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin: 18px 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px; }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px;
}
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px; background: var(--grad);
  color: #fff; font-weight: 700;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 14px; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 56px 0 48px; }
  .toc ol { columns: 1; }
}
