/* =====================================================
   WHAT?studio v2 — Design Tokens
   Casa di produzione AI-native. Dark + rosso #FF0000 + Helvetica.
   ===================================================== */

:root {
    /* ---------- Brand ---------- */
    --red: #FF0000;              /* sacro, non toccare */
    --red-dark: #CC0000;
    --red-glow: rgba(255, 0, 0, 0.35);

    /* ---------- Backgrounds (dark unified) ---------- */
    --bg: #0a0a0f;              /* fondo pagina */
    --bg-alt: #101017;         /* sezioni alternate (più staccato) */
    --bg-elevated: #16161f;    /* superfici sollevate */
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    /* ---------- Text ---------- */
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.70);
    --text-muted: rgba(255, 255, 255, 0.45);

    /* ---------- Lines ---------- */
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* ---------- Typography ---------- */
    --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --fs-hero: clamp(2.75rem, 7vw, 6rem);
    --fs-h1: clamp(2.25rem, 5vw, 4rem);
    --fs-h2: clamp(1.9rem, 4vw, 3rem);
    --fs-h3: clamp(1.25rem, 2.2vw, 1.6rem);
    --fs-lead: clamp(1.05rem, 1.8vw, 1.35rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-overline: 0.8rem;
    --lh-tight: 1.05;
    --lh-normal: 1.6;
    --tracking-tight: -0.02em;
    --tracking-wide: 0.14em;

    /* ---------- Spacing ---------- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --section-pad: clamp(4rem, 7vw, 6.5rem);
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --container: 1200px;
    --container-wide: 1320px;

    /* ---------- Radius ---------- */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* ---------- Shadow ---------- */
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--red-glow);

    /* ---------- Motion (curve set: Emil Kowalski / Ionic) ---------- */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);            /* hover / colour only */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entrances, press feedback */
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* movement on screen */
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);   /* full-screen overlays / sheets */
    --dur-press: 0.12s;   /* button press */
    --dur-fast: 0.16s;    /* tooltips, small */
    --dur: 0.22s;         /* dropdowns, hovers, sheen */
    --dur-slow: 0.42s;    /* page / overlay */

    /* ---------- Layers ---------- */
    --z-nav: 1000;
    --z-overlay: 2000;
    --z-cursor: 9999;
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --dur-press: 0.01ms;
        --dur-fast: 0.01ms;
        --dur: 0.01ms;
        --dur-slow: 0.01ms;
    }
}
