:root {
  --navy-950: #041d30;
  --navy-900: #06263f;
  --navy-800: #0a3455;
  --blue-600: #0b76a8;
  --cyan-500: #219cca;
  --green-500: #91c161;
  --copper-500: #b97b4a;
  --gold-400: #daa74c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-950);
}

body {
  margin: 0;
  color: white;
  background: var(--navy-950);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
a {
  font: inherit;
}

.portal-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 18%, rgba(33, 156, 202, 0.25), transparent 26rem),
    radial-gradient(circle at 18% 82%, rgba(145, 193, 97, 0.14), transparent 29rem),
    linear-gradient(132deg, var(--navy-950) 0%, var(--navy-900) 46%, #0a3b5b 100%);
}

.map-grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to right, black, transparent 74%);
  mask-image: linear-gradient(to right, black, transparent 74%);
}

.topography {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(145, 193, 97, 0.25);
  border-radius: 46% 54% 62% 38% / 53% 44% 56% 47%;
  transform: rotate(-18deg);
}

.topography::before,
.topography::after {
  position: absolute;
  content: "";
  inset: 8%;
  border: inherit;
  border-radius: inherit;
}

.topography::after {
  inset: 17%;
}

.topography-one {
  width: 42rem;
  height: 25rem;
  left: -11rem;
  bottom: -7rem;
}

.topography-two {
  width: 28rem;
  height: 18rem;
  top: 2rem;
  right: -10rem;
  border-color: rgba(33, 156, 202, 0.26);
  transform: rotate(28deg);
}

.portal-header,
.portal-footer {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 72px));
  margin-inline: auto;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 32px 18px;
}

.ministry-mark,
.system-status {
  display: inline-flex;
  align-items: center;
}

.ministry-mark {
  gap: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ministry-mark__line {
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--gold-400));
}

.system-status {
  gap: 9px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  font-weight: 650;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.system-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 5px rgba(145, 193, 97, 0.12);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, calc(100% - 72px));
  margin: auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  padding-block: 38px 64px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  color: #dbece3;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow__number {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--navy-950);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-500), #b7dc82);
  font-size: 0.85rem;
  letter-spacing: 0;
  box-shadow: 0 10px 26px rgba(145, 193, 97, 0.18);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(3.2rem, 6.2vw, 6.35rem);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.93;
  text-wrap: balance;
}

h1 > span {
  display: block;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(100deg, #ffffff 6%, #cce7d1 56%, var(--green-500));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 650px;
  margin-top: 30px;
  color: rgba(235, 246, 249, 0.74);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.75;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}

.feature {
  display: flex;
  min-width: 210px;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  line-height: 1.4;
}

.feature svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: var(--green-500);
  stroke-width: 1.7;
}

.feature strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 720;
}

.launch-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(4, 29, 48, 0.38);
  box-shadow: 0 34px 80px rgba(0, 9, 19, 0.42);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.launch-card::before {
  position: absolute;
  width: 190px;
  height: 190px;
  content: "";
  top: -90px;
  right: -74px;
  border-radius: 50%;
  background: rgba(185, 123, 74, 0.24);
  filter: blur(4px);
}

.logo-stage {
  position: relative;
  display: grid;
  min-height: 288px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 55%, rgba(33, 156, 202, 0.24), transparent 48%),
    linear-gradient(160deg, rgba(6, 38, 63, 0.22), rgba(255, 255, 255, 0.03));
}

.logo-frame {
  position: relative;
  z-index: 2;
  display: grid;
  width: 172px;
  height: 172px;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 28px 54px rgba(0, 12, 24, 0.38),
    inset 0 0 0 1px rgba(10, 52, 85, 0.06);
  transform: rotate(-2deg);
}

.logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(2deg);
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(145, 193, 97, 0.28);
  border-radius: 50%;
  animation: rotate 22s linear infinite;
}

.orbit-one {
  width: 238px;
  height: 238px;
}

.orbit-two {
  width: 310px;
  height: 310px;
  border-color: rgba(33, 156, 202, 0.19);
  animation-duration: 32s;
  animation-direction: reverse;
}

.launch-card__body {
  padding: 28px 32px 30px;
  text-align: center;
}

.launch-kicker {
  color: var(--green-500);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.launch-card h2 {
  margin-top: 7px;
  font-size: 1.62rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.launch-status {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(145, 193, 97, 0.16);
  border-radius: 13px;
  background: rgba(1, 16, 28, 0.28);
  font-size: 0.79rem;
  font-weight: 620;
}

.launch-status.is-warning,
.launch-status.is-preview {
  border-color: rgba(218, 167, 76, 0.24);
  color: #f5dcab;
}

.spinner {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid rgba(255, 255, 255, 0.23);
  border-top-color: var(--green-500);
  border-radius: 50%;
  animation: rotate 0.85s linear infinite;
}

.is-warning .spinner,
.is-preview .spinner {
  border-top-color: var(--gold-400);
}

.launch-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 20px;
  color: var(--navy-950);
  border: 0;
  border-radius: 15px;
  background: linear-gradient(110deg, var(--green-500), #b6da7f);
  box-shadow: 0 16px 36px rgba(145, 193, 97, 0.17);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 820;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.launch-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(145, 193, 97, 0.25);
}

.launch-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.74);
  outline-offset: 3px;
}

.launch-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.66;
}

.launch-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.launch-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  letter-spacing: 0.025em;
}

.portal-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px 28px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  line-height: 1.5;
}

.portal-footer span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 650;
}

.coordinate {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
}

.noscript-message {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 14px 18px;
  color: white;
  border: 1px solid rgba(218, 167, 76, 0.45);
  border-radius: 12px;
  background: #533817;
  text-align: center;
}

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

@media (max-width: 900px) {
  .portal-shell {
    min-height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 54px;
  }

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

  .launch-card {
    width: min(100%, 480px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .portal-header,
  .portal-footer,
  .hero {
    width: min(100% - 34px, 1180px);
  }

  .portal-header {
    align-items: flex-start;
    padding-top: 22px;
  }

  .ministry-mark {
    max-width: 210px;
    align-items: flex-start;
    font-size: 0.62rem;
    line-height: 1.55;
  }

  .ministry-mark__line {
    width: 22px;
    margin-top: 6px;
    flex: 0 0 22px;
  }

  .system-status {
    padding: 8px;
    font-size: 0;
  }

  .hero {
    gap: 36px;
    padding-block: 44px 38px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.35rem);
  }

  .hero-description {
    margin-top: 24px;
    line-height: 1.65;
  }

  .feature-row {
    gap: 18px;
    margin-top: 30px;
  }

  .feature {
    width: 100%;
  }

  .logo-stage {
    min-height: 235px;
  }

  .logo-frame {
    width: 144px;
    height: 144px;
    border-radius: 34px;
  }

  .orbit-one {
    width: 200px;
    height: 200px;
  }

  .orbit-two {
    width: 260px;
    height: 260px;
  }

  .launch-card__body {
    padding: 24px 20px 24px;
  }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 24px;
  }
}

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