/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); line-height: 1.6; color: var(--gray-700); background: var(--white); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 { color: var(--gray-900); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }

/* ===== Navbar ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 16px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.5rem; color: var(--gray-900); }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); border-radius: var(--radius); font-weight: 800; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--gray-600); font-weight: 500; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { padding: 8px 16px; background: var(--gray-100); border-radius: var(--radius); font-weight: 500; color: var(--gray-700); transition: var(--transition); }
.lang-switch:hover { background: var(--gray-200); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--gray-700); transition: var(--transition); }

/* ===== Hero Section ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 24px 80px; overflow: hidden; background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; opacity: 0.5; }
.shape-1 { width: 600px; height: 600px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1)); top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(16, 185, 129, 0.1)); bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08)); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero-content { position: relative; z-index: 1; max-width: 650px; }
.hero-content h1 { margin-bottom: 24px; background: linear-gradient(135deg, var(--gray-900), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content p { font-size: 1.25rem; color: var(--gray-600); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 0; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-item { width: 120px; height: 120px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.05)); border-radius: var(--radius-lg); border: 1px solid rgba(37, 99, 235, 0.1); }
.grid-item:nth-child(2), .grid-item:nth-child(3) { transform: translateY(30px); }

/* ===== Page Hero ===== */
.page-hero { position: relative; padding: 160px 24px 80px; background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%); text-align: center; overflow: hidden; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.25rem; color: var(--gray-600); max-width: 600px; margin: 0 auto; }
.legal-hero { padding-bottom: 60px; }

/* ===== Section Styles ===== */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray-600); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/* ===== Features Section ===== */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.feature-card { padding: 32px; background: var(--gray-50); border-radius: var(--radius-lg); transition: var(--transition); border: 1px solid transparent; }
.feature-card:hover { background: var(--white); border-color: var(--gray-200); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { width: 56px; height: 56px; border-radius: var(--radius); margin-bottom: 20px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--gray-600); margin-bottom: 0; }

/* ===== Services Preview ===== */
.services-preview { background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.service-card { padding: 40px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; }
.service-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.service-number { font-size: 4rem; font-weight: 800; color: var(--gray-100); position: absolute; top: 20px; right: 20px; line-height: 1; }
.service-card h3 { margin-bottom: 16px; position: relative; }
.service-card p { color: var(--gray-600); margin-bottom: 20px; position: relative; }
.service-link { color: var(--primary); font-weight: 600; position: relative; }
.service-link:hover { color: var(--primary-dark); }

/* ===== Stats Section ===== */
.stats { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.stat-item { color: var(--white); }
.stat-number { display: block; font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat-number::after { content: '+'; }
.stat-label { font-size: 1rem; opacity: 0.9; }

/* ===== CTA Section ===== */
.cta { background: var(--gray-900); padding: 80px 0; }
.cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-content p { color: var(--gray-400); font-size: 1.125rem; margin-bottom: 32px; }

/* ===== About Page ===== */
.about-intro { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { margin-bottom: 24px; }
.about-content p { color: var(--gray-600); }
.about-image { position: relative; }
.image-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--gray-100), var(--gray-200)); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; }
.placeholder-icon { width: 80px; height: 80px; background: var(--gray-300); border-radius: 50%; }

/* ===== Mission Vision ===== */
.mission-vision { background: var(--gray-50); }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.mv-card { padding: 40px; background: var(--white); border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow); }
.mv-icon { width: 72px; height: 72px; margin: 0 auto 24px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; }
.mv-card h3 { margin-bottom: 16px; }
.mv-card p { color: var(--gray-600); margin-bottom: 0; }

/* ===== Industries ===== */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.industry-card { padding: 32px 24px; background: var(--gray-50); border-radius: var(--radius-lg); text-align: center; transition: var(--transition); }
.industry-card:hover { background: var(--white); box-shadow: var(--shadow-md); }
.industry-icon { width: 48px; height: 48px; margin: 0 auto 16px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius); }
.industry-card h4 { font-size: 1rem; margin-bottom: 0; }

/* ===== Approach Timeline ===== */
.approach-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.timeline-item { display: flex; gap: 20px; }
.timeline-number { flex-shrink: 0; width: 48px; height: 48px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; }
.timeline-content h4 { margin-bottom: 8px; }
.timeline-content p { color: var(--gray-600); margin-bottom: 0; font-size: 0.95rem; }

/* ===== Services Page ===== */
.services-main { padding: 60px 0; }
.service-detail { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding: 60px 0; border-bottom: 1px solid var(--gray-200); }
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-header { display: flex; flex-direction: column; gap: 20px; }
.service-detail-icon { width: 80px; height: 80px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius-lg); }
.service-detail-title h2 { font-size: 1.75rem; margin-bottom: 8px; }
.service-detail-title p { color: var(--gray-500); margin-bottom: 0; }
.service-detail-content p { color: var(--gray-600); margin-bottom: 24px; }
.service-features { display: flex; flex-direction: column; gap: 12px; }
.service-features li { padding-left: 28px; position: relative; color: var(--gray-700); }
.service-features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; background: var(--accent); border-radius: 50%; opacity: 0.3; }
.service-features li::after { content: ''; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }

/* ===== Process Section ===== */
.service-process { background: var(--gray-50); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.process-step { text-align: center; }
.process-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: var(--white); border: 2px solid var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.process-icon span { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.process-step h4 { margin-bottom: 8px; }
.process-step p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 0; }

/* ===== Solutions Page ===== */
.solutions-overview { padding: 60px 0 0; }
.solutions-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card { position: relative; padding: 32px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.solution-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.solution-card.large { grid-column: span 2; }
.solution-card-bg { position: absolute; top: 0; right: 0; width: 150px; height: 150px; background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(6, 182, 212, 0.05)); border-radius: 0 0 0 100%; }
.solution-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius); margin-bottom: 20px; }
.solution-card h3 { margin-bottom: 12px; }
.solution-card > .solution-card-content > p { color: var(--gray-600); margin-bottom: 20px; }
.solution-features { display: flex; flex-wrap: wrap; gap: 8px; }
.solution-features li { padding: 6px 14px; background: var(--gray-100); border-radius: 20px; font-size: 0.85rem; color: var(--gray-700); }

/* ===== Case Studies ===== */
.case-studies { background: var(--gray-50); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.case-card { padding: 32px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.case-category { display: inline-block; padding: 4px 12px; background: var(--primary); color: var(--white); border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; }
.case-card h4 { margin-bottom: 12px; }
.case-card > p { color: var(--gray-600); margin-bottom: 20px; }
.case-stats { display: flex; gap: 24px; }
.case-stats .stat { text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-desc { font-size: 0.85rem; color: var(--gray-500); }

/* ===== Tech Stack ===== */
.tech-stack { padding: 60px 0; }
.tech-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.tech-category h4 { margin-bottom: 16px; color: var(--gray-500); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.tech-items { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-items span { padding: 8px 16px; background: var(--gray-100); border-radius: var(--radius); font-size: 0.9rem; color: var(--gray-700); }

/* ===== Contact Page ===== */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--gray-600); margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon { flex-shrink: 0; width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius); }
.contact-text h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-text p { color: var(--gray-600); margin-bottom: 2px; font-size: 0.95rem; }
.contact-text a { color: var(--primary); }
.contact-text a:hover { text-decoration: underline; }

/* ===== Contact Form ===== */
.contact-form-wrapper { padding: 40px; background: var(--gray-50); border-radius: var(--radius-lg); }
.contact-form-wrapper h2 { margin-bottom: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 500; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea { padding: 14px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: var(--white); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Map Section ===== */
.map-section { padding: 60px 0; background: var(--gray-50); }
.map-placeholder { height: 300px; background: linear-gradient(135deg, var(--gray-200), var(--gray-300)); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; position: relative; }
.map-overlay { padding: 20px 40px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.map-overlay p { margin-bottom: 0; font-weight: 500; color: var(--gray-700); }

/* ===== Business Hours ===== */
.business-hours { padding: 60px 0; }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.hours-card { padding: 32px; background: var(--gray-50); border-radius: var(--radius-lg); }
.hours-card h3 { margin-bottom: 20px; }
.hours-list { display: flex; flex-direction: column; gap: 12px; }
.hours-list li { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); color: var(--gray-600); }
.hours-list li:last-child { border-bottom: none; padding-bottom: 0; }
.support-email { color: var(--primary); font-weight: 500; margin-top: 16px; }

/* ===== Legal Pages ===== */
.legal-content { padding: 60px 0; }
.legal-document { max-width: 800px; margin: 0 auto; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--gray-900); }
.legal-section h3 { font-size: 1.2rem; margin: 24px 0 12px; color: var(--gray-800); }
.legal-section p { color: var(--gray-600); line-height: 1.8; }
.legal-section ul { margin: 16px 0; padding-left: 24px; }
.legal-section li { color: var(--gray-600); margin-bottom: 8px; position: relative; padding-left: 16px; }
.legal-section li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.legal-contact { margin-top: 24px; padding: 24px; background: var(--gray-50); border-radius: var(--radius); }
.legal-contact p { margin-bottom: 8px; color: var(--gray-700); }
.legal-contact p:last-child { margin-bottom: 0; }

/* ===== Footer ===== */
.footer { background: var(--gray-900); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: var(--gray-400); font-size: 0.95rem; }
.footer-links h4, .footer-contact h4 { color: var(--white); margin-bottom: 20px; font-size: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--gray-400); font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { color: var(--gray-400); font-size: 0.95rem; margin-bottom: 8px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--gray-800); text-align: center; }
.footer-bottom p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 0; }

/* ===== Mobile Menu ===== */
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); padding: 24px; box-shadow: var(--shadow-lg); z-index: 999; }
.mobile-menu.active { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--gray-700); font-weight: 500; border-bottom: 1px solid var(--gray-100); }
.mobile-menu a.active { color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-visual { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .service-detail { grid-template-columns: 1fr; gap: 32px; }
    .service-detail.reverse { direction: ltr; }
    .solutions-cards { grid-template-columns: 1fr 1fr; }
    .solution-card.large { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 120px 24px 60px; }
    .hero-content h1 { font-size: 2.25rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .page-hero { padding: 140px 24px 60px; }
    section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 2.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .solutions-cards { grid-template-columns: 1fr; }
    .solution-card.large { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .approach-timeline { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
    .features-grid, .services-grid, .mv-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr 1fr; }
}