:root {
  --night: #07080b;
  --star: #f3f5fb;
  --beam: #8fb4ff;
  --ink: #f2f4f8;
  --ink-soft: #9aa1ae;
  --edge: rgba(214, 224, 255, 0.12);
  --cta: #f2f4f8;
  --cta-ink: #0b0d12;
  --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;
  background: radial-gradient(120% 90% at 50% 50%, #0d1018, var(--night) 70%);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

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

/* a soft dark pool behind the words, so the streaks never fight the headline */
.hush {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(min(46vw, 64vh) min(26vh, 32vw) at 50% 52%, rgba(7, 8, 11, 0.82), rgba(7, 8, 11, 0) 100%);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.66);
  border: 1px solid var(--edge);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  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: var(--beam);
  color: var(--cta-ink);
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

/* the headline is pushed back a hair while the stars warp; GSAP moves the element, the gradient lives in the CSS */
.title {
  font-size: clamp(30px, min(9vw, 10vh), 76px);
  line-height: 1;
  font-weight: 560;
  font-stretch: 104%;
  letter-spacing: -0.04em;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 30%, #b9c6e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
  will-change: transform;
}

.lede {
  max-width: 30em;
  font-size: clamp(13px, min(3.6vw, 2.3vh), 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-shadow: 0 1px 14px rgba(7, 8, 11, 0.95), 0 0 2px rgba(7, 8, 11, 0.7);
}

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

.cta {
  position: relative;
  overflow: hidden;
  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);
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 0 0 1px rgba(214, 224, 255, 0.1), 0 12px 32px -10px rgba(143, 180, 255, 0.55);
  -webkit-tap-highlight-color: transparent;
}

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

.cta__label { position: relative; }

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

/* a thin streak of light that crosses the button, like one of the stars; GSAP moves it */
.cta__beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(143, 180, 255, 0.5), rgba(255, 255, 255, 0.75), transparent);
  transform: translateX(-140%);
  pointer-events: none;
}

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

.hint {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 3.5vh, 28px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: clamp(11px, 1.5vh, 12px);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
  pointer-events: none;
}

.hint svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 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: #07080b;
  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.5));
}

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

.hint span { display: inline-block; }
