:root {
  --red: #C90219;
  --orange: #F07202;
  --yellow: #F4C313;
  --green: #29A686;
  --blue: #0069D5;
  --violet: #3B098A;
  --void: #07080B;
  --panel: #11141B;
  --panel-2: #171B24;
  --ink: #F5F0E2;
  --muted: #A8ADB8;
  --line: rgba(245, 240, 226, 0.18);
  --tilt-x: 0;
  --tilt-y: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% 12%, rgba(0, 105, 213, 0.18), transparent 28rem),
    radial-gradient(circle at 14% 82%, rgba(59, 9, 138, 0.22), transparent 34rem),
    linear-gradient(135deg, #050609, var(--void) 48%, #0D1018);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(245, 240, 226, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 226, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr);
  gap: 14px;
  transform: translateX(-50%);
}

.brand,
.site-nav {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.brand {
  text-decoration: none;
}

.logo-placeholder {
  display: grid;
  min-width: 136px;
  place-items: center;
  border-radius: 30px 0 0 30px;
  background: var(--orange);
  color: #050609;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name {
  display: grid;
  min-width: 0;
  flex: 1;
  place-items: center start;
  padding: 0 22px;
  border-left: 8px solid var(--void);
  border-radius: 0 30px 30px 0;
  background: var(--yellow);
  color: #050609;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  justify-content: end;
  gap: 8px;
}

.site-nav a {
  display: grid;
  min-width: 92px;
  min-height: 54px;
  place-items: center;
  border-radius: 26px;
  background: var(--panel-2);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:nth-child(1) {
  background: var(--red);
}

.site-nav a:nth-child(2) {
  background: var(--green);
}

.site-nav a:nth-child(3) {
  background: var(--blue);
}

.site-nav a:nth-child(4) {
  background: var(--violet);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  outline: none;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(76svh, 640px);
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
  gap: 24px;
  align-items: center;
  padding: 118px max(24px, calc((100vw - 1180px) / 2)) 42px;
}

.hero::before {
  position: absolute;
  inset: 96px max(16px, calc((100vw - 1220px) / 2)) 24px;
  z-index: 0;
  content: "";
  border: 1px solid var(--line);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(17, 20, 27, 0.72), rgba(7, 8, 11, 0.26));
  box-shadow: inset 0 0 0 12px rgba(245, 240, 226, 0.025);
}

.lcars-backplane {
  position: absolute;
  z-index: 1;
  inset: 17% -18% auto auto;
  width: min(58vw, 780px);
  height: 56vh;
  transform:
    perspective(1000px)
    rotateX(calc(48deg + (var(--tilt-y) * 0.7deg)))
    rotateZ(calc(-14deg + (var(--tilt-x) * 0.7deg)));
  transform-origin: 58% 48%;
  transform-style: preserve-3d;
  filter: drop-shadow(0 34px 30px rgba(0, 0, 0, 0.58));
}

.system-rail {
  position: absolute;
  left: 0;
  height: 46px;
  opacity: 0;
  border-radius: 999px 0 0 999px;
  background: var(--rail-color);
  box-shadow:
    0 10px 0 rgba(0, 0, 0, 0.32),
    0 24px 26px rgba(0, 0, 0, 0.34);
  animation:
    railLaunch 760ms cubic-bezier(0.12, 0.88, 0.28, 1) both,
    railPulse 7s ease-in-out 980ms infinite;
}

.system-rail::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 46%, rgba(0, 0, 0, 0.32));
  mix-blend-mode: soft-light;
}

.rail-one {
  --rail-color: var(--red);
  top: 0;
  width: 94%;
  transform: translateZ(120px);
}

.rail-two {
  --rail-color: var(--orange);
  top: 58px;
  left: 9%;
  width: 92%;
  transform: translateZ(82px);
  animation-delay: 70ms, 1050ms;
}

.rail-three {
  --rail-color: var(--yellow);
  top: 116px;
  left: 2%;
  width: 86%;
  transform: translateZ(44px);
  animation-delay: 140ms, 1120ms;
}

.rail-four {
  --rail-color: var(--green);
  top: 174px;
  left: 13%;
  width: 96%;
  transform: translateZ(6px);
  animation-delay: 210ms, 1190ms;
}

.rail-five {
  --rail-color: var(--blue);
  top: 232px;
  left: -4%;
  width: 102%;
  transform: translateZ(-32px);
  animation-delay: 280ms, 1260ms;
}

.rail-six {
  --rail-color: var(--violet);
  top: 290px;
  left: 18%;
  width: 92%;
  transform: translateZ(-70px);
  animation-delay: 350ms, 1330ms;
}

.hero-copy,
.status-deck {
  position: relative;
  z-index: 4;
}

.hero-copy {
  max-width: 760px;
}

.kicker,
.teaser-number,
.status-row,
.button {
  font-family: "IBM Plex Mono", monospace;
}

.kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: uppercase;
}

.hero-text {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, calc(1.7vw + 2px), calc(1.16rem + 2px));
  font-weight: 700;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.12);
  outline: none;
  transform: translateY(-2px);
}

.button-work {
  background: var(--red);
}

.button-info {
  background: var(--green);
}

.status-deck {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 124px;
  padding-bottom: 0;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 12px 18px;
  border-left: 18px solid var(--status-color, var(--blue));
  border-radius: 0 30px 30px 0;
  background: rgba(17, 20, 27, 0.88);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-row:nth-child(1) {
  --status-color: var(--violet);
}

.status-row:nth-child(2) {
  --status-color: var(--red);
}

.status-row:nth-child(3) {
  --status-color: var(--green);
}

.status-row:nth-child(4) {
  --status-color: var(--blue);
}

.status-row strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.teaser-band {
  position: relative;
  z-index: 5;
  padding: 88px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 22px;
  border-bottom: 10px solid var(--orange);
  border-radius: 0 0 0 28px;
}

.section-heading h2 {
  max-width: 78ch;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teaser {
  min-height: 252px;
  padding: 24px;
  border-radius: 0 34px 34px 0;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}

.teaser:nth-child(1) {
  border-left: 24px solid var(--red);
}

.teaser:nth-child(2) {
  border-left: 24px solid var(--green);
}

.teaser:nth-child(3) {
  border-left: 24px solid var(--blue);
}

.teaser-number {
  display: block;
  margin-bottom: 34px;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teaser h3 {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.teaser p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.58;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-link {
  color: var(--yellow);
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.page-main {
  position: relative;
  z-index: 5;
  padding: 148px max(24px, calc((100vw - 1180px) / 2)) 72px;
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 0 34px;
  border-bottom: 10px solid var(--orange);
  border-radius: 0 0 0 28px;
}

.page-hero h1 {
  max-width: 11ch;
  color: var(--ink);
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
}

.page-intro {
  max-width: 58ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, calc(1.7vw + 2px), calc(1.16rem + 2px));
  font-weight: 700;
  line-height: 1.58;
}

.page-meta {
  margin: 24px 0 0;
  color: var(--yellow);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(190px, 0.52fr) minmax(0, 1.65fr);
  gap: 64px;
  margin: 0 auto;
  padding-top: 58px;
}

.legal-aside {
  align-self: start;
  padding: 24px 24px 26px;
  border-left: 18px solid var(--violet);
  background: rgba(17, 20, 27, 0.82);
  box-shadow: inset 0 0 0 1px var(--line);
}

.legal-aside strong {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-aside p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.58;
}

.legal-copy {
  max-width: 760px;
}

.legal-lead {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.8vw, 1.36rem);
  font-weight: 700;
  line-height: 1.58;
}

.legal-copy section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-copy h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.legal-copy p,
.legal-copy li {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.72;
}

.legal-copy p {
  margin: 0 0 18px;
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.35rem;
}

.legal-copy li + li {
  margin-top: 8px;
}

.legal-copy a,
.legal-aside a {
  color: var(--yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-copy a:hover,
.legal-copy a:focus-visible,
.legal-aside a:hover,
.legal-aside a:focus-visible {
  color: var(--ink);
}

@keyframes railLaunch {
  0% {
    opacity: 0;
    translate: 90vw 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes railPulse {
  0%,
  100% {
    margin-left: 0;
  }

  50% {
    margin-left: 16px;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 172px;
    padding-bottom: 34px;
  }

  .hero::before {
    inset: 150px 12px 22px;
  }

  .lcars-backplane {
    inset: 20% -34% auto auto;
    width: 104vw;
    height: 46vh;
    opacity: 0.72;
    mask-image: linear-gradient(90deg, transparent 0 22%, black 52%);
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(1.65rem, 6.5vw, 3.5rem);
  }

  .status-deck {
    align-content: start;
    padding-top: 12px;
    padding-bottom: 0;
  }

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

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-copy {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
  }

  .brand {
    min-height: 56px;
  }

  .logo-placeholder {
    min-width: 112px;
    font-size: 0.64rem;
  }

  .brand-name {
    padding: 0 14px;
    font-size: 0.94rem;
  }

  .site-nav a {
    min-width: calc(50% - 4px);
    min-height: 46px;
  }

  .hero {
    padding-right: 18px;
    padding-left: 18px;
    padding-top: 202px;
  }

  .lcars-backplane {
    inset: 24% -54% auto auto;
    width: 142vw;
    mask-image: linear-gradient(90deg, transparent 0 28%, black 58%);
  }

  .system-rail {
    height: 38px;
  }

  .rail-two {
    top: 50px;
  }

  .rail-three {
    top: 100px;
  }

  .rail-four {
    top: 150px;
  }

  .rail-five {
    top: 200px;
  }

  .rail-six {
    top: 250px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .page-main {
    padding-right: 18px;
    padding-left: 18px;
    padding-top: 202px;
  }

  .page-hero {
    padding-top: 28px;
  }

  .legal-layout {
    padding-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
