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

html {
  min-width: 320px;
  background: var(--color-bg-deep);
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 48% -10%, rgba(53, 118, 234, 0.16), transparent 34rem),
    linear-gradient(180deg, #06101e 0%, var(--color-bg) 26%, var(--color-bg-deep) 100%);
  color: var(--color-text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--color-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #a8efff;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
blockquote,
figure {
  margin-top: 0;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 6vw, 6.15rem);
  font-weight: 760;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 740;
  letter-spacing: -0.052em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  letter-spacing: -0.025em;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

code,
pre {
  font-family: Consolas, "SFMono-Regular", ui-monospace, monospace;
}

:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 4px;
}

::selection {
  background: var(--color-cyan);
  color: #00111a;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 15px;
  border-radius: 11px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

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

.text-gradient,
.text-cyan,
.text-blue {
  color: var(--color-cyan);
}

.text-gradient {
  color: transparent;
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
}

.text-blue {
  color: #94aaff;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .delay-one {
  transition-delay: 90ms;
}

.js .delay-two {
  transition-delay: 170ms;
}

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

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