:root {
  --bg: #05080f;
  --fg: #e8f6ff;
  --muted: #7aa0b8;
  --cyan: #5ce1ff;
  --blue: #2d7dff;
  --horizon-h: clamp(150px, 23vw, 320px);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(45, 125, 255, 0.22), transparent 55%),
    radial-gradient(800px 500px at 80% 110%, rgba(92, 225, 255, 0.12), transparent 50%),
    var(--bg);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  overflow-x: hidden;
}

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 225, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 225, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 78%);
  pointer-events: none;
}

.scan {
  position: fixed;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(92, 225, 255, 0.08),
    transparent
  );
  animation: sweep 6.5s linear infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes sweep {
  from {
    transform: translateY(-140px);
  }
  to {
    transform: translateY(100vh);
  }
}

/* The robot lineup from the brand banner, surfacing out of the dark at the
   foot of the page. */
.horizon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--horizon-h);
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 42%, black 100%);
}

.horizon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Biased right of centre so narrow viewports crop into the brain and the
     robots rather than the empty factory depth on the left. */
  object-position: 62% 50%;
  opacity: 0.85;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.1rem, 5vw, 2rem) calc(var(--horizon-h) + 2rem);
  text-align: center;
}

/* Centred flex items size to their content, so without this the headline
   refuses to wrap and drags the layout wider than the viewport. */
.stage > * {
  max-width: 100%;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* Scales down on narrow screens so the full status string stays on one
     line rather than breaking mid-phrase. */
  font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  color: var(--cyan);
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

.mark {
  width: min(200px, 48vw);
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 10px 28px rgba(20, 40, 70, 0.45));
}

.orbit {
  fill: none;
  stroke: rgba(106, 168, 200, 0.4);
  stroke-width: 1.15;
  stroke-dasharray: 38 210;
  transform-origin: 100px 100px;
  animation: spin 28s linear infinite;
}

.orbit--outer {
  stroke: rgba(92, 225, 255, 0.24);
  stroke-width: 0.9;
  stroke-dasharray: 14 300;
  animation-duration: 44s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

h1 {
  margin: 0 0 0.9rem;
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 6.4vw, 3.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.lede {
  margin: 0;
  width: 58rem;
  font-size: clamp(1.02rem, 2.6vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #bcd9ea;
  /* Keeps "AI." from being orphaned on its own line when the sentence does
     have to wrap on narrower viewports. */
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .scan,
  .orbit,
  .status::before {
    animation: none;
  }
}
