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

html,
body {
  min-height: 100%;
  background: var(--bg-eerie);
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-line);
  color: var(--text-smoke);
  background:
    radial-gradient(circle at 18% 14%, rgba(198, 198, 199, 0.05), transparent 18%),
    radial-gradient(circle at 78% 20%, rgba(250, 248, 254, 0.04), transparent 16%),
    linear-gradient(180deg, #101116 0%, var(--bg-eerie) 20%, #090a0d 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(circle at 50% 0, rgba(198, 198, 199, 0.08), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(198, 198, 199, 0.04), transparent 34%);
  filter: blur(44px);
  transform: translate3d(0, var(--parallax-shift, 0px), 0);
}

body::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
}

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

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

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

main,
section,
footer {
  position: relative;
  z-index: var(--z-content);
}

.page-shell {
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.page-shell > main {
  flex: 1 0 auto;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

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

.section-tight {
  padding: var(--space-7) 0;
}

.section-surface {
  background:
    radial-gradient(circle at top center, rgba(198, 198, 199, 0.03), transparent 36%),
    linear-gradient(180deg, rgba(18, 19, 24, 0.72), rgba(13, 14, 18, 0.46));
}

.section-heading {
  max-width: 46rem;
  margin-bottom: var(--space-6);
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.eyebrow,
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before,
.trust-pill::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--tertiary);
  box-shadow: 0 0 10px rgba(250, 248, 254, 0.8);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(3.25rem, 7vw, var(--h1-size));
  line-height: 0.94;
}

h2 {
  font-size: var(--h2-size);
  line-height: 0.98;
}

h3 {
  font-size: var(--h3-size);
  line-height: 1.15;
}

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

.lead {
  font-size: 1.08rem;
  color: var(--text-soft);
}

.muted {
  color: var(--text-dim);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack {
  display: grid;
  gap: var(--space-4);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity var(--duration-slow) var(--ease-standard),
    transform var(--duration-slow) var(--ease-standard);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }

@media (max-width: 960px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section,
  .section-tight {
    padding: var(--space-7) 0;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
