/* --- 1. GLOBAL RESET & VARIABLES --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #38bdf8;
    --success: #22c55e;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #020617;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); line-height: 1.7; background: var(--white); }

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3, h4, h5 { font-weight: 800; color: var(--secondary); line-height: 1.2; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
p { font-size: 1.1rem; color: var(--text-muted); }
.highlight { color: var(--primary); }
.sub-title { display: inline-block; font-weight: 700; color: var(--primary); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 1rem; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }

/* --- 3. REUSABLE COMPONENTS --- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 100px 0; }
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--bg-dark); }

.btn { display: inline-block; padding: 1rem 2.2rem; border-radius: 50px; font-weight: 700; text-decoration: none; transition: var(--transition); border: none; cursor: pointer; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3); }
.btn-outline { border: 2px solid var(--border); color: var(--secondary); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-blue-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.badge { background: #eff6ff; color: var(--primary); padding: 6px 16px; border-radius: 20px; font-weight: 700; font-size: 0.8rem; display: inline-block; }

/* --- 4. HEADER & NAV --- */
header { position: fixed; width: 100%; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--border); transition: var(--transition); }
header.scrolled { padding: 0.5rem 0; box-shadow: var(--shadow-sm); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 1.2rem 2rem; }
.logo { font-size: 1.6rem; font-weight: 900; text-decoration: none; color: var(--secondary); }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--secondary); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--white); min-width: 600px; padding: 2rem; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); opacity: 0; visibility: hidden; transition: var(--transition); }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dropdown-item a { display: block; padding: 1rem; border-radius: 8px; }
.dropdown-item a strong { display: block; color: var(--secondary); margin-bottom: 4px; }
.dropdown-item a span { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.dropdown-item a:hover { background: var(--bg-light); }

/* --- 5. HERO SECTION --- */
.hero-section { padding: 180px 0 100px; background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero-btns { display: flex; gap: 1rem; margin-top: 2rem; }
.hero-rating { margin-top: 3rem; display: flex; align-items: center; gap: 15px; }
.hero-rating .stars { color: #f59e0b; }
.hero-visual { position: relative; }
.visual-wrapper { position: relative; z-index: 1; }
.main-img { width: 100%; border-radius: 30px; box-shadow: var(--shadow-lg); }
.floating-card { position: absolute; background: var(--white); padding: 1.5rem; border-radius: 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 15px; z-index: 2; animation: float 3s ease-in-out infinite; }
.lead-card { top: 10%; left: -10%; }
.client-card { bottom: 10%; right: -5%; animation-delay: 1.5s; }
.floating-card i { font-size: 1.5rem; color: var(--primary); background: #eff6ff; padding: 10px; border-radius: 10px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* --- 6. STATS BAR --- */
.stats-bar { background: var(--white); display: grid; grid-template-columns: repeat(4, 1fr); padding: 4rem 2rem; border-radius: 24px; box-shadow: var(--shadow-md); margin-top: -50px; position: relative; z-index: 10; text-align: center; }
.stat-num { font-size: 2.8rem; font-weight: 900; color: var(--primary); margin-bottom: 5px; }
.stat-label { font-weight: 600; color: var(--text-muted); }

/* --- 7. SERVICES GRID --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }
.service-card { background: var(--white); border-radius: 20px; border: 1px solid var(--border); transition: var(--transition); height: 100%; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.card-inner { padding: 3rem 2rem; display: flex; flex-direction: column; height: 100%; }
.icon-box { width: 60px; height: 60px; background: #eff6ff; color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.feature-bullets { list-style: none; margin: 1.5rem 0; flex-grow: 1; }
.feature-bullets li { font-size: 0.9rem; margin-bottom: 0.6rem; color: var(--text-muted); }
.feature-bullets i { color: var(--success); margin-right: 8px; font-size: 0.8rem; }
.card-footer { display: flex; gap: 10px; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* --- 8. LAYOUT BLOCKS --- */
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.grid-split.reverse .content-left { order: 2; }
.grid-split.reverse .content-right { order: 1; }
.highlight-item { display: flex; gap: 20px; margin-top: 2rem; }
.h-icon { font-size: 1.5rem; color: var(--primary); }
.image-stack { position: relative; }
.stack-img-main { width: 90%; border-radius: 20px; }
.stack-img-sub { position: absolute; width: 60%; bottom: -10%; right: 0; border: 8px solid var(--white); border-radius: 20px; }

/* --- 9. WORKFLOW --- */
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; }
.step { position: relative; text-align: center; }
.step-num { font-size: 4rem; font-weight: 900; opacity: 0.1; color: var(--white); line-height: 1; margin-bottom: -1.5rem; }
.step h4 { color: var(--white); margin-bottom: 1rem; position: relative; }

/* --- 10. PRICING --- */
.pricing-grid-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1100px; margin: 4rem auto 0; }
.price-box { background: var(--white); padding: 3rem 2rem; border-radius: 20px; border: 1px solid var(--border); text-align: center; transition: var(--transition); }
.price-box.popular { background: var(--secondary); color: var(--white); transform: scale(1.05); z-index: 5; border: none; }
.price-box.popular h4, .price-box.popular .p-price { color: var(--white); }
.p-price { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-top: 1rem; }
.p-list { list-style: none; margin: 2rem 0; text-align: left; }
.p-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.price-box.popular .p-list li { border-color: rgba(255,255,255,0.1); }
.full-width { width: 100%; }

/* --- 11. FAQ ACCORDION --- */
.accordion-item { background: var(--white); margin-bottom: 1rem; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.acc-header { padding: 1.5rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.acc-header:hover { color: var(--primary); }
.acc-body { padding: 0 1.5rem 1.5rem; display: none; color: var(--text-muted); font-size: 0.95rem; }

/* --- 12. FOOTER --- */
.footer { background: var(--bg-dark); color: var(--white); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 4rem; padding-bottom: 50px; }
.footer-logo { font-size: 1.8rem; font-weight: 900; color: var(--white); text-decoration: none; display: block; margin-bottom: 1.5rem; }
.footer-logo span { color: var(--primary); }
.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.95rem; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); transition: 0.3s; }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 25px 0; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.4); }

/* --- 13. MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hero-grid, .grid-split, .services-grid, .workflow-steps, .pricing-grid-home, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content, .text-center-mobile { text-align: center; }
    .hero-btns { justify-content: center; }
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .price-box.popular { transform: scale(1); }
}