:root {
  --fondo: #0a0a0b;
  --testo: #f4f4f5;
  --grigio: #a1a1aa;
  --accento: #7c8cff;
  --linea: rgba(255, 255, 255, 0.055);
}

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

html, body { height: 100%; }

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

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}

.grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* the edges fade into the background, so the grid never ends on a hard line */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 62% at 50% 46%, transparent 40%, var(--fondo) 100%);
}

.hero {
  position: relative;
  z-index: 2;
  width: min(92vw, 720px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.4vh, 22px);
  padding: 0 16px;
}

/* a soft dark halo behind the words, so the lit lines never cross the letters at full strength */
.hero::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(10, 10, 11, 0.86), rgba(10, 10, 11, 0));
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  color: var(--grigio);
  font-size: clamp(11px, 1.7vh, 13px);
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.pill__tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accento);
  color: #0a0a0b;
  font-weight: 600;
}

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

.title {
  font-size: clamp(30px, min(7.4vw, 8.6vh), 74px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 650;
  font-variation-settings: "wdth" 96;
}

.lead {
  max-width: 34em;
  color: var(--grigio);
  font-size: clamp(13px, min(2vw, 2.3vh), 17px);
  line-height: 1.5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: clamp(36px, 5.6vh, 44px);
  padding: 0 clamp(14px, 2.2vh, 20px);
  border-radius: 999px;
  font-size: clamp(13px, 1.9vh, 15px);
  font-weight: 560;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.btn svg { width: 15px; height: 15px; }
.btn svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  background: var(--testo);
  color: #0a0a0b;
  box-shadow: 0 6px 22px -8px rgba(124, 140, 255, 0.55);
}

.btn--ghost {
  color: var(--testo);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

@media (hover: hover) {
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
}

.btn:focus-visible, .pill:focus-visible {
  outline: 2px solid var(--accento);
  outline-offset: 3px;
}

.ghost {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.ghost path { fill: #fff; stroke: #0a0a0b; stroke-width: 1.2; stroke-linejoin: round; }
