:root {
  --night: #0b0b0d;
  --line: #9db8ff;
  --ink: #f2f3f7;
  --ink-soft: #a2a5b4;
  --ink-dim: #d4d7e2;
  --edge: rgba(255, 255, 255, 0.1);
  --cta: #f2f3f7;
  --cta-ink: #0b0b0d;
  --glow: 50%;
  --font: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  /* what is left when the canvas is missing: a still floor in CSS */
  background:
    linear-gradient(180deg, var(--night) 0 46%, transparent 46%),
    repeating-linear-gradient(90deg, rgba(157, 184, 255, 0.08) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(180deg, rgba(157, 184, 255, 0.08) 0 1px, transparent 1px 32px),
    var(--night);
  touch-action: pan-y;
}

.floor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
}

/* the haze that swallows the far lines and a soft dark pool behind the words */
.mist {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(min(52vw, 80vh) min(24vh, 30vw) at 50% 44%, rgba(11, 11, 13, 0.86), rgba(11, 11, 13, 0) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, 0) 0%, rgba(11, 11, 13, 0) 30%, rgba(157, 184, 255, 0.06) 44%, rgba(11, 11, 13, 0) 56%);
}

/* a light grain over everything, so the black is never flat */
.grain {
  position: absolute;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero {
  width: min(640px, 100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(9px, 2.2vh, 18px);
  transform: translateY(-6vh);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.7);
  border: 1px solid var(--edge);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(11px, 1.6vh, 13px);
  font-weight: 500;
  color: var(--ink-soft);
}

.pill__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(157, 184, 255, 0.16);
  color: var(--line);
  font-weight: 600;
}

.pill__arrow {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the headline catches a reflection of the floor: a pale band in its lower half that drifts with the pointer */
.title {
  font-size: clamp(28px, min(8.6vw, 9.4vh), 76px);
  line-height: 1.02;
  font-weight: 560;
  font-stretch: 104%;
  letter-spacing: -0.04em;
  color: var(--ink-dim);
  background:
    radial-gradient(40% 70% at var(--glow) 112%, rgba(157, 184, 255, 0.95), rgba(157, 184, 255, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, var(--ink-dim) 58%, #b9c5e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 30em;
  font-size: clamp(13px, min(3.6vw, 2.2vh), 17px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: clamp(2px, 0.6vh, 6px);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(10px, 1.6vh, 13px) clamp(16px, 2.4vh, 20px);
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: 600 clamp(13px, 1.9vh, 15px) / 1 var(--font);
  font-stretch: 100%;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 32px -12px rgba(157, 184, 255, 0.5);
  -webkit-tap-highlight-color: transparent;
}

.cta:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 3px;
}

.cta__arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note {
  font-size: clamp(12px, 1.7vh, 13px);
  color: var(--ink-soft);
}

/* the pointer drawn for the preview, while nobody moves the real one */
.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  fill: #ffffff;
  stroke: #0b0b0d;
  stroke-width: 1.1;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

@media (max-width: 420px) {
  .note { width: 100%; }
}
