:root {
  --night: #06070a;
  --warm: #ffae57;
  --cool: #cfd9ff;
  --mist: #c9ced8;
  --ink: #f5f4f2;
  --ink-soft: #a9abb4;
  --ink-lede: #d2d3d9;
  --line: rgba(255, 255, 255, 0.12);
  --cta: #f5f4f2;
  --cta-ink: #0a0a0d;
  --font: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  --clear: 0;
}

* { 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: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  touch-action: none;
  cursor: grab;
  /* what is left without WebGL: soft city lights in CSS, with the fog canvas drawn flat on top */
  background:
    radial-gradient(circle at 22% 38%, rgba(255, 174, 87, 0.5) 0 3.5vmin, transparent 7vmin),
    radial-gradient(circle at 70% 30%, rgba(255, 174, 87, 0.38) 0 2.6vmin, transparent 6vmin),
    radial-gradient(circle at 82% 66%, rgba(207, 217, 255, 0.3) 0 3vmin, transparent 6.5vmin),
    radial-gradient(circle at 36% 74%, rgba(255, 174, 87, 0.28) 0 4vmin, transparent 8vmin),
    radial-gradient(ellipse 70% 40% at 50% 80%, rgba(255, 174, 87, 0.12), transparent 70%),
    var(--night);
}

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

/* only used without WebGL: the fog itself, milky, over the CSS lights */
.fog-flat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: none;
  opacity: 0.55;
  filter: blur(6px);
}

.no-gl .fog-flat { display: block; }

/* a still grain over the glass, so the soft light does not band */
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  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'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></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(10px, 2.4vh, 22px);
  pointer-events: none;
}

.hero .cta,
.hero .pill { pointer-events: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.5);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(11px, 1.6vh, 13px);
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: 100%;
}

.pill__text { overflow: hidden; text-overflow: ellipsis; }

.pill__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--night);
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

/* the headline: a little wider and with a faint warm light on it as more of the glass is clear (--clear 0..1) */
.title {
  font-size: clamp(30px, min(9.2vw, 10vh), 78px);
  line-height: 0.98;
  font-weight: 600;
  font-stretch: calc(100% + var(--clear) * 10%);
  letter-spacing: -0.045em;
  color: var(--ink);
  text-shadow:
    0 0 1px rgba(6, 7, 10, 0.35),
    0 2px 30px rgba(6, 7, 10, 0.5),
    0 0 calc(18px + var(--clear) * 22px) rgba(255, 174, 87, calc(var(--clear) * 0.22));
}

.lede {
  max-width: 34ch;
  font-size: clamp(13px, min(3.6vw, 2.2vh), 17px);
  line-height: 1.5;
  color: var(--ink-lede);
  text-shadow: 0 1px 14px rgba(6, 7, 10, 0.9), 0 0 2px rgba(6, 7, 10, 0.6);
}

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

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(38px, 6vh, 46px);
  padding: 0 clamp(16px, 2.2vh, 20px);
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-size: clamp(13px, 1.9vh, 15px);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 30px -10px rgba(255, 174, 87, 0.5);
  -webkit-tap-highlight-color: transparent;
}

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

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

.hint {
  display: inline-flex;
  overflow: hidden;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  font-size: clamp(11px, 1.6vh, 13px);
  color: var(--ink-lede);
  text-shadow: 0 1px 10px rgba(6, 7, 10, 0.9);
}

.hint__hand {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  opacity: 0;
  fill: #fff;
  stroke: #000;
  stroke-width: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  z-index: 5;
}
