/* ==========================================================================
   AVP TECH SOLUTION - MAIN DESIGN SYSTEM
   Theme: Dark Premium UI (Apple / Linear / Framer / Vercel Aesthetic)
   ========================================================================== */

/* 1. CSS RESET & BASICS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis-smooth {
    scroll-behavior: auto !important;
}

html.lenis body {
    overscroll-behavior: none;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* 2. DESIGN TOKENS */
:root {
    /* Brand Colors */
    --bg-dark: #0B0F14;
    --bg-darker: #080A11;
    --bg-card: #121820;
    --bg-light: #F6F5FE;
    --text-primary: #F7F6F2;
    --text-muted: #94A3B8;
    --text-dark: #0B0F14;

    /* Accent Colors */
    --accent-purple: #C487F9;
    --accent-cyan: #23CFEE;
    --accent-green: #10B981;
    --accent-purple-glow: rgba(196, 135, 249, 0.35);
    --accent-cyan-glow: rgba(35, 207, 238, 0.35);

    /* Typography */
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-glow: 0 0 30px var(--accent-purple-glow);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);

    /* Z-Index Layers */
    --z-base: 1;
    --z-sticky: 100;
    --z-modal: 500;
    --z-cursor: 9999;
}

/* 3. BASE TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 600; }

p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 4. UTILITY CLASSES */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding: var(--space-2xl) 0;
    position: relative;
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--space-2xl) 0;
    position: relative;
}

.section-light h1, 
.section-light h2, 
.section-light h3 {
    color: var(--text-dark);
}

.section-light p {
    color: #475569;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.glass-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Button Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--accent-purple);
    box-shadow: 0 0 15px rgba(196, 135, 249, 0.2);
}

.btn-primary:hover {
    background: var(--accent-purple);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--accent-purple-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Pill Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(196, 135, 249, 0.1);
    border: 1px solid rgba(196, 135, 249, 0.3);
    color: var(--accent-purple);
    margin-bottom: 1.25rem;
}

.badge-green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

.badge-cyan {
    background: rgba(35, 207, 238, 0.1);
    border-color: rgba(35, 207, 238, 0.3);
    color: var(--accent-cyan);
}

/* Accent Highlight */
.text-purple { color: var(--accent-purple); }
.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    :root {
        --space-2xl: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 3rem;
    }
}
