:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(9, 20, 36, 0.94);
  --panel: rgba(14, 28, 49, 0.88);
  --panel-strong: rgba(18, 34, 58, 0.96);
  --panel-glass: rgba(11, 20, 37, 0.72);
  --border: rgba(129, 167, 224, 0.16);
  --border-strong: rgba(129, 167, 224, 0.34);
  --text: #ecf3ff;
  --text-strong: #ffffff;
  --muted: #a8bbd9;
  --muted-strong: #c0d2ef;
  --brand: #2f80ed;
  --brand-strong: #1d63be;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --success: #22c55e;
  --danger: #fb7185;
  --code-bg: rgba(6, 12, 22, 0.94);
  --callout-info: rgba(47, 128, 237, 0.12);
  --callout-warn: rgba(249, 115, 22, 0.12);
  --callout-danger: rgba(251, 113, 133, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 22px 60px rgba(2, 8, 18, 0.34);
  --shadow-soft: 0 10px 30px rgba(4, 10, 20, 0.22);
  --container: min(1180px, calc(100vw - 32px));
  --docs-container: min(1380px, calc(100vw - 32px));
  --font-sans: "Inter", "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html {
  /*
   * Decorative .page-glow elements are fixed-positioned with negative offsets
   * (e.g. right: -90px). Without clipping the root, browsers report this
   * geometry as horizontal page overflow and grow body width, which also
   * defeats text-wrap heuristics. Keep horizontal scroll off at root.
   */
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 0% -10%, rgba(47, 128, 237, 0.18), transparent 62%),
    radial-gradient(840px 420px at 100% 0%, rgba(249, 115, 22, 0.18), transparent 60%),
    linear-gradient(180deg, #07111f 0%, #091524 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #89b8ff;
  outline-offset: 3px;
}

.page-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(149, 176, 221, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 176, 221, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 20%, black 25%, transparent 78%);
  pointer-events: none;
  z-index: -3;
}

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(72px);
  pointer-events: none;
  z-index: -2;
}

.page-glow-left {
  width: 340px;
  height: 340px;
  left: -120px;
  top: -120px;
  background: rgba(47, 128, 237, 0.22);
}

.page-glow-right {
  width: 320px;
  height: 320px;
  right: -90px;
  top: -70px;
  background: rgba(249, 115, 22, 0.18);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--panel-strong), rgba(10, 20, 37, 0.94));
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: rgba(47, 128, 237, 0.12);
  color: #dcebff;
  font-size: 0.82rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 18px 36px rgba(47, 128, 237, 0.28);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}
