/* ==========================================================================
   Trust Ward — Design Tokens («Obsidian Swiss-Tech · Zero-Tracking»)
   Font Manrope 100% self-hosted (0 richieste esterne).
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Superfici stratificate */
  --bg-canvas: #07060b;
  --bg-shell: #0b0a12;
  --surface-1: #111019;
  --surface-2: #161523;
  --surface-3: #1d1b2d;
  --surface-glass: rgba(11, 10, 18, 0.82);

  /* Bordi hairline ultra-nitidi */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(168, 85, 247, 0.44);
  --border-accent-strong: rgba(192, 132, 252, 0.72);

  /* Accento primario Ametista misurato */
  --accent: #a855f7;
  --accent-bright: #c084fc;
  --accent-soft: #e9d5ff;
  --accent-deep: #6d28d9;
  --accent-glow: rgba(139, 92, 246, 0.26);
  --accent-tint: rgba(168, 85, 247, 0.12);

  /* Stati semantici */
  --ok: #34d399;
  --ok-tint: rgba(52, 211, 153, 0.12);
  --ok-border: rgba(52, 211, 153, 0.32);

  --warn: #fbbf24;
  --warn-tint: rgba(251, 191, 36, 0.12);
  --warn-border: rgba(251, 191, 36, 0.32);

  --risk: #fb7185;
  --risk-tint: rgba(251, 113, 133, 0.12);
  --risk-border: rgba(251, 113, 133, 0.34);

  --info: #60a5fa;
  --slate: #94a3b8;

  /* Testo WCAG AA/AAA */
  --text-primary: #f5f3fb;
  --text-secondary: #c0bad4;
  --text-muted: #9892b0;

  /* Tipografia locale/sistema */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Cascadia Mono', 'JetBrains Mono', 'Consolas', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scala tipografica compatta e incisiva */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 0.97rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.18rem;
  --text-2xl: 1.45rem;
  --text-3xl: clamp(1.55rem, 2.55vw, 2.15rem);
  --text-4xl: clamp(1.95rem, 3.7vw, 3.15rem);

  /* Spaziature snelle (-40% altezza complessiva) */
  --container-max: 1180px;
  --header-height: 68px;
  --section-py: clamp(3rem, 5.2vw, 4.5rem);

  /* Raggi */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Ombre */
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.44);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 0 0 1px rgba(168, 85, 247, 0.36), 0 22px 54px -14px rgba(109, 40, 217, 0.42);

  /* Transizioni 60fps */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms var(--ease-out);
  --t-base: 260ms var(--ease-out);
  --t-slow: 440ms var(--ease-out);
}
