:root {
  --bg: #f4f4f5;
  --fg: #101012;
  --muted: #6b6b73;
  --line: #d6d6db;
  --glow: rgba(16, 16, 18, 0.07);
  --shadow: 0 1px 2px rgba(16, 16, 18, 0.06), 0 12px 32px -12px rgba(16, 16, 18, 0.16);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --fg: #f2f2f4;
    --muted: #9a9aa2;
    --line: #2a2a30;
    --glow: rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hairline grid, faded out toward the edges. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(
    ellipse 85% 65% at 50% 45%,
    #000 10%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 85% 65% at 50% 45%,
    #000 10%,
    transparent 75%
  );
}

/* Soft centre glow behind the content. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 45% at 50% 42%,
    var(--glow),
    transparent 70%
  );
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.5rem);
  padding: clamp(2.5rem, 9vw, 5rem) clamp(1.5rem, 6vw, 3rem);
  text-align: center;
}

.brand {
  margin: 0;
  font-size: clamp(2.75rem, 12vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tagline {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.075rem);
  line-height: 1.6;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  margin-top: clamp(0.5rem, 2vw, 1rem);
  padding: 0.875rem clamp(1.5rem, 5vw, 2.125rem);
  border: 1px solid var(--fg);
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font-size: clamp(0.95rem, 2.4vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.cta:hover svg {
  transform: translateX(2px);
}

.cta:active {
  transform: translateY(0);
}

.cta:focus-visible,
.foot a:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem clamp(1.5rem, 6vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.foot a:hover {
  color: var(--fg);
  border-bottom-color: currentColor;
}

@media (max-width: 30rem) {
  .foot {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .cta svg,
  .foot a {
    transition: none;
  }

  .cta:hover {
    transform: none;
  }

  .cta:hover svg {
    transform: none;
  }
}
