:root {
  --bg: #05080d;
  --bg-deep: #020407;
  --bg-mid: #07111b;
  --text: #edf0f3;
  --muted: #b5bfca;
  --muted-dark: #748292;
  --accent: #55b6d6;
  --accent-soft: #327f9d;
  --accent-bright: #7bd8ff;
  --line: rgba(109, 180, 214, 0.18);
  --line-soft: rgba(109, 180, 214, 0.085);
  --grid: rgba(91, 171, 214, 0.14);
  --content: 88rem;
  --pad: clamp(1.15rem, 4vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  min-width: 20rem;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 42%, rgba(20, 39, 60, 0.24), transparent 33%),
    radial-gradient(circle at 52% 86%, rgba(18, 37, 56, 0.12), transparent 25%),
    linear-gradient(180deg, #060a10 0%, #04080d 55%, #020407 100%);
}

img { max-width: 100%; }
a { color: inherit; }

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, transparent 0%, rgba(88, 143, 179, 0.02) 48%, rgba(88, 143, 179, 0.04) 50%, rgba(88, 143, 179, 0.02) 52%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(255,255,255,0.004) 75px, transparent 76px 150px),
    repeating-linear-gradient(180deg, transparent 0 68px, rgba(255,255,255,0.003) 69px, transparent 70px 138px);
  opacity: .55;
  pointer-events: none;
}

.atmosphere,
.atmosphere > * {
  position: absolute;
  pointer-events: none;
}

.atmosphere {
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.bg-veil {
  inset: 0;
  background:
    radial-gradient(circle at 20% 78%, rgba(66, 145, 194, 0.15), transparent 22%),
    radial-gradient(circle at 84% 84%, rgba(54, 125, 171, 0.14), transparent 19%),
    radial-gradient(circle at 50% 48%, rgba(88, 182, 214, 0.03), transparent 37%);
  animation: breathe-veil 12s ease-in-out infinite alternate;
}

.nebula {
  border-radius: 50%;
  filter: blur(5rem);
  opacity: .16;
  animation: nebula-float 12s ease-in-out infinite alternate;
}

.nebula-a {
  left: -18rem;
  bottom: -14rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(77, 175, 224, 0.7), rgba(77, 175, 224, 0));
}

.nebula-b {
  right: -18rem;
  bottom: -18rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(45, 112, 163, 0.7), rgba(45, 112, 163, 0));
  animation-delay: -5s;
}

.planet-glow {
  left: clamp(-35rem, -30vw, -20rem);
  bottom: clamp(-35rem, -31vw, -22rem);
  width: clamp(39rem, 70vw, 78rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 58% 38%, rgba(150, 221, 255, 0.1), rgba(50, 126, 179, 0.02) 45%, transparent 68%);
  filter: blur(2rem);
  opacity: .6;
}

.planet {
  left: clamp(-34rem, -30vw, -19rem);
  bottom: clamp(-34rem, -31vw, -20rem);
  width: clamp(38rem, 68vw, 76rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(131, 211, 245, 0.18);
  box-shadow:
    0 0 1.2rem rgba(126, 211, 255, 0.18),
    0 0 6rem rgba(47, 143, 196, 0.11),
    inset 0 0 5rem rgba(56, 132, 178, 0.03);
  animation: planet-float 16s ease-in-out infinite alternate;
}

.planet::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border-top: 2px solid rgba(221, 247, 255, 0.8);
  border-right: 1px solid transparent;
  filter: drop-shadow(0 0 .75rem rgba(123, 216, 255, 0.85));
  transform: rotate(-35deg);
  opacity: .92;
}

.planet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 61% 41%, rgba(220, 246, 255, 0.04), transparent 28%);
}

.arc {
  border: 1px solid var(--line);
  border-radius: 50%;
}

.arc-a {
  right: -23rem;
  bottom: -26rem;
  width: 50rem;
  aspect-ratio: 1;
}

.arc-b {
  right: -18rem;
  bottom: -21rem;
  width: 41rem;
  aspect-ratio: 1;
  opacity: .42;
}

.grid-block {
  opacity: .42;
}

.grid-left::before,
.grid-right::before {
  content: "";
  position: absolute;
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 2rem rgba(85, 182, 214, 0.03);
}

.grid-left::after,
.grid-right::after {
  content: "";
  position: absolute;
  background-image: radial-gradient(circle, rgba(85, 182, 214, 0.36) 1px, transparent 1.4px);
  background-size: 1rem 1rem;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
  opacity: .36;
}

.grid-left::before {
  left: 5vw;
  top: 21vh;
  width: 15rem;
  height: 14rem;
  border-top: none;
  border-right: none;
}

.grid-left::after {
  left: 0;
  bottom: 5vh;
  width: 15rem;
  height: 12rem;
}

.grid-right::before {
  right: 4vw;
  top: 16vh;
  width: 13rem;
  height: 23rem;
  border-bottom: none;
  border-left: none;
}

.grid-right::after {
  right: 2vw;
  bottom: 4vh;
  width: 14rem;
  height: 11rem;
}

.trace {
  opacity: .75;
}

.trace-left {
  left: 4vw;
  top: 41vh;
  width: 14rem;
  height: 12rem;
}

.trace-left::before,
.trace-left::after,
.trace-top::before,
.trace-top::after,
.trace-right::before,
.trace-right::after {
  content: "";
  position: absolute;
}

.trace-left::before {
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 28%, rgba(85,182,214,.22) 28% 28.6%, transparent 28.6% 48%, rgba(85,182,214,.22) 48% 48.6%, transparent 48.6% 100%);
  mask: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.trace-left::after {
  left: .1rem;
  top: .5rem;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    10rem 6rem 0 -1px rgba(85,182,214,.9),
    14rem 9.2rem 0 -1px rgba(85,182,214,.9),
    0 0 .7rem rgba(85,182,214,.5);
}

.trace-top {
  right: 4vw;
  top: 4.7rem;
  width: min(31vw, 28rem);
  height: 4.2rem;
}

.trace-top::before {
  inset: 0;
  border-top: 1px solid var(--line);
  clip-path: polygon(0 18%, 26% 18%, 34% 78%, 56% 78%, 63% 100%, 100% 100%, 100% 104%, 0 104%);
}

.trace-top::after {
  right: 34%;
  bottom: 0;
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  box-shadow: 0 0 .85rem rgba(123,216,255,.8);
  animation: glint-slide 6s ease-in-out infinite;
}

.trace-right {
  right: 4.2vw;
  top: 18vh;
  width: 2rem;
  height: 42vh;
}

.trace-right::before {
  right: .55rem;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(85,182,214,.28), rgba(85,182,214,.12), transparent);
}

.trace-right::after {
  right: .25rem;
  top: 44%;
  width: .42rem;
  height: .42rem;
  border-radius: .05rem;
  background: var(--accent);
  box-shadow:
    0 1.2rem 0 0 rgba(85,182,214,.95),
    0 2.4rem 0 0 rgba(85,182,214,.8),
    0 0 .85rem rgba(85,182,214,.55);
  animation: node-drift 5.6s ease-in-out infinite;
}

.star {
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: rgba(123, 216, 255, 0.95);
  box-shadow: 0 0 1rem rgba(123, 216, 255, 0.75), 0 0 2rem rgba(85, 182, 214, 0.25);
  animation: twinkle 4s ease-in-out infinite;
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(190, 241, 255, 0.85);
  border-radius: 999px;
}

.star::before {
  width: 2.2rem;
  height: 1px;
  opacity: .45;
}

.star::after {
  width: 1px;
  height: 2.2rem;
  opacity: .35;
}

.star-a { right: 15vw; top: 17vh; animation-delay: -1s; }
.star-b { right: 12vw; bottom: 13vh; animation-delay: -2.5s; }
.star-c { left: 50%; bottom: 19vh; animation-delay: -1.8s; }
.star-d { left: 6vw; bottom: 18vh; animation-delay: -3s; opacity: .45; }

.scan {
  left: -8%;
  right: -8%;
  height: 10rem;
  opacity: .08;
  background: linear-gradient(to bottom, transparent, rgba(92, 195, 237, 0.22), transparent);
  filter: blur(1.35rem);
}

.scan-a {
  top: -12rem;
  animation: scan-a 14s linear infinite;
}

.scan-b {
  bottom: -12rem;
  opacity: .04;
  transform: rotate(180deg);
  animation: scan-b 17s linear infinite;
}

.grain {
  inset: 0;
  opacity: .026;
  background-image:
    radial-gradient(circle at 24% 22%, #fff .35px, transparent .55px),
    radial-gradient(circle at 68% 66%, #fff .35px, transparent .55px),
    radial-gradient(circle at 48% 48%, rgba(255,255,255,.9) .25px, transparent .45px);
  background-size: 7rem 7rem, 9rem 9rem, 11rem 11rem;
  animation: grain 17s steps(2) infinite;
}

.site-header,
.hero,
.site-footer {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: clamp(1.25rem, 4vh, 3.2rem);
}

.brand {
  display: block;
  width: clamp(13rem, 25vw, 23rem);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 1.4rem rgba(85, 182, 214, 0.08));
}

.status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: .65rem;
  color: var(--muted);
  font-size: clamp(.65rem, .85vw, .82rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(calc(100% + .75rem), -50%);
  width: clamp(6rem, 12vw, 12rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(85, 182, 214, .15), rgba(255,255,255,.92), rgba(85,182,214,.12));
  box-shadow: 0 0 .75rem rgba(123,216,255,.35);
}

.status__pulse {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 .65rem var(--accent), 0 0 1.2rem rgba(85, 182, 214, .4);
  animation: pulse-dot 2.8s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(35rem, 74svh, 58rem);
  padding-top: clamp(3rem, 8vh, 7rem);
  padding-bottom: clamp(8rem, 18vh, 13rem);
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  animation: reveal 1.15s cubic-bezier(.2,.75,.25,1) both;
}

.kicker {
  margin: 0 0 clamp(1rem, 2vh, 1.6rem);
  color: var(--muted-dark);
  font-size: clamp(.67rem, .85vw, .82rem);
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.85rem, 7.6vw, 7.1rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
  text-shadow: 0 0 1.6rem rgba(255,255,255,.04);
}

h1 > span { display: block; }

.accent {
  color: var(--accent-bright);
  text-shadow: 0 0 1.1rem rgba(85, 182, 214, .48);
}

.signal-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 1rem;
  margin: clamp(1.7rem, 4vh, 2.8rem) auto clamp(1.35rem, 3vh, 2.1rem);
}

.signal-mark span {
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-bright);
  box-shadow: 0 0 .75rem rgba(85, 182, 214, .55);
  animation: signal 4s ease-in-out infinite;
}

.intro {
  margin: 0;
  color: #c7d0d8;
  font-size: clamp(.92rem, 1.55vw, 1.35rem);
  font-weight: 300;
  letter-spacing: clamp(.12em, .42vw, .28em);
  line-height: 1.6;
}

.hero__frame {
  position: absolute;
  inset: clamp(2.5rem, 7vw, 6rem) var(--pad) clamp(4rem, 9vh, 7rem);
  opacity: .48;
}

.corner {
  position: absolute;
  width: clamp(3rem, 7vw, 6rem);
  height: clamp(3rem, 7vw, 6rem);
  border-color: var(--line-soft);
  border-style: solid;
}

.corner--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner--br { right: 0; bottom: 0; border-width: 0 1px 1px 0; }

.radar {
  position: absolute;
  left: 50%;
  bottom: clamp(4.2rem, 9vh, 6.6rem);
  width: 8rem;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.radar > span {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar__core {
  width: .48rem;
  height: .48rem;
  background: var(--accent-bright);
  box-shadow: 0 0 .7rem var(--accent), 0 0 1.5rem rgba(85, 182, 214, .34);
  animation: pulse-core 2.8s ease-in-out infinite;
}

.radar__ring {
  border: 1px solid rgba(85, 182, 214, .14);
  opacity: 0;
  animation: radar 4.5s ease-out infinite;
}

.radar__ring--1 { width: 2.4rem; height: 2.4rem; }
.radar__ring--2 { width: 4.2rem; height: 4.2rem; animation-delay: 1.5s; }
.radar__ring--3 { width: 6.2rem; height: 6.2rem; animation-delay: 3s; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.85rem, 2vw, 1.7rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.footer-label {
  color: var(--accent);
  font-size: clamp(.65rem, .9vw, .82rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-line {
  position: relative;
  width: clamp(3.5rem, 12vw, 10rem);
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(215,235,245,.35));
}

.footer-line--reverse {
  background: linear-gradient(90deg, rgba(215,235,245,.35), transparent);
}

.footer-line::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  filter: drop-shadow(0 0 .45rem var(--accent));
  animation: sweep 5s ease-in-out infinite;
}

.footer-line--reverse::after { animation-delay: -2.5s; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(1.1rem); filter: blur(.3rem); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: .65; box-shadow: 0 0 .5rem var(--accent); }
  50% { opacity: 1; box-shadow: 0 0 .85rem var(--accent), 0 0 1.4rem rgba(85, 182, 214, .44); }
}

@keyframes pulse-core {
  0%, 100% { opacity: .65; transform: translate(-50%, -50%) scale(.9); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes radar {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  18% { opacity: .46; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); }
}

@keyframes signal {
  0%, 100% { opacity: .65; transform: scaleX(.75); }
  50% { opacity: 1; transform: scaleX(1.12); }
}

@keyframes sweep {
  0% { left: -45%; opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

@keyframes scan-a {
  from { transform: translateY(-12vh); }
  to { transform: translateY(130vh); }
}

@keyframes scan-b {
  from { transform: rotate(180deg) translateY(-5vh); }
  to { transform: rotate(180deg) translateY(120vh); }
}

@keyframes grain {
  0% { transform: translate(0); }
  25% { transform: translate(-.4rem, .25rem); }
  50% { transform: translate(.25rem, -.3rem); }
  75% { transform: translate(.35rem, .3rem); }
  100% { transform: translate(0); }
}

@keyframes nebula-float {
  from { transform: translate3d(0,0,0) scale(.96); opacity: .13; }
  to { transform: translate3d(1rem,-1rem,0) scale(1.05); opacity: .18; }
}

@keyframes planet-float {
  from { transform: translate3d(-.6rem, .4rem, 0) rotate(-1deg); }
  to { transform: translate3d(1rem, -1rem, 0) rotate(1deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: .32; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes glint-slide {
  0%, 100% { transform: translateX(0); opacity: .5; }
  50% { transform: translateX(2rem); opacity: 1; }
}

@keyframes node-drift {
  0%, 100% { transform: translateY(0); opacity: .72; }
  50% { transform: translateY(-.25rem); opacity: 1; }
}

@keyframes breathe-veil {
  from { opacity: .85; }
  to { opacity: 1; }
}

@media (max-width: 46rem) {
  .site-header {
    align-items: center;
  }

  .brand { width: clamp(12.5rem, 48vw, 17rem); }

  .status {
    font-size: .62rem;
    letter-spacing: .16em;
  }

  .status::before,
  .trace-top,
  .trace-right {
    display: none;
  }

  .hero {
    min-height: 72svh;
    padding-top: 4.2rem;
    padding-bottom: 8.5rem;
  }

  .kicker { letter-spacing: .24em; }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.5rem);
    line-height: 1.02;
  }

  .intro {
    max-width: 26rem;
    margin-inline: auto;
    letter-spacing: .12em;
  }

  .planet,
  .planet-glow {
    left: -31rem;
    bottom: -26rem;
    width: 45rem;
  }

  .grid-left::before,
  .grid-right::before {
    opacity: .7;
  }

  .grid-right::after,
  .grid-left::after {
    opacity: .18;
  }

  .arc-a, .arc-b { opacity: .38; }
}

@media (max-width: 31rem) {
  .site-header {
    align-items: flex-start;
    gap: 1rem;
  }

  .brand { width: 12.2rem; }

  .status {
    margin-top: .3rem;
    font-size: .57rem;
  }

  .hero { padding-top: 3rem; }

  .hero__frame {
    inset-inline: .8rem;
    opacity: .32;
  }

  .trace-left,
  .star-d,
  .grid-left::before {
    opacity: .4;
  }

  .site-footer { gap: .7rem; }
  .footer-label { letter-spacing: .25em; }
}

@media (max-height: 44rem) and (min-width: 47rem) {
  .site-header { padding-top: 1rem; }
  .brand { width: 15rem; }
  .hero {
    min-height: 31rem;
    padding-top: 2rem;
    padding-bottom: 7rem;
  }
  .kicker { margin-bottom: .8rem; }
  h1 { font-size: clamp(3rem, 7vw, 5.2rem); }
  .signal-mark { margin-block: 1.25rem 1rem; }
  .radar { bottom: 2.8rem; }
}

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