@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nothing+You+Could+Do&display=swap');

/* ==================== GLOBAL RESET ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== ROOT VARIABLES ==================== */
:root {
    /* Colors */
    --primary-green: #22c55e;
    --primary-green-dark: #16a34a;
    --primary-green-darker: #15803d;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: "Inter Tight", sans-serif;
    --font-display: "Poppins", sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== BASE STYLES ==================== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: inherit;
}

p {
    margin: 0;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

/* ==================== BUTTON RESET ==================== */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

/* ==================== UTILITY CLASSES ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== FOCUS STYLES ==================== */
*:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ==================== SELECTION STYLES ==================== */
::selection {
    background-color: var(--primary-green);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Responsive Typography */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --spacing-xs: 0.2rem;
        --spacing-sm: 0.4rem;
        --spacing-md: 0.8rem;
        --spacing-lg: 1.2rem;
        --spacing-xl: 1.6rem;
        --spacing-2xl: 2.4rem;
        --spacing-3xl: 3.2rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        line-height: 1.5;
    }
    
    :root {
        --spacing-xs: 0.15rem;
        --spacing-sm: 0.3rem;
        --spacing-md: 0.6rem;
        --spacing-lg: 1rem;
        --spacing-xl: 1.4rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.8rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 13px;
    }
    
    :root {
        --spacing-xs: 0.125rem;
        --spacing-sm: 0.25rem;
        --spacing-md: 0.5rem;
        --spacing-lg: 0.8rem;
        --spacing-xl: 1.2rem;
        --spacing-2xl: 1.6rem;
        --spacing-3xl: 2.4rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    body {
        line-height: 1.4;
    }
    
    :root {
        --spacing-xs: 0.1rem;
        --spacing-sm: 0.2rem;
        --spacing-md: 0.4rem;
        --spacing-lg: 0.6rem;
        --spacing-xl: 1rem;
        --spacing-2xl: 1.4rem;
        --spacing-3xl: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 11px;
    }
    
    :root {
        --spacing-xs: 0.08rem;
        --spacing-sm: 0.15rem;
        --spacing-md: 0.3rem;
        --spacing-lg: 0.5rem;
        --spacing-xl: 0.8rem;
        --spacing-2xl: 1.2rem;
        --spacing-3xl: 1.6rem;
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
}

/* Touch-friendly Interactive Elements */
@media (max-width: 768px) {
    button,
    a,
    input,
    textarea,
    select {
        min-height: 44px;
        min-width: 44px;
    }
    
    button {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* Improved Focus for Mobile */
@media (max-width: 768px) {
    *:focus {
        outline: 3px solid var(--primary-green);
        outline-offset: 3px;
    }
}
