:root {
  --bg:       #03060d;
  --bg2:      #07101f;
  --surf:     #0b1426;
  --border:   #173052;
  --border2:  #26507d;
  --text:     #e7f1ff;
  --muted:    #8aa6c8;
  --subtle:   #b2c6df;
  --accent:   #1ab8ff;
  --accent2:  #0a78d1;
  --glow:     rgba(26, 184, 255, 0.14);
  --green:    #2fe6ad;
  --red:      #ff5f7a;
  --sans:     'Manrope', 'Space Grotesk', system-ui, sans-serif;
  --display:  'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --mono:     'JetBrains Mono', ui-monospace, monospace;
}

@font-face {
  font-family: 'Manrope';
  src: url('/static/assets/fonts/Manrope-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/static/assets/fonts/Manrope-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('/static/assets/fonts/Manrope-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/assets/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #1a3060 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

main,
section,
footer {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  color: var(--text);
}

p { margin: 0; }

p,
li,
dd,
td,
th,
button,
input,
select,
textarea,
a {
  overflow-wrap: anywhere;
}

ul { list-style: none; margin: 0; padding: 0; }

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

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

input,
select,
textarea {
  font: inherit;
}

img, svg { display: block; }

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in,
.reveal.visible,
.reveal.is-inview {
  opacity: 1;
  transform: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

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