/*
 * CollatCred — Design Tokens
 * ─────────────────────────────────────────────────────────
 * Single source of truth for all design decisions.
 * Every CSS file references these. Never hardcode a value
 * that belongs to this system.
 *
 * Token categories:
 *   Brand Colors · Surface Colors · Typography · Radius
 *   Motion · Elevation · Shadows · Z-index
 */

:root {
    /* ── Brand Colors ──────────────────────────────────── */
    --color-brand:          #22d3ee;                         /* cyan-400      */
    --color-brand-dim:      rgba(34, 211, 238, 0.15);
    --color-brand-border:   rgba(34, 211, 238, 0.35);
    --color-brand-glow:     rgba(34, 211, 238, 0.4);
    --color-brand-glow-sm:  rgba(34, 211, 238, 0.12);

    /* Semantic accent palette */
    --color-emerald:        #10b981;
    --color-rose:           #f43f5e;
    --color-amber:          #eab308;
    --color-blue:           #3b82f6;
    --color-violet:         #8b5cf6;

    /* ── Surface Colors ────────────────────────────────── */
    --color-bg:             #000000;
    --color-surface-0:      #000000;
    --color-surface-1:      #020202;                         /* nav bg        */
    --color-surface-2:      #0b0d10;                         /* stats cell bg */
    --color-surface-card:   rgba(20, 20, 25, 0.8);

    /* Text */
    --color-text-primary:   #f5f5f7;
    --color-text-secondary: #a3a3a3;                         /* neutral-400   */
    --color-text-muted:     #737373;                         /* neutral-500   */

    /* ── Typography ────────────────────────────────────── */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* ── Border Radius ─────────────────────────────────── */
    --radius-xs: 6px;    /* focus rings, tiny chips    */
    --radius-sm: 10px;   /* badges, inputs, pills       */
    --radius-md: 14px;   /* data-boxes, tier btns       */
    --radius-lg: 20px;   /* engine-card, standard cards */
    --radius-xl: 28px;   /* featured section cards      */
    --radius-2xl: 1.5rem; /* post-cards (24px)           */

    /* ── Motion — Easing ───────────────────────────────── */
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);   /* snappy, physical  */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);     /* Material standard */
    --ease-out:    cubic-bezier(0, 0, 0.2, 1);

    /* ── Motion — Duration ─────────────────────────────── */
    --dur-instant: 80ms;
    --dur-fast:    140ms;
    --dur-base:    220ms;
    --dur-slow:    380ms;
    --dur-reveal:  480ms;

    /* ── Elevation — Hover lift ────────────────────────── */
    --lift-xs:  -1px;   /* tier buttons                */
    --lift-sm:  -2px;   /* nav CTA, hero buttons       */
    --lift-md:  -3px;   /* bento cards                 */

    /* ── Shadows ───────────────────────────────────────── */
    --shadow-card:       0 20px 40px -20px rgba(0,0,0,0.8);
    --shadow-card-hover: 0 28px 48px -18px rgba(0,0,0,0.95);
    --shadow-brand-sm:   0 0 28px var(--color-brand-glow-sm);
    --shadow-brand-md:   0 0 40px var(--color-brand-glow);

    /* ── Z-index scale ─────────────────────────────────── */
    --z-bg:     -2;
    --z-grid:   -1;
    --z-base:    0;
    --z-nav:    40;
    --z-modal: 9998;
    --z-skip:  9999;

    /* ── Container widths ──────────────────────────────── */
    --container-page:    1280px;   /* max-w-7xl equivalent — full page layout  */
    --container-content: 1024px;   /* max-w-4xl — article / section content    */
    --container-narrow:   768px;   /* max-w-3xl — prose / heading intros       */

    /* ── Spacing rhythm ────────────────────────────────── */
    /*
     * Two-level system:
     *   --gap-unit   → dense spacing WITHIN a UI unit (between icon and text,
     *                  between stats cells, between tier buttons)
     *   --gap-group  → loose spacing BETWEEN content groups / sections
     *                  (between bento cards in a grid, between section blocks)
     *
     * Maps directly to Tailwind gap-4 (16px) / gap-6 (24px) / gap-8 (32px).
     * Use these in new CSS; keep Tailwind classes in HTML for utility classes.
     */
    --gap-unit:   1rem;    /* 16px — gap-4  — within UI units   */
    --gap-group:  1.5rem;  /* 24px — gap-6  — between cards     */
    --gap-section: 2rem;   /* 32px — gap-8  — between sections  */
}
