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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 17, 32, .42), rgba(8, 17, 32, .55));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 45;
  pointer-events: auto;
}

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(79, 195, 247, .75);
  outline-offset: 4px;
}

[data-reveal] {
  will-change: transform, opacity, filter;
}

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

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

.section {
  padding-block: var(--space-9);
}

.section-soft {
  background:
    radial-gradient(circle at 82% 12%, rgba(79, 195, 247, .16), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.eyebrow {
  display: inline-flex;
  color: var(--primary-light);
  font: 800 14px/1 var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: .98;
  font-weight: 800;
}

h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 700;
}

h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.16;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 16px;
}

@media (max-width: 760px) {
  .container,
  .container-wide {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: var(--space-8);
  }
}

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