/* ==========================================
   DEVKIT DESIGN SYSTEM
   Created by xKaviiZer
   Version 1.0
   ========================================== */

/* TYPOGRAPHY */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');


:root {

    /* BRAND */

    --brand-primary: #8B5CF6;
    --brand-secondary: #6366F1;
    --brand-highlight: #A78BFA;
    --brand-blue: #38BDF8;

    /* BACKGROUNDS */

    --bg-primary: #09090F;
    --bg-secondary: #11111B;
    --bg-tertiary: #191927;
    --bg-elevated: #202033;

    /* TEXT */

    --text-primary: #F4F1FF;
    --text-secondary: #B5B2C8;
    --text-muted: #9290A5;
    --text-disabled: #555469;

    /* BORDERS */

    --border-default: #29283A;
    --border-subtle: #201F30;
    --border-focus: var(--brand-primary);

    /* STATUS */

    --color-success: #34D399;
    --color-warning: #FBBF24;
    --color-error: #FB7185;
    --color-info: #38BDF8;

    /* TYPOGRAPHY */

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 48px;

    /* FONT WEIGHTS */

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* SPACING */

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* BORDER RADIUS */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 999px;

    /* SHADOWS & GLOWS (Subtle & Purposeful) */

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.18);
    --shadow-glow-strong: 0 0 28px rgba(139, 92, 246, 0.32);
    --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.3);

    /* TRANSITIONS */

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* GRADIENTS */

    --gradient-brand: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --gradient-highlight: linear-gradient(135deg, #A78BFA 0%, #38BDF8 100%);
    --gradient-surface: linear-gradient(180deg, rgba(25, 25, 39, 0.5) 0%, rgba(17, 17, 27, 0.8) 100%);
}


/* GLOBAL RESET */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* BODY */

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-regular);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ACCESSIBLE FOCUS-VISIBLE & SKIP LINK DEFAULTS */

:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: var(--space-4, 16px);
    background: var(--brand-primary, #8B5CF6);
    color: #ffffff;
    padding: var(--space-2, 8px) var(--space-4, 16px);
    border-radius: var(--radius-md, 10px);
    font-size: var(--text-base, 14px);
    font-weight: var(--weight-medium, 500);
    text-decoration: none;
    z-index: 9999;
    transition: top var(--transition-fast, 150ms ease);
}

.skip-to-content:focus {
    top: var(--space-4, 16px);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}


/* HEADINGS */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
}


/* BUTTONS BASE */

button {
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}


/* CARDS BASE */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}


/* PRIMARY BUTTON BASE */

.btn-primary {
    background: var(--gradient-brand);
    color: #FFFFFF;
    border: 1px solid transparent;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.28);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), filter var(--transition-normal);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-strong);
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}


/* INPUTS BASE */

input, textarea, select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-primary);
    box-shadow: var(--focus-ring);
    background-color: var(--bg-secondary);
}
