/* ================================================
   AUTOMATE WITH CASS - DESIGN SYSTEM
   Professional SaaS Marketing Stylesheet
   ================================================ */

/* ========== TYPOGRAPHY ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
    /* Fonts */
    --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Colors - Primary (Professional Blue) */
    --primary-blue: #0D8BF2;
    --primary-dark: #0566C1;
    --primary-darker: #133b5c;
    --primary-light: #f2f6fb;
    
    /* Colors - Neutrals */
    --gray-50: #f9fafb;
    --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;
    
    /* Colors - Semantic */
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --error-red: #ef4444;
    
    /* Spacing Scale */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(17, 40, 80, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(17, 40, 80, 0.08), 0 2px 4px -1px rgba(17, 40, 80, 0.04);
    --shadow-lg: 0 10px 30px rgba(17, 40, 80, 0.08);
    --shadow-xl: 0 20px 40px rgba(17, 40, 80, 0.12);
    
    /* Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 2rem;        /* 32px */
    --text-4xl: 2.5rem;      /* 40px */
    --text-5xl: 3rem;        /* 48px */
}

/* ========== BASE STYLES ========== */
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin: 0;
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 700; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

p {
    margin: 0 0 var(--space-md) 0;
    line-height: 1.7;
    max-width: 65ch;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-3xl) 0;
}

.section-lg {
    padding: 120px 0;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 16px 28px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid transparent;
}

.btn-ghost:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-lg {
    padding: 18px 32px;
    font-size: var(--text-lg);
}

.btn-sm {
    padding: 12px 20px;
    font-size: var(--text-sm);
}

/* ========== CARDS ========== */
.card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-featured {
    border: 2px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-dark));
}

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

/* ========== GRID LAYOUTS ========== */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ========== NAVIGATION ========== */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* ========== HERO SECTIONS ========== */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ========== TESTIMONIALS ========== */
.testimonial {
    background: var(--gray-50);
    border-left: 4px solid var(--primary-blue);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
}

.testimonial-text {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--text-xl);
}

/* ========== STATS ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.stat-box {
    text-align: center;
    padding: var(--space-xl);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: var(--text-base);
    color: var(--gray-600);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--gray-700);
    font-size: var(--text-sm);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 139, 242, 0.1);
}

/* ========== MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    margin: 20px;
}

.modal-title {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.modal-subtitle {
    color: var(--gray-600);
    margin-bottom: 30px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-checkbox-container {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.form-checkbox-label {
    display: flex;
    align-items: start;
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--gray-700);
}

.form-checkbox {
    margin-top: 3px;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-actions .btn-primary {
    flex: 1;
}

.btn-cancel {
    padding: 14px 24px;
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel:hover {
    background: var(--gray-300);
}

@media (max-width: 768px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ========== CONTAINER WIDTHS ========== */
.container-sm { max-width: 600px; margin-left: auto; margin-right: auto; }
.container-md { max-width: 800px; margin-left: auto; margin-right: auto; }
.container-lg { max-width: 900px; margin-left: auto; margin-right: auto; }
.container-xl { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* ========== TEXT DECORATIONS ========== */
.text-strike { text-decoration: line-through; }

/* ========== CUSTOM AVATAR SIZES ========== */
.avatar-xl {
    width: 120px;
    height: 120px;
    font-size: 48px;
}

/* ========== GRADIENT BACKGROUNDS ========== */
.bg-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #0D8BF2 20%, #0566C1 80%);
}

/* ========== PROFILE HEADER ========== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.text-muted { color: var(--gray-600); }
.text-primary { color: var(--primary-blue); }

/* ========== FOOTER ========== */
.footer-enhanced {
    background: var(--gray-100);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    color: var(--gray-700);
}

.footer-enhanced a {
    color: var(--primary-blue);
    text-decoration: none;
}

.footer-enhanced a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-enhanced p {
    margin-bottom: var(--space-sm);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: var(--space-md);
        flex-wrap: wrap;
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
}
