/* ─── RESET & ACCESSIBILITÀ DI BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Rispetta le preferenze di sistema per chi soffre di chinetosi (riduzione movimento) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body { 
  /* Font stack universale: Mac/iOS -> Windows -> Android -> Fallback */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Resa grafica premium */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  
  /* Usiamo le variabili di root per mantenere il codice DRY (Don't Repeat Yourself) */
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Colore di selezione testo personalizzato (Premium feel) */
::selection {
  background: rgba(0, 113, 227, 0.3); /* Colore --accent con opacità */
  color: #FFFFFF;
}

/* ─── VARIABILI (CSS Custom Properties) ─── */
:root {
  /* Palette Scura (Default) */
  --bg-dark:       #0A0A0A;
  --bg-light:      #F5F5F7;
  
  /* Testi */
  --text-primary:  #F5F5F7;
  --text-dark:     #1d1d1f;
  --text-muted:    #A1A1A6; /* Scurito leggermente rispetto al tuo originale per superare i test di contrasto WCAG */
  
  /* Colori Brand & Stato */
  --accent:        #0071E3;
  --accent-hover:  #0077ED;
  --danger:        #FF453A;
  --success:       #30D158;
  --warning-color: #FF9F0A;
  
  /* Effetti Glassmorphism */
  --glass-bg:      rgba(255, 255, 255, 0.05);
  --glass-border:  rgba(255, 255, 255, 0.10);
  
  /* UI Base */
  --radius:        12px;
  --transition:    300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── TIPOGRAFIA GERARCHICA ─── */
.headline-xl {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

.headline-l {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.headline-m {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.subhead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
}

.body-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark); 
}

.body-text.muted { 
  color: #6e6e73; 
}

.micro-copy {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 12px;
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.link-muted {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.link-muted:hover { 
  color: var(--accent); 
}