:root {
  color-scheme: dark;

  --bg: #02080c;
  --bg-deep: #010507;
  --surface: #06131a;
  --surface-raised: #081a23;

  --text: #f4f8fa;
  --text-soft: #b5c4ca;
  --text-muted: #69808a;

  --cyan: #28c9f5;
  --cyan-bright: #63ddff;
  --blue: #176d94;
  --blue-deep: #0b3447;

  --border: rgba(75, 171, 205, 0.18);
  --border-strong: rgba(40, 201, 245, 0.36);
  --focus: #80e5ff;

  --content-max: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;

  --ease-standard: cubic-bezier(0.2, 0.7, 0.2, 1);
  --build-duration: 8.8s;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 24%, rgba(23, 109, 148, 0.2), transparent 28%),
    linear-gradient(180deg, #04111a 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #001018;
  background: var(--focus);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(62, 176, 215, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 176, 215, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 64% 42%, black 0%, transparent 72%);
}

.background-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(110px);
}

.background-glow-top {
  width: 420px;
  height: 420px;
  top: -240px;
  right: 6%;
  background: rgba(40, 201, 245, 0.1);
}

.background-glow-bottom {
  width: 360px;
  height: 360px;
  bottom: -250px;
  left: 8%;
  background: rgba(23, 109, 148, 0.11);
}

.site-header,
.site-footer,
.main-shell {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}

.brand-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
  border-radius: 2px;
}

.brand-logo {
  display: block;
  width: 58px;
  height: auto;
}

.header-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(40, 201, 245, 0.8);
}

.main-shell {
  min-height: calc(100vh - 154px);
  display: grid;
  align-items: center;
  padding-block: clamp(38px, 6vw, 82px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(56px, 8vw, 112px);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(40, 201, 245, 0.45);
}

h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(3.35rem, 7vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.067em;
  text-wrap: balance;
}

.lede {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.72;
}

.status-panel {
  width: min(100%, 490px);
  margin-top: 34px;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
}

.status-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-label {
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.status-value {
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status-value-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-bright);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(40, 201, 245, 0.85);
}

.return-note {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.guardian-visual {
  display: grid;
  place-items: center;
}

.visual-frame {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at center, rgba(18, 96, 130, 0.14), transparent 54%),
    linear-gradient(180deg, rgba(8, 26, 35, 0.72), rgba(2, 8, 12, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 32px 90px rgba(0, 0, 0, 0.28);
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(40, 201, 245, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 201, 245, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.build-progress {
  position: absolute;
  z-index: 6;
  top: 56px;
  left: 48px;
  right: 48px;
  height: 2px;
  overflow: hidden;
  background: rgba(40, 201, 245, 0.08);
}

.build-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan-bright));
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 14px rgba(40, 201, 245, 0.55);
}

.corner {
  position: absolute;
  z-index: 7;
  width: 18px;
  height: 18px;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  opacity: 0.72;
}

.corner::before {
  width: 18px;
  height: 1px;
}

.corner::after {
  width: 1px;
  height: 18px;
}

.corner-top-left {
  top: 16px;
  left: 16px;
}

.corner-top-right {
  top: 16px;
  right: 16px;
  transform: rotate(90deg);
}

.corner-bottom-left {
  bottom: 16px;
  left: 16px;
  transform: rotate(-90deg);
}

.corner-bottom-right {
  right: 16px;
  bottom: 16px;
  transform: rotate(180deg);
}

.orbit {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(40, 201, 245, 0.2);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}

.orbit-outer {
  width: 78%;
  height: 78%;
}

.orbit-middle {
  width: 58%;
  height: 58%;
  border-color: rgba(40, 201, 245, 0.32);
}

.orbit-inner {
  width: 38%;
  height: 38%;
  border-color: rgba(99, 221, 255, 0.5);
}

.node {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan-bright);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.2);
  background: var(--bg);
  box-shadow: 0 0 12px rgba(40, 201, 245, 0.7);
}

.node-one {
  top: 19%;
  left: 50%;
}

.node-two {
  top: 50%;
  right: 18.5%;
}

.node-three {
  bottom: 18%;
  left: 49%;
}

.node-four {
  top: 49%;
  left: 18%;
}

.assembly-lines {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.assembly-line {
  position: absolute;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 221, 255, 0.72), transparent);
  opacity: 0;
  transform: scaleX(0);
}

.assembly-line-one {
  top: 34%;
  left: 17%;
  width: 31%;
  transform-origin: right center;
}

.assembly-line-two {
  top: 34%;
  right: 17%;
  width: 31%;
  transform-origin: left center;
}

.assembly-line-three {
  top: 66%;
  left: 17%;
  width: 31%;
  transform-origin: right center;
}

.assembly-line-four {
  top: 66%;
  right: 17%;
  width: 31%;
  transform-origin: left center;
}

.monolith {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 178px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 28px rgba(40, 201, 245, 0.12));
}

.monolith-piece {
  position: absolute;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 28%, rgba(40, 201, 245, 0.04) 70%, transparent),
    linear-gradient(160deg, #173a4a 0%, #0b202b 40%, #07131a 100%);
  border-inline: 1px solid rgba(99, 221, 255, 0.34);
}

.piece-crown {
  top: 0;
  height: 35px;
  clip-path: polygon(26% 0, 74% 0, 94% 92%, 6% 92%);
  border-top: 1px solid rgba(99, 221, 255, 0.4);
}

.piece-brow {
  top: 32px;
  height: 32px;
  clip-path: polygon(6% 0, 94% 0, 88% 100%, 12% 100%);
}

.piece-face {
  top: 61px;
  height: 53px;
  clip-path: polygon(12% 0, 88% 0, 84% 100%, 16% 100%);
}

.piece-jaw {
  top: 111px;
  height: 38px;
  clip-path: polygon(16% 0, 84% 0, 72% 100%, 28% 100%);
}

.piece-base {
  top: 146px;
  height: 32px;
  clip-path: polygon(28% 0, 72% 0, 68% 100%, 32% 100%);
  border-bottom: 1px solid rgba(99, 221, 255, 0.4);
}

.monolith-eye {
  position: absolute;
  z-index: 4;
  top: 53px;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  opacity: 0;
  transform: scaleX(0);
  background: var(--cyan-bright);
  box-shadow: 0 0 12px rgba(99, 221, 255, 0.95);
}

.monolith-eye-left {
  left: 23px;
}

.monolith-eye-right {
  right: 23px;
}

.scan-line {
  position: absolute;
  z-index: 5;
  left: 10%;
  right: 10%;
  top: 24%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
  box-shadow: 0 0 18px rgba(40, 201, 245, 0.65);
}

.visual-label {
  position: absolute;
  z-index: 7;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.visual-label-top {
  top: 22px;
  left: 48px;
}

.visual-label-bottom {
  right: 48px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.visual-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(40, 201, 245, 0.8);
}

.site-footer {
  min-height: 72px;
  padding-block: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .build-progress-fill {
    animation: progress-build var(--build-duration) linear infinite;
  }

  .piece-crown {
    animation: piece-build var(--build-duration) 0s var(--ease-standard) infinite;
  }

  .piece-brow {
    animation: piece-build var(--build-duration) 0.34s var(--ease-standard) infinite;
  }

  .piece-face {
    animation: piece-build var(--build-duration) 0.68s var(--ease-standard) infinite;
  }

  .piece-jaw {
    animation: piece-build var(--build-duration) 1.02s var(--ease-standard) infinite;
  }

  .piece-base {
    animation: piece-build var(--build-duration) 1.36s var(--ease-standard) infinite;
  }

  .monolith-eye {
    animation: eye-activate var(--build-duration) 1.82s var(--ease-standard) infinite;
  }

  .assembly-line-one,
  .assembly-line-two {
    animation: line-connect var(--build-duration) 2.08s var(--ease-standard) infinite;
  }

  .assembly-line-three,
  .assembly-line-four {
    animation: line-connect var(--build-duration) 2.28s var(--ease-standard) infinite;
  }

  .orbit-inner {
    animation: perimeter-online var(--build-duration) 2.45s var(--ease-standard) infinite;
  }

  .orbit-middle {
    animation: perimeter-online var(--build-duration) 2.7s var(--ease-standard) infinite;
  }

  .orbit-outer {
    animation: perimeter-online var(--build-duration) 2.95s var(--ease-standard) infinite;
  }

  .node-one {
    animation: node-online var(--build-duration) 3.15s var(--ease-standard) infinite;
  }

  .node-two {
    animation: node-online var(--build-duration) 3.35s var(--ease-standard) infinite;
  }

  .node-three {
    animation: node-online var(--build-duration) 3.55s var(--ease-standard) infinite;
  }

  .node-four {
    animation: node-online var(--build-duration) 3.75s var(--ease-standard) infinite;
  }

  .scan-line {
    animation: scan-build var(--build-duration) 4.05s var(--ease-standard) infinite;
  }

  .status-dot,
  .header-state-dot,
  .visual-status-dot {
    animation: status-pulse 2.4s ease-in-out infinite;
  }

  @keyframes progress-build {
    0% {
      transform: scaleX(0);
      opacity: 0.9;
    }

    58% {
      transform: scaleX(1);
      opacity: 0.9;
    }

    83% {
      transform: scaleX(1);
      opacity: 0.9;
    }

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

  @keyframes piece-build {
    0%, 5% {
      opacity: 0;
      transform: translateY(22px) scale(0.96);
    }

    11%, 79% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    92%, 100% {
      opacity: 0;
      transform: translateY(-7px) scale(0.99);
    }
  }

  @keyframes eye-activate {
    0%, 8% {
      opacity: 0;
      transform: scaleX(0);
    }

    14%, 78% {
      opacity: 1;
      transform: scaleX(1);
    }

    92%, 100% {
      opacity: 0;
      transform: scaleX(0);
    }
  }

  @keyframes line-connect {
    0%, 8% {
      opacity: 0;
      transform: scaleX(0);
    }

    15%, 75% {
      opacity: 0.72;
      transform: scaleX(1);
    }

    92%, 100% {
      opacity: 0;
      transform: scaleX(0);
    }
  }

  @keyframes perimeter-online {
    0%, 8% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.82);
    }

    17%, 72% {
      opacity: 0.72;
      transform: translate(-50%, -50%) scale(1);
    }

    78% {
      opacity: 0.42;
      transform: translate(-50%, -50%) scale(1.015);
    }

    92%, 100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(1.04);
    }
  }

  @keyframes node-online {
    0%, 10% {
      opacity: 0;
      transform: scale(0.2);
    }

    16%, 72% {
      opacity: 1;
      transform: scale(1);
    }

    92%, 100% {
      opacity: 0;
      transform: scale(0.5);
    }
  }

  @keyframes scan-build {
    0%, 8% {
      top: 22%;
      opacity: 0;
    }

    15% {
      opacity: 0.62;
    }

    58% {
      top: 76%;
      opacity: 0.62;
    }

    66%, 100% {
      top: 76%;
      opacity: 0;
    }
  }

  @keyframes status-pulse {
    0%, 100% {
      opacity: 0.5;
    }

    50% {
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .build-progress-fill {
    transform: scaleX(0.74);
  }

  .monolith-piece,
  .monolith-eye,
  .orbit,
  .node,
  .assembly-line,
  .scan-line {
    animation: none;
  }

  .monolith-piece {
    opacity: 1;
    transform: none;
  }

  .monolith-eye {
    opacity: 1;
    transform: scaleX(1);
  }

  .orbit {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(1);
  }

  .node {
    opacity: 1;
    transform: scale(1);
  }

  .assembly-line {
    opacity: 0.56;
    transform: scaleX(1);
  }

  .scan-line {
    top: 54%;
    opacity: 0.35;
  }
}

@media (max-width: 900px) {
  .main-shell {
    align-items: start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .guardian-visual {
    justify-items: start;
  }

  .visual-frame {
    width: min(100%, 560px);
  }
}

@media (max-width: 600px) {
  .site-header,
  .site-footer,
  .main-shell {
    width: min(var(--content-max), calc(100% - 32px));
  }

  .site-header {
    min-height: 70px;
  }

  .brand-logo {
    width: 52px;
  }

  .header-state {
    font-size: 0.62rem;
  }

  .main-shell {
    min-height: auto;
    padding-block: 44px 58px;
  }

  .hero {
    gap: 46px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .lede {
    margin-top: 24px;
  }

  .status-row {
    min-height: 46px;
  }

  .visual-frame {
    border-radius: 10px;
  }

  .build-progress {
    left: 42px;
    right: 42px;
  }

  .visual-label-top {
    left: 42px;
  }

  .visual-label-bottom {
    right: 42px;
  }

  .site-footer {
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
