:root {
    --primary-color: #111827;
    --secondary-color: #2563eb;
    --secondary-hover: #1d4ed8;
    --text-color: #374151;
    --light-text: #6b7280;
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --gradient-hero: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(120deg, var(--secondary-color), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-bg-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--light-text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.1);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Process Section */
.process {
    padding: 100px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 24px;
}

.step-num {
    display: inline-block;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.1);
    margin-bottom: -30px;
    position: relative;
    z-index: 0;
}

.step-item h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.step-item p {
    color: var(--light-text);
}

/* Footer */
footer {
    background-color: #1f2937;
    color: white;
    padding: 64px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 48px;
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
    margin-bottom: 16px;
}

.footer-brand p {
    color: #9ca3af;
}

.footer-contact h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-contact p {
    color: #9ca3af;
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
}

/* Mobile Menu Button */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Responsiveness Updates */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 24px;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* --- New Section Styles --- */

/* Statistics Section */
.statistics {
    padding: 64px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.statistics .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #9ca3af;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-alt);
}

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

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 24px;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-card .info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.testimonial-card .info p {
    font-size: 0.875rem;
    color: var(--light-text);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    text-align: left;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--secondary-color);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 24px;
    color: var(--light-text);
}

/* --- Animations --- */

/* Reveal Animation Base */
[data-animate] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

/* Fade Up */
[data-animate="fade-up"] {
    transform: translateY(30px);
}

[data-animate="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Right */
[data-animate="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
}

[data-animate="fade-right"].visible {
    opacity: 1;
    transform: translateX(0);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .stat-item {
        margin-bottom: 24px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Updates */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo {
    /* Removed filter to avoid white box issue if image has background */
    filter: none;
    height: 32px;
    width: auto;
    margin-bottom: 0;
    /* Reset margin */
}

.copyright a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: white;
    text-decoration: underline;
}

/* About Us Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-alt);
    text-align: center;
}

.about .subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: -10px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 24px;
}

.about-actions {
    margin-top: 32px;
}

/* Footer QR Code */
.footer-qrcode {
    text-align: center;
}

.footer-qrcode .qr-code {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.footer-qrcode p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Response Update for Footer */
@media (max-width: 768px) {
    .footer-content {
        align-items: center;
        text-align: center;
    }
}

/* --- Document Examples Section --- */
.doc-examples {
    padding: 100px 0;
    background-color: var(--bg-alt);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    justify-items: center;
}

.example-card {
    background: transparent;
    max-width: 320px;
    width: 100%;
    transition: transform 0.3s ease;
}

.example-card:hover {
    transform: translateY(-10px);
}

.card-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    background: #fff;
    transition: box-shadow 0.3s ease;
    aspect-ratio: 3 / 4;
    /* Keep document aspect ratio */
}

.example-card:hover .card-image-wrapper {
    box-shadow: var(--shadow-lg);
}

.doc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.example-card:hover .doc-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.example-card:hover .card-overlay {
    opacity: 1;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.card-content {
    text-align: center;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.card-content p {
    color: var(--light-text);
    font-size: 0.95rem;
}
/* 404 Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-message {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.error-desc {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 32px;
}

/* Fix 404 Page Spacing */
.error-page {
    margin-top: 100px; /* Account for fixed navbar (80px) + space */
    min-height: calc(100vh - 100px - 300px); /* rough calc: viewport - top margin - footer height */
}
