:root {
  --night: #080706;
  --ink: #f5f1ec;
  --ink-soft: #a39b92;
  --ink-faint: #6f6861;
  --line: rgba(255, 240, 225, 0.1);
  --amber: #ffc98f;
  --cta-ink: #120d09;
  --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: var(--night);
}

/* what is left without WebGL: a still pool of warm light on dark sand ripples */
.stage.is-flat {
  background:
    radial-gradient(55% 45% at 68% 78%, rgba(255, 201, 143, 0.16), transparent 70%),
    repeating-linear-gradient(100deg, rgba(255, 235, 215, 0.035) 0 2px, transparent 2px 22px),
    radial-gradient(80% 60% at 50% 100%, #1d1915, transparent 75%),
    var(--night);
}

.sand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
  touch-action: none;
}

/* a soft shade behind the words, so the sand never fights with the headline */
.veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44% 34% at 50% 50%, rgba(8, 7, 6, 0.72), rgba(8, 7, 6, 0.3) 68%, transparent 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.75), transparent 34%);
}

.hero {
  width: min(660px, 100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.3vh, 20px);
  pointer-events: none;
}
.hero .pill, .hero .actions { pointer-events: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(22, 19, 16, 0.6);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 240, 225, 0.06) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: clamp(11px, 1.7vh, 13px);
  color: var(--ink-soft);
}
.pill__tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe2c0, #e6a868);
  color: #1a1008;
  font-weight: 620;
  font-size: 0.92em;
}
.pill__arrow {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.title {
  font-size: clamp(29px, min(7.2vw, 9.4vh), 74px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  font-weight: 640;
  font-variation-settings: "wdth" 94;
  /* warm silver, like the sand where the light rakes it */
  background: linear-gradient(180deg, #ffffff 25%, #e9dccd 70%, #c7b29c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 26px rgba(0, 0, 0, 0.4);
}

.lede {
  max-width: 33em;
  font-size: clamp(13px, 2.1vh, 17px);
  line-height: 1.45;
  color: var(--ink-soft);
}

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

.cta, .second {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(38px, 6.2vh, 46px);
  padding: 0 clamp(15px, 2.6vh, 20px);
  border-radius: 999px;
  font: inherit;
  font-size: clamp(13px, 2vh, 15px);
  font-weight: 600;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.cta {
  background: linear-gradient(180deg, #fffaf4 0%, #ecdccb 100%);
  color: var(--cta-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(150, 110, 70, 0.25) inset,
    0 12px 32px -12px rgba(255, 190, 120, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.45);
}
.cta__sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  transform: translateX(-120%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.cta__label, .cta__arrow { position: relative; }
.cta__arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.second {
  background: rgba(22, 19, 16, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.second__icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
}
@media (hover: hover) {
  .second:hover { border-color: rgba(255, 220, 185, 0.26); background: rgba(34, 29, 24, 0.62); }
}

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

.cta:focus-visible, .second:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: #15100b;
  stroke-width: 1.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 520px) {
  .lede { max-width: 25em; }
}
@media (max-height: 460px) {
  .note { display: none; }
}
