/* ── Reset & Variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #07070b;
  --ink-raised: #0e0e15;
  --wine:       #6e2733;
  --wine-deep:  #2a0f14;
  --paper:      #ede5d5;
  --paper-dim:  #8d8696;
  --gold:       #c8960c;
  --gold-light: #e7b531;
  --hairline:   rgba(200, 150, 12, 0.16);
  --hairline-dim: rgba(200, 150, 12, 0.08);
  --font-display: 'Fraunces', serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: 640px;
}
.prose.center { margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { color: var(--paper-dim); font-size: 1.04rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.l-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(7,7,11,0.92) 60%, transparent);
  backdrop-filter: blur(6px);
}
.l-logo-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.l-logo-link img { height: 34px; width: auto; border-radius: 6px; }
.l-wordmark {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}
.l-results-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(200, 150, 12, 0.45);
  background: rgba(200, 150, 12, 0.08);
  border-radius: 22px;
  padding: 0 1.05rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.l-results-link:hover { border-color: var(--gold-light); color: #fff; background: rgba(200, 150, 12, 0.18); }
.l-results-link .short { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 65%, #8a6708 100%);
  color: #0a0a10;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 30px;
  box-shadow: 0 8px 28px rgba(200, 150, 12, 0.22);
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
.btn-pill:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 34px rgba(200, 150, 12, 0.3); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.3rem;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}
.hero-bg path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-trajectory 2.6s ease-out forwards 0.2s;
}
@keyframes draw-trajectory { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  margin-bottom: 1.6rem;
}
.hero .sub {
  max-width: 600px;
  margin: 0 auto 2.6rem;
  font-size: 1.12rem;
  color: var(--paper-dim);
}

/* ── Section divider (trajectory mark) ──────────────────────────────────── */
.divider {
  display: flex;
  justify-content: center;
  padding: 0 0 1rem;
  opacity: 0.55;
}
.divider svg { width: 140px; height: 36px; }

/* ── Generic section ─────────────────────────────────────────────────────── */
section { padding: 6.5rem 0; }
section[id] { scroll-margin-top: 90px; }
.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

/* ── Il Problema ─────────────────────────────────────────────────────────── */
.problem {
  background: radial-gradient(ellipse at 50% 0%, var(--wine-deep) 0%, var(--ink) 65%);
  border-top: 1px solid var(--hairline-dim);
  border-bottom: 1px solid var(--hairline-dim);
}
.problem .prose { max-width: 700px; }
.problem h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-bottom: 1.5rem; }
.problem p { font-size: 1.12rem; color: #cdb9bc; line-height: 1.7; }

/* ── La Differenza ───────────────────────────────────────────────────────── */
.diff-list { max-width: 800px; margin: 0 auto; }
.diff-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--hairline);
}
.diff-item:first-child { border-top: 1px solid var(--hairline); }
.diff-index {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.45;
  line-height: 1;
}
.diff-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: var(--paper);
}
.diff-item p { font-size: 1rem; }

/* ── Come Funziona ───────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.how-grid h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.3rem; }
.how-diagram {
  background: var(--ink-raised);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 2.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.how-box {
  width: 100%;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 1.1rem 1rem;
  background: rgba(200, 150, 12, 0.04);
}
.how-box .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}
.how-box .val {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--paper);
}
.how-arrow { color: var(--gold); font-size: 1.4rem; line-height: 1; }
.how-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--paper-dim);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ── Scarsità ─────────────────────────────────────────────────────────────── */
.scarcity { text-align: center; }
.scarcity .prose { max-width: 660px; }
.scarcity h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1.4rem; }

.slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.slot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(200, 150, 12, 0.5);
}
.slot.empty {
  background: transparent;
  border: 1px solid var(--hairline);
  box-shadow: none;
}
.slots-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  margin-bottom: 2.6rem;
}
.slots-label strong { color: var(--gold-light); }

.scarcity-box {
  border: 1px solid var(--hairline);
  background: var(--ink-raised);
  border-radius: 10px;
  padding: 1.6rem 1.8rem;
  margin: 2rem auto;
  max-width: 620px;
  font-size: 1rem;
  color: var(--paper);
  text-align: left;
}
.scarcity-box strong { color: var(--gold-light); }

.scarcity .closing {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper-dim);
  margin-top: 1.8rem;
}

/* ── CTA Finale ──────────────────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  background: linear-gradient(to top, var(--ink-raised) 0%, var(--ink) 100%);
  border-top: 1px solid var(--hairline-dim);
  padding-bottom: 7rem;
}
.final-cta h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 780px;
  margin: 0 auto 2.2rem;
}
.final-cta .microcopy {
  display: block;
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--paper-dim);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.l-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.78rem;
  color: var(--paper-dim);
  border-top: 1px solid var(--hairline-dim);
}

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .how-grid { grid-template-columns: 1fr; }
  .diff-item { grid-template-columns: 60px 1fr; gap: 1rem; }
  .diff-index { font-size: 1.9rem; }
}

@media (max-width: 560px) {
  section { padding: 4.5rem 0; }
  .hero { padding: 7rem 1.25rem 4rem; min-height: 92vh; }
  .scarcity-box { padding: 1.3rem 1.3rem; text-align: left; }
  .cta-row { flex-direction: column; gap: 1.1rem; }
}

@media (max-width: 430px) {
  .l-header { padding: 0.9rem 0.9rem; }
  .l-wordmark { font-size: 0.72rem; }
  .l-results-link { padding: 0 0.75rem; font-size: 0.7rem; }
  .l-results-link .full { display: none; }
  .l-results-link .short { display: inline; }
}
