/* Upload Section Highlight Animation */
.upload-section.highlighted {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.3);
    animation: highlight-pulse 2s ease-in-out;
}

.upload-section.highlighted .upload-area {
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    box-shadow: var(--shadow-orange);
}

@keyframes highlight-pulse {
    0%, 100% { transform: translateY(-4px); }
    50% { transform: translateY(-8px); }
}

/* Phinaa AI Modern Design System */
:root {
    /* Premium Orange Brand Colors */
    --brand-primary: #FF6B35;      /* Procore-inspired Orange */
    --brand-primary-light: #FF8F65;  /* Lighter Orange */
    --brand-primary-dark: #E85A2B;   /* Darker Orange */
    --brand-secondary: #FFB195;      /* Soft Orange */
    --brand-accent: #FFA500;         /* Accent Orange */
    
    /* Premium Dark Theme Grays - YC Style */
    --gray-50: #0a0b0d;    /* Darkest background */
    --gray-100: #1a1d23;   /* Card backgrounds */
    --gray-200: #22262f;   /* Elevated surfaces */
    --gray-300: #2a303c;   /* Borders */
    --gray-400: #374151;   /* Muted elements */
    --gray-500: #6b7280;   /* Secondary text */
    --gray-600: #9ca3af;   /* Primary text muted */
    --gray-700: #d1d5db;   /* Primary text */
    --gray-800: #1f2937;   /* Dark text for light backgrounds */
    --gray-900: #111827;   /* Maximum contrast dark text */
    --white: #ffffff;      /* Pure white */
    --gray-text-light: #f9fafb;  /* White text for dark backgrounds */
    
    /* Semantic Colors */
    --success-50: #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --error-50: #fef2f2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    
    /* Typography */
    --font-ui: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Inter', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    
    /* 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: 1.875rem;      /* 30px */
    --text-4xl: 2.25rem;       /* 36px */
    --text-5xl: 3rem;          /* 48px */
    --text-6xl: 3.75rem;       /* 60px */
    
    /* Spacing Scale */
    --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 */
    
    /* Border Radius */
    --radius-sm: 0.375rem;     /* 6px */
    --radius-md: 0.5rem;       /* 8px */
    --radius-lg: 0.75rem;      /* 12px */
    --radius-xl: 1rem;         /* 16px */
    --radius-2xl: 1.5rem;      /* 24px */
    --radius-full: 9999px;
    
    /* Premium Dark Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.6);
    --shadow-orange: 0 10px 25px -5px rgba(255, 107, 53, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Luxurious YC Startup Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f9fafb 25%, 
        #f3f4f6 50%, 
        #f9fafb 75%, 
        #ffffff 100%);
    animation: luxuryGradient 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 139, 101, 0.02) 0%, transparent 70%);
    animation: premiumOrbs 40s ease-in-out infinite;
}

/* Orange Bubbles Animation */
.orange-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 139, 101, 0.08));
    border-radius: 50%;
    animation: bubbleFloat 15s infinite linear;
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.bubble:nth-child(1) {
    left: 10%;
    width: 60px;
    height: 60px;
    animation-delay: -2s;
    animation-duration: 18s;
}

.bubble:nth-child(2) {
    left: 20%;
    width: 40px;
    height: 40px;
    animation-delay: -7s;
    animation-duration: 22s;
}

.bubble:nth-child(3) {
    left: 35%;
    width: 80px;
    height: 80px;
    animation-delay: -12s;
    animation-duration: 16s;
}

.bubble:nth-child(4) {
    left: 50%;
    width: 30px;
    height: 30px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.bubble:nth-child(5) {
    left: 65%;
    width: 50px;
    height: 50px;
    animation-delay: -15s;
    animation-duration: 19s;
}

.bubble:nth-child(6) {
    left: 80%;
    width: 35px;
    height: 35px;
    animation-delay: -10s;
    animation-duration: 24s;
}

.bubble:nth-child(7) {
    left: 90%;
    width: 45px;
    height: 45px;
    animation-delay: -3s;
    animation-duration: 17s;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) scale(1) rotate(45deg);
    }
    90% {
        opacity: 0.4;
        transform: translateY(10vh) scale(1.1) rotate(315deg);
    }
    100% {
        transform: translateY(-10vh) scale(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes luxuryGradient {
    0%, 100% {
        background: linear-gradient(135deg, 
            #ffffff 0%, 
            #f9fafb 25%, 
            #f3f4f6 50%, 
            #f9fafb 75%, 
            #ffffff 100%);
    }
    50% {
        background: linear-gradient(135deg, 
            #f9fafb 0%, 
            #f3f4f6 25%, 
            #ffffff 50%, 
            #f3f4f6 75%, 
            #f9fafb 100%);
    }
}

@keyframes premiumOrbs {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: rotate(120deg) scale(1.02);
        opacity: 0.8;
    }
    66% {
        transform: rotate(240deg) scale(0.98);
        opacity: 0.7;
    }
}

/* Layout */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page.hidden {
    display: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

/* Header & Navigation */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--transition-normal);
}

.logo:hover {
    opacity: 1;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--brand-primary);
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: normal;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.1));
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.results-logo .logo-image {
    height: 72px;
    width: auto;
    background: transparent !important;
}

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

/* Modern Button System */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.nav-btn.secondary {
    background: rgba(26, 29, 35, 0.6);
    color: var(--gray-700);
    border: 1px solid rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(10px);
}

.nav-btn.secondary:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--gray-900);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-orange);
    position: relative;
    overflow: hidden;
}

.nav-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn.primary:hover::before {
    left: 100%;
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(255, 107, 53, 0.4);
}

/* Hero Section */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) 0;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--success-50);
    color: var(--success-600);
    border: 1px solid var(--success-500);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-8);
}

.hero-badge i {
    width: 16px;
    height: 16px;
}

.headline {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.sub-headline {
    font-size: var(--text-xl);
    color: var(--gray-600);
    margin-bottom: var(--space-10);
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-8);
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-ui);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-primary i {
    width: 20px;
    height: 20px;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-8);
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-50);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-lg);
    font-family: var(--font-ui);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-orange);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-secondary i {
    width: 20px;
    height: 20px;
}

.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
}

.proof-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-800);
    font-size: var(--text-base);
    font-weight: 700;
}

.proof-item i {
    width: 16px;
    height: 16px;
    color: var(--brand-primary);
}

/* Upload Section */
.upload-section {
    margin-top: var(--space-16);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-2xl);
    padding: var(--space-16) var(--space-8);
    background: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: var(--space-6);
    position: relative;
    text-align: center;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--brand-primary);
    background: rgba(37, 99, 235, 0.02);
    transform: scale(1.01);
}

.upload-icon {
    margin-bottom: var(--space-4);
}

.upload-icon-main {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.upload-area:hover .upload-icon-main,
.upload-area.dragover .upload-icon-main {
    color: var(--brand-primary);
}

.upload-text {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.upload-subtext {
    font-size: var(--text-base);
    color: var(--gray-500);
}

.file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

/* File List */
.file-list {
    margin-top: var(--space-4);
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-sm);
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.file-icon {
    font-size: var(--text-xl);
}

.file-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: var(--text-base);
}

.file-size {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: var(--space-1);
}

.file-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    line-height: 1;
    transition: all var(--transition-fast);
}

.file-remove:hover {
    color: var(--error-500);
    background: var(--error-50);
}

/* Analyze Button */
.analyze-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    max-width: 300px;
    margin: var(--space-8) auto 0;
    padding: var(--space-5) var(--space-8);
    background: var(--brand-accent);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-ui);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.analyze-btn:enabled:hover {
    background: var(--success-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.analyze-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.analyze-btn i {
    width: 20px;
    height: 20px;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.analyze-btn:enabled:hover .btn-arrow {
    transform: translateX(4px);
}

/* Progress Page */
.progress-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.progress-header {
    padding: var(--space-6) 0;
    text-align: center;
}

.progress-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-20) 0;
}

.progress-animation {
    margin-bottom: var(--space-8);
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.progress-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-12);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    color: var(--gray-500);
    font-weight: 500;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.step.active {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(37, 99, 235, 0.02);
    box-shadow: var(--shadow-md);
}

.step i {
    width: 20px;
    height: 20px;
}

/* Results Page */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0;
}

.new-analysis-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.new-analysis-btn:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.new-analysis-btn i {
    width: 16px;
    height: 16px;
}

.results-content {
    padding-bottom: var(--space-16);
}

.results-title-section {
    text-align: center;
    margin-bottom: var(--space-16);
    padding: var(--space-16) var(--space-8);
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
}

.tender-name {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-8);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.project-summary {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
}

.summary-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: var(--text-xl);
    color: var(--gray-900);
    font-weight: 600;
    line-height: 1.4;
}

/* Results Sections */
.results-section {
    margin-bottom: var(--space-16);
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.results-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-8) var(--space-8);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.section-header.critical {
    background: var(--error-50);
    border-bottom-color: var(--error-200);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    line-height: 1.3;
}

.section-badge {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--brand-primary);
    color: var(--white);
}

.section-badge.required {
    background: var(--brand-primary);
    color: var(--white);
}

.section-badge.personnel {
    background: var(--success-500);
    color: var(--white);
}

.section-badge.financial {
    background: var(--warning-500);
    color: var(--white);
}

.section-badge.critical {
    background: var(--error-50);
    color: var(--error-600);
}

.section-badge.warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

/* Content Areas */
.deadlines-grid,
.requirements-list,
.personnel-list,
.evaluation-list,
.legal-list,
.financial-info {
    padding: var(--space-8);
}

.deadlines-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.deadline-item {
    padding: var(--space-6);
    background: var(--error-50);
    border: 1px solid var(--error-200);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--error-500);
}

.deadline-event {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

.deadline-date {
    color: var(--error-600);
    font-weight: 500;
    font-size: var(--text-sm);
}

.requirement-item,
.personnel-item,
.evaluation-item,
.legal-item {
    padding: var(--space-6);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    background: var(--white);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.requirement-item:hover,
.personnel-item:hover,
.evaluation-item:hover,
.legal-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.requirement-item:last-child,
.personnel-item:last-child,
.evaluation-item:last-child,
.legal-item:last-child {
    margin-bottom: 0;
}

.item-title {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
    line-height: 1.4;
}

.item-details {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: var(--text-base);
    font-weight: 400;
}

.item-source {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-top: var(--space-3);
    font-style: italic;
    padding-top: var(--space-2);
    border-top: 1px solid var(--gray-100);
}

.personnel-role {
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

.evaluation-criteria {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: var(--space-4);
}

.criteria-weight {
    font-weight: 600;
    color: var(--brand-accent);
    white-space: nowrap;
    font-size: var(--text-sm);
}

.financial-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: var(--space-6);
}

.financial-item {
    padding: var(--space-6);
    background: var(--success-50);
    border: 1px solid var(--success-200);
    border-radius: var(--radius-lg);
}

.financial-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.financial-value {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
}

.insurance-list {
    margin-top: var(--space-6);
}

.insurance-item {
    padding: var(--space-3) var(--space-4);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    font-weight: 500;
    font-size: var(--text-sm);
}

/* Platform CTA Section */
.platform-cta-section {
    margin: var(--space-12) 0 var(--space-8) 0;
    padding: 0 var(--space-4);
}

.cta-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.cta-header {
    margin-bottom: var(--space-8);
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.cta-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-8) 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-align: left;
}

.feature-icon {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.feature-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 500;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-10);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin: var(--space-6) 0 var(--space-4) 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-secondary) 100%);
}

.cta-btn .btn-icon {
    font-size: var(--text-xl);
    transition: transform var(--transition-fast);
}

.cta-btn:hover .btn-icon {
    transform: translateX(3px);
}

.cta-note {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin-top: var(--space-2);
}

/* Download Section */
.download-section {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.download-btn:not(.secondary) {
    background: var(--brand-accent);
    color: white;
}

.download-btn.secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

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

.download-btn:not(.secondary):hover {
    background: var(--success-600);
}

.download-btn.secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Error Message */
.error-message {
    position: fixed;
    top: var(--space-8);
    right: var(--space-8);
    z-index: 1000;
    max-width: 400px;
}

.error-message.hidden {
    display: none;
}

.error-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: var(--error-50);
    border: 1px solid var(--error-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.error-icon {
    font-size: var(--text-lg);
    color: var(--error-500);
}

.error-text {
    flex: 1;
    color: var(--error-600);
    font-weight: 500;
    font-size: var(--text-sm);
}

.error-close {
    background: none;
    border: none;
    color: var(--error-500);
    cursor: pointer;
    font-size: var(--text-lg);
    line-height: 1;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.error-close:hover {
    background: var(--error-100);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .hero-proof {
        flex-direction: column;
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .nav-actions {
        order: -1;
    }
    
    .headline {
        font-size: var(--text-4xl);
    }
    
    .sub-headline {
        font-size: var(--text-lg);
    }
    
    .main-content {
        padding: var(--space-12) 0;
    }
    
    .upload-area {
        padding: var(--space-12) var(--space-6);
    }
    
    .project-summary {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .deadlines-grid {
        grid-template-columns: 1fr;
    }
    
    .download-section {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
    
    .evaluation-criteria {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .cta-card {
        padding: var(--space-8) var(--space-6);
    }
    
    .cta-title {
        font-size: var(--text-2xl);
    }
    
    .cta-features {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .cta-btn {
        padding: var(--space-4) var(--space-8);
        font-size: var(--text-base);
    }
}

@media (max-width: 640px) {
    .nav-btn span {
        display: none;
    }
    
    .nav-btn {
        padding: var(--space-3);
    }
    
    .headline {
        font-size: var(--text-3xl);
    }
    
    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease-out;
}

.welcome-modal .modal-content {
    max-width: 520px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: var(--space-8) var(--space-8) var(--space-6);
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.welcome-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    animation: welcomePulse 2s ease-in-out infinite;
}

.welcome-icon i {
    color: white;
    font-size: 24px;
}

@keyframes welcomePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.modal-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
}

.modal-body {
    padding: 0 var(--space-8) var(--space-6);
}

.upgrade-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-subtle);
    border-radius: 12px;
    border-left: 3px solid var(--primary-500);
}

.benefit-item i {
    color: var(--primary-500);
    font-size: 18px;
}

.benefit-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.onboarding-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-subtle);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.checklist-item.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.checklist-item.completed i {
    color: var(--success-500);
    animation: checkPulse 0.6s ease-out;
}

.checklist-item:not(.completed) i {
    color: var(--text-muted);
}

@keyframes checkPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checklist-item span {
    font-weight: 500;
    color: var(--text-primary);
}

.checklist-item.completed span {
    color: var(--success-700);
}

.modal-actions {
    padding: 0 var(--space-8) var(--space-8);
    display: flex;
    gap: var(--space-3);
    flex-direction: column;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--text-base);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
}

.modal-actions .btn-secondary {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.modal-actions .btn-secondary:hover {
    background: var(--bg-muted);
    border-color: var(--border-focus);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .modal {
        padding: var(--space-2);
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: var(--space-6) var(--space-6) var(--space-4);
    }
    
    .modal-body {
        padding: 0 var(--space-6) var(--space-4);
    }
    
    .modal-actions {
        padding: 0 var(--space-6) var(--space-6);
    }
    
    .welcome-icon {
        width: 56px;
        height: 56px;
    }
    
    .welcome-icon i {
        font-size: 20px;
    }
}

/* Guest Unlock Overlays */
.guest-unlock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
}

.unlock-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-500);
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    color: var(--primary-600);
    backdrop-filter: blur(8px);
    animation: unlockPulse 2s ease-in-out infinite;
}

.unlock-content i {
    color: var(--primary-500);
    font-size: 18px;
}

@keyframes unlockPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(59, 130, 246, 0.25);
    }
}