:root {
  color-scheme: dark;
  --bg: #050607;
  --text: #f0f3f4;
  --muted: #a8b0b4;
  --line: rgba(230, 236, 239, 0.18);
  --line-bright: rgba(241, 246, 248, 0.52);
  --panel: rgba(7, 9, 10, 0.60);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(235, 242, 245, 0.22); }

.page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #050607;
}

.backdrop,
.backdrop__blur,
.backdrop__shade,
.backdrop__grid,
.backdrop__scanlines,
.backdrop__noise {
  position: fixed;
  inset: 0;
}
.backdrop { z-index: -2; overflow: hidden; background: #050607; }
.backdrop__blur {
  inset: -8%;
  background: url("assets/dark-moth.png") center / cover no-repeat;
  filter: blur(40px) grayscale(1) brightness(.25) contrast(1.2);
  opacity: .95;
  transform: scale(1.08);
}
.backdrop__mark {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 68%;
  width: min(54vw, 790px);
  max-height: 88vh;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: grayscale(1) contrast(1.13) brightness(.72);
  opacity: .76;
}
.backdrop__shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2,3,4,.96) 0%, rgba(2,3,4,.89) 34%, rgba(2,3,4,.36) 66%, rgba(2,3,4,.66) 100%),
    linear-gradient(0deg, rgba(2,3,4,.9) 0%, transparent 38%, rgba(2,3,4,.42) 100%),
    radial-gradient(circle at 68% 47%, transparent 0 20%, rgba(0,0,0,.18) 54%, rgba(0,0,0,.78) 100%);
}
.backdrop__grid {
  z-index: 3;
  opacity: .11;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 108px 108px;
  mask-image: linear-gradient(to right, black, transparent 72%);
  animation: grid-drift 22s linear infinite;
}
.backdrop__scanlines {
  z-index: 4;
  opacity: .10;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,.05) 4px, transparent 5px);
  animation: scan 14s linear infinite;
}
.backdrop__noise {
  z-index: 5;
  opacity: .075;
  pointer-events: none;
  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='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.58'/%3E%3C/svg%3E");
  animation: noise 260ms steps(2) infinite;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 27px clamp(22px, 4vw, 66px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(3,4,5,.76), transparent);
}
.brand { display: inline-flex; align-items: center; gap: 13px; width: fit-content; }
.brand-name {
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .32em;
  white-space: nowrap;
}
.brand-mark { position: relative; display: inline-flex; width: 30px; height: 18px; }
.brand-mark i { position: absolute; display: block; width: 18px; height: 1px; background: #c8d0d3; transform-origin: left center; }
.brand-mark i:nth-child(1) { left: 3px; top: 4px; transform: rotate(32deg); }
.brand-mark i:nth-child(2) { left: 3px; bottom: 4px; transform: rotate(-32deg); }
.brand-mark i:nth-child(3) { width: 12px; right: 0; top: 9px; }
.status,
.contact-link {
  color: #aeb5b8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.status { display: inline-flex; align-items: center; justify-self: center; gap: 9px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #d7e4dd; box-shadow: 0 0 13px rgba(215,228,221,.8); }
.contact-link { justify-self: end; display: inline-flex; align-items: center; gap: 10px; transition: color .25s ease; }
.contact-link:hover { color: #fff; }

.hero {
  position: relative;
  z-index: 8;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 350px);
  align-items: end;
  gap: clamp(34px, 7vw, 110px);
  padding: clamp(58px, 9vh, 108px) clamp(22px, 4vw, 66px) clamp(52px, 8vh, 86px);
}
.hero-copy { max-width: 800px; animation: rise .9s ease both; }
.eyebrow {
  margin: 0 0 22px;
  color: #b4bbbe;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
}
h1 {
  margin: 0;
  max-width: 850px;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(54px, 8.2vw, 122px);
  line-height: .82;
  font-weight: 300;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,.48);
}
h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(235,240,242,.72);
  text-stroke: 1px rgba(235,240,242,.72);
}
.summary {
  max-width: 650px;
  margin: 28px 0 0;
  color: #c4cacc;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.65;
  text-shadow: 0 2px 18px #000;
}
.actions { margin-top: 32px; display: flex; }
.button {
  min-height: 49px;
  padding: 0 19px;
  border: 1px solid #e6ebed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #e6ebed;
  color: #101214;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .18em;
  transition: background .25s, transform .25s;
}
.button:hover { transform: translateY(-2px); background: #fff; }

.system-card {
  align-self: end;
  border: 1px solid rgba(224,232,236,.2);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  animation: rise .9s ease .14s both;
}
.system-card__header {
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #aeb5b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: .16em;
}
.operational { display: inline-flex; align-items: center; gap: 7px; }
.operational i { width: 5px; height: 5px; border-radius: 50%; background: #d7e4dd; box-shadow: 0 0 10px #d7e4dd; }
.radar {
  position: relative;
  margin: 18px 18px 0;
  aspect-ratio: 1.7;
  overflow: hidden;
  border: 1px solid rgba(224,232,236,.13);
  background:
    radial-gradient(circle, transparent 0 24%, rgba(255,255,255,.08) 24.5% 25%, transparent 25.5% 49%, rgba(255,255,255,.07) 49.5% 50%, transparent 50.5%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    #090b0c;
  background-size: 100% 100%, 22px 22px, 22px 22px, auto;
}
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(255,255,255,.12); }
.radar::before { width: 1px; height: 100%; left: 50%; }
.radar::after { height: 1px; width: 100%; top: 50%; }
.radar-sweep {
  position: absolute;
  inset: -55%;
  background: conic-gradient(from 8deg, transparent 0 84%, rgba(219,228,232,.2) 92%, transparent 100%);
  animation: sweep 4.6s linear infinite;
}
.target { position: absolute; width: 5px; height: 5px; border: 1px solid #d5dee1; transform: rotate(45deg); box-shadow: 0 0 10px rgba(220,231,235,.5); }
.target--1 { left: 63%; top: 28%; }
.target--2 { left: 38%; top: 61%; }
.target--3 { left: 78%; top: 68%; }
dl { margin: 14px 18px 18px; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(224,232,236,.1); }
dt, dd { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
dt { color: #737b7f; }
dd { color: #d1d7d9; }

.footer {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(22px, 4vw, 66px) 25px;
  border-top: 1px solid var(--line);
  color: #747c80;
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.footer p { margin: 0; }

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes scan { to { transform: translateY(20px); } }
@keyframes grid-drift { to { background-position: 108px 108px, 108px 108px; } }
@keyframes noise {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1%,1%); }
  50% { transform: translate(1%,-1%); }
  75% { transform: translate(1%,1%); }
  100% { transform: translate(-1%,-1%); }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .status { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .system-card { display: none; }
  .backdrop__mark { left: 72%; width: min(78vw, 720px); opacity: .52; }
}

@media (max-width: 620px) {
  .topbar { padding: 22px 18px; }
  .contact-link { font-size: 0; }
  .contact-link span { font-size: 14px; }
  .hero { padding: 62px 18px 62px; }
  .eyebrow { font-size: 9px; line-height: 1.5; }
  h1 { font-size: clamp(48px, 15.8vw, 82px); line-height: .86; }
  .summary { max-width: 92%; }
  .button { width: 100%; }
  .footer { align-items: flex-start; flex-direction: column; padding: 18px 18px 24px; line-height: 1.5; }
  .backdrop__mark { left: 62%; top: 42%; width: 110vw; opacity: .35; }
  .backdrop__shade {
    background:
      linear-gradient(90deg, rgba(2,3,4,.95), rgba(2,3,4,.62)),
      linear-gradient(0deg, rgba(2,3,4,.9) 0%, transparent 45%, rgba(2,3,4,.42) 100%);
  }
}

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