:root {
  --bg-0: #050d18;
  --bg-1: #08131f;
  --bg-2: #0b1c2c;
  --bg-3: #102538;

  --surface-0: #0a1828;
  --surface-1: #0f2135;
  --surface-2: #142c44;
  --surface-3: #1a3a56;

  --border-0: rgba(120, 190, 255, 0.10);
  --border-1: rgba(120, 190, 255, 0.22);
  --border-2: rgba(120, 190, 255, 0.40);

  --text-0: #eaf4ff;
  --text-1: #b9cee3;
  --text-2: #7f97ae;
  --text-3: #5a7088;

  --blue-0: #2b8bff;
  --blue-1: #4aa3ff;
  --blue-2: #7cc0ff;
  --cyan-0: #22d3ee;
  --cyan-1: #5eead4;
  --cyan-2: #a5f3fc;

  --accent-grad: linear-gradient(135deg, var(--blue-0) 0%, var(--cyan-0) 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(43, 139, 255, 0.20), rgba(34, 211, 238, 0.20));

  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.16);
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.16);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 12px 40px rgba(43, 139, 255, 0.28);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);

  --container: 1180px;
  --header-h: 72px;

  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-0);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(1200px 600px at 88% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 8%, rgba(43, 139, 255, 0.14), transparent 60%),
    radial-gradient(900px 500px at 50% 120%, rgba(34, 211, 238, 0.06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-0);
}

p {
  margin: 0;
}

a {
  color: var(--cyan-0);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--cyan-1);
}

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

img {
  height: auto;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

legend {
  padding: 0;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

:focus-visible {
  outline: 2px solid var(--cyan-0);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection {
  background: rgba(34, 211, 238, 0.35);
  color: var(--text-0);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-0), var(--cyan-0));
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--blue-1), var(--cyan-1));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-grad);
  color: #04121f;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
  color: #04121f;
}

[hidden] {
  display: none !important;
}

.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;
}

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