:root {
  --fondo: #0b0b0c;
  --inchiostro: #f4f4f5;
  --grigio: #a1a1aa;
  --spento: #52525b;
  --linea: rgba(255, 255, 255, 0.09);
  --accento: #a5b4fc;
  --accento-due: #f0abfc;
}

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

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 16px;
}
/* a soft glow behind the headline, very faint */
.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(820px, 120vw);
  height: min(380px, 60vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(165, 180, 252, 0.09), rgba(240, 171, 252, 0.04) 55%, transparent);
  pointer-events: none;
}

.hero {
  position: relative;
  width: min(820px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 2.8vh, 24px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--linea);
  background: rgba(255, 255, 255, 0.03);
  color: var(--inchiostro);
  text-decoration: none;
  font-size: clamp(11px, 1.6vh, 13px);
  font-weight: 500;
}
.pill__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--inchiostro);
  color: var(--fondo);
  font-weight: 620;
  font-size: 0.92em;
}
.pill__text { color: var(--grigio); }
.pill__arrow {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--grigio);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
@media (hover: hover) {
  .pill:hover .pill__arrow { transform: translateX(2px); }
}

/* the headline: a wrapping row of words; GSAP moves .word (FLIP), the inner span lifts, weighs and colours */
.title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.24em;
  row-gap: 0;
  font-size: clamp(30px, min(8.4vw, 10.5vh), 86px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 11.5em;
}
.word {
  display: inline-block;
  position: relative;
}
.word__inner {
  display: inline-block;
  padding: 0 0.1em 0.08em;
  margin: 0 -0.1em -0.08em;
  font-weight: 380;
  font-stretch: 100%;
  color: var(--spento);
}
.word--key .word__inner {
  background-image: linear-gradient(100deg, var(--inchiostro) 0%, var(--inchiostro) 30%, var(--accento) 48%, var(--accento-due) 100%);
  background-size: 220% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
}
/* the small trace a word leaves where it lifted off, under the row */
.word__trace {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.02em;
  height: 1px;
  background: currentColor;
  color: var(--accento);
  opacity: 0;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.sub {
  max-width: 34em;
  color: var(--grigio);
  font-size: clamp(13px, min(3.6vw, 2.4vh), 18px);
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(36px, 5.6vh, 44px);
  padding: 0 clamp(14px, 2.4vh, 20px);
  border-radius: 999px;
  font-size: clamp(13px, 1.9vh, 15px);
  font-weight: 560;
  text-decoration: none;
  overflow: hidden;
}
.btn--primary {
  background: var(--inchiostro);
  color: var(--fondo);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 26px -12px rgba(165, 180, 252, 0.55);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--inchiostro);
  border: 1px solid var(--linea);
}
.btn__arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}
.btn__label, .btn__arrow { position: relative; }
@media (hover: hover) {
  .btn--primary:hover { background: #ffffff; }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
}
