:root {
    --primary: #4f46e5; /* Indigo/Blue */
    --primary-light: #818cf8;
    --secondary: #7c3aed; /* Purple */
    --accent: #a855f7;
    --bg-light: #f9fafb;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --border-color: #e5e7eb;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Header */
header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-container img {
    height: 32px;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.95rem;
}

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

.btn-contact {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 80px 5%;
    text-align: center;
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Upload Box - Exact LeadPDF Style */
.upload-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: 2px dashed var(--primary-light);
    border-radius: 12px;
    padding: 60px 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    background: #f8fafc;
    border-color: var(--primary);
}

.upload-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
    text-align: center;
}

.tool-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.tool-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 40px 5%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

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

/* Info Section */
.info-section {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.info-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Media & Funding Sections */
.media-section {
    padding: 60px 5%;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.media-section h5 {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.media-logos span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #374151;
}

.funding-section {
    padding: 100px 5%;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

.funding-header {
    text-align: center;
    margin-bottom: 60px;
}

.funding-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.funding-header p {
    color: #6b7280;
    font-size: 1.2rem;
}

.funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.funder-card {
    padding: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.funder-card:hover {
    transform: translateY(-8px);
    border-color: #4f46e5;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.funder-card h3 {
    margin-bottom: 15px;
    color: #4f46e5;
    font-size: 1.25rem;
    font-weight: 700;
}

.funder-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.7;
}

.badge-opensource {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .media-logos {
        gap: 30px;
    }
    .funding-header h2 {
        font-size: 2rem;
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-card h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card i {
    color: var(--secondary);
}

/* Footer */
footer {
    background: var(--bg-light);
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Mobile */
/* Modal Overlay Base */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a73e8;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Captcha Widget Imitation (1:1) */
.captcha-box {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    width: 302px;
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.captcha-checkbox-container {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.captcha-checkbox-container:hover {
    border-color: #b2b2b2;
}

.captcha-label {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #000;
    font-weight: 400;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#captcha-error {
    color: #d93025;
    font-size: 11px;
    font-weight: 500;
    margin-top: 0px;
    line-height: 1;
}

.captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.captcha-logo img {
    width: 32px;
}

.captcha-logo span {
    font-size: 8px;
    color: #555;
    text-align: center;
}

#captcha-error {
    color: #d93025;
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

/* Final Verification Modal (from Image) */
.final-modal-content {
    background: #fff;
    width: 420px;
    border-radius: 4px;
    overflow: hidden;
    text-align: left;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.final-modal-header {
    background: #1a73e8;
    color: #fff;
    padding: 20px 25px;
}

.final-modal-header h3 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
}

.final-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.final-modal-body {
    padding: 25px;
}

.final-modal-body p {
    font-size: 14px;
    color: #3c4043;
    margin-bottom: 20px;
    line-height: 1.5;
}

.step-list {
    list-style: none;
    margin-bottom: 25px;
}

.step-list li {
    font-size: 15px;
    color: #202124;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-list .num {
    font-weight: 700;
    color: #202124;
}

.captcha-footer-row {
    border-top: 1px solid #dadce0;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.captcha-verify-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #70757a;
}

.captcha-verify-info i {
    color: #1a73e8;
    font-size: 14px;
}

.btn-verify {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

}
