:root {
  --color-blue: #024089;
  --color-green: #007859;
  --color-red: #da062b;
  --color-ink: #12233a;
  --color-muted: #4b6178;
  --color-soft: #72839a;
  --color-border: #d8e2ec;
  --color-surface: #ffffff;
  --color-background: #f5f8fb;
  --shadow-panel: 0 22px 48px rgba(18, 50, 77, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.top-rule {
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(0, 22fr) minmax(0, 21fr);
  height: 5px;
}

.top-rule__blue {
  background: var(--color-blue);
}

.top-rule__green {
  background: var(--color-green);
}

.top-rule__red {
  background: var(--color-red);
}

.site-header,
.hero,
.site-footer {
  width: min(100% - 56px, 1184px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 31px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 186px;
  height: auto;
}

.gateway-label {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 456px;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 181px);
  padding-block: 42px 74px;
}

.hero__content {
  position: relative;
  padding-left: 40px;
}

.hero__content::before {
  position: absolute;
  inset: 4px auto auto 0;
  width: 5px;
  height: min(100%, 402px);
  background: var(--color-green);
  content: "";
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--color-green);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--color-ink);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.08;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 44px;
  color: var(--color-muted);
  font-size: clamp(1.125rem, 2vw, 1.4375rem);
  line-height: 1.48;
}

.hero__lead strong {
  color: var(--color-ink);
  font-weight: 700;
}

.motd {
  max-width: 560px;
  min-height: 88px;
  padding: 18px 22px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.motd__title {
  margin-bottom: 8px;
  color: var(--color-blue);
  font-size: 0.875rem;
  font-weight: 700;
}

.motd__body {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.lab-card {
  position: relative;
  overflow: hidden;
  min-height: 504px;
  padding: 68px 56px 56px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
  text-align: center;
}

.lab-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--color-blue);
  content: "";
}

.lab-card__chrome {
  position: absolute;
  top: 31px;
  left: 28px;
  display: flex;
  gap: 10px;
}

.lab-card__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.lab-card__chrome span:nth-child(1) {
  background: var(--color-red);
}

.lab-card__chrome span:nth-child(2) {
  background: var(--color-green);
}

.lab-card__chrome span:nth-child(3) {
  background: var(--color-blue);
}

.lab-card__icon {
  width: 92px;
  height: 92px;
  margin-bottom: 36px;
}

.lab-card__label {
  margin-bottom: 10px;
  color: var(--color-green);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lab-card h2 {
  margin-bottom: 54px;
  color: var(--color-ink);
  font-size: 1.75rem;
  line-height: 1.2;
}

.lab-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  border-radius: 8px;
  background: var(--color-blue);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 700;
  animation: lab-access-button-motion 2.1s ease-in-out infinite;
  box-shadow: 0 12px 24px rgba(2, 64, 137, 0.18);
  will-change: transform;
}

.lab-card__button:hover {
  animation-duration: 1.35s;
}

.lab-card__button:focus-visible {
  outline: 3px solid rgba(0, 120, 89, 0.32);
  outline-offset: 3px;
}

.lab-card__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.75rem;
  line-height: 1;
}

@keyframes lab-access-button-motion {
  0%,
  100% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(-6px);
  }

  70% {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lab-card__button {
    animation: none;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 0 38px;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer p:first-child {
  color: var(--color-ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .site-footer {
    width: min(100% - 40px, 560px);
  }

  .site-header {
    padding-block: 29px 25px;
  }

  .brand img {
    width: 168px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-block: 28px 52px;
  }

  .hero__content {
    padding-left: 0;
  }

  .hero__content::before {
    display: none;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  h1 {
    margin-bottom: 22px;
    font-size: 2.625rem;
  }

  .hero__lead {
    margin-bottom: 34px;
  }

  .motd {
    min-height: 96px;
    padding: 16px 18px;
  }

  .lab-card {
    min-height: auto;
    padding: 44px 28px 32px;
  }

  .lab-card__icon {
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
  }

  .lab-card h2 {
    margin-bottom: 34px;
    font-size: 1.375rem;
  }

  .site-footer {
    display: block;
    padding-bottom: 32px;
    text-align: center;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .site-footer {
    width: calc(100% - 56px);
  }

  .gateway-label {
    font-size: 0.8125rem;
  }

  .brand img {
    width: 154px;
  }

  h1 {
    font-size: 2.4rem;
  }
}
