
:root {
  --bg: #0b0f17;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --link: #7c5cff;
  --link2: #37c6ff;
  --code: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fc;
    --surface: rgba(0, 0, 0, 0.04);
    --border: rgba(0, 0, 0, 0.12);
    --text: rgba(0, 0, 0, 0.88);
    --muted: rgba(0, 0, 0, 0.62);
    --code: rgba(0, 0, 0, 0.06);
    --shadow: 0 18px 60px rgba(20, 28, 64, 0.12);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.nav {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--muted);
}
.nav-link:hover { border-color: var(--border); text-decoration: none; color: var(--text); }
.nav-link--active { border-color: var(--border); background: var(--surface); color: var(--text); }

.content {
  margin: 18px 0 32px;
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content h1, .content h2, .content h3 {
  line-height: 1.2;
}
.content h1 { margin-top: 0; }
.content h2 { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.content code {
  font-family: var(--mono);
  padding: 0.15em 0.35em;
  border-radius: 8px;
  background: var(--code);
}
.content pre {
  overflow: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--code);
  border: 1px solid var(--border);
}
.content pre code { padding: 0; background: transparent; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.content th, .content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.content th { text-align: left; background: color-mix(in srgb, var(--surface) 55%, transparent); }

.hero {
  margin: 18px 0 32px;
  padding: 34px 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.gradient {
  background: linear-gradient(135deg, #7c5cff, #37c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 18px auto 0;
  max-width: 780px;
  font-size: 18px;
  color: var(--muted);
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, #7c5cff, #37c6ff);
  color: white;
  border-color: transparent;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.hero-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.features {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.feature {
  grid-column: span 12;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  text-align: left;
}

.feature-title { font-weight: 800; }
.feature-desc { color: var(--muted); margin-top: 6px; }

@media (min-width: 720px) {
  .feature { grid-column: span 4; }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
}
