:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --bg-soft: #111318;
  --surface: #151922;
  --surface-strong: #1d2430;
  --line: #293241;
  --line-strong: #39465b;
  --text: #f5f7fb;
  --text-muted: #a8b1c1;
  --text-soft: #d4dae5;
  --primary: #6c7cff;
  --primary-strong: #8f6cff;
  --primary-contrast: #ffffff;
  --teal: #31c6b6;
  --green: #24b47e;
  --amber: #f4ad3d;
  --red: #f46d75;
  --blue: #5aa7ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.18);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1180px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Outfit", var(--font-body);
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #eef2f6;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --line: #d8e0eb;
  --line-strong: #bfccdc;
  --text: #10141c;
  --text-muted: #526174;
  --text-soft: #243244;
  --shadow: 0 18px 45px rgba(35, 44, 66, 0.12);
  --shadow-soft: 0 10px 24px rgba(35, 44, 66, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(108, 124, 255, 0.06), transparent 260px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 55%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 4.65rem);
  max-width: 860px;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}

p {
  color: var(--text-muted);
}

ul {
  padding-left: 1.2rem;
}

::selection {
  background: rgba(108, 124, 255, 0.35);
}
