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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-100);
  background:
    radial-gradient(circle at 50% 55%, rgba(30, 224, 255, 0.18), transparent 15%),
    radial-gradient(circle at 50% 28%, rgba(43, 114, 255, 0.18), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(43, 114, 255, 0.24), transparent 36%),
    linear-gradient(180deg, #020611 0%, #04132f 44%, #030b1f 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(94, 234, 255, 0.06) 50%, transparent 100%),
    repeating-linear-gradient(
      180deg,
      transparent 0 36px,
      rgba(105, 190, 255, 0.028) 36px 38px
    );
  mix-blend-mode: screen;
  opacity: 0.7;
}

body::after {
  background:
    radial-gradient(circle at 50% 10%, rgba(94, 234, 255, 0.16), transparent 24%),
    radial-gradient(circle at 10% 50%, rgba(17, 65, 150, 0.2), transparent 28%),
    radial-gradient(circle at 90% 50%, rgba(17, 65, 150, 0.2), transparent 28%);
  filter: blur(20px);
  opacity: 0.85;
}

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

.skip-link {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(2, 12, 30, 0.96);
  border: 1px solid var(--line-strong);
  transform: translateY(-140%);
  transition: transform var(--motion-base);
}

.skip-link:focus {
  transform: translateY(0);
}

.cockpit {
  position: relative;
  min-height: 100vh;
  padding: 40px 24px 28px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.cockpit__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(34, 232, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 104%, rgba(66, 157, 255, 0.18), transparent 22%);
  filter: blur(22px);
  opacity: 0.92;
}

.cockpit__header,
.cockpit__stage,
.cockpit__footer,
.cockpit__status {
  position: relative;
  z-index: 1;
}

.cockpit__header {
  text-align: center;
}

.cockpit__header--top {
  margin-bottom: 8px;
}

.cockpit__slogan {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.14em;
  color: var(--cyan-300);
  text-shadow:
    0 0 12px rgba(78, 247, 255, 0.8),
    0 0 36px rgba(25, 217, 255, 0.4);
}

.cockpit__eyebrow {
  margin: 0 0 10px;
  color: var(--cyan-300);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-size: 13px;
}

.cockpit__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 40px);
  line-height: 1.1;
  color: var(--cyan-300);
  text-shadow:
    0 0 12px rgba(78, 247, 255, 0.8),
    0 0 36px rgba(25, 217, 255, 0.4);
}

.cockpit__subtitle {
  margin: 10px 0 0;
  color: rgba(214, 243, 255, 0.78);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 13px;
}

.cockpit__footer {
  text-align: center;
  margin-top: -2px;
}

.cockpit__stage {
  width: min(1500px, 96vw);
  min-height: min(62vh, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 27vw) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  padding: clamp(8px, 1.2vw, 16px) 0 clamp(8px, 1.6vw, 18px);
}

.cockpit__stage::before,
.cockpit__stage::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  pointer-events: none;
}

.cockpit__stage::before {
  top: -2%;
  height: 42%;
  border-top: 10px solid rgba(117, 214, 255, 0.22);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -8px 28px rgba(21, 89, 255, 0.24);
}

.cockpit__stage::after {
  bottom: 0;
  height: 34%;
  border-bottom: 10px solid rgba(117, 214, 255, 0.18);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: 0 8px 28px rgba(21, 89, 255, 0.24);
}

.cockpit__rim {
  position: absolute;
  left: 3%;
  right: 3%;
  height: 18px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(124, 255, 252, 0.82), transparent);
  filter: blur(2px);
  opacity: 0.7;
}

.cockpit__rim--top {
  top: 17%;
}

.cockpit__rim--bottom {
  bottom: 15%;
}

.cockpit__beacon {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 68px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #dffeff 0%, #48eeff 40%, #0a8dff 100%);
  box-shadow:
    0 0 14px rgba(203, 255, 255, 0.88),
    0 0 34px rgba(40, 240, 255, 0.5);
  transform: translateY(-50%);
}

.cockpit__beacon--left-mid {
  left: 0.9%;
}

.cockpit__beacon--right-mid {
  right: 0.9%;
}

.launch-wing {
  --wing-stretch-y: 1.1;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(10px, 1vw, 16px);
  min-height: clamp(310px, 30vw, 410px);
  isolation: isolate;
}

.launch-wing::before,
.launch-wing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.launch-wing::before {
  border-radius: 20px 56px 56px 20px;
  border: 1px solid rgba(111, 241, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(124, 255, 252, 0.38), rgba(56, 181, 255, 0.22)),
    repeating-linear-gradient(
      180deg,
      rgba(236, 255, 255, 0.12) 0 10%,
      rgba(31, 178, 255, 0.02) 10% 19%
    );
  box-shadow:
    inset 0 0 28px rgba(194, 255, 254, 0.25),
    inset 0 0 80px rgba(8, 132, 255, 0.16),
    0 0 44px rgba(39, 232, 255, 0.22);
  clip-path: polygon(7% 3%, 97% 0, 100% 50%, 97% 100%, 7% 97%, 0 50%);
}

.launch-wing::after {
  inset: 6% 2%;
  border-radius: 24px 60px 60px 24px;
  border-left: 6px solid rgba(76, 241, 255, 0.7);
  border-right: 3px solid rgba(227, 255, 255, 0.4);
  filter: drop-shadow(0 0 18px rgba(76, 241, 255, 0.52));
  clip-path: polygon(8% 4%, 96% 1%, 99% 50%, 96% 99%, 8% 96%, 1% 50%);
}

.launch-wing--left {
  transform: perspective(1600px) rotateY(29deg) scaleY(var(--wing-stretch-y));
  transform-origin: right center;
}

.launch-wing--right {
  transform: perspective(1600px) rotateY(-29deg) scaleY(var(--wing-stretch-y));
  transform-origin: left center;
}

.launch-wing--right::before,
.launch-wing--right::after {
  transform: scaleX(-1);
}

.launch-rail {
  position: relative;
  z-index: 1;
  width: min(58%, 320px);
}

.launch-placeholder {
  position: relative;
  min-height: clamp(46px, 3.8vw, 64px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(158, 251, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(194, 255, 252, 0.12), rgba(27, 105, 255, 0.08)),
    rgba(5, 27, 58, 0.28);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(32, 225, 255, 0.16);
  backdrop-filter: blur(12px);
}

.launch-placeholder::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.launch-placeholder::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 10%, rgba(255, 255, 255, 0.12) 50%, transparent 90%);
  opacity: 0.18;
}

.launch-button {
  position: relative;
  z-index: 1;
  width: min(77%, 440px);
  padding: 20px 26px;
  display: grid;
  gap: 9px;
  justify-items: center;
  text-align: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(158, 251, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(194, 255, 252, 0.2), rgba(27, 105, 255, 0.14)),
    rgba(5, 27, 58, 0.52);
  backdrop-filter: blur(var(--blur-panel));
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.18),
    0 0 22px rgba(32, 225, 255, 0.38),
    var(--shadow-deep);
  transition:
    transform var(--motion-base),
    box-shadow var(--motion-base),
    border-color var(--motion-base);
}

.launch-button::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.9;
}

.launch-button::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 10%, rgba(255, 255, 255, 0.26) 50%, transparent 90%);
  opacity: 0.24;
  transform: translateX(-14%);
  transition: transform 480ms ease, opacity 480ms ease;
}

.launch-button:hover,
.launch-button:focus-visible {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(211, 255, 255, 0.84);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.2),
    0 0 26px rgba(32, 225, 255, 0.44),
    0 26px 70px rgba(0, 0, 0, 0.52);
}

.launch-button:hover::after,
.launch-button:focus-visible::after {
  opacity: 0.45;
  transform: translateX(14%);
}

.launch-button:focus-visible {
  outline: 2px solid rgba(233, 255, 255, 0.94);
  outline-offset: 4px;
}

.launch-button[data-ready="false"] {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  border-color: rgba(158, 251, 255, 0.22);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.1),
    0 0 16px rgba(32, 225, 255, 0.16),
    var(--shadow-deep);
}

.launch-button[data-ready="false"]::after {
  opacity: 0.1;
  transform: translateX(0);
}

.launch-button[data-ready="false"]:hover,
.launch-button[data-ready="false"]:focus-visible {
  transform: none;
  border-color: rgba(158, 251, 255, 0.22);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.1),
    0 0 16px rgba(32, 225, 255, 0.16),
    var(--shadow-deep);
  outline: none;
}

.launch-button[data-ready="false"]:hover::after,
.launch-button[data-ready="false"]:focus-visible::after {
  opacity: 0.1;
  transform: translateX(0);
}

.launch-button__eyebrow {
  color: var(--cyan-200);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.launch-button__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.56vw, 27.5px);
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(117, 255, 255, 0.44);
}

.launch-button__meta {
  color: var(--ink-80);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.launch-button__meta:empty {
  display: none;
}

.reactor {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  isolation: isolate;
}

.reactor__halo,
.reactor__ring,
.reactor__floor {
  position: absolute;
  border-radius: 50%;
}

.reactor__halo {
  inset: -12%;
  background:
    radial-gradient(circle, rgba(138, 255, 248, 0.9) 0 12%, rgba(73, 247, 255, 0.58) 28%, transparent 64%),
    radial-gradient(circle, rgba(50, 154, 255, 0.22), transparent 72%);
  filter: blur(20px);
  opacity: 0.78;
}

.reactor__ring {
  inset: 0;
  box-shadow:
    inset 0 0 18px rgba(228, 255, 255, 0.36),
    0 0 30px rgba(47, 228, 255, 0.34);
}

.reactor__ring--outer {
  background:
    conic-gradient(
      from 0deg,
      rgba(91, 250, 255, 0.22),
      rgba(22, 110, 255, 0.7),
      rgba(239, 255, 255, 0.18),
      rgba(44, 224, 255, 0.7),
      rgba(91, 250, 255, 0.22)
    );
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47% 60%, transparent 61%);
  animation: spin-clockwise 24s linear infinite;
}

.reactor__ring--middle {
  inset: 12%;
  background:
    conic-gradient(
      from 180deg,
      rgba(91, 250, 255, 0.14),
      rgba(222, 255, 255, 0.78),
      rgba(15, 151, 255, 0.54),
      rgba(91, 250, 255, 0.14)
    );
  -webkit-mask: radial-gradient(circle, transparent 36%, #000 37% 58%, transparent 59%);
  animation: spin-counter 16s linear infinite;
}

.reactor__ring--inner {
  inset: 24%;
  background:
    radial-gradient(circle, rgba(111, 255, 251, 0.88) 0 20%, rgba(12, 172, 255, 0.26) 45%, transparent 72%),
    conic-gradient(
      from 270deg,
      rgba(246, 255, 255, 0.46),
      rgba(16, 153, 255, 0.22),
      rgba(246, 255, 255, 0.4),
      rgba(28, 224, 255, 0.22),
      rgba(246, 255, 255, 0.46)
    );
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.28),
    0 0 34px rgba(44, 224, 255, 0.28);
}

.reactor__floor {
  width: 76%;
  height: 12%;
  bottom: -7%;
  background: radial-gradient(circle, rgba(118, 255, 252, 0.88), rgba(28, 224, 255, 0.22) 58%, transparent 72%);
  filter: blur(10px);
  border-radius: 50%;
}

.reactor__core {
  position: relative;
  z-index: 1;
  width: 42%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 4px;
  padding: 10px 8px;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(36, 65, 104, 0.26), transparent 18%),
    radial-gradient(circle at 50% 36%, rgba(11, 22, 60, 0.18), rgba(7, 11, 38, 0.96));
  border: 1px solid rgba(196, 255, 255, 0.18);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.12),
    0 0 18px rgba(25, 217, 255, 0.2);
}

.reactor__core-badge,
.reactor__core-meta {
  display: block;
  width: 100%;
  text-align: center;
  justify-self: center;
  color: var(--ink-60);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: none;
  white-space: nowrap;
}

.reactor__core-title {
  display: block;
  width: 100%;
  text-align: center;
  justify-self: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.78vw, 31px);
  line-height: 1.08;
  white-space: nowrap;
  color: var(--cyan-200);
  text-shadow: var(--shadow-cyan);
}

.cockpit__status {
  margin: 24px 0 0;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  background: rgba(5, 18, 46, 0.56);
  color: var(--ink-80);
  font-size: 13px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(12px);
}

.cockpit__status--warning {
  margin-top: 12px;
  border-color: rgba(255, 208, 122, 0.42);
  color: rgba(255, 236, 198, 0.92);
}

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

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

@media (max-width: 1080px) {
  .cockpit {
    padding-inline: 18px;
  }

  .cockpit__stage {
    width: min(960px, 100%);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .launch-wing,
  .launch-wing--left,
  .launch-wing--right {
    width: min(760px, 100%);
    transform: scaleY(var(--wing-stretch-y));
  }

  .launch-wing::before,
  .launch-wing::after,
  .launch-wing--right::before,
  .launch-wing--right::after {
    transform: none;
  }

  .launch-rail {
    width: min(78%, 460px);
  }

  .launch-button {
    width: min(92.4%, 528px);
  }

  .reactor {
    order: -1;
    width: min(300px, 60vw);
  }
}

@media (max-width: 640px) {
  .cockpit {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .cockpit__slogan {
    font-size: 24px;
    letter-spacing: 0.12em;
  }

  .cockpit__subtitle {
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  .cockpit__stage::before,
  .cockpit__stage::after,
  .cockpit__rim,
  .cockpit__beacon {
    opacity: 0.5;
  }

  .launch-wing {
    min-height: 300px;
    gap: 10px;
  }

  .launch-rail {
    width: calc(100% - 84px);
  }

  .launch-button {
    width: calc(100% - 40px);
    padding: 20px 20px;
  }

  .launch-button__title {
    font-size: 20.9px;
  }

  .reactor {
    width: min(256px, 68vw);
  }
}

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