:root {
  --ink: #04060c;
  --ink-2: #070b15;
  --surface: #0b111f;
  --surface-2: #111a2c;
  --line: rgba(120, 155, 215, 0.14);
  --line-strong: rgba(120, 155, 215, 0.28);

  --accent: #3b82f6;
  --accent-hi: #7cb2ff;
  --accent-deep: #1d4ed8;

  --text: #e7edf9;
  --text-soft: #b3c0d6;
  --muted: #7b8aa5;

  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --glow: 0 0 40px rgba(59, 130, 246, 0.35);
  --glow-soft: 0 0 24px rgba(59, 130, 246, 0.18);

  --r-sm: 4px;
  --r: 10px;
  --r-lg: 18px;

  --shell: 1180px;
  --slant: -11deg;

  --f-head: "Chakra Petch", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(59, 130, 246, 0.20), transparent 62%),
    radial-gradient(700px 460px at 8% 12%, rgba(29, 78, 216, 0.16), transparent 64%),
    linear-gradient(180deg, #04060c 0%, #060a14 45%, #04060c 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(120, 155, 215, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 155, 215, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1200px 700px at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 10%, transparent 78%);
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p {
  margin: 0 0 1rem;
  max-width: 68ch;
  color: var(--text-soft);
}

a {
  color: var(--accent-hi);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover { color: #a9cdff; }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 999;
}

.skip:focus { left: 12px; top: 12px; }

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
