:root {
  --bg: #08040f;
  --bg-soft: #10071b;
  --panel: rgba(24, 12, 39, 0.72);
  --panel-solid: #170b28;
  --line: rgba(185, 139, 255, 0.18);
  --text: #f6f1ff;
  --muted: #b9adc9;
  --purple: #a855f7;
  --purple-light: #d8b4fe;
  --green: #5ee2a0;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(126, 34, 206, 0.24), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(76, 29, 149, 0.18), transparent 28%),
    var(--bg);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

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

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .27;
  background-image:
    linear-gradient(rgba(185, 139, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 139, 255, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 18px auto 0;
  min-height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(8, 4, 15, 0.76);
  backdrop-filter: blur(18px);
  border-radius: 16px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -.02em;
}

.brand strong { color: var(--purple-light); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(216, 180, 254, .4);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(168, 85, 247, .25), rgba(91, 33, 182, .08));
  font-size: 12px;
  color: var(--purple-light);
}

.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.site-nav a:hover { color: var(--text); }

.nav-contact {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-button { display: none; }

main,
footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 70px;
  align-items: center;
  padding: 80px 0 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
  line-height: 1.04;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(54px, 8vw, 96px);
}

h1 span {
  color: transparent;
  background: linear-gradient(90deg, #d8b4fe, #8b5cf6 60%, #6d28d9);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-text {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

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

.button.primary {
  color: #11051e;
  background: var(--purple-light);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}

.hero-panel {
  position: relative;
  min-height: 500px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(126, 34, 206, .22), transparent 48%),
    var(--panel);
  box-shadow: 0 30px 100px rgba(0,0,0,.32);
}

.panel-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--green);
}

.panel-code { color: var(--purple-light); }

.signal {
  position: relative;
  height: 325px;
  display: grid;
  place-items: center;
}

.signal-core {
  z-index: 2;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(216,180,254,.46);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.42), rgba(76,29,149,.12) 58%, transparent 65%);
  color: var(--purple-light);
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 0 80px rgba(168,85,247,.18);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(216,180,254,.15);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--purple);
}

.orbit-one { width: 180px; height: 180px; }
.orbit-two { width: 245px; height: 245px; animation-duration: 25s; animation-direction: reverse; }
.orbit-three { width: 305px; height: 305px; animation-duration: 33s; }

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

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.panel-grid div {
  min-height: 62px;
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel-grid span,
.panel-grid strong {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
}

.panel-grid span { color: var(--muted); }
.panel-grid strong { margin-top: 6px; color: var(--green); }

.section {
  padding: 105px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: end;
  gap: 30px;
  margin-bottom: 48px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  min-height: 265px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(31,15,51,.75), rgba(15,7,25,.55));
}

.card-number {
  color: var(--purple-light);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
}

.card h3 {
  margin: 42px 0 12px;
  font-size: 29px;
}

.card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.card-status {
  position: absolute;
  bottom: 24px;
  left: 26px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.service-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

.service-purpose { color: var(--muted); }

.service-state {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.service-state.live {
  color: var(--green);
  background: rgba(94,226,160,.08);
}

.service-state.planned {
  color: var(--purple-light);
  background: rgba(168,85,247,.1);
}

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

footer {
  min-height: 110px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

@media (max-width: 820px) {
  .site-header { margin-top: 10px; }

  .menu-button {
    display: grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 0;
    border-radius: 10px;
    color: white;
    background: rgba(255,255,255,.04);
  }

  .menu-button span:not(.sr-only) {
    width: 19px;
    height: 1px;
    background: currentColor;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0d0714;
  }

  .site-nav.open { display: flex; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 85px 0;
  }

  .hero-panel { min-height: 460px; }

  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .service-row {
    grid-template-columns: 1fr auto;
    gap: 8px 18px;
    padding: 18px 0;
  }

  .service-purpose {
    grid-row: 2;
    grid-column: 1;
  }

  .service-state {
    grid-row: 1;
    grid-column: 2;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .brand { font-size: 14px; }
  .hero-panel { min-height: 420px; padding: 16px; }
  .signal { height: 280px; transform: scale(.9); }
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .button { width: 100%; }
}
