/* ==================== RESET & BASE ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #3a3743; background: #ffffff; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 24px; border-radius: 12px;
    font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 500;
    cursor: pointer; border: none; transition: all 0.3s;
}
.btn-primary { background: #6b42e5; color: #f6f6f6; box-shadow: 0 4px 15px rgba(107,66,229,0.3); }
.btn-primary:hover { background: #5a35cc; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(107,66,229,0.4); }
.btn-outline { background: transparent; color: #6b42e5; border: 2px solid #6b42e5; }
.btn-outline:hover { background: #6b42e5; color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 12px; border-radius: 6px; }
.btn-full { width: 100%; }

/* ==================== COLOR BAR (Rainbow blur) ==================== */
.color-bar {
    position: absolute; height: 143px; left: -202px; right: -202px;
    opacity: 0.12; filter: blur(40px); pointer-events: none; z-index: 0;
    background: linear-gradient(90deg, #6b42e5 0%, #da7a2b 13%, #fabd44 26%, #ea46bc 39%, #6f52ed 52%, #5aa5f0 65%, #2ad0fe 78%, #51e8ec 100%);
}
.color-bar-hero { bottom: 0; }
.color-bar-testimonials { top: 30%; }
.color-bar-footer { top: -30px; }

/* ==================== NAVIGATION ==================== */
.navbar {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1240px; margin: 0 auto; padding: 20px 20px 0;
}
.logo img { height: 26px; }
.nav-links { display: flex; gap: 35px; }
.nav-links a { font-size: 16px; font-weight: 500; color: #726f88; transition: color 0.3s; }
.nav-links a.active, .nav-links a:hover { color: #3a3743; }
.nav-divider { height: 1px; background: #e7e7e7; margin-top: 20px; }
.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 5px;
}
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: #3a3743; transition: 0.3s; }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ==================== HERO ==================== */
.hero { position: relative; background: #fff; overflow: hidden; padding-bottom: 0; }
.hero-grid-bg {
    position: absolute; inset: 0; opacity: 0.07;
    background-image: repeating-linear-gradient(90deg, #3e3e3e 0, #3e3e3e 1px, transparent 1px, transparent 113px),
                       repeating-linear-gradient(0deg, #3e3e3e 0, #3e3e3e 1px, transparent 1px, transparent 103px);
    pointer-events: none;
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 1240px; margin: 0 auto; padding: 40px 20px 0;
    text-align: center;
}
.hero-text { max-width: 739px; margin: 0 auto; }
.hero-text h1 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 55px; font-weight: 700; line-height: 1.15; color: #3a3743; margin-bottom: 15px;
}
.hero-text p { font-size: 18px; font-weight: 500; color: #726f88; max-width: 503px; margin: 0 auto 30px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.hero-devices { margin-top: 60px; position: relative; z-index: 2; }
.hero-devices img { max-width: 876px; margin: 0 auto; }

/* ==================== SECTION HEADERS ==================== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 45px; font-weight: 700; color: #3a3743; margin-bottom: 15px; line-height: 1.25;
}
.section-header p { font-size: 18px; font-weight: 500; color: #726f88; max-width: 580px; margin: 0 auto; }
.section-header-left { text-align: left; }
.section-header-left h2 { font-size: 35px; }
.section-header-left p { margin: 0; }

/* ==================== FEATURES ==================== */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: #f6f6fd; border-radius: 20px; padding: 0 0 30px; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(107,66,229,0.1); }
.feature-visual { width: 100%; height: 280px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-card h3 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 20px; font-weight: 600; color: #3a3743; padding: 20px 30px 10px;
}
.feature-card p { font-size: 16px; font-weight: 500; color: #726f88; padding: 0 30px; line-height: 1.5; }

/* ==================== CRM GROWTH ==================== */
.crm-growth { background: #f7f7f8; padding: 100px 0; }
.crm-growth-container { display: flex; align-items: flex-start; gap: 60px; }
.crm-growth-content { flex: 1; max-width: 606px; }
.crm-growth-content h2 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 45px; font-weight: 700; line-height: 1.25; margin-bottom: 20px;
}
.crm-growth-content > p { font-size: 18px; font-weight: 500; color: #726f88; margin-bottom: 30px; line-height: 1.5; }
.crm-growth-visual { flex: 1; max-width: 600px; }
.crm-growth-visual img { width: 100%; }

/* ==================== CTA ROW (Button + Rating) ==================== */
.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.rating-badge { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating-number { font-size: 18px; font-weight: 500; color: #3a3743; }
.stars { display: flex; gap: 2px; }
.stars svg { width: 20px; height: 20px; }
.rating-text { font-size: 16px; font-weight: 400; color: #726f88; }

/* ==================== GROWTH FEATURES ==================== */
.growth-features { display: flex; gap: 50px; }
.growth-feature { max-width: 220px; }
.growth-feature svg { margin-bottom: 15px; }
.growth-feature h4 { font-size: 16px; font-weight: 600; color: #4b495b; margin-bottom: 8px; }
.growth-feature p { font-size: 14px; font-weight: 400; color: #726f88; line-height: 1.5; }

/* ==================== STATS ==================== */
.stats-section { padding: 100px 0; }
.stats-container { display: flex; gap: 60px; align-items: flex-start; }
.stats-content { flex: 1; max-width: 606px; }
.stats-content h2 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 35px; font-weight: 700; line-height: 1.25; margin-bottom: 20px;
}
.stats-content > p { font-size: 18px; font-weight: 500; color: #726f88; margin-bottom: 40px; line-height: 1.5; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; flex: 1; max-width: 561px; }
.stat-card { background: #f7f7f8; border-radius: 11px; padding: 30px; }
.stat-icon {
    width: 55px; height: 55px; background: #fff; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 28px;
}
.stat-icon svg { width: 27px; height: 27px; }
.stat-card h3 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 18px; font-weight: 600; color: #3a3743; margin-bottom: 8px;
}
.stat-card p { font-size: 16px; font-weight: 500; color: #726f88; line-height: 1.5; }

/* ==================== TESTIMONIALS ==================== */
.testimonials { position: relative; padding: 100px 0; overflow: hidden; }
.testimonials-carousel { overflow: hidden; margin-bottom: 40px; }
.testimonial-track { display: flex; gap: 20px; }
.testimonial-card {
    min-width: 340px; background: #fff; border: 1px solid #e9e9e9; border-radius: 16px;
    padding: 30px; flex-shrink: 0;
}
.testimonial-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; background: #6b42e5; }
.testimonial-header h4 { font-size: 18px; font-weight: 600; color: #454545; }
.testimonial-header span { font-size: 14px; font-weight: 500; color: #6d6d6d; }
.testimonial-card > p { font-size: 16px; font-weight: 400; color: #5d5d5d; line-height: 1.5; }
.testimonials-cta { text-align: center; }

/* ==================== CTA BANNER ==================== */
.cta-banner { background: #f7f7f8; padding: 80px 0; }
.cta-banner-content { display: flex; gap: 60px; align-items: center; }
.cta-banner-text { flex: 1; }
.cta-banner-text h2 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 35px; font-weight: 700; line-height: 1.25; margin-bottom: 15px;
}
.cta-banner-text > p { font-size: 18px; font-weight: 500; color: #726f88; margin-bottom: 30px; line-height: 1.5; }
.cta-banner-visual { flex: 1; max-width: 600px; }
.cta-banner-visual img { width: 100%; border-radius: 12px; }

/* ==================== FAQ ==================== */
.faq { padding: 100px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-bottom: 40px; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 22px 0; background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 500;
    color: #5c5970; text-align: left; gap: 15px;
}
.faq-question svg { flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-cta-bar {
    display: flex; align-items: center; justify-content: space-between;
    background: #f0efff; border-radius: 12px; padding: 20px 30px;
}
.faq-cta-bar h3 { font-size: 20px; font-weight: 500; color: #333; }
.faq-cta-bar p { font-size: 18px; font-weight: 400; color: #5d5d5d; }

/* ==================== CONTACT ==================== */
.contact { padding: 100px 0; }
.contact-form { max-width: 600px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: #454545; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid #d0d5dd; border-radius: 8px;
    background: #fff; font-family: 'Inter', sans-serif; font-size: 16px;
    color: #0f1728; outline: none; transition: border-color 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #b0b0b0; }
.form-group input:focus, .form-group textarea:focus { border-color: #6b42e5; }
.form-group textarea { resize: vertical; min-height: 128px; }
.phone-input { display: flex; border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden; }
.phone-country {
    padding: 12px 8px 12px 16px; border: none; background: transparent;
    font-family: 'Inter', sans-serif; font-size: 16px; color: #0f1728;
    outline: none; border-right: 1px solid #d0d5dd; cursor: pointer;
}
.phone-input input { border: none; border-radius: 0; }
.form-checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.form-checkbox input[type="checkbox"] { width: 20px; height: 20px; accent-color: #6b42e5; cursor: pointer; }
.form-checkbox label { font-size: 16px; font-weight: 500; color: #5c5970; cursor: pointer; }

/* ==================== FOOTER ==================== */
.footer { position: relative; padding: 60px 0 0; overflow: hidden; }
.footer-divider-top { height: 1px; background: #e5e5e5; }
.footer-divider-bottom { height: 1px; background: #e9eaeb; margin-top: 40px; }
.footer-content { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr 1.5fr; gap: 60px; padding: 60px 0; }
.footer-logo { height: 26px; margin-bottom: 20px; }
.footer-brand p { font-size: 18px; font-weight: 500; color: #5c5970; margin-bottom: 25px; max-width: 356px; }
.social-links { display: flex; gap: 12px; }
.social-link {
    width: 44px; height: 44px; border: 1.7px solid rgba(107,66,229,0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.social-link:hover { background: #f0efff; transform: translateY(-3px); }
.footer-links-col h4 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 18px; font-weight: 600; color: #3a3743; margin-bottom: 15px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 6px; }
.footer-links-col a, .footer-links-col span { font-size: 16px; font-weight: 500; color: #726f88; transition: color 0.3s; }
.footer-links-col a:hover { color: #6b42e5; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list svg { flex-shrink: 0; margin-top: 2px; }
.footer-newsletter h4 {
    font-family: 'Inter Display', 'Inter', sans-serif;
    font-size: 18px; font-weight: 600; color: #3a3743; margin-bottom: 5px;
}
.footer-newsletter > p { font-size: 12px; font-weight: 500; color: #726f88; margin-bottom: 15px; }
.newsletter-form { display: flex; border: 1.4px solid #d1d1d1; border-radius: 6px; overflow: hidden; }
.newsletter-form input {
    flex: 1; padding: 10px 14px; border: none; outline: none;
    font-family: 'Inter', sans-serif; font-size: 14px;
}
.newsletter-form .btn { border-radius: 0 6px 6px 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 30px; }
.footer-bottom span { font-size: 16px; font-weight: 500; color: #908da3; }
.footer-bottom-links { display: flex; gap: 25px; }
.footer-bottom-links a { font-size: 16px; font-weight: 500; color: #908da3; transition: color 0.3s; }
.footer-bottom-links a:hover { color: #6b42e5; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 42px; }
    .section-header h2, .crm-growth-content h2 { font-size: 35px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .crm-growth-container, .stats-container, .cta-banner-content { flex-direction: column; }
    .crm-growth-content, .stats-content { max-width: 100%; }
    .crm-growth-visual, .stats-grid, .cta-banner-visual { max-width: 100%; width: 100%; }
    .growth-features { flex-wrap: wrap; gap: 30px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 70px; left: 20px; right: 20px;
        background: #fff; border-radius: 12px; padding: 20px; flex-direction: column; gap: 15px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1); z-index: 100;
    }
    .nav-links.active { display: flex; }
    .navbar .btn-outline { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-text h1 { font-size: 32px; }
    .section-header h2, .crm-growth-content h2, .stats-content h2, .cta-banner-text h2 { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .testimonial-card { min-width: 280px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .faq-cta-bar { flex-direction: column; gap: 15px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .growth-features { flex-direction: column; }
    .cta-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 26px; }
    .section-header h2 { font-size: 24px; }
    .faq-question { font-size: 15px; }
    .btn { font-size: 16px; padding: 12px 20px; }
}
