@property --ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: dark;
  --ink: #f2f7ff;
  --muted: #7d8da6;
  --line: rgba(146, 180, 226, 0.15);
  --blue: #1c6fff;
  --cyan: #4ee9ff;
  --violet: #7867ff;
  --background: #05070b;
  --header-height: 96px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--background);
  overscroll-behavior-x: none;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 42%, rgba(20, 72, 164, 0.14), transparent 31rem),
    linear-gradient(135deg, #05070b 0%, #07101d 52%, #030509 100%);
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(91, 137, 199, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 137, 199, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #03101a;
  background: var(--cyan);
  border-radius: 8px;
  transform: translateY(-180%);
}

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

#signal-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

.cursor-light {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(420px circle at 70% 42%, rgba(36, 126, 255, 0.12), transparent 70%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  gap: 18px;
  color: #87eeff;
  background: #030509;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.boot-screen p {
  margin: 0;
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.34em;
}

.boot-mark {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.boot-mark span {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 18px currentColor;
  animation: boot-pulse 800ms ease-in-out infinite alternate;
}

.boot-mark span:nth-child(2) {
  animation-delay: 150ms;
}

.boot-mark span:nth-child(3) {
  animation-delay: 300ms;
}

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

.no-js .boot-screen {
  display: none;
}

.site-header,
.site-footer,
main {
  width: calc(100% - 64px);
  max-width: 1480px;
  margin-inline: auto;
}

main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.24em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(42, 142, 255, 0.3));
}

.system-state {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: #8f9db2;
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.state-pulse {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: state-pulse 1.8s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  align-items: center;
  min-height: 0;
  padding-block: clamp(48px, 7vh, 100px);
  overflow: hidden;
}

@supports (overflow: clip) {
  .hero {
    overflow: clip;
  }
}

.hero-copy {
  position: relative;
  z-index: 5;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  margin-bottom: 31px;
  color: #95a6be;
  font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.22em;
}

.eyebrow i {
  width: 26px;
  height: 1px;
  background: rgba(78, 233, 255, 0.55);
}

.eyebrow b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 22px;
  margin-left: 4px;
  color: #9fefff;
  font-size: 9px;
  border: 1px solid rgba(78, 233, 255, 0.28);
  border-radius: 100px;
}

h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(4rem, 8.2vw, 9.1rem);
  font-weight: 520;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

h1 > span {
  display: block;
}

.signal-word {
  display: inline;
}

.luminous-text {
  padding-right: 0.08em;
  color: transparent;
  background: linear-gradient(100deg, #f5f9ff 2%, #84d9ff 42%, #4f7cff 78%, #9d7dff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 30px rgba(50, 135, 255, 0.2));
}

.hero-intro {
  margin: 38px 0 0;
  color: #8b9ab0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.hero-intro strong {
  color: #d9e9ff;
  font-weight: 600;
}

.hero-action {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.signal-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  min-height: 52px;
  padding: 0 20px 0 22px;
  overflow: hidden;
  color: #eaf6ff;
  cursor: pointer;
  background: rgba(15, 33, 57, 0.65);
  border: 1px solid rgba(94, 184, 255, 0.32);
  border-radius: 4px;
  box-shadow: inset 0 0 30px rgba(30, 109, 255, 0.05);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 120ms ease;
}

.signal-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 10%, rgba(80, 220, 255, 0.18), transparent 90%);
  transform: translateX(-110%);
  transition: transform 550ms ease;
}

.signal-button:hover::before,
.signal-button:focus-visible::before {
  transform: translateX(110%);
}

.signal-button:hover,
.signal-button:focus-visible {
  border-color: rgba(78, 233, 255, 0.75);
  outline: none;
  box-shadow: 0 0 34px rgba(30, 125, 255, 0.16);
}

.signal-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms ease;
}

.signal-button:hover svg {
  transform: translateX(4px);
}

.private-status {
  max-width: 0;
  margin: 0;
  overflow: hidden;
  color: #6f7d91;
  white-space: nowrap;
  opacity: 0;
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.17em;
  transition: max-width 500ms ease, opacity 400ms ease;
}

.private-status span {
  color: #7deaff;
}

.signal-open .private-status {
  max-width: 280px;
  opacity: 1;
}

.signal-core {
  position: relative;
  justify-self: center;
  width: clamp(320px, min(38vw, 52vh), 610px);
  aspect-ratio: 1;
  perspective: 900px;
  transform-style: preserve-3d;
}

.core-shell,
.core-halo,
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.core-shell {
  display: grid;
  place-items: center;
  width: 35%;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(43, 130, 250, 0.17), rgba(4, 10, 20, 0.88)),
    rgba(7, 17, 33, 0.9);
  border: 1px solid rgba(93, 200, 255, 0.27);
  box-shadow:
    inset 0 0 40px rgba(44, 125, 255, 0.13),
    0 0 90px rgba(25, 114, 255, 0.22);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.core-shell img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: saturate(0.85) brightness(1.12) drop-shadow(0 0 15px rgba(40, 170, 255, 0.45));
}

.core-halo {
  width: 49%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(27, 109, 255, 0.2), transparent 67%);
  filter: blur(12px);
  animation: halo 3.8s ease-in-out infinite;
}

.orbit {
  border: 1px solid rgba(91, 168, 255, 0.16);
}

.orbit::before,
.orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  content: "";
  background: #5beaff;
  border-radius: 50%;
  box-shadow: 0 0 14px #3dbdff;
  transform: translateY(-50%);
}

.orbit::after {
  right: -2px;
  left: auto;
  width: 4px;
  height: 4px;
  opacity: 0.6;
}

.orbit-a {
  width: 58%;
  aspect-ratio: 1;
  animation: orbit-a 18s linear infinite;
}

.orbit-b {
  width: 78%;
  aspect-ratio: 1;
  border-style: dashed;
  opacity: 0.75;
  animation: orbit-b 31s linear infinite reverse;
}

.orbit-c {
  width: 98%;
  aspect-ratio: 1;
  opacity: 0.45;
  animation: orbit-c 42s linear infinite;
}

.orbit-c::after {
  display: none;
}

.signal-open .core-shell {
  transform: translate(-50%, -50%) scale(1.09) rotateY(8deg);
}

.signal-open .core-halo {
  filter: blur(4px);
}

.coordinate {
  position: absolute;
  color: rgba(134, 161, 199, 0.55);
  font: 500 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
}

.coordinate-a {
  top: 16%;
  right: 4%;
}

.coordinate-b {
  bottom: 16%;
  left: 1%;
}

.telemetry {
  position: relative;
  z-index: 4;
  padding-block: 24px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.telemetry-line {
  position: absolute;
  top: -1px;
  left: 0;
  width: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 12px rgba(78, 233, 255, 0.6);
  animation: telemetry-scan 7s ease-in-out infinite;
}

.telemetry dl {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1fr 0.65fr;
  gap: 28px;
  margin: 0;
}

.telemetry dl > div {
  display: grid;
  gap: 8px;
}

.telemetry dt,
.telemetry dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.telemetry dt {
  color: #536277;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.telemetry dd {
  color: #9aabc3;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  color: #4d5b6f;
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.footer-links a {
  color: #697991;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.access-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: rgba(5, 12, 23, 0.97);
  border: 1px solid rgba(92, 194, 255, 0.32);
  border-radius: 8px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.68), 0 0 60px rgba(29, 116, 255, 0.12);
}

.access-dialog::backdrop {
  background: rgba(1, 4, 10, 0.78);
  backdrop-filter: blur(12px);
}

.access-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 38px;
}

.access-kicker,
.access-form label,
.access-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.access-kicker {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.access-form h2 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 520;
  letter-spacing: -0.055em;
}

.access-form > p:not(.access-note) {
  margin: 0 0 8px;
  color: #8c9cb2;
  line-height: 1.55;
}

.access-form label {
  color: #91a4bd;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-form input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: #eaf6ff;
  caret-color: var(--cyan);
  background: rgba(10, 24, 42, 0.8);
  border: 1px solid rgba(117, 164, 218, 0.3);
  border-radius: 4px;
  outline: none;
  font: 500 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.access-form input:focus {
  border-color: rgba(78, 233, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(78, 233, 255, 0.08);
}

.access-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin-top: 4px;
  padding: 0 17px;
  color: #effaff;
  cursor: pointer;
  background: linear-gradient(100deg, rgba(23, 91, 198, 0.9), rgba(35, 145, 199, 0.72));
  border: 1px solid rgba(100, 218, 255, 0.42);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-submit svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.access-note {
  margin: 3px 0 0;
  color: #56677d;
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #7f91a9;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 25px;
  font-weight: 300;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--cyan);
  outline: none;
}

.footer-code {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.footer-code i {
  width: 3px;
  height: 3px;
  background: #2e7eff;
  border-radius: 50%;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}

.reveal-delay-1 { --delay: 120ms; }
.reveal-delay-2 { --delay: 220ms; }
.reveal-delay-core { --delay: 300ms; }
.reveal-delay-3 { --delay: 340ms; }
.reveal-delay-4 { --delay: 440ms; }

.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  padding: 12px 16px;
  color: #d9eeff;
  background: #0d1724;
  border: 1px solid #23496e;
}

.not-found {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-content: center;
  color: #dcecff;
  text-align: center;
  background: radial-gradient(circle, #0b1c35, #030509 66%);
}

.not-found p {
  color: #6f829d;
  font: 600 0.78rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
}

.not-found h1 {
  max-width: none;
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.not-found a {
  display: inline-block;
  margin-top: 1.5rem;
  color: #55ddff;
  font: 600 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes boot-pulse {
  to { opacity: 0.18; transform: scale(0.65); }
}

@keyframes state-pulse {
  50% { opacity: 0.32; box-shadow: 0 0 4px var(--cyan); }
}

@keyframes halo {
  50% { opacity: 0.45; transform: translate(-50%, -50%) scale(1.22); }
}

@keyframes orbit-a {
  to { transform: translate(-50%, -50%) rotate(360deg) rotateX(61deg); }
}

@keyframes orbit-b {
  from { transform: translate(-50%, -50%) rotate(0deg) rotateY(67deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) rotateY(67deg); }
}

@keyframes orbit-c {
  from { transform: translate(-50%, -50%) rotate(0deg) rotateX(73deg) rotateY(14deg); }
  to { transform: translate(-50%, -50%) rotate(360deg) rotateX(73deg) rotateY(14deg); }
}

@keyframes telemetry-scan {
  0%, 100% { left: 0; opacity: 0; }
  12%, 85% { opacity: 1; }
  90% { left: 88%; opacity: 0; }
}

@media (max-width: 980px) {
  :root { --header-height: 80px; }

  .site-header,
  .site-footer,
  main { width: calc(100% - 40px); max-width: 760px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 72px 44px;
  }

  .hero-copy { z-index: 5; }
  h1 { font-size: clamp(3.85rem, 13.5vw, 7.4rem); }

  .signal-core {
    position: absolute;
    top: 44%;
    right: -30%;
    z-index: 0;
    width: min(78vw, 560px);
    opacity: 0.55;
    transform: translateY(-50%);
  }

  .is-ready .signal-core { transform: translateY(-50%); }

  .telemetry dl { grid-template-columns: 1fr 1fr; row-gap: 22px; }
}

@media (max-width: 580px) {
  .site-header,
  .site-footer,
  main { width: calc(100% - 28px); }

  .brand span { font-size: 11px; }
  .system-state { font-size: 8px; letter-spacing: 0.13em; }

  .hero { padding-block: 64px 36px; }
  .eyebrow { gap: 8px; font-size: 8px; letter-spacing: 0.14em; }
  .eyebrow i { width: 14px; }
  h1 { width: 100%; font-size: clamp(2.8rem, 14vw, 4.6rem); line-height: 0.91; }
  .signal-word { display: block; }
  .hero-intro { margin-top: 30px; }
  .hero-action { align-items: flex-start; flex-direction: column; }
  .signal-core {
    top: 41%;
    right: -150px;
    left: auto;
    width: min(360px, 94vw);
    opacity: 0.36;
    transform: translateY(-50%);
  }
  .coordinate { display: none; }
  .telemetry dl { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .telemetry dd { font-size: 8px; }
  .access-form { padding: 32px 22px 24px; }
  .site-footer { flex-wrap: wrap; gap: 14px 20px; padding-block: 24px; }
  .footer-links { order: 3; width: 100%; margin-left: 0; }
}

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

  #signal-field { display: none; }
  .reveal { opacity: 1; transform: none; }
  .boot-screen { display: none; }
}
