:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --accent: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); line-height: 1.6; scroll-behavior: smooth; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 5%; background: white; border-bottom: 1px solid var(--border); 
    position: sticky; top: 0; z-index: 1000; 
}
.logo { font-size: 24px; font-weight: 800; color: var(--dark); display: flex; align-items: center; }
.logo-ai { 
    background: var(--primary); color: white; padding: 2px 8px; 
    border-radius: 6px; margin-left: 6px; font-size: 18px; 
}

.nav-links a { 
    margin: 0 15px; text-decoration: none; color: var(--text); 
    font-weight: 600; position: relative; transition: 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--primary); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.cta-button { 
    background: var(--primary); color: white; padding: 12px 24px; 
    border-radius: 8px; text-decoration: none; font-weight: 700; 
    border: none; cursor: pointer; transition: 0.3s; 
}
.cta-button:hover { 
    background: #1d4ed8; transform: translateY(-2px); 
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); 
}

/* Hero Section */
.hero { 
    padding: 140px 0 100px; text-align: center; background-color: white;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 30px 30px; position: relative;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to top, white, transparent);
}
.badge { background: #dbeafe; color: var(--primary); padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 800; display: inline-block; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); color: var(--dark); margin: 25px 0; font-weight: 800; line-height: 1.1; }
.hero p { font-size: 19px; max-width: 750px; margin: 0 auto 50px; color: #475569; line-height: 1.8; }
.secondary-button { margin-left: 20px; text-decoration: none; color: var(--dark); font-weight: 700; border-bottom: 2px solid var(--primary); padding-bottom: 2px; }

/* Comparison & Services */
.comparison { padding: 100px 0; background: var(--light-bg); }
.section-header { text-align: center; margin-bottom: 50px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.compare-card { padding: 45px; border-radius: 16px; background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.manual { border-top: 5px solid #ef4444; }
.automated { border-top: 5px solid var(--accent); }
.compare-card li { margin-bottom: 12px; padding-left: 25px; position: relative; font-weight: 500; list-style: none; }
.compare-card li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

.services { padding: 100px 0; text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.service-item { padding: 40px; border: 1px solid var(--border); border-radius: 20px; cursor: pointer; transition: 0.3s; text-align: left; background: white; }
.service-item:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.view-more { display: block; margin-top: 25px; color: var(--primary); font-weight: 800; font-size: 14px; text-transform: uppercase; }

/* How We Work Section */
.how-we-work { padding: 100px 0; background: var(--dark); color: white; }
.process-flow { display: flex; align-items: flex-start; gap: 20px; margin-top: 60px; }
.process-box { background: #1e293b; padding: 35px; border-radius: 20px; flex: 1; border: 1px solid rgba(255,255,255,0.1); min-height: 420px; }
.step-number { background: var(--primary); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; margin-bottom: 20px; font-size: 18px; }
.deliverables { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 12px; margin-top: 20px; }
.deliverables ul { list-style: none; font-size: 14px; margin-top: 12px; opacity: 0.9; }
.deliverables li { margin-bottom: 8px; position: relative; padding-left: 15px; }
.deliverables li::before { content: "•"; color: var(--primary); position: absolute; left: 0; }
.flow-arrow { align-self: center; font-size: 28px; color: var(--primary); font-weight: 800; }

/* Contact Form */
.contact { padding: 100px 0; background: white; }
.contact-box { max-width: 750px; margin: 0 auto; background: var(--light-bg); padding: 50px; border-radius: 24px; text-align: center; }
.contact-box form { display: flex; flex-direction: column; gap: 15px; text-align: left; }
.form-group { display: flex; gap: 15px; width: 100%; }
.contact-box input, .contact-box textarea {
    flex: 1; width: 100%; padding: 16px; border: 1px solid var(--border); 
    border-radius: 10px; font-size: 16px; font-family: inherit; transition: 0.3s;
}
.contact-box input:focus, .contact-box textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Modal */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(8px); }
.modal-content { background: white; margin: 5% auto; padding: 50px; width: 90%; max-width: 700px; border-radius: 24px; position: relative; }
.close-modal { position: absolute; right: 25px; top: 20px; font-size: 30px; cursor: pointer; opacity: 0.5; }
.detail-section { margin-top: 25px; }
.detail-section h4 { color: var(--primary); text-transform: uppercase; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.highlight-box { background: #f0fdf4; border-left: 4px solid var(--accent); padding: 15px; border-radius: 4px; margin-top: 10px; font-weight: 600; color: #166534; }

@media (max-width: 850px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-toggle { display: block; font-size: 28px; background: none; border: none; cursor: pointer; }
    .compare-grid, .form-group, .process-flow { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); margin: 20px 0; }
}

/* Footer Refined */
footer { 
    padding: 80px 0 40px; 
    border-top: 1px solid var(--border); 
    background: white; 
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
}

.footer-brand p {
    max-width: 300px;
    font-size: 15px;
    color: #64748b;
    margin-top: 10px;
}

.footer-right {
    text-align: right;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

@media (max-width: 850px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .footer-right {
        text-align: left;
    }
    .footer-links a {
        margin-left: 0;
        margin-right: 25px;
    }
}
