:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --ink: #f5f2ea;
  --muted: #b7b1a2;
  --line: rgba(245, 242, 234, .16);
  --panel: rgba(245, 242, 234, .07);
  --green: #41e6a1;
  --cyan: #4cc9f0;
  --amber: #f6b84a;
  --coral: #ff6b5f;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .05), transparent 20%, transparent 80%, rgba(255, 255, 255, .05)),
    #0c0d10;
}

.grid {
  position: absolute;
  inset: -20%;
  opacity: .32;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(720px) rotateX(62deg) translateY(13%);
  transform-origin: 50% 100%;
  animation: grid-drift 18s linear infinite;
}

.scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(76, 201, 240, .14), transparent);
  height: 22%;
  top: -24%;
  animation: scan 8s ease-in-out infinite;
}

.wire {
  position: absolute;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  right: clamp(18px, 9vw, 120px);
  top: 50%;
  border: 1px solid rgba(76, 201, 240, .44);
  transform: translateY(-50%) rotate(12deg);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: turn 16s linear infinite;
}

.wire-b {
  width: min(30vw, 360px);
  right: clamp(90px, 17vw, 260px);
  border-color: rgba(246, 184, 74, .42);
  animation-duration: 22s;
  animation-direction: reverse;
}

.beam {
  position: absolute;
  height: 2px;
  width: min(58vw, 720px);
  left: 44%;
  opacity: .68;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--green), transparent);
  animation: pulse-line 4.4s ease-in-out infinite;
}

.beam-a {
  top: 34%;
  transform: rotate(-18deg);
}

.beam-b {
  top: 64%;
  background: linear-gradient(90deg, var(--coral), transparent);
  transform: rotate(14deg);
  animation-delay: 1.2s;
}

.columns {
  position: absolute;
  right: clamp(28px, 7vw, 96px);
  bottom: clamp(24px, 7vw, 88px);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  opacity: .78;
}

.columns span {
  width: 10px;
  border: 1px solid rgba(245, 242, 234, .22);
  background: linear-gradient(180deg, rgba(65, 230, 161, .86), rgba(65, 230, 161, .08));
  animation: column 2.8s ease-in-out infinite;
}

.columns span:nth-child(1) {
  height: 58%;
  animation-delay: .1s;
}

.columns span:nth-child(2) {
  height: 82%;
  animation-delay: .6s;
}

.columns span:nth-child(3) {
  height: 44%;
  animation-delay: 1.1s;
}

.columns span:nth-child(4) {
  height: 72%;
  animation-delay: .3s;
}

.columns span:nth-child(5) {
  height: 36%;
  animation-delay: .9s;
}

.columns span:nth-child(6) {
  height: 68%;
  animation-delay: 1.4s;
}

.hero {
  width: min(900px, 100%);
  padding-top: 4vh;
}

.status,
.note {
  margin: 0;
  color: var(--green);
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 22px;
  font-size: clamp(36px, 10vw, 124px);
  line-height: .94;
  letter-spacing: 0;
  font-weight: 900;
  display: block;
  max-width: none;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: manual;
}

.lead {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.45;
}

.meter {
  margin: clamp(28px, 5vw, 48px) 0 18px;
  width: min(520px, 82vw);
  height: 12px;
  border: 1px solid rgba(245, 242, 234, .2);
  background: var(--panel);
  overflow: hidden;
}

.meter span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
  animation: load 3.6s ease-in-out infinite;
}

@keyframes grid-drift {
  to {
    background-position: 72px 72px;
  }
}

@keyframes scan {
  0%, 12% {
    top: -24%;
  }

  55%, 100% {
    top: 104%;
  }
}

@keyframes turn {
  to {
    transform: translateY(-50%) rotate(372deg);
  }
}

@keyframes pulse-line {
  0%, 100% {
    opacity: .18;
    translate: -8% 0;
  }

  50% {
    opacity: .78;
    translate: 4% 0;
  }
}

@keyframes column {
  0%, 100% {
    transform: scaleY(.72);
  }

  50% {
    transform: scaleY(1.08);
  }
}

@keyframes load {
  0%, 100% {
    width: 34%;
  }

  50% {
    width: 86%;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .page-shell {
    align-items: end;
    min-height: 100svh;
    padding: 28px;
  }

  .wire {
    width: 72vw;
    right: -12vw;
    top: 31%;
  }

  .wire-b {
    width: 52vw;
    right: 14vw;
  }

  .columns {
    right: 24px;
    bottom: auto;
    top: 26px;
    height: 112px;
    gap: 8px;
  }

  h1 {
    font-size: clamp(22px, 8vw, 50px);
  }
}
