:root {
  --font-geist-sans: "Segoe UI";
  --font-geist-mono: "SFMono-Regular";
  --space: #030d19;
  --ink: #edf8ff;
  --muted: #9fb1bd;
  --panel: rgba(15, 27, 36, 0.82);
  --panel-strong: rgba(19, 33, 43, 0.94);
  --line: rgba(80, 101, 116, 0.74);
  --cyan: #36c8ff;
  --blue: #1769aa;
  --violet: #b695ff;
  --magenta: #ff35b3;
  --green: #31d59b;
  --amber: #ffb454;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(3, 13, 25, 0.2) 0, rgba(3, 13, 25, 0.9) 48rem, var(--space) 82rem),
    radial-gradient(circle at 84% 13%, rgba(54, 200, 255, 0.16), transparent 34rem),
    url("/mbs-space-background.png") center top / max(100%, 1500px) auto no-repeat,
    var(--space);
  color: var(--ink);
  font-family: var(--font-geist-sans), "Segoe UI", Inter, system-ui, sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 12% 36%, rgba(182, 149, 255, 0.1), transparent 23rem),
    radial-gradient(circle at 75% 70%, rgba(49, 213, 155, 0.07), transparent 26rem);
  content: "";
  pointer-events: none;
}

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0.09em;
}

.wordmark span {
  color: var(--cyan);
  font-weight: 480;
}

.header-note,
.eyebrow,
.hero-meta,
.tool-status,
.site-footer,
.link-number,
.media-bar,
.hero-media figcaption {
  font-family: var(--font-geist-mono), "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.header-note {
  color: #91adbe;
  font-size: 0.68rem;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
  align-items: center;
  gap: 58px;
  padding-block: 76px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 680;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(3.15rem, 6vw, 6.25rem);
  font-weight: 650;
  letter-spacing: -0.064em;
  line-height: 0.95;
  text-wrap: balance;
}

h1 span {
  color: #9ed7ff;
  text-shadow: 0 0 34px rgba(54, 200, 255, 0.28);
}

.lede {
  max-width: 590px;
  margin-bottom: 28px;
  color: #c0d0da;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  line-height: 1.62;
}

.hero-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
}

.hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #4b8cac;
  border-radius: 10px;
  background: #07111c;
  box-shadow:
    0 0 0 1px rgba(54, 200, 255, 0.09),
    0 28px 80px rgba(0, 0, 0, 0.48),
    0 0 50px rgba(54, 200, 255, 0.12),
    24px -18px 70px rgba(182, 149, 255, 0.12);
}

.media-bar,
.hero-media figcaption {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px;
  color: #91adbe;
  background: rgba(15, 27, 36, 0.96);
  font-size: 0.58rem;
}

.media-bar {
  border-bottom: 1px solid rgba(80, 101, 116, 0.68);
}

.media-bar span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cceeff;
}

.media-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(49, 213, 155, 0.9);
}

.hero-media video {
  width: 100%;
  max-height: 470px;
  display: block;
  aspect-ratio: 752 / 656;
  background: #02060d;
  object-fit: cover;
}

.hero-media figcaption {
  border-top: 1px solid rgba(80, 101, 116, 0.68);
}

.hero-media figcaption span {
  color: var(--cyan);
}

.section {
  padding-block: 112px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  margin-bottom: 42px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

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

.research-link {
  min-height: 166px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 27px;
  border: 1px solid rgba(80, 101, 116, 0.68);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(19, 33, 43, 0.91), rgba(10, 20, 30, 0.83));
  backdrop-filter: blur(18px);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.research-link:hover,
.research-link:focus-visible {
  border-color: var(--cyan);
  background: rgba(23, 45, 59, 0.94);
  outline: none;
  transform: translateY(-2px);
}

.link-number {
  color: var(--cyan);
  font-size: 0.64rem;
}

.link-copy {
  display: grid;
  gap: 11px;
}

.link-copy strong {
  font-size: 1.26rem;
  font-weight: 620;
}

.link-copy small {
  max-width: 390px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.arrow {
  color: var(--cyan);
  font-size: 1.18rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  min-height: 354px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid;
  border-radius: 9px;
  background: var(--panel-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.tool-magpie {
  border-color: rgba(54, 200, 255, 0.58);
  background:
    radial-gradient(circle at 90% 12%, rgba(54, 200, 255, 0.2), transparent 18rem),
    rgba(13, 35, 51, 0.94);
}

.tool-magpie:hover,
.tool-magpie:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3), 0 0 34px rgba(54, 200, 255, 0.14);
}

.tool-jupyter {
  border-color: rgba(182, 149, 255, 0.6);
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 53, 179, 0.16), transparent 19rem),
    rgba(28, 24, 57, 0.94);
}

.tool-jupyter:hover,
.tool-jupyter:focus-visible {
  border-color: var(--violet);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3), 0 0 34px rgba(182, 149, 255, 0.14);
}

.tool-status {
  margin-bottom: auto;
  color: #b9cfdb;
  font-size: 0.65rem;
}

.tool-card strong {
  margin-bottom: 13px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 620;
  letter-spacing: -0.055em;
}

.tool-card p {
  max-width: 440px;
  min-height: 52px;
  margin-bottom: 28px;
  color: #b7c7d1;
  font-size: 1rem;
  line-height: 1.55;
}

.tool-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(158, 215, 255, 0.34);
  color: #dff5ff;
  font-size: 0.88rem;
}

.tool-action b {
  color: var(--cyan);
  font-size: 1.35rem;
  font-weight: 400;
}

.upcoming {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 80px;
  align-items: end;
}

.upcoming p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.62rem;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-media {
    width: min(100%, 660px);
  }
}

@media (max-width: 800px) {
  body {
    background-size: auto 650px;
    background-position: 60% top;
  }

  .shell {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    min-height: 72px;
  }

  .header-note {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding-block: 72px 66px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5.4rem);
  }

  .media-bar span:last-child {
    display: none;
  }

  .section {
    padding-block: 74px;
  }

  .section-heading,
  .upcoming {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .research-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .research-link {
    padding: 24px;
  }

  .tool-card {
    min-height: 310px;
    padding: 27px;
  }

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

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

  .tool-card,
  .research-link {
    transition: none;
  }
}
