:root {
  color-scheme: dark;
  --ink: #f1faf7;
  --muted: #9db2ac;
  --subtle: #6f8580;
  --accent: #7cf4d9;
  --accent-bright: #c2fff1;
  --accent-deep: #1a9f89;
  --surface: #07100f;
  --surface-raised: rgba(12, 28, 25, 0.72);
  --line: rgba(154, 255, 230, 0.14);
  --line-strong: rgba(154, 255, 230, 0.28);
  --shell: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--surface);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(32, 128, 108, 0.12), transparent 34rem),
    linear-gradient(145deg, #07100f 0%, #050b0b 60%, #081210 100%);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

p,
h1 {
  margin: 0;
}

::selection {
  color: #03100d;
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  color: #04110e;
  background: var(--accent-bright);
  font-size: 0.875rem;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-frame {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.shell {
  width: min(var(--shell), calc(100% - 3rem));
  margin-inline: auto;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 46%, rgba(70, 236, 199, 0.08), transparent 24rem),
    radial-gradient(circle at 76% 46%, transparent 0 16rem, rgba(121, 255, 223, 0.035) 16.1rem 16.2rem, transparent 16.3rem);
  content: "";
}

.ambient__grid {
  position: absolute;
  inset: -10%;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(152, 255, 230, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 255, 230, 0.042) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 74%, transparent 100%);
  animation: grid-drift 28s linear infinite;
}

.ambient__glow {
  position: absolute;
  width: 32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.17;
  filter: blur(110px);
  will-change: transform;
}

.ambient__glow--one {
  top: -17rem;
  right: -9rem;
  background: #33d8b5;
  animation: glow-float-one 16s var(--ease) infinite alternate;
}

.ambient__glow--two {
  bottom: -22rem;
  left: 8%;
  background: #167e70;
  animation: glow-float-two 20s var(--ease) infinite alternate;
}

.ambient__beam {
  position: absolute;
  top: -25%;
  right: 20%;
  width: 1px;
  height: 150%;
  opacity: 0.2;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  box-shadow: 0 0 28px rgba(124, 244, 217, 0.4);
  transform: rotate(24deg);
  transform-origin: center;
  animation: beam-breathe 8s ease-in-out infinite;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  width: 11.25rem;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(93, 238, 205, 0.2));
  transition: filter 180ms ease;
}

.brand:focus-visible,
.home-link:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 5px;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-note__dot {
  position: relative;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 244, 217, 0.65);
}

.header-note__dot::after {
  position: absolute;
  inset: -0.3rem;
  border: 1px solid rgba(124, 244, 217, 0.3);
  border-radius: inherit;
  content: "";
  animation: status-pulse 2.6s ease-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.9fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vh, 5.5rem);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  color: var(--subtle);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow span:first-child {
  color: var(--accent);
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.5rem, 6.8vw, 6.5rem);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.96;
  text-wrap: balance;
}

h1 > span {
  display: block;
  padding-bottom: 0.08em;
  color: transparent;
  background: linear-gradient(105deg, #f2fffb 4%, #8bf4dc 48%, #bffff0 95%);
  background-clip: text;
  -webkit-background-clip: text;
}

.lede {
  max-width: 35rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 430;
  letter-spacing: -0.01em;
  line-height: 1.75;
  text-wrap: pretty;
}

.construction-status {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: min(100%, 25rem);
  margin-top: 2.4rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background:
    linear-gradient(120deg, rgba(20, 52, 46, 0.55), rgba(8, 22, 20, 0.5)),
    var(--surface-raised);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.construction-status__icon {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(124, 244, 217, 0.06);
}

.construction-status__icon::before,
.construction-status__icon::after {
  position: absolute;
  width: 0.75rem;
  height: 1px;
  background: var(--accent);
  content: "";
}

.construction-status__icon::after {
  transform: rotate(90deg);
}

.construction-status__icon span {
  position: absolute;
  inset: 0.3rem;
  border: 1px solid rgba(124, 244, 217, 0.12);
  border-radius: 50%;
  animation: slow-spin 6s linear infinite;
}

.construction-status__copy {
  display: grid;
  gap: 0.25rem;
}

.construction-status strong {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.construction-status small {
  color: var(--subtle);
  font-size: 0.75rem;
  line-height: 1.4;
}

.hero__visual {
  width: 100%;
  max-width: 31rem;
  justify-self: end;
}

.core-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
}

.core-stage::before,
.core-stage::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.core-stage::before {
  inset: 3%;
  border: 1px solid rgba(135, 255, 225, 0.08);
  box-shadow:
    inset 0 0 90px rgba(38, 162, 136, 0.035),
    0 0 120px rgba(38, 162, 136, 0.035);
}

.core-stage::after {
  inset: 19%;
  opacity: 0.75;
  background: radial-gradient(circle, rgba(78, 230, 196, 0.16), rgba(41, 137, 117, 0.035) 45%, transparent 68%);
  filter: blur(10px);
  animation: core-breathe 5s ease-in-out infinite;
}

.core-stage__grid {
  position: absolute;
  inset: 18%;
  opacity: 0.36;
  border: 1px solid rgba(124, 244, 217, 0.08);
  background-image:
    linear-gradient(rgba(124, 244, 217, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 244, 217, 0.07) 1px, transparent 1px);
  background-size: 1.6rem 1.6rem;
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  transform: rotate(45deg);
}

.core-stage__halo {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: rgba(94, 240, 207, 0.18);
  filter: blur(42px);
  animation: halo-shift 4s ease-in-out infinite alternate;
}

.orbit {
  --orbit-start: 0deg;
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(132, 255, 226, 0.16);
  border-radius: 50%;
  transform: rotate(var(--orbit-start));
  animation: orbit-spin 24s linear infinite;
}

.orbit::before,
.orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orbit::before {
  inset: -1px;
  border-top: 1px solid rgba(155, 255, 232, 0.66);
  border-right: 1px solid transparent;
  transform: rotate(42deg);
}

.orbit::after {
  top: 50%;
  right: -2px;
  width: 4px;
  height: 4px;
  background: var(--accent-bright);
  box-shadow: 0 0 12px rgba(124, 244, 217, 0.75);
  transform: translateY(-50%);
}

.orbit--outer {
  --orbit-start: 18deg;
  inset: 8%;
  animation-duration: 31s;
}

.orbit--middle {
  --orbit-start: -28deg;
  inset: 19%;
  opacity: 0.82;
  animation-direction: reverse;
  animation-duration: 22s;
}

.orbit--inner {
  --orbit-start: 62deg;
  inset: 29%;
  opacity: 0.68;
  animation-duration: 15s;
}

.satellite {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid rgba(178, 255, 237, 0.85);
  border-radius: 50%;
  background: #0b2420;
  box-shadow:
    0 0 0 4px rgba(124, 244, 217, 0.045),
    0 0 16px rgba(124, 244, 217, 0.42);
}

.orbit--middle .satellite {
  top: auto;
  right: 18%;
  bottom: 4%;
  left: auto;
}

.orbit--inner .satellite {
  top: 48%;
  right: auto;
  left: -0.2rem;
}

.axis {
  position: absolute;
  z-index: 0;
  inset: 13%;
  border: 1px solid rgba(124, 244, 217, 0.08);
  border-radius: 50%;
}

.axis--horizontal {
  transform: rotateX(68deg);
}

.axis--vertical {
  transform: rotateY(68deg);
}

.data-point {
  position: absolute;
  z-index: 2;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px rgba(124, 244, 217, 0.72);
  animation: data-pulse 3.2s ease-in-out infinite;
}

.data-point--one {
  top: 18%;
  right: 23%;
}

.data-point--two {
  right: 11%;
  bottom: 35%;
  animation-delay: -0.9s;
}

.data-point--three {
  bottom: 16%;
  left: 29%;
  animation-delay: -1.8s;
}

.data-point--four {
  top: 36%;
  left: 9%;
  animation-delay: -2.5s;
}

.intelligence-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 22%;
  aspect-ratio: 1;
  border: 1px solid rgba(174, 255, 236, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(212, 255, 245, 0.12), transparent 20%),
    linear-gradient(145deg, rgba(21, 64, 55, 0.94), rgba(5, 20, 17, 0.96));
  box-shadow:
    inset 0 0 34px rgba(87, 233, 200, 0.14),
    0 0 0 0.65rem rgba(97, 239, 207, 0.025),
    0 0 0 1.3rem rgba(97, 239, 207, 0.018),
    0 0 70px rgba(75, 230, 195, 0.28);
}

.intelligence-core::before,
.intelligence-core::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.intelligence-core::before {
  inset: -26%;
  border: 1px dashed rgba(148, 255, 230, 0.22);
  animation: slow-spin 17s linear infinite reverse;
}

.intelligence-core::after {
  inset: 7%;
  border: 1px solid rgba(179, 255, 237, 0.12);
}

.intelligence-core img {
  width: 66%;
  height: 66%;
  opacity: 0.92;
  filter: drop-shadow(0 0 15px rgba(124, 244, 217, 0.24));
}

.visual-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
  color: var(--subtle);
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.visual-label span {
  width: 2.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 244, 217, 0.28));
}

.visual-label span:last-child {
  transform: rotate(180deg);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(154, 255, 230, 0.075);
  color: var(--subtle);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
}

.site-footer small {
  font: inherit;
}

.site-footer p {
  text-transform: uppercase;
}

.error-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.78fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
  padding-block: clamp(3rem, 8vh, 7rem);
}

.error-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.25rem, 6.5vw, 6rem);
}

.error-copy .lede {
  margin-top: 1.5rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.25rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  color: #081411;
  background: var(--accent-bright);
  box-shadow: 0 12px 32px rgba(41, 189, 156, 0.14);
  font-size: 0.8125rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms var(--ease);
}

.home-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms var(--ease);
}

.error-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 27rem;
  aspect-ratio: 1;
  justify-self: end;
}

.error-visual::before {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(124, 244, 217, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 205, 171, 0.09), transparent 64%);
  box-shadow:
    inset 0 0 70px rgba(56, 189, 159, 0.04),
    0 0 100px rgba(56, 189, 159, 0.04);
  content: "";
}

.error-visual > span {
  z-index: 2;
  color: rgba(197, 255, 241, 0.8);
  font-size: clamp(5.5rem, 12vw, 9rem);
  font-weight: 560;
  letter-spacing: -0.09em;
  line-height: 1;
  text-shadow:
    0 0 30px rgba(90, 238, 204, 0.15),
    0 0 90px rgba(90, 238, 204, 0.12);
}

.error-visual__orbit {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(124, 244, 217, 0.15);
  border-top-color: rgba(170, 255, 235, 0.65);
  border-radius: 50%;
  animation: slow-spin 24s linear infinite;
}

.error-visual__orbit--inner {
  inset: 22%;
  opacity: 0.6;
  animation-direction: reverse;
  animation-duration: 16s;
}

.error-visual__scan {
  position: absolute;
  z-index: 3;
  top: 27%;
  left: 18%;
  width: 64%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  box-shadow: 0 0 18px rgba(124, 244, 217, 0.65);
  animation: scan 4.5s ease-in-out infinite;
}

@media (hover: hover) {
  .brand:hover img {
    filter: drop-shadow(0 0 22px rgba(93, 238, 205, 0.32));
  }

  .home-link:hover {
    background: #d6fff5;
    box-shadow: 0 18px 42px rgba(41, 189, 156, 0.2);
    transform: translateY(-2px);
  }

  .home-link:hover svg {
    transform: translateX(3px);
  }
}

@media (max-width: 960px) {
  .hero,
  .error-main {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.78fr);
    gap: 2rem;
  }

  h1 {
    font-size: clamp(3.35rem, 7.5vw, 5.25rem);
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 5.75rem;
  }

  .hero,
  .error-main {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 3rem 4.5rem;
    text-align: center;
  }

  .hero__copy,
  .error-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .eyebrow {
    justify-content: center;
  }

  h1,
  .error-copy h1 {
    max-width: 12ch;
  }

  .lede {
    max-width: 32rem;
  }

  .construction-status {
    text-align: left;
  }

  .hero__visual,
  .error-visual {
    width: min(100%, 24rem);
    justify-self: center;
  }

  .error-main {
    gap: 2.25rem;
  }

  .error-visual {
    width: min(82vw, 20rem);
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(var(--shell), calc(100% - 2rem));
  }

  .site-header {
    min-height: 5.25rem;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand img {
    width: 9.25rem;
  }

  .header-note {
    gap: 0.5rem;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .hero {
    padding-block: 2.75rem 3.75rem;
  }

  .eyebrow {
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    font-size: 0.59rem;
    letter-spacing: 0.13em;
  }

  h1,
  .error-copy h1 {
    font-size: clamp(2.9rem, 14.5vw, 4rem);
    letter-spacing: -0.065em;
  }

  .lede {
    margin-top: 1.35rem;
    font-size: 0.975rem;
    line-height: 1.65;
  }

  .construction-status {
    width: 100%;
    min-width: 0;
    margin-top: 2rem;
    padding: 0.8rem 0.85rem;
  }

  .construction-status__icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero__visual {
    width: min(100%, 20.5rem);
  }

  .visual-label {
    gap: 0.55rem;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
  }

  .visual-label span {
    width: 1.25rem;
  }

  .site-footer {
    min-height: 4.75rem;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c5d5d1;
    --subtle: #acbfba;
    --line: rgba(183, 255, 238, 0.34);
    --line-strong: rgba(183, 255, 238, 0.58);
  }

  .ambient__grid {
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes grid-drift {
  to {
    transform: translate3d(72px, 72px, 0);
  }
}

@keyframes glow-float-one {
  to {
    transform: translate3d(-5rem, 4rem, 0) scale(1.08);
  }
}

@keyframes glow-float-two {
  to {
    transform: translate3d(4rem, -3rem, 0) scale(0.92);
  }
}

@keyframes beam-breathe {
  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.28;
  }
}

@keyframes status-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.55);
  }

  75%,
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(calc(var(--orbit-start) + 360deg));
  }
}

@keyframes core-breathe {
  0%,
  100% {
    opacity: 0.56;
    transform: scale(0.94);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes halo-shift {
  to {
    opacity: 0.68;
    transform: scale(1.22);
  }
}

@keyframes data-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes scan {
  0% {
    top: 27%;
    opacity: 0;
  }

  20% {
    opacity: 0.6;
  }

  80% {
    opacity: 0.6;
  }

  100% {
    top: 73%;
    opacity: 0;
  }
}
