:root {
  --bg: #f5f5f7;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-stroke: rgba(29, 29, 31, 0.06);
  --text: #1d1d1f;
  --muted: rgba(29, 29, 31, 0.62);
  --accent: rgba(0, 113, 227, 0.24);
  --shadow:
    0 30px 80px rgba(15, 23, 42, 0.10),
    0 10px 28px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --cursor-glow: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.96), transparent 34%),
    radial-gradient(circle at bottom left, rgba(0, 113, 227, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  cursor: default;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px 22px;
}

.page::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(
      26rem circle at var(--cursor-x) var(--cursor-y),
      rgba(34, 34, 38, calc(0.05 * var(--cursor-glow))),
      rgba(118, 118, 128, calc(0.12 * var(--cursor-glow))) 18%,
      transparent 58%
    );
  opacity: 1;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.interaction-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}

.comet-trail {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 999px;
  will-change: transform, opacity;
}

.comet-trail {
  width: var(--size, 24px);
  height: var(--size, 24px);
  margin-left: calc(var(--size, 24px) * -0.5);
  margin-top: calc(var(--size, 24px) * -0.5);
  background:
    radial-gradient(
      circle,
      rgba(44, 44, 48, 0.26),
      rgba(92, 92, 99, 0.16) 42%,
      rgba(145, 145, 152, 0.06) 72%,
      transparent
    );
  filter: blur(var(--blur, 10px));
  opacity: 0;
}

.panel {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  padding: 62px 58px 56px;
  text-align: center;
  border: 1px solid var(--panel-stroke);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.80)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.lede {
  margin: 0;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 400;
  line-height: 1.45;
}

.panel::after {
  content: "";
  display: block;
  width: 92px;
  height: 1px;
  margin: 28px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 22%);
  pointer-events: none;
}

@media (max-width: 640px) {
  .page {
    padding: 18px;
  }

  .panel {
    padding: 42px 24px 38px;
    border-radius: 10px;
  }

  h1 {
    letter-spacing: -0.045em;
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .page::before,
  .interaction-layer {
    display: none;
  }
}
