:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --cream: #fffaed;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: "Switzer", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

html.dark {
  color-scheme: dark;
  color: var(--cream);
  background: linear-gradient(160deg, var(--slate-900) 0%, var(--slate-950) 60%);
}

html.light {
  color-scheme: light;
  color: var(--slate-800);
  background: linear-gradient(160deg, var(--slate-100) 0%, var(--slate-200) 60%);
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  transition:
    opacity 0.2s ease,
    transform 0.7s var(--ease-out);
}

html.dark .orb {
  opacity: 0.35;
}

html.light .orb {
  opacity: 0.22;
}

.orb-a {
  top: -8rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: rgba(37, 99, 235, 0.45);
}

.orb-b {
  bottom: -10rem;
  left: -8rem;
  width: 26rem;
  height: 26rem;
  background: rgba(59, 130, 246, 0.25);
}

.theme-toggle {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

html.dark .theme-toggle {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.72);
}

html.light .theme-toggle {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.82);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.35s var(--ease-out);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: block;
}

html.light .theme-toggle .icon-moon {
  display: block;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.5rem;
}

.card {
  width: min(100%, 28rem);
  padding: 2.25rem 2rem 2rem;
  border-radius: 1.25rem;
  text-align: center;
  transition:
    background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

html.dark .card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(30, 41, 59, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(2, 6, 23, 0.45);
}

html.light .card {
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.08);
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.logo {
  height: 2rem;
  width: auto;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.logo-dark {
  display: none;
}

.logo-light {
  display: none;
}

html.dark .logo-dark {
  display: block;
}

html.light .logo-light {
  display: block;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  transition:
    border-color 0.35s var(--ease-out),
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

html.dark .status {
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(37, 99, 235, 0.12);
}

html.light .status {
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.08);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--blue-500);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55);
  animation: pulse 2.2s ease-in-out infinite;
}

html.dark .status-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
}

html.light .status-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

html.dark .lead {
  color: var(--slate-400);
}

html.light .lead {
  color: var(--slate-600);
}

.reassurance {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--slate-500);
}

.footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

html.dark .footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

html.light .footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
  user-select: text;
  -webkit-user-select: text;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.125rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s var(--ease-out);
}

html.dark .footer-link {
  color: var(--cream);
}

html.dark .footer-link:hover {
  color: #fff;
}

html.dark .footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

html.light .footer-link {
  color: var(--slate-800);
}

html.light .footer-link:hover {
  color: var(--blue-600);
}

html.light .footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.footer-link:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
  }

  50% {
    box-shadow: 0 0 0 0.45rem rgba(59, 130, 246, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
  }

  html.dark .card:hover {
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 28px 56px rgba(2, 6, 23, 0.52),
      0 0 0 1px rgba(59, 130, 246, 0.08);
  }

  html.light .card:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
      0 4px 8px rgba(15, 23, 42, 0.05),
      0 20px 40px rgba(15, 23, 42, 0.1),
      0 0 0 1px rgba(37, 99, 235, 0.06);
  }

  .card:hover .logo {
    transform: scale(1.03);
  }

  html.dark .card:hover .status {
    border-color: rgba(59, 130, 246, 0.38);
    background: rgba(37, 99, 235, 0.16);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
  }

  html.light .card:hover .status {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.11);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.08);
  }

  body:has(.card:hover) .orb-a {
    transform: translate(-1.25rem, 1rem) scale(1.06);
  }

  body:has(.card:hover) .orb-b {
    transform: translate(1rem, -0.75rem) scale(1.04);
  }

  .theme-toggle:hover {
    transform: translateY(-2px) scale(1.05);
  }

  html.dark .theme-toggle:hover {
    border-color: rgba(59, 130, 246, 0.38);
    background: rgba(37, 99, 235, 0.2);
    color: #bfdbfe;
    box-shadow:
      0 10px 28px rgba(2, 6, 23, 0.35),
      0 0 0 1px rgba(59, 130, 246, 0.12);
  }

  html.light .theme-toggle:hover {
    border-color: rgba(37, 99, 235, 0.28);
    background: #fff;
    color: var(--blue-600);
    box-shadow:
      0 10px 28px rgba(15, 23, 42, 0.1),
      0 0 0 1px rgba(37, 99, 235, 0.08);
  }

  .theme-toggle:hover svg {
    transform: rotate(-12deg);
  }

  .theme-toggle:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  body,
  .card,
  .theme-toggle,
  .logo,
  .status,
  .orb,
  .footer-link,
  .footer-link::after,
  .theme-toggle svg {
    transition: none;
  }

  .status-dot {
    animation: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .card:hover,
    .theme-toggle:hover,
    .theme-toggle:hover svg,
    .card:hover .logo {
      transform: none;
    }
  }
}
