/* ==============================================
   PeakChecker v4.4.0 - PUBLIC HOME PAGE CSS
   PRODUCTION READY - COMPLETE TEXT VISIBILITY FIXES
   All text readable on white backgrounds
   Updated: 2026-01-01
   ============================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --accent-color: #8b5cf6;
    
    /* Text Colors - DARK for white backgrounds */
    --text-dark: #1e293b;
    --text-medium: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    
    /* Border & Shadow */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-medium);
    background-color: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== HERO SECTION (Purple Gradient Background) ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.1;
    pointer-events: none; /* CRITICAL: Allow clicks through overlay */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Hero section - ALL text white */
.hero-section,
.hero-section *,
.hero-section h1, .hero-section h2, .hero-section h3,
.hero-section h4, .hero-section h5, .hero-section h6,
.hero-section p, .hero-section span, .hero-section div,
.hero-section small, .hero-section li {
    color: white !important;
}

/* Text gradient override for hero */
.hero-section .text-gradient {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Badge */
.feature-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 2rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    gap: 8px;
    backdrop-filter: blur(10px);
}

.feature-badge-text {
    color: white;
}

.production-badge {
    background: rgba(16, 185, 129, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Stats Counter */
.stats-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

/* ===== FEATURES SECTION (White Background) ===== */
.features-section {
    padding: 5rem 0;
    background: white;
    position: relative;
}

/* Section Titles - DARK TEXT */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Feature Cards - DARK TEXT */
.feature-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card-highlight {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.03));
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-size: 0.9375rem;
}

/* ===== HOW IT WORKS SECTION (Light Gray Background) ===== */
.how-it-works-section {
    padding: 5rem 0;
    background: var(--bg-lighter);
}

.how-it-works-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.how-it-works-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 1.25rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin: 0;
}

/* ===== TECHNOLOGY SECTION (White Background) ===== */
.technology-section {
    padding: 5rem 0;
    background: white;
}

.trust-badge {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.trust-badge i {
    color: var(--primary-color);
}

.trust-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.75rem 0 0.5rem;
}

.trust-label {
    color: var(--text-light);
    font-size: 0.875rem;
    display: block;
}

/* ===== FAQ SECTION (Light Gray Background) ===== */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-lighter);
}

.faq-accordion .accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 1.25rem 1.5rem;
    border: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--bg-lighter);
    color: var(--primary-color);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.8;
    background: white;
}

/* ===== CTA SECTION (Purple Gradient Background) ===== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.1;
    pointer-events: none; /* CRITICAL: Allow clicks through overlay */
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.border-light-subtle {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ===== ACADEMIC VALUES CARD ===== */
.academic-values-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.values-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.values-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.values-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: white;
    font-size: 1rem;
}

.value-item i {
    color: #6ee7b7;
    font-size: 1rem;
    flex-shrink: 0;
}

.value-item span {
    color: white;
}

/* ===== BUTTONS ===== */
.btn-custom-primary,
.btn.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-custom-primary:hover,
.btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.btn-custom-outline,
.btn.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-custom-outline:hover,
.btn.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn.btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn.btn-light:hover {
    background: var(--bg-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 4rem 0;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features-section,
    .how-it-works-section,
    .technology-section,
    .faq-section,
    .cta-section {
        padding: 3.5rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .feature-card,
    .how-it-works-step,
    .trust-badge {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .btn-custom-primary,
    .btn-custom-outline,
    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .feature-badge {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
}

/* ===== CRITICAL TEXT VISIBILITY FIXES ===== */
/* WHITE BACKGROUND SECTIONS - DARK TEXT */
.features-section,
.features-section *,
.features-section h1, .features-section h2, .features-section h3,
.features-section h4, .features-section h5, .features-section h6,
.features-section p, .features-section span, .features-section div:not(.feature-icon),
.features-section small, .features-section li {
    color: var(--text-medium) !important;
}

.features-section h1,
.features-section h2,
.features-section h3,
.features-section .feature-title,
.features-section .section-title {
    color: var(--text-dark) !important;
}

.how-it-works-section h1,
.how-it-works-section h2,
.how-it-works-section h3,
.how-it-works-section .step-title,
.how-it-works-section .section-title {
    color: var(--text-dark) !important;
}

.how-it-works-section p,
.how-it-works-section span,
.how-it-works-section .step-description,
.how-it-works-section .section-subtitle {
    color: var(--text-medium) !important;
}

.technology-section h1,
.technology-section h2,
.technology-section h3,
.technology-section .section-title,
.technology-section .trust-number {
    color: var(--text-dark) !important;
}

.technology-section p,
.technology-section span,
.technology-section small,
.technology-section .section-subtitle,
.technology-section .trust-label {
    color: var(--text-light) !important;
}

.faq-section h1,
.faq-section h2,
.faq-section h3,
.faq-section .section-title {
    color: var(--text-dark) !important;
}

.faq-section p,
.faq-section .section-subtitle {
    color: var(--text-light) !important;
}

/* LIGHT GRAY BACKGROUND SECTIONS - DARK TEXT */
.how-it-works-section,
.faq-section {
    background: var(--bg-lighter);
}

/* Links on white backgrounds */
.features-section a,
.how-it-works-section a,
.technology-section a,
.faq-section a {
    color: var(--primary-color) !important;
}

.features-section a:hover,
.how-it-works-section a:hover,
.technology-section a:hover,
.faq-section a:hover {
    color: var(--primary-dark) !important;
}

/* Bootstrap text-muted override for white backgrounds */
.features-section .text-muted,
.how-it-works-section .text-muted,
.technology-section .text-muted,
.faq-section .text-muted {
    color: var(--text-light) !important;
}

/* Lead text on white backgrounds */
.features-section .lead,
.how-it-works-section .lead,
.technology-section .lead,
.faq-section .lead {
    color: var(--text-medium) !important;
}

/* ===== UTILITY CLASSES ===== */
.text-decoration-underline {
    text-decoration: underline !important;
}

/* ===== END OF FILE - PRODUCTION READY ===== */