:root {
  color-scheme: dark;
  --ink: #f6fbff;
  --muted: #b8c9d4;
  --quiet: #88a1ad;
  --void: #020509;
  --cyan: #67f7ff;
  --magenta: #ff3fe8;
  --amber: #ffe24f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--void);
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(47, 70, 83, 0.22), transparent 36rem),
    linear-gradient(180deg, #061017 0%, #020509 64%, #010306 100%);
  color: var(--ink);
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

#wafer-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-color: #020509;
  background-image: url("/wafer-preview.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: min(102vh, 102vw) min(102vh, 102vw);
}

#wafer-canvas.is-webgl-ready {
  background-image: none;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 2rem;
  isolation: isolate;
}

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

.hero::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(2, 5, 9, 0.02) 0 11rem, rgba(2, 5, 9, 0.46) 30rem),
    linear-gradient(90deg, rgba(2, 5, 9, 0.3), transparent 36%, transparent 64%, rgba(2, 5, 9, 0.3));
}

.hero::after {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
}

.hero__content {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(92rem, calc(100% - 4rem));
  margin: 0 auto;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero__logo {
  position: fixed;
  top: max(1.5rem, 4svh);
  left: 50%;
  z-index: 2;
  width: clamp(5.25rem, 7vw, 6.75rem);
  height: auto;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 0.85rem 2rem rgba(0, 0, 0, 0.45));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999rem;
  background: #fff;
  color: #071018;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    0 0.65rem 2rem rgba(0, 0, 0, 0.22),
    0 0 1.25rem rgba(255, 255, 255, 0.16);
}

h1 {
  max-width: min(36rem, 86vw);
  margin: 0 auto;
  color: var(--ink);
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 3.45vw, 3.15rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 0 1rem rgba(103, 247, 255, 0.2),
    0 1.25rem 3.5rem rgba(0, 0, 0, 0.68);
}

.hero__description {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: #fff;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.42;
  text-wrap: balance;
  text-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.8);
}

@media (min-width: 48rem) {
  .hero {
    padding: 4rem;
  }

  .hero__content {
    width: min(92rem, calc(100% - 8rem));
  }

  .hero__description {
    font-size: 0.95rem;
  }
}

@media (min-width: 80rem) {
  h1 {
    max-width: 42rem;
    font-size: 3.35rem;
  }
}

@media (max-width: 24rem) {
  .hero {
    padding: 1.25rem;
  }

  .hero__content {
    width: min(92rem, calc(100% - 2.5rem));
  }

  h1 {
    font-size: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
