:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-glow: rgba(47, 111, 235, 0.10);
  --fg: #12141a;
  --muted: #5b6170;
  --accent: #2f6feb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-glow: rgba(122, 162, 247, 0.14);
    --fg: #f2f4f8;
    --muted: #9aa1b1;
    --accent: #7aa2f7;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-glow), transparent 70%);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 40rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.125rem, 3.2vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: balance;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

a:hover { border-bottom-color: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  h1        { animation-delay: 0.05s; }
  .tagline  { animation-delay: 0.18s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
