/* CSS Variables */
:root {
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --primary-bg: #eff6ff;
    --text: #111827;
    --text-light: #4b5563;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --accent: #0ea5e9;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: 3rem; }
h2 { font-size: 2.125rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { color: var(--text-light); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-dark); }

/* Section Helpers */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header--light h2, .section-header--light .section-subtitle { color: white; }
.section-header--light .section-subtitle { opacity: 0.85; }
.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.section-tag--light { background: rgba(255,255,255,0.15); color: #fff; }
.section-subtitle { font-size: 1.125rem; max-width: 640px; margin: 0 auto; line-height: 1.7; color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-large { padding: 16px 32px; font-size: 1.0625rem; }
.btn-full { width: 100%; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 130px; }
.logo { display: flex; align-items: center; }
.logo img { height: 112px; width: auto; }
.nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: var(--text-light); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn-primary { color: #fff; padding: 10px 20px; }
.nav-links .btn-primary:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s ease; }
.header-phone {
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; font-size: 0.9rem;
    padding: 9px 16px; border-radius: 6px;
    margin-left: 16px; text-decoration: none;
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 60%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26,86,219,0.07) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner { max-width: 780px; position: relative; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-bg);
    border: 1px solid rgba(26,86,219,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.75rem;
    letter-spacing: 0.02em;
}
.hero h1 { font-size: 3.25rem; margin-bottom: 1.5rem; color: var(--text); }
.hero-subtitle { font-size: 1.25rem; line-height: 1.75; margin-bottom: 2.5rem; max-width: 640px; }
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; gap: 48px; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.25rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.8125rem; color: var(--text-light); margin-top: 4px; font-weight: 500; }

/* Industries */
.industries { padding: 32px 0; background: #f1f5f9; border-bottom: 1px solid var(--border); }
.industries-label { text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.industries-grid { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.industry-item {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--border);
    padding: 10px 18px; border-radius: 8px;
    font-size: 0.875rem; font-weight: 500; color: var(--text-light);
    box-shadow: var(--shadow-sm);
}
.industry-item svg { color: var(--primary); flex-shrink: 0; }

/* Services */
.services { padding: 100px 0; background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card--featured { border-color: var(--primary); border-width: 2px; }
.service-card--featured::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.service-card-inner { padding: 32px; }
.service-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-bg);
    border-radius: 12px; margin-bottom: 1rem; color: var(--primary);
}
.service-tag-pill {
    display: inline-block;
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--primary); background: var(--primary-bg);
    padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.service-card h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 0.75rem; }
.service-card h3 a { color: inherit; }
.service-card h3 a:hover { color: var(--primary); }
.service-card > .service-card-inner > p { font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.25rem; }
.service-features-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.service-features-list li {
    font-size: 0.875rem; color: var(--text-light);
    padding: 6px 0; padding-left: 22px; position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.service-features-list li:last-child { border-bottom: none; }
.service-features-list li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--success); font-weight: 700; font-size: 0.875rem;
}
.service-link { font-size: 0.9rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
.service-link:hover { color: var(--primary-dark); }

/* Results */
.results { padding: 100px 0; background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 100%); }
.results .section-header h2 { color: #fff; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.result-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px; padding: 32px;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease;
}
.result-card:hover { background: rgba(255,255,255,0.15); }
.result-stat { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 8px; }
.result-label { font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 12px; }
.result-desc { font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 16px; }
.result-industry { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: rgba(255,255,255,0.6); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.result-industry svg { opacity: 0.7; }
.results-disclaimer { text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin-top: 2.5rem; }

/* Process */
.process { padding: 100px 0; background: #fff; }
.process-timeline { max-width: 720px; margin: 0 auto; position: relative; }
.process-timeline::before {
    content: '';
    position: absolute;
    left: 31px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(26,86,219,0.1));
}
.process-step { display: flex; gap: 24px; margin-bottom: 40px; position: relative; }
.process-step:last-child { margin-bottom: 0; }
.process-step-num {
    flex-shrink: 0;
    width: 64px; height: 64px;
    background: var(--primary);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem; font-weight: 800;
    box-shadow: 0 0 0 6px #fff, 0 0 0 8px rgba(26,86,219,0.2);
    position: relative; z-index: 1;
}
.process-step-content {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 24px 28px;
    flex: 1;
    margin-top: 8px;
}
.process-step-content h3 { color: var(--text); margin-bottom: 0.5rem; }
.process-step-content p { font-size: 0.9375rem; line-height: 1.7; }

/* Why Work With Me */
.why { padding: 100px 0; background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.why-card {
    display: flex; gap: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px; padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.why-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-bg); border-radius: 10px; color: var(--primary);
}
.why-card h3 { color: var(--text); font-size: 1.125rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; line-height: 1.65; }

/* About Founder */
.about-founder { padding: 100px 0; background: #fff; }
.founder-layout { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.founder-image-wrap { text-align: center; }
.founder-avatar {
    width: 180px; height: 180px;
    background: linear-gradient(135deg, var(--primary-bg), #dbeafe);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    color: var(--primary);
}
.founder-credentials { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.credential-badge {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-alt); border: 1px solid var(--border);
    padding: 8px 14px; border-radius: 8px;
    font-size: 0.8125rem; font-weight: 600; color: var(--text-light);
    width: 100%;
}
.credential-badge svg { color: var(--primary); flex-shrink: 0; }
.founder-content .section-tag { margin-bottom: 0.75rem; }
.founder-content h2 { font-size: 2.25rem; margin-bottom: 0.25rem; color: var(--text); }
.founder-title { font-size: 1.0625rem; font-weight: 500; color: var(--primary); margin-bottom: 1.5rem; font-style: italic; }
.founder-content p { font-size: 1rem; line-height: 1.75; margin-bottom: 1.25rem; color: var(--text-light); }
.founder-specialties { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.75rem; }
.founder-specialties span {
    font-size: 0.8125rem; font-weight: 600;
    background: var(--primary-bg); color: var(--primary);
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid rgba(26,86,219,0.2);
}

/* Contact */
.contact { padding: 100px 0; background: var(--bg-alt); }
.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; max-width: 980px; margin: 0 auto; align-items: start; }
.contact-info .section-tag { margin-bottom: 0.75rem; }
.contact-info h2 { margin-bottom: 0.5rem; }
.contact-subtitle { font-size: 0.875rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.contact-info > p { margin-bottom: 2rem; font-size: 1.0625rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-detail-item { display: flex; align-items: center; gap: 10px; color: var(--text-light); font-size: 0.9375rem; }
.contact-detail-item svg { color: var(--primary); flex-shrink: 0; }
.contact-detail-item a { color: var(--text-light); font-weight: 500; }
.contact-detail-item a:hover { color: var(--primary); }

/* Form */
.contact-form {
    background: #fff; padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.required { color: #ef4444; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 11px 14px;
    font-size: 0.9375rem; font-family: inherit;
    border: 1.5px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-group input.error, .form-group textarea.error { border-color: #ef4444; }
.error-message { font-size: 0.8125rem; color: #ef4444; margin-top: 5px; }
.form-note { font-size: 0.8125rem; color: #9ca3af; text-align: center; margin-top: 12px; }

/* Footer */
.footer { background: #0f172a; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.65; margin-top: 12px; }
.footer-brand img { filter: brightness(10); opacity: 0.9; }
.footer-links-group h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-links-group ul { list-style: none; }
.footer-links-group li { margin-bottom: 10px; }
.footer-links-group a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links-group a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.footer-phone { font-size: 0.9375rem; font-weight: 600; color: rgba(255,255,255,0.5); }
.footer-phone:hover { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
    .hero h1 { font-size: 2.75rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .founder-layout { grid-template-columns: 220px 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .header-phone { display: none !important; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        flex-direction: column; background: var(--bg);
        padding: 32px 24px; gap: 24px;
        transform: translateX(100%); transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.125rem; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding: 140px 0 80px; }
    h1 { font-size: 2.125rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.0625rem; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .stat-num { font-size: 1.75rem; }
    .hero-cta-group { flex-direction: column; align-items: flex-start; }

    .services, .results, .process, .why, .about-founder, .contact { padding: 72px 0; }
    .services-grid, .results-grid, .why-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 24px; }
    .founder-layout { grid-template-columns: 1fr; gap: 32px; }
    .founder-image-wrap { display: flex; align-items: center; gap: 20px; text-align: left; }
    .founder-avatar { width: 100px; height: 100px; margin: 0; }
    .founder-credentials { flex-direction: row; flex-wrap: wrap; }
    .credential-badge { width: auto; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .process-timeline::before { left: 31px; }
    .industries-grid { justify-content: flex-start; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.875rem; }
    .hero h1 { font-size: 1.875rem; }
    .hero-badge { font-size: 0.75rem; }
    .service-card-inner { padding: 24px; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-brand { text-align: center; }
    .founder-image-wrap { flex-direction: column; align-items: center; text-align: center; }
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Service & Inner Pages ===== */
.page-content { padding: 160px 0 100px; }
.page-content h1 { margin-bottom: 1rem; }
.page-content .lead { font-size: 1.25rem; line-height: 1.7; color: var(--text-light); margin-bottom: 2.5rem; max-width: 720px; }
.page-content h2 { font-size: 1.75rem; margin-top: 3rem; margin-bottom: 1rem; }
.page-content h3 { margin-top: 1.5rem; color: var(--text); }
.page-content p, .page-content li { color: var(--text-light); font-size: 1rem; line-height: 1.7; }
.page-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }

.service-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 2rem 0; }
.feature-card {
    background: var(--bg-alt); padding: 28px;
    border-radius: 12px; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.feature-card h3 { margin-top: 0; font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { font-size: 0.9375rem; margin: 0; }

.process-steps { counter-reset: step; margin: 2rem 0; }
.process-step-inner { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.step-number {
    flex-shrink: 0; width: 48px; height: 48px;
    background: var(--primary); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.125rem;
}
.step-content h3 { margin-top: 0; margin-bottom: 0.25rem; }

.cta-box {
    background: linear-gradient(135deg, #1e3a8a, #1a56db);
    border-radius: 16px; padding: 48px;
    text-align: center; margin-top: 3rem;
}
.cta-box h2 { margin-top: 0; color: #fff; }
.cta-box p { max-width: 560px; margin: 0 auto 1.5rem; color: rgba(255,255,255,0.8); }

/* API Data Flow Box */
.data-flow-box {
    background: #0f172a; border-radius: 12px;
    padding: 32px; margin: 2rem 0;
    overflow-x: auto;
}
.data-flow-box pre {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.875rem; line-height: 1.7;
    color: #e2e8f0; margin: 0;
    white-space: pre;
}
.data-flow-box .comment { color: #64748b; }
.data-flow-box .key { color: #7dd3fc; }
.data-flow-box .value { color: #86efac; }
.data-flow-box .string { color: #fde68a; }

/* Stat highlights on inner pages */
.stat-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 2rem 0; }
.stat-highlight { background: var(--primary-bg); border: 1px solid rgba(26,86,219,0.2); border-radius: 12px; padding: 24px; text-align: center; }
.stat-highlight .num { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; margin-bottom: 6px; }
.stat-highlight .lbl { font-size: 0.875rem; color: var(--text-light); font-weight: 500; }

@media (max-width: 768px) {
    .service-features { grid-template-columns: 1fr; }
    .stat-highlights { grid-template-columns: 1fr; }
    .cta-box { padding: 32px 24px; }
    .page-content { padding: 140px 0 80px; }
}
