:root {
  --white: #ffffff;
  --soft: #eeeeee;
  --gray: #c9c9c9;
  --muted: #808080;
  --black: #05070d;
  --blue: #1282fd;
  --blue-soft: #58a7ff;
  --panel: rgba(10, 16, 31, 0.72);
  --line: rgba(255, 255, 255, 0.16);
}

@property --orbit-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --orbit-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --token-scale {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@property --drift-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --drift-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --float-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --float-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--black);
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 32px clamp(20px, 5vw, 72px);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.98) 0%, rgba(5, 7, 13, 0.82) 45%, rgba(5, 7, 13, 0.34) 100%),
    radial-gradient(circle at 78% 48%, rgba(18, 130, 253, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.18), rgba(5, 7, 13, 0.92));
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(88, 167, 255, 0.12) 24%, rgba(18, 130, 253, 0.07) 46%, rgba(18, 130, 253, 0.025) 62%, transparent 74%);
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 420ms ease;
  will-change: transform, opacity;
}

.cursor-glow.is-active {
  opacity: 1;
}

.code-token {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(8, 18, 36, 0.28);
  box-shadow: 0 0 18px rgba(88, 167, 255, 0.16);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  --orbit-x: var(--move-x);
  --orbit-y: var(--move-y);
  --token-scale: 0.82;
  --float-x: 0px;
  --float-y: 0px;
  transform: translate(-50%, -50%) translate(calc(var(--orbit-x) + var(--float-x)), calc(var(--orbit-y) + var(--float-y))) rotate(var(--token-r)) scale(var(--token-scale));
  transition:
    opacity 420ms ease,
    --orbit-x 1850ms cubic-bezier(0.19, 1, 0.22, 1),
    --orbit-y 1850ms cubic-bezier(0.19, 1, 0.22, 1),
    --token-scale 1850ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 720ms ease,
    border-color 720ms ease,
    background 720ms ease,
    filter 720ms ease,
    transform 90ms linear;
}

.code-token--1 {
  --token-x: -18px;
  --token-y: -96px;
  --token-r: -8deg;
  --move-x: -6px;
  --move-y: -46px;
  --glow-delay: -0.2s;
}

.code-token--2 {
  --token-x: 92px;
  --token-y: -48px;
  --token-r: 10deg;
  --move-x: 44px;
  --move-y: -22px;
  --glow-delay: -1.6s;
}

.code-token--3 {
  --token-x: 74px;
  --token-y: 72px;
  --token-r: -4deg;
  --move-x: 34px;
  --move-y: 38px;
  --glow-delay: -2.8s;
}

.code-token--4 {
  --token-x: -82px;
  --token-y: 78px;
  --token-r: 7deg;
  --move-x: -38px;
  --move-y: 40px;
  --glow-delay: -0.9s;
}

.code-token--5 {
  --token-x: -108px;
  --token-y: -24px;
  --token-r: -12deg;
  --move-x: -52px;
  --move-y: -10px;
  --glow-delay: -2.2s;
}

.code-token--6 {
  --token-x: 118px;
  --token-y: 18px;
  --token-r: 12deg;
  --move-x: 56px;
  --move-y: 8px;
  --glow-delay: -3.4s;
}

.cursor-glow.is-active .code-token {
  --orbit-x: var(--move-x);
  --orbit-y: var(--move-y);
  --token-scale: 0.82;
  opacity: 0.78;
  animation: tokenGlow 4.8s ease-in-out infinite;
  animation-delay: var(--glow-delay);
}

.cursor-glow.is-active .code-token:nth-child(even) {
  animation: tokenGlow 4.8s ease-in-out infinite;
  animation-delay: var(--glow-delay);
}

.cursor-glow.is-moving .code-token {
  --orbit-x: var(--move-x);
  --orbit-y: var(--move-y);
  --token-scale: 0.78;
  opacity: 0.66;
  border-color: rgba(88, 167, 255, 0.18);
  background: rgba(8, 18, 36, 0.18);
  filter: brightness(1.12);
}

.cursor-glow.is-settled .code-token {
  --orbit-x: var(--token-x);
  --orbit-y: var(--token-y);
  --token-scale: 1;
  opacity: 0.8;
}

.cursor-glow.is-active .code-token.is-changing {
  opacity: 0.18;
  filter: blur(2px) brightness(1.4);
}

.hero__hawk {
  position: absolute;
  right: -8vw;
  bottom: -5vh;
  width: min(72vw, 1040px);
  height: min(88vh, 760px);
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(0.9) contrast(1.08);
  opacity: 0.84;
  transform: translate3d(var(--hawk-x, 0), var(--hawk-y, 0), 0) scale(1.02);
  transition: transform 180ms ease-out;
}

.hero__scan {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 80%, transparent);
  opacity: 0.34;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(148px, 18vw, 214px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 600;
}

.signal__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 0 7px rgba(88, 167, 255, 0.16), 0 0 24px rgba(88, 167, 255, 0.9);
}

.mobile-signal {
  display: none;
}

.hero__content {
  align-self: center;
  width: min(1200px, 100%);
  padding-block: clamp(72px, 11vw, 132px) 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 600;
}

.hero__lead {
  max-width: 1200px;
  margin: 28px 0 0;
  color: var(--gray);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(18, 130, 253, 0.28);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  backdrop-filter: blur(18px);
}

.button--ghost:hover {
  border-color: rgba(88, 167, 255, 0.56);
}

.status-panel {
  align-self: end;
  width: min(720px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.status-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-panel__head strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 52px;
  color: var(--blue-soft);
}

.launch-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(88, 167, 255, 0.26);
  border-top-color: var(--blue-soft);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(88, 167, 255, 0.28);
  animation: spin 780ms linear infinite;
}

.progress {
  height: 8px;
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft), #7fc0ff, var(--blue));
  background-size: 220% 100%;
  box-shadow: 0 0 26px rgba(88, 167, 255, 0.7);
  animation: progressTone 3.2s ease-in-out infinite;
  transition: width 420ms ease;
}

@keyframes progressTone {
  0% {
    background-position: 0% 50%;
    filter: saturate(1);
  }

  50% {
    background-position: 100% 50%;
    filter: saturate(1.22) brightness(1.08);
  }

  100% {
    background-position: 0% 50%;
    filter: saturate(1);
  }
}

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

@keyframes tokenGlow {
  0%,
  100% {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 14px rgba(88, 167, 255, 0.12);
    filter: brightness(1);
  }

  50% {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(88, 167, 255, 0.28);
    box-shadow: 0 0 24px rgba(88, 167, 255, 0.24);
    filter: brightness(1.18);
  }
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-grid article {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.status-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 800;
}

.status-grid strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-bottom: 24px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.78) 54%, rgba(5, 7, 13, 0.98) 100%),
      radial-gradient(circle at 70% 40%, rgba(18, 130, 253, 0.24), transparent 34%);
  }

  .hero__hawk {
    right: -36vw;
    bottom: 18vh;
    width: 122vw;
    height: 68vh;
    opacity: 0.46;
  }

  .topbar {
    height: auto;
  }

  .topbar .signal {
    display: none;
  }

  .hero__content {
    padding-block: 88px 42px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(46px, 15vw, 76px);
  }

  .hero__lead {
    max-width: 34rem;
  }

  .mobile-signal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-height: 44px;
    margin-top: 24px;
    padding: 0 14px;
    border: 1px solid rgba(88, 167, 255, 0.28);
    border-radius: 8px;
    color: var(--soft);
    background: rgba(18, 130, 253, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-signal span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  .hero {
    padding-inline: 18px;
  }

  .brand {
    width: 150px;
  }

  .button {
    width: 100%;
  }

  .status-panel {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
