:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-alt: #080c12;
  --surface: #0c1118;
  --surface-raised: #111823;
  --surface-soft: #151c25;
  --line: rgba(164, 178, 198, 0.18);
  --line-strong: rgba(164, 178, 198, 0.34);
  --text: #eef3f8;
  --text-muted: #a8b3c7;
  --text-soft: #768196;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --success: #34d399;
  --violet: #c4b5fd;
  --amber: #f6c453;
  --coral: #ff7b72;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow-cyan: 0 0 22px rgba(125, 211, 252, 0.2);
  --glow-cyan-strong: 0 0 30px rgba(125, 211, 252, 0.32);
  --glow-purple: 0 0 24px rgba(196, 181, 253, 0.22);
  --radius: 8px;
  --max-width: 1320px;
  --header-height: 70px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: -48px;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(164, 178, 198, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 178, 198, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 48s linear infinite;
  will-change: transform;
}

::selection {
  background: var(--accent);
  color: #041018;
}

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

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

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

button {
  color: inherit;
}

ol,
ul,
dl,
blockquote {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

dt,
dd {
  margin: 0;
}

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

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.04;
}

h1 {
  margin-bottom: 22px;
  font-size: 5.25rem;
  font-weight: 800;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 3.25rem;
  font-weight: 700;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  font-weight: 700;
}

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

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.page-shell {
  min-height: 100vh;
  overflow: clip;
}

.container-wide {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.section {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 116px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 20px;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow-amber {
  color: var(--amber);
}

.eyebrow-coral {
  color: var(--coral);
}

.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.75);
  animation: active-pulse 3.8s ease-in-out infinite;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(48px, 48px, 0);
  }
}

@keyframes active-pulse {
  0%,
  100% {
    opacity: 0.72;
    box-shadow: 0 0 0 rgba(52, 211, 153, 0);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.72);
  }
}

@media (max-width: 1040px) {
  h1 {
    font-size: 4.25rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .section {
    padding: 96px 0;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 116px;
  }

  body {
    font-size: 15.5px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.12rem;
  }

  .container-wide {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .section {
    padding: 80px 0;
  }

  body::before {
    animation: none;
    will-change: auto;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .container-wide {
    width: min(calc(100% - 20px), var(--max-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
