/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a2e;
    overflow-x: hidden;
}

/* ===== PAGE TRANSITIONS – Fade + Slide ===== */
.page {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.page > * {
    width: 100%;
}

.page.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 2;
    pointer-events: auto;
}

.page:not(.active) {
    opacity: 0.15;
    transform: translateY(20px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== HERO SECTION ===== */
.hero-bg {
    background-image: url('../assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 1.5rem;
}

.hero-content h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 650px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.gradient-text {
    background: linear-gradient(135deg, #93C5FD 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

@media (min-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.stat-card .number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-card .label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: #f8fafc;
    padding: 5rem 1.5rem;
}

.features-section .container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ---- Big gradient title (no border, no underline) ---- */
.section-title-hero {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 auto;
    background: linear-gradient(135deg, #0f172a 0%, #1E1B4B 30%, #2563EB 70%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-subtitle {
    color: #475569;
    max-width: 550px;
    margin: 0.75rem auto 0;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-icon.blue { background: #eff6ff; color: #2563EB; }
.feature-icon.indigo { background: #eef2ff; color: #4F46E5; }
.feature-icon.emerald { background: #ecfdf5; color: #059669; }
.feature-icon.purple { background: #f5f3ff; color: #7C3AED; }
.feature-icon.rose { background: #fff1f2; color: #e11d48; }
.feature-icon.amber { background: #fffbeb; color: #d97706; }

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-section {
    background: #ffffff;
    padding: 5rem 1.5rem;
}

.how-section .container {
    max-width: 1280px;
    margin: 0 auto;
}

.how-section .section-title-hero {
    margin-bottom: 0.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-bottom: 1rem;
}

.step-icon.upload { background: #2563EB; }
.step-icon.analyse { background: #4F46E5; }
.step-icon.report { background: #0891B2; }

.step-icon:hover {
    transform: translateY(-8px) scale(1.08);
}

.step-icon.upload:hover { box-shadow: 0 0 30px rgba(37, 99, 235, 0.5); }
.step-icon.analyse:hover { box-shadow: 0 0 30px rgba(79, 70, 229, 0.5); }
.step-icon.report:hover { box-shadow: 0 0 30px rgba(8, 145, 178, 0.5); }

.step-icon:hover i {
    animation: iconPulse 0.6s ease infinite alternate;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0.5rem;
}

.step-item p {
    font-size: 0.875rem;
    color: #64748b;
    max-width: 280px;
    margin: 0.25rem auto 0;
}

.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 36px;
        left: 33%;
        right: 33%;
        height: 2px;
        background: #bfdbfe;
        z-index: 0;
    }
}

/* ===== UPLOAD SECTION ===== */
.upload-area {
    text-align: center;
    margin-top: 3rem;
}

.btn-upload {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
}

.btn-upload:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}

.btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-upload .spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.upload-hint {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}

/* ===== RESULTS ===== */
#results {
    display: none;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    text-align: left;
    max-width: 900px;
}

#results.visible {
    display: block;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.risk-score {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
}

.risk-low { background: #d1fae5; color: #065f46; }
.risk-medium { background: #fef3c7; color: #92400e; }
.risk-high { background: #fee2e2; color: #991b1b; }

.result-section {
    margin-top: 1.25rem;
}

.result-section h4 {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.result-section .key-terms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
    font-size: 0.875rem;
}

.key-terms dt {
    font-weight: 500;
    color: #64748b;
}

.key-terms dd {
    color: #0f172a;
}

.finding-item {
    border-left: 4px solid #3B82F6;
    padding: 0.5rem 0 0.5rem 1rem;
    margin-top: 0.5rem;
}

.finding-item .finding-clause {
    font-weight: 500;
    color: #0f172a;
}

.finding-item .finding-issue {
    font-size: 0.875rem;
    color: #475569;
}

.finding-item .finding-recommendation {
    font-size: 0.875rem;
    color: #475569;
    margin-top: 0.25rem;
}

.finding-item .finding-recommendation strong {
    color: #0f172a;
}

.finding-item .severity {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.severity-high { color: #dc2626; }
.severity-medium { color: #d97706; }
.severity-low { color: #059669; }

.red-flag {
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.red-flag i { font-size: 0.875rem; }

.result-footer {
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
    margin-top: 1.25rem;
}

/* ===== DOWNLOAD BUTTONS ===== */
#downloadSection {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

#downloadSection.visible {
    display: block;
}

#downloadSection h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-2px);
}

.btn-download.pdf {
    background: #dc2626;
    color: #fff;
}
.btn-download.pdf:hover {
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}
.btn-download.excel {
    background: #16a34a;
    color: #fff;
}
.btn-download.excel:hover {
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
}
.btn-download.json {
    background: #f59e0b;
    color: #fff;
}
.btn-download.json:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

#downloadSection p {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ===== GLASS NAVIGATION – ALWAYS VISIBLE ===== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    height: 72px;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.glass-nav .nav-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.glass-nav .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.glass-nav .brand img {
    height: 34px;
    width: auto;
    display: block;
}

/* ===== BRAND NAME – GRADIENT STYLE ===== */
.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #1E1B4B 30%, #2563EB 70%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    display: inline-block;
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 0.25rem 0;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.4s ease, transform 0.3s ease;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(37, 99, 235, 0.12) 30%,
        rgba(37, 99, 235, 0.3) 50%,
        rgba(37, 99, 235, 0.12) 70%,
        transparent 100%
    );
    transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

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

.nav-link:hover {
    color: #2563EB;
}

.nav-link.active {
    color: #1D4ED8 !important;
    transform: scale(1.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #2563EB, #06B6D4);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
    border-radius: 2px;
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.5; box-shadow: 0 0 8px rgba(37, 99, 235, 0.3); }
    100% { opacity: 1; box-shadow: 0 0 18px rgba(37, 99, 235, 0.6); }
}

/* ===== LOADING ===== */
#loading {
    display: none;
    margin-top: 1rem;
}

#loading .spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid #e2e8f0;
    border-top-color: #2563EB;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#loading p {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .glass-nav .brand img {
        height: 28px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .glass-nav {
        height: 64px;
    }

    .stat-card .number {
        font-size: 1.25rem;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    #results {
        padding: 1rem;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-section .key-terms {
        grid-template-columns: 1fr;
    }

    .section-title-hero {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .download-buttons {
        justify-content: center;
    }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }

/* ===== MOBILE & RESPONSIVE IMPROVEMENTS ===== */

/* ---- Touch-friendly buttons (min 44px height) ---- */
.btn-upload,
.btn-submit,
.btn-download,
.btn-primary-hero,
.btn-outline-hero,
.nav-link {
    min-height: 44px;
    min-width: 44px;
}

.btn-upload {
    padding: 0.75rem 1.5rem; /* already large, keep as is */
}

.btn-download {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

/* ---- Mobile-friendly reports ---- */
@media (max-width: 640px) {
    #results {
        padding: 1rem;
        margin: 1rem 0.5rem;
        border-radius: 0.75rem;
    }
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .result-header h3 {
        font-size: 1.1rem;
    }
    .risk-score {
        font-size: 1rem;
        padding: 0.2rem 0.75rem;
    }
    .result-section .key-terms {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .finding-item {
        padding: 0.4rem 0 0.4rem 0.75rem;
        margin-top: 0.4rem;
    }
    .finding-item .finding-clause {
        font-size: 0.9rem;
    }
    .finding-item .finding-issue,
    .finding-item .finding-recommendation {
        font-size: 0.8rem;
    }
    .red-flag {
        font-size: 0.85rem;
    }
    .result-footer {
        font-size: 0.7rem;
    }

    /* ---- Upload area ---- */
    .upload-area {
        margin-top: 2rem;
    }
    .btn-upload {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    .upload-hint {
        font-size: 0.8rem;
    }

    /* ---- Download buttons ---- */
    .download-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }

    /* ---- Navigation ---- */
    .glass-nav .brand img {
        height: 28px;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .nav-links {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }

    /* ---- Hero section ---- */
    .hero-content {
        padding: 3rem 1rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-card {
        padding: 0.75rem;
    }
    .stat-card .number {
        font-size: 1.3rem;
    }
    .stat-card .label {
        font-size: 0.7rem;
    }

    /* ---- Features ---- */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feature-card {
        padding: 1.25rem;
    }
    .section-title-hero {
        font-size: 2.2rem !important;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }

    /* ---- How it works ---- */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .step-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    .step-item h3 {
        font-size: 1.1rem;
    }
    .step-item p {
        font-size: 0.85rem;
    }

    /* ---- Contact ---- */
    .contact-section {
        padding: 3rem 1rem;
        min-height: auto;
        padding-top: 6rem;
    }
    .contact-section .section-title-hero {
        font-size: 2rem !important;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

/* ===== MOBILE & RESPONSIVE IMPROVEMENTS ===== */

/* ---- Touch-friendly buttons (min 44px height) ---- */
.btn-upload,
.btn-submit,
.btn-download,
.btn-primary-hero,
.btn-outline-hero,
.nav-link {
    min-height: 44px;
    min-width: 44px;
}

.btn-upload {
    padding: 0.75rem 1.5rem;
}

.btn-download {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

/* ---- Mobile-friendly reports ---- */
@media (max-width: 640px) {
    #results {
        padding: 1rem;
        margin: 1rem 0.5rem;
        border-radius: 0.75rem;
    }
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .result-header h3 {
        font-size: 1.1rem;
    }
    .risk-score {
        font-size: 1rem;
        padding: 0.2rem 0.75rem;
    }
    .result-section .key-terms {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .finding-item {
        padding: 0.4rem 0 0.4rem 0.75rem;
        margin-top: 0.4rem;
    }
    .finding-item .finding-clause {
        font-size: 0.9rem;
    }
    .finding-item .finding-issue,
    .finding-item .finding-recommendation {
        font-size: 0.8rem;
    }
    .red-flag {
        font-size: 0.85rem;
    }
    .result-footer {
        font-size: 0.7rem;
    }

    /* ---- Upload area ---- */
    .upload-area {
        margin-top: 2rem;
    }
    .btn-upload {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
    .upload-hint {
        font-size: 0.8rem;
    }

    /* ---- Download buttons ---- */
    .download-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }

    /* ---- Navigation ---- */
    .glass-nav .brand img {
        height: 28px;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .nav-links {
        gap: 0.75rem;
        font-size: 0.8rem;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }

    /* ---- Hero section ---- */
    .hero-content {
        padding: 3rem 1rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .stat-card {
        padding: 0.75rem;
    }
    .stat-card .number {
        font-size: 1.3rem;
    }
    .stat-card .label {
        font-size: 0.7rem;
    }

    /* ---- Features ---- */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feature-card {
        padding: 1.25rem;
    }
    .section-title-hero {
        font-size: 2.2rem !important;
    }
    .section-subtitle {
        font-size: 0.95rem;
    }

    /* ---- How it works ---- */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .step-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    .step-item h3 {
        font-size: 1.1rem;
    }
    .step-item p {
        font-size: 0.85rem;
    }

    /* ---- Contact ---- */
    .contact-section {
        padding: 3rem 1rem;
        min-height: auto;
        padding-top: 6rem;
    }
    .contact-section .section-title-hero {
        font-size: 2rem !important;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

/* ===== FOOTER – Thin & Neat ===== */
.site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 60px;
}
.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.site-footer .footer-links a:hover {
    color: #93C5FD;
}
.site-footer .footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}
.site-footer .footer-copy i {
    color: #2563EB;
    margin: 0 0.2rem;
}

/* ===== FOOTER – Matches App Theme ===== */
.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1E1B4B 50%, #2563EB 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 60px;
    backdrop-filter: blur(4px);
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}
.site-footer .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #93C5FD, #22D3EE);
    transition: width 0.3s ease;
}
.site-footer .footer-links a:hover {
    color: #ffffff;
}
.site-footer .footer-links a:hover::after {
    width: 100%;
}
.site-footer .footer-links a i {
    color: #93C5FD;
}
.site-footer .footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}
.site-footer .footer-copy .highlight {
    color: #93C5FD;
    font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid transparent;
    border-image: linear-gradient(135deg, #2563EB, #06B6D4);
    border-image-slice: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.testimonial-card .quote {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
}
.testimonial-card .quote i {
    color: #93C5FD;
    margin-right: 0.3rem;
}
.testimonial-card .author {
    font-weight: 600;
    color: #ffffff;
    margin-top: 0.25rem;
}
.testimonial-card .role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ===== DRAG & DROP UPLOAD ===== */
.drop-zone {
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    margin-bottom: 1rem;
}
.drop-zone:hover,
.drop-zone.dragover {
    border-color: #2563EB;
    background: rgba(37, 99, 235, 0.08);
}
.drop-zone i {
    font-size: 3rem;
    color: #93C5FD;
    display: block;
    margin-bottom: 0.5rem;
}
.drop-zone p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}
.drop-zone .drop-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.25rem;
}

/* ===== UPLOAD PREVIEW ===== */
.upload-preview {
    display: none;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.08);
}
.upload-preview.visible {
    display: flex;
}
.upload-preview .file-icon {
    font-size: 1.2rem;
    color: #93C5FD;
}
.upload-preview .file-name {
    font-weight: 500;
    word-break: break-all;
}
.upload-preview .file-size {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}
.upload-preview .file-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: color 0.3s;
}
.upload-preview .file-remove:hover {
    color: #ef4444;
}

/* ===== EMAIL CAPTURE ===== */
.email-capture {
    margin-top: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}
.email-capture p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.email-capture .capture-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.email-capture .capture-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 1rem;
}
.email-capture .capture-form input::placeholder {
    color: rgba(255,255,255,0.5);
}
.email-capture .capture-form input:focus {
    outline: none;
    border-color: #2563EB;
}
.email-capture .capture-form .btn-capture {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.email-capture .capture-form .btn-capture:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}
.email-capture .capture-success {
    display: none;
    color: #93C5FD;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.email-capture .capture-success.visible {
    display: block;
}

/* ===== CONTACT SECTION – With Background Image ===== */
.contact-section {
    background-image: url('../assets/bg4.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 1.5rem;
}
.contact-section .contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}
.contact-section .container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}
.contact-section .section-title-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #93C5FD 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}
.contact-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}
.contact-form label {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #ffffff;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background: rgba(255, 255, 255, 0.2);
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.btn-submit {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    color: #ffffff;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-submit:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.5);
}
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.form-success {
    display: none;
    padding: 1.25rem;
    background: rgba(17, 130, 64, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(167, 243, 208, 0.3);
}
.form-success.show {
    display: block;
}
.form-error {
    display: none;
    padding: 1.25rem;
    background: rgba(185, 28, 28, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(254, 202, 202, 0.3);
}
.form-error.show {
    display: block;
}
.spinner-small {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== MODALS (Privacy, Terms) ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: #ffffff;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
.modal-box .modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s;
}
.modal-box .modal-close:hover {
    color: #0f172a;
}
.modal-box h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1E1B4B 30%, #2563EB 70%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E1B4B;
    margin: 1.2rem 0 0.4rem;
}
.modal-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 0.5rem;
}
.modal-box ul {
    padding-left: 1.5rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}
.modal-box ul li {
    margin-bottom: 0.3rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cookie-banner.visible {
    display: flex;
}
.cookie-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin: 0;
    flex: 1;
    min-width: 180px;
}
.cookie-banner p i {
    color: #93C5FD;
    margin-right: 0.4rem;
}
.cookie-banner .btn-cookie {
    background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    color: #fff;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.cookie-banner .btn-cookie:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

@media (max-width: 640px) {
    .contact-section { padding: 4rem 1rem; min-height: 90vh; }
    .contact-section .section-title-hero { font-size: clamp(2.2rem, 8vw, 3rem); }
    .modal-box { padding: 1.5rem; }
    .modal-box h2 { font-size: 1.5rem; }
    .cookie-banner { flex-direction: column; text-align: center; }
    .cookie-banner .btn-cookie { width: 100%; }
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #0f172a;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
    min-width: 44px;
    min-height: 44px;
}
.menu-toggle:hover {
    color: #2563EB;
}

/* Desktop nav-links remain as flex */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Mobile menu wrapper */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem 1.5rem 2rem;
        gap: 1.25rem;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 12px 40px rgba(0,0,0,0.08);
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        pointer-events: none;
        opacity: 0;
    }
    .nav-menu.active {
        transform: translateY(0);
        pointer-events: auto;
        opacity: 1;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
        color: #0f172a;
    }
    .nav-menu .nav-link.active {
        color: #2563EB !important;
    }
    .nav-menu .nav-link.active::after {
        display: none;
    }

    /* Adjust header height for mobile if needed */
    .glass-nav {
        height: 64px;
    }
    .glass-nav .brand img {
        height: 28px;
    }
    .brand-name {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    .nav-menu {
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: static !important;
        background: none !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border: none !important;
        flex-direction: row !important;
        gap: 2rem !important;
    }
}
