/* ==========================================================================
   3ioSetu Design Token System
   Version: 1.0.0 | Created: 2026-03-19

   This file defines ALL design tokens for the 3ioSetu brand.
   Import this file FIRST, before any other stylesheets.
   All CSS should reference these tokens instead of hardcoded values.
   ========================================================================== */

:root {
    /* ===== COLOR TOKENS ===== */

    /* Primary */
    --color-primary: #1a56db;
    --color-primary-hover: #1e40af;
    --color-primary-active: #1e3a8a;
    --color-primary-light: rgba(26, 86, 219, 0.1);
    --color-primary-lighter: rgba(26, 86, 219, 0.05);

    /* Secondary (Accent / Orange) */
    --color-secondary: #f97316;
    --color-secondary-hover: #ea580c;
    --color-secondary-light: rgba(249, 115, 22, 0.1);

    /* Accent (Pink - used sparingly) */
    --color-accent-pink: #db2777;
    --color-accent-pink-light: rgba(236, 72, 153, 0.1);
    --color-accent-pink-bg: #fdf2f8;
    --color-accent-pink-border: #fbcfe8;

    /* Neutral - Backgrounds */
    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-surface-elevated: #ffffff;
    --color-surface-dark: #0f172a;
    --color-surface-dark-alt: #1e293b;
    --color-surface-muted: #f8f9fa;
    --color-surface-hero: #f0f9ff;
    --color-surface-hero-end: #e0f2fe;

    /* Neutral - Text */
    --color-text: #1e293b;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-text-inverse: #ffffff;
    --color-text-inverse-muted: rgba(255, 255, 255, 0.9);
    --color-text-inverse-subtle: rgba(255, 255, 255, 0.8);
    --color-text-on-dark: #cbd5e1;
    --color-text-on-dark-strong: #e2e8f0;
    --color-text-on-dark-bright: #f8fafc;

    /* Neutral - Borders & Dividers */
    --color-border: #e5e7eb;
    --color-border-light: #e9ecef;
    --color-border-subtle: rgba(0, 0, 0, 0.05);
    --color-divider: #f3f4f6;
    --color-border-inverse: rgba(255, 255, 255, 0.1);
    --color-border-inverse-medium: rgba(255, 255, 255, 0.2);
    --color-border-inverse-strong: rgba(255, 255, 255, 0.3);

    /* Feedback Colors */
    --color-success: #16a34a;
    --color-success-bg: #dcfce7;
    --color-success-icon: #4ade80;
    --color-warning: #fbbf24;
    --color-error: #dc2626;
    --color-error-bg: #fee2e2;
    --color-info: #3b82f6;

    /* Social / Brand Colors */
    --color-linkedin: #0077b5;
    --color-star-rating: #fbbf24;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-strong: rgba(255, 255, 255, 0.8);
    --glass-bg-subtle: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-strong: rgba(255, 255, 255, 0.6);

    /* Overlay */
    --color-overlay-light: rgba(0, 0, 0, 0.3);
    --color-overlay-medium: rgba(0, 0, 0, 0.5);
    --color-overlay-heavy: rgba(0, 0, 0, 0.9);
    --color-overlay-inverse-subtle: rgba(255, 255, 255, 0.1);
    --color-overlay-inverse-light: rgba(255, 255, 255, 0.15);
    --color-overlay-inverse-medium: rgba(255, 255, 255, 0.2);

    /* ===== TYPOGRAPHY TOKENS ===== */

    /* Font Family */
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Font Sizes — Modular Scale */
    --text-xs: 0.75rem;       /* 12px - Caption */
    --text-sm: 0.875rem;      /* 14px - Small, badges, footer */
    --text-base: 1rem;        /* 16px - Body default */
    --text-md: 1.0625rem;     /* 17px - Slightly larger body */
    --text-lg: 1.125rem;      /* 18px - Body large, paragraphs */
    --text-xl: 1.25rem;       /* 20px - Feature titles */
    --text-2xl: 1.5rem;       /* 24px - H4, sub-headings */
    --text-3xl: 2rem;         /* 32px - H3 */
    --text-4xl: 2.5rem;       /* 40px - H2 */
    --text-5xl: 2.75rem;      /* 44px - Section headers */
    --text-6xl: 3rem;         /* 48px - Large H2 */
    --text-7xl: 3.5rem;       /* 56px - Hero H1 */
    --text-8xl: 4rem;         /* 64px - Display H1 */

    /* Font Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.2;
    --leading-snug: 1.3;
    --leading-normal: 1.4;
    --leading-relaxed: 1.6;
    --leading-loose: 1.7;
    --leading-spacious: 1.8;

    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-snug: -0.01em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;

    /* ===== SPACING TOKENS ===== */
    /* Based on 4px grid */
    --space-0: 0;
    --space-1: 0.25rem;       /* 4px */
    --space-2: 0.5rem;        /* 8px */
    --space-3: 0.75rem;       /* 12px */
    --space-4: 1rem;          /* 16px */
    --space-5: 1.25rem;       /* 20px */
    --space-6: 1.5rem;        /* 24px */
    --space-8: 2rem;          /* 32px */
    --space-10: 2.5rem;       /* 40px */
    --space-12: 3rem;         /* 48px */
    --space-16: 4rem;         /* 64px */
    --space-20: 5rem;         /* 80px */
    --space-24: 6rem;         /* 96px */
    --space-28: 7rem;         /* 112px */
    --space-32: 8rem;         /* 128px */

    /* ===== SHADOW TOKENS ===== */
    --shadow-xs: 0 1px 2px 0 rgba(26, 86, 219, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(26, 86, 219, 0.1), 0 2px 4px -1px rgba(26, 86, 219, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(26, 86, 219, 0.1), 0 4px 6px -2px rgba(26, 86, 219, 0.05);
    --shadow-xl: 0 20px 40px -10px rgba(26, 86, 219, 0.15);
    --shadow-2xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(26, 86, 219, 0.3);
    --shadow-btn: 0 4px 12px rgba(26, 86, 219, 0.25);
    --shadow-btn-hover: 0 8px 20px rgba(26, 86, 219, 0.35);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 20px 40px -10px rgba(26, 86, 219, 0.15);
    --shadow-image: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-focus: 0 0 0 3px rgba(26, 86, 219, 0.1);
    --shadow-focus-strong: 0 0 0 4px rgba(37, 99, 235, 0.1);

    /* ===== BORDER RADIUS TOKENS ===== */
    --radius-sm: 2px;
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 1rem;        /* 16px */
    --radius-xl: 1.25rem;     /* 20px */
    --radius-2xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;    /* Pill shape */
    --radius-circle: 50%;

    /* ===== Z-INDEX TOKENS ===== */
    --z-base: 0;
    --z-raised: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-navbar: 1000;
    --z-dropdown-menu: 1001;
    --z-modal-backdrop: 1500;
    --z-modal: 2000;
    --z-modal-close: 2001;
    --z-modal-nav: 2002;
    --z-tooltip: 3000;

    /* ===== TRANSITION TOKENS ===== */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease-in-out;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* ===== LAYOUT TOKENS ===== */
    --container-max: 1280px;
    --container-narrow: 800px;
    --container-form: 550px;
    --navbar-height: 80px;
    --navbar-height-scrolled: 60px;

    /* ===== BREAKPOINTS (for reference, use in media queries) ===== */
    /* --bp-xs: 320px;  */
    /* --bp-sm: 480px;  */
    /* --bp-md: 768px;  */
    /* --bp-lg: 1024px; */
    /* --bp-xl: 1280px; */
    /* --bp-2xl: 1440px; */

    /* ===== GRADIENT TOKENS ===== */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    --gradient-hero: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-footer: linear-gradient(to bottom, #1e293b, #0f172a);
    --gradient-text: linear-gradient(to right, #1e293b, #334155);
    --gradient-accent: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    --gradient-features: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    /* ===== BACKDROP FILTER TOKENS ===== */
    --blur-sm: blur(10px);
    --blur-md: blur(12px);

    /* Legacy aliases (for backward compatibility with existing CSS) */
    --primary-color: var(--color-primary);
    --primary-dark: var(--color-primary-hover);
    --secondary-color: var(--color-secondary);
    --text-dark: var(--color-text);
    --text-gray: var(--color-text-muted);
    --bg-light: var(--color-surface);
    --bg-white: var(--color-bg);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --font-sans-legacy: var(--font-sans);
    --transition: var(--transition-smooth);
}

/* ===== SKIP TO CONTENT (Accessibility) ===== */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary, #1a56db);
    color: var(--color-text-inverse, #fff);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--color-secondary, #f97316);
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0.01ms;
        --transition-base: 0.01ms;
        --transition-smooth: 0.01ms;
        --transition-slow: 0.01ms;
        --transition-bounce: 0.01ms;
        --transition: 0.01ms;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
