/* ════════════════════════════════════════════════════════════════════════════
   FINHANCE — COSMIC FINANCE TOKENS (all-dark editorial)
   Layer di design tokens applicato sopra style.css.
   Tipografia editoriale dominante: Instrument Serif (italic + roman).
   DM Sans/Inter restano per CTA e label tecnici.
════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
    /* ── Brand palette FinHance (preservata per accenti) ─────────────────── */
    --navy: #1E2761;
    --navy-light: #2A3575;
    --green: #07F968;
    --green-dark: #05C854;
    --green-glow: rgba(7, 249, 104, 0.55);
    --black: #000000;
    --white: #FFFFFF;
    --cream: #FAFAF8;
    --gray-100: #F5F5F4;
    --gray-200: #E8E8E6;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-800: #1F2937;

    /* ── White-on-black hierarchy (editoriale) ───────────────────────────── */
    --w-100: rgba(255, 255, 255, 1);
    --w-90:  rgba(255, 255, 255, 0.9);
    --w-80:  rgba(255, 255, 255, 0.8);
    --w-70:  rgba(255, 255, 255, 0.7);
    --w-60:  rgba(255, 255, 255, 0.6);
    --w-50:  rgba(255, 255, 255, 0.5);
    --w-40:  rgba(255, 255, 255, 0.4);
    --w-20:  rgba(255, 255, 255, 0.2);
    --w-10:  rgba(255, 255, 255, 0.1);
    --w-05:  rgba(255, 255, 255, 0.05);

    /* ── Typography families ─────────────────────────────────────────────── */
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;

    /* ── Typography scale (fluida con clamp) ─────────────────────────────── */
    --fs-hero: clamp(72px, 11vw, 180px);
    --fs-h1: clamp(48px, 7vw, 112px);
    --fs-h2: clamp(40px, 5.5vw, 96px);
    --fs-h3: clamp(28px, 3.4vw, 56px);
    --fs-h4: clamp(20px, 1.8vw, 28px);
    --fs-lead: clamp(16px, 1.2vw, 18px);
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-eyebrow: 12px;

    /* ── Spacing extension ──────────────────────────────────────────────── */
    --space-5xl: 96px;
    --space-6xl: 128px;
    --space-7xl: 176px;

    /* ── Radii ──────────────────────────────────────────────────────────── */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
    --radius-pill: 999px;

    /* ── Transizioni / easing ───────────────────────────────────────────── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

    /* ── Layout ─────────────────────────────────────────────────────────── */
    --container-cosmic: 1280px;
    --container-wide: 1440px;
}

/* ── Base globale dark ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; background: var(--black); }
body.cosmic-scope {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background: var(--black);
    color: var(--w-80);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
@media (max-width: 480px) {
    body.cosmic-scope { font-size: 15px; }
}

/* Utility background extension */
.bg-black { background: var(--black); color: var(--w-90); }

/* ── prefers-reduced-motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
