.boot {
  position: fixed;
  inset: 0;
  z-index: 200;

  display: grid;
  place-items: center;

  background: #050607;

  transition:
    opacity 600ms var(--ease),
    visibility 600ms var(--ease);
}

.boot.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot__inner {
  width: min(calc(100% - 48px), 520px);
}

.boot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.boot__mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;

  font-family: var(--font-display);
  font-size: 24px;
}

.boot__word {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.boot__rule {
  height: 1px;
  margin-top: 28px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.08);
}

.boot__rule-fill {
  display: block;

  width: 0;
  height: 100%;

  background: var(--accent);

  animation:
    boot-fill
    1150ms
    var(--ease)
    forwards;
}

.boot__status {
  margin-top: 12px;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: #757d79;

  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.boot__dot {
  width: 5px;
  height: 5px;

  margin-top: 3px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 15px rgba(103, 245, 154, 0.5);
}

@keyframes boot-fill {
  0% {
    width: 0;
  }

  60% {
    width: 72%;
  }

  100% {
    width: 100%;
  }
}


/* =====================================================
   AURENGIS CORE
===================================================== */

.system-core__halo {
  animation:
    core-breathe
    5.5s
    ease-in-out
    infinite;
}

@keyframes core-breathe {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.28;
  }

  50% {
    transform: scale(1.035);
    opacity: 0.62;
  }
}

.system-orbit--outer {
  animation:
    orbit-drift-a
    32s
    linear
    infinite;
}

.system-orbit--middle {
  animation:
    orbit-drift-b
    28s
    linear
    infinite;
}

.system-orbit--inner {
  animation:
    orbit-drift-a
    22s
    linear
    infinite
    reverse;
}

@keyframes orbit-drift-a {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-drift-b {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.signal--one {
  animation:
    signal-one
    7s
    var(--ease)
    infinite;
}

.signal--two {
  animation:
    signal-two
    8.6s
    var(--ease)
    infinite
    1.4s;
}

@keyframes signal-one {
  0%,
  12% {
    opacity: 0;

    transform:
      translate3d(
        0,
        0,
        0
      )
      scale(0.7);
  }

  18% {
    opacity: 1;
  }

  55% {
    opacity: 1;

    transform:
      translate3d(
        138px,
        116px,
        0
      )
      scale(1);
  }

  64%,
  100% {
    opacity: 0;

    transform:
      translate3d(
        138px,
        116px,
        0
      )
      scale(0.6);
  }
}

@keyframes signal-two {
  0%,
  18% {
    opacity: 0;

    transform:
      translate3d(
        0,
        0,
        0
      )
      scale(0.7);
  }

  24% {
    opacity: 1;
  }

  58% {
    opacity: 1;

    transform:
      translate3d(
        -128px,
        -84px,
        0
      )
      scale(1);
  }

  68%,
  100% {
    opacity: 0;

    transform:
      translate3d(
        -128px,
        -84px,
        0
      )
      scale(0.6);
  }
}

.scroll-cue__line::after {
  animation:
    scroll-line
    2.8s
    var(--ease)
    infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateX(-160%);
  }

  45%,
  60% {
    transform: translateX(175%);
  }

  100% {
    transform: translateX(175%);
  }
}

.hero__visual-stage[data-tilt="true"] {
  transition:
    transform
    160ms
    ease-out;
}


/* =====================================================
   AMBIENT SIGNALS
===================================================== */

.route--one {
  stroke-dasharray: 12 24;

  animation:
    route-flow
    18s
    linear
    infinite;
}

.route--two {
  stroke-dasharray: 8 22;

  animation:
    route-flow
    24s
    linear
    infinite
    reverse;
}

@keyframes route-flow {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -280;
  }
}


/* =====================================================
   GENOME
===================================================== */

.genome-node {
  position: relative;
  overflow: hidden;
}

.genome-node::after {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 2px;
  height: 100%;

  background: var(--accent);

  transform: scaleY(0);

  transform-origin: bottom;

  transition:
    transform
    220ms
    var(--ease);
}

.genome-node:hover::after,
.genome-node.is-active::after {
  transform: scaleY(1);
}

.genome__core {
  position: relative;
}

.genome__core::before {
  content: "";

  position: absolute;

  inset: -26px;

  border: 1px solid rgba(103, 245, 154, 0.08);

  border-radius: 50%;

  animation:
    genome-pulse
    5s
    ease-in-out
    infinite;
}

@keyframes genome-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.2;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.55;
  }
}


/* =====================================================
   CAPABILITY STAGE
===================================================== */

.capability-object {
  transform-style: preserve-3d;
}

.capability-object.is-active .device-phone {
  animation:
    phone-float
    5.5s
    ease-in-out
    infinite;
}

@keyframes phone-float {
  0%,
  100% {
    transform:
      translateY(0)
      rotateY(-12deg)
      rotateX(5deg)
      rotateZ(2deg);
  }

  50% {
    transform:
      translateY(-12px)
      rotateY(-8deg)
      rotateX(3deg)
      rotateZ(1deg);
  }
}

.capability-object.is-active .demo-monitor {
  animation:
    monitor-float
    6s
    ease-in-out
    infinite;
}

@keyframes monitor-float {
  0%,
  100% {
    transform:
      translateY(0)
      rotateY(8deg)
      rotateX(4deg);
  }

  50% {
    transform:
      translateY(-10px)
      rotateY(5deg)
      rotateX(2deg);
  }
}

.capability-object.is-active .demo-vehicle {
  animation:
    vehicle-float
    6.5s
    ease-in-out
    infinite;
}

@keyframes vehicle-float {
  0%,
  100% {
    transform:
      translateY(0)
      rotateY(-12deg);
  }

  50% {
    transform:
      translateY(-9px)
      rotateY(-8deg);
  }
}

.demo-network::after,
.demo-integration::after,
.demo-analytics::after,
.demo-document::after,
.demo-security::after {
  content: "";

  position: absolute;

  left: 14%;
  right: 14%;

  top: 50%;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--accent),
      transparent
    );

  opacity: 0;

  transform:
    translateY(-50%)
    scaleX(0.3);
}

.capability-object.is-active .demo-network::after,
.capability-object.is-active .demo-integration::after,
.capability-object.is-active .demo-analytics::after,
.capability-object.is-active .demo-document::after,
.capability-object.is-active .demo-security::after {
  animation:
    capability-flow
    3.6s
    var(--ease)
    infinite;
}

@keyframes capability-flow {
  0% {
    opacity: 0;

    transform:
      translateY(-50%)
      scaleX(0.15);
  }

  30% {
    opacity: 0.7;
  }

  65% {
    opacity: 0.8;

    transform:
      translateY(-50%)
      scaleX(1);
  }

  100% {
    opacity: 0;

    transform:
      translateY(-50%)
      scaleX(1);
  }
}


/* =====================================================
   X-RAY
===================================================== */

.xray-stack > div {
  position: relative;
  overflow: hidden;
}

.xray-stack > div::after {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(103, 245, 154, 0.55),
      transparent
    );

  transform:
    translateX(-110%);
}

.xray-stack > div:hover::after {
  animation:
    xray-scan
    1.2s
    var(--ease);
}

@keyframes xray-scan {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(110%);
  }
}


/* =====================================================
   CHAOS → CONTROL
===================================================== */

.chaos-control__before span {
  animation:
    chaos-drift
    8s
    ease-in-out
    infinite;
}

.chaos-control__before span:nth-child(2) {
  animation-delay: 0.6s;
}

.chaos-control__before span:nth-child(3) {
  animation-delay: 1.2s;
}

.chaos-control__before span:nth-child(4) {
  animation-delay: 1.8s;
}

.chaos-control__before span:nth-child(5) {
  animation-delay: 2.4s;
}

.chaos-control__before span:nth-child(6) {
  animation-delay: 3s;
}

@keyframes chaos-drift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

.chaos-control__core {
  position: relative;

  animation:
    control-core
    5s
    ease-in-out
    infinite;
}

.chaos-control__core::after {
  content: "";

  position: absolute;

  inset: 18px;

  border: 1px solid rgba(103, 245, 154, 0.12);

  border-radius: 50%;
}

@keyframes control-core {
  0%,
  100% {
    box-shadow:
      0 0 0 rgba(103, 245, 154, 0);
  }

  50% {
    box-shadow:
      0 0 60px rgba(103, 245, 154, 0.08);
  }
}


/* =====================================================
   EVENT ENGINE
===================================================== */

.event-engine__steps span {
  position: relative;
  overflow: hidden;
}

.event-engine__steps span::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 2px;
  height: 100%;

  background: var(--accent);

  transform: scaleY(0);

  transform-origin: top;
}

.event-engine__steps span:nth-child(1)::before {
  animation:
    step-activate
    6s
    var(--ease)
    infinite
    0s;
}

.event-engine__steps span:nth-child(2)::before {
  animation:
    step-activate
    6s
    var(--ease)
    infinite
    0.5s;
}

.event-engine__steps span:nth-child(3)::before {
  animation:
    step-activate
    6s
    var(--ease)
    infinite
    1s;
}

.event-engine__steps span:nth-child(4)::before {
  animation:
    step-activate
    6s
    var(--ease)
    infinite
    1.5s;
}

.event-engine__steps span:nth-child(5)::before {
  animation:
    step-activate
    6s
    var(--ease)
    infinite
    2s;
}

.event-engine__steps span:nth-child(6)::before {
  animation:
    step-activate
    6s
    var(--ease)
    infinite
    2.5s;
}

@keyframes step-activate {
  0%,
  8% {
    transform: scaleY(0);
  }

  20%,
  70% {
    transform: scaleY(1);
  }

  86%,
  100% {
    transform: scaleY(0);
  }
}


/* =====================================================
   EXCEPTION ENGINE
===================================================== */

.exception-engine__critical {
  animation:
    exception-pulse
    4s
    ease-in-out
    infinite;
}

@keyframes exception-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 rgba(103, 245, 154, 0);
  }

  50% {
    box-shadow:
      inset 0 0 50px rgba(103, 245, 154, 0.04);
  }
}


/* =====================================================
   COMMAND CENTER
===================================================== */

.command-demo {
  position: relative;
  overflow: hidden;
}

.command-demo::after {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(103, 245, 154, 0.5),
      transparent
    );

  animation:
    command-scan
    7s
    linear
    infinite;
}

@keyframes command-scan {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  15% {
    opacity: 0.5;
  }

  50% {
    transform: translateX(100%);
    opacity: 0.6;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}


/* =====================================================
   INDUSTRIES
===================================================== */

.industry-card {
  position: relative;
  overflow: hidden;
}

.industry-card::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: var(--accent);

  transform: scaleX(0);

  transform-origin: left;

  transition:
    transform
    300ms
    var(--ease);
}

.industry-card:hover::after {
  transform: scaleX(1);
}


/* =====================================================
   WORLD MAP
===================================================== */

.visitor-node::before {
  animation:
    visitor-wave
    2.8s
    ease-out
    infinite;
}

@keyframes visitor-wave {
  0% {
    transform: scale(0.55);
    opacity: 0.75;
  }

  70% {
    transform: scale(1.7);
    opacity: 0;
  }

  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.visitor-node span {
  animation:
    visitor-breathe
    2.2s
    ease-in-out
    infinite;
}

@keyframes visitor-breathe {
  0%,
  100% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.15);
  }
}


/* =====================================================
   BUILDER
===================================================== */

.builder-blueprint > strong {
  animation:
    builder-core
    4.8s
    ease-in-out
    infinite;
}

@keyframes builder-core {
  0%,
  100% {
    box-shadow:
      0 0 0 rgba(103, 245, 154, 0);
  }

  50% {
    box-shadow:
      0 0 60px rgba(103, 245, 154, 0.06);
  }
}

.builder-node {
  animation:
    builder-node-enter
    360ms
    var(--ease)
    both;
}

@keyframes builder-node-enter {
  from {
    opacity: 0;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* =====================================================
   PROJECT RESULT
===================================================== */

.project-result:not([hidden]) {
  animation:
    result-reveal
    520ms
    var(--ease)
    both;
}

@keyframes result-reveal {
  from {
    opacity: 0;

    transform:
      translateY(12px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}


/* =====================================================
   SCROLL REVEAL
===================================================== */

[data-reveal] {
  opacity: 0;

  transform:
    translateY(26px);

  transition:
    opacity
    700ms
    var(--ease),
    transform
    700ms
    var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration:
      0.001ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.001ms !important;

    scroll-behavior:
      auto !important;
  }
}
