:root {
  --bg-0: #0b0016;
  --bg-1: #120022;
  --bg-2: #1b0a2d;
  --bg-3: #281341;
  --line: #3f2360;
  --text-1: #f2ecff;
  --text-2: #bfafdc;
  --text-3: #927eb8;
  --accent: #6ea8ff;
  --accent-2: #4b7fff;
  --glow-x: 50vw;
  --glow-y: 30vh;
}

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

html {
  scroll-behavior: smooth;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #4a2a72 #160326;
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: #160326;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5a3390, #3a2362);
  border: 2px solid #160326;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6f44ab, #4a2d7a);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, #21043d 0%, var(--bg-0) 43%, #080010 100%);
  color: var(--text-1);
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 72% 20%, rgba(110, 168, 255, 0.15), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(98, 32, 151, 0.2), transparent 35%);
  z-index: -3;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.2;
  background-image: linear-gradient(rgba(191, 175, 220, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 175, 220, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 25%, black 30%, transparent 90%);
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--glow-x) var(--glow-y), rgba(75, 127, 255, 0.18), transparent 55%);
  transition: background 0.15s ease;
}

.site-header {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 1.25rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 0, 34, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0.75rem;
  z-index: 20;
}

.brand {
  color: var(--text-1);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.site-nav {
  display: flex;
  gap: 0.9rem;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-1);
  background: rgba(75, 127, 255, 0.14);
}

main {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 1.5rem auto 3.5rem;
  display: grid;
  gap: 1.4rem;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 10, 45, 0.8), rgba(12, 1, 23, 0.9));
  padding: 1.6rem clamp(1rem, 1.8vw, 1.8rem);
  box-shadow: 0 18px 44px rgba(2, 0, 6, 0.5);
}

.private-launch-panel {
  position: relative;
  overflow: hidden;
}

.private-launch-copy {
  margin: 0.45rem 0 0;
  color: var(--text-2);
}

.private-launch-grid {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.launch-tile {
  text-decoration: none;
  color: var(--text-1);
  border: 1px solid rgba(88, 134, 212, 0.5);
  border-radius: 13px;
  padding: 0.72rem 0.8rem;
  background:
    linear-gradient(165deg, rgba(26, 11, 45, 0.94), rgba(10, 3, 19, 0.97)),
    linear-gradient(145deg, rgba(110, 168, 255, 0.22), rgba(53, 98, 198, 0));
  box-shadow: inset 0 1px 0 rgba(186, 215, 255, 0.12);
  display: grid;
  gap: 0.45rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.launch-tile:hover,
.launch-tile:focus-visible {
  transform: translateY(-2px);
  border-color: #79b2ff;
  box-shadow: 0 10px 24px rgba(6, 0, 16, 0.46), inset 0 1px 0 rgba(186, 215, 255, 0.2);
}

.launch-tile-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.launch-favicon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(102, 147, 223, 0.55);
  background: rgba(7, 8, 26, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.launch-favicon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.launch-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.launch-url {
  color: var(--text-3);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: reveal-up 700ms ease both;
}

.eyebrow,
.panel-kicker {
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: var(--accent);
  letter-spacing: 0.11em;
  font-size: 0.79rem;
  margin: 0;
}

h1 {
  margin: 0.55rem 0 0.8rem;
  font-size: clamp(1.9rem, 5vw, 3.45rem);
  line-height: 1.14;
}

.hero-copy {
  margin: 0;
  max-width: 72ch;
  color: var(--text-2);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
}

.cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  text-decoration: none;
  border-radius: 10px;
  padding: 0.62rem 0.92rem;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.btn.primary {
  color: #07132d;
  background: linear-gradient(135deg, var(--accent), #99c2ff);
}

.btn.ghost {
  color: var(--text-1);
  border-color: var(--line);
  background: rgba(19, 3, 32, 0.6);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.status-strip {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  background: rgba(35, 13, 56, 0.64);
}

.tile-label {
  display: block;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.74rem;
  color: var(--text-3);
}

.tile-value {
  display: block;
  margin-top: 0.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.panel-head h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.about-grid,
.project-grid,
.systems-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.systems-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spec-groups {
  margin-top: 1rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.project-card,
.system-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0.92rem 0.94rem;
  background: rgba(24, 7, 39, 0.74);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover,
.project-card:hover,
.system-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
}

.card h3,
.project-card h3,
.system-card h3 {
  margin: 0;
}

.card p,
.project-card p,
.system-card p,
.section-copy {
  margin: 0.45rem 0 0;
  color: var(--text-2);
}

.project-card a,
.system-card a,
.social-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.project-card a:hover,
.system-card a:hover,
.social-list a:hover {
  color: #9cc2ff;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto 2.1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--text-3);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.84rem;
}

.systems-list {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-2);
}

.systems-list li + li {
  margin-top: 0.25rem;
}

.spec-cluster {
  margin: 0.65rem 0 0;
  display: grid;
  gap: 0.36rem;
  grid-template-columns: 1fr;
}

.spec-disclosure {
  margin-top: 0.7rem;
}

.spec-disclosure > summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-1);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  background: rgba(18, 2, 30, 0.85);
}

.spec-disclosure > summary::-webkit-details-marker {
  display: none;
}

.spec-disclosure > summary::before {
  content: "▸ ";
  color: var(--accent);
}

.spec-disclosure[open] > summary::before {
  content: "▾ ";
}

.spec-disclosure > .spec-cluster {
  margin-top: 0.45rem;
}

.spec-link {
  width: 100%;
  text-align: left;
  color: var(--text-1);
  background: rgba(16, 3, 28, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.76rem;
  cursor: pointer;
}

.spec-link:hover,
.spec-link:focus-visible {
  border-color: var(--accent-2);
  color: #dce9ff;
}

.spec-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.spec-modal.is-open {
  display: block;
}

.spec-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 0, 9, 0.74);
  backdrop-filter: blur(5px);
}

.spec-modal-panel {
  position: relative;
  width: min(1200px, calc(100% - 1.6rem));
  margin: 1rem auto;
  height: calc(100vh - 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 1, 23, 0.96);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spec-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.spec-modal-head h3 {
  margin: 0;
  font-size: 1rem;
}

.spec-modal-close {
  border: 1px solid var(--line);
  background: rgba(34, 11, 53, 0.84);
  color: var(--text-1);
  border-radius: 8px;
  padding: 0.3rem 0.62rem;
  font-family: "IBM Plex Mono", Consolas, monospace;
  cursor: pointer;
}

.spec-modal-close:hover,
.spec-modal-close:focus-visible {
  border-color: var(--accent-2);
}

.spec-modal-body {
  width: 100%;
  flex: 1;
  background: #0d0018;
  overflow: auto;
  padding: 0.9rem;
}

.spec-loading {
  margin: 0;
  color: var(--text-2);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.86rem;
}

.spec-loading.is-hidden {
  display: none;
}

.spec-content {
  display: grid;
  gap: 0.85rem;
}

.spec-category {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 5, 35, 0.78);
  padding: 0.8rem;
}

.spec-category h4 {
  margin: 0;
  font-size: 0.96rem;
}

.spec-cards {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 3, 28, 0.9);
  min-height: 130px;
  padding: 0.6rem 0.65rem;
  position: relative;
  overflow: hidden;
}

.spec-card-title {
  margin: 0;
  font-size: 0.86rem;
}

.spec-card-title-link {
  color: var(--text-1);
  text-decoration: underline;
  text-decoration-color: rgba(110, 168, 255, 0.65);
  text-underline-offset: 2px;
}

.spec-card-title-link:hover {
  color: #cfe2ff;
  text-decoration-color: #8bb8ff;
}

.spec-image {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 104px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 0;
  pointer-events: none;
  opacity: 0.66;
  mix-blend-mode: normal;
}

.spec-image img {
  display: block;
  width: 104px;
  max-width: 104px;
  height: auto;
  object-fit: contain;
}

.spec-card > :not(.spec-image) {
  position: relative;
  z-index: 1;
}

.spec-card-lines {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: var(--text-2);
}

.spec-card-lines li + li {
  margin-top: 0.2rem;
}

.spec-links-inline {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.spec-links-inline a {
  color: var(--accent);
  text-decoration: none;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.74rem;
}

.spec-links-inline a:hover {
  color: #a7cbff;
}

.spec-line-label {
  font-weight: 700;
  color: #efe6ff;
}

.spec-line-value {
  color: var(--text-2);
}

.spec-volume-grid {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.spec-volume-row {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.7fr;
  gap: 0.45rem;
  padding: 0.34rem 0.5rem;
  border-top: 1px solid rgba(63, 35, 96, 0.8);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.76rem;
}

.spec-volume-row:first-child {
  border-top: 0;
}

.spec-volume-head {
  background: rgba(34, 11, 53, 0.84);
  color: #e8dcff;
  font-weight: 700;
}

.spec-volume-cell {
  color: var(--text-2);
}

.spec-error {
  margin: 0;
  color: #ffc6c6;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.visible {
  animation: reveal-up 580ms ease forwards;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .about-grid,
  .systems-grid,
  .spec-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .private-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .spec-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .project-grid,
  .about-grid,
  .systems-grid,
  .spec-groups {
    grid-template-columns: 1fr;
  }

  .private-launch-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .panel {
    padding: 1.15rem 0.9rem;
  }
}
