:root {
  --bg: #eef3f8;
  --panel: #0d6a95;
  --panel-deep: #0a5476;
  --panel-glow: rgba(255, 255, 255, 0.12);
  --plate: #ffffff;
  --plate-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.5);
  --fg: #0f1b26;
  --muted: #5a6b7b;
  --faint: #8697a6;
  --brand: #0d6a95;
  --brand-2: #c1272d;
  --ok: #15803d;
  --ok-bg: rgba(21, 128, 61, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d13;
    --panel: #0a4f66;
    --panel-deep: #073a4b;
    --panel-glow: rgba(255, 255, 255, 0.08);
    --plate: #f3f6f9;
    --plate-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.7);
    --fg: #e7eef4;
    --muted: #8d9dad;
    --faint: #6b7c8c;
    --brand: #3e9fd0;
    --brand-2: #e05a60;
    --ok: #34d399;
    --ok-bg: rgba(52, 211, 153, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Brand panel: the logo's blue as a field, its red as the closing rule */
.panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  overflow: hidden;
  background-color: var(--panel);
  background-image: radial-gradient(45rem 32.5rem at 18% 0%, var(--panel-glow), transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-deep) 100%);
}

.panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--brand-2);
}

/* The logo's wordmark is blue, so it always sits on a light plate */
.plate {
  width: min(21.25rem, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plate);
  border-radius: 1.75rem;
  box-shadow: var(--plate-shadow);
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.logo {
  display: block;
  width: 71%;
  height: auto;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.5rem 5rem 2.5rem;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.375rem;
  flex-grow: 1;
}

.eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 1rem + 2.35vw, 2.875rem);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34ch;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.375rem 0.875rem 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

footer {
  color: var(--faint);
  font-size: 0.8125rem;
}

/* Phones: the panel becomes a header band and the content stacks beneath it */
@media (max-width: 48rem) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .panel {
    padding: 2.5rem 1.5rem 2.75rem;
    background-image: radial-gradient(26.25rem 18.75rem at 18% 0%, var(--panel-glow), transparent 60%),
      linear-gradient(180deg, var(--panel) 0%, var(--panel-deep) 100%);
  }

  .plate {
    width: min(12.5rem, 60vw);
    border-radius: 1.25rem;
  }

  .content {
    padding: 2.25rem 1.5rem 1.5rem;
    text-align: center;
  }

  .intro {
    align-items: center;
    gap: 1rem;
  }

  .lede {
    font-size: 1.0625rem;
    max-width: none;
  }

  footer {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plate,
  .dot::after {
    animation: none;
  }
}
