/* ==========================================================================
   SmartCRM Modern Landing Page Stylesheet
   Designed for high conversion, rich glassmorphism & responsive aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Color Tokens */
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-subtle: rgba(79, 70, 229, 0.08);
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #8b5cf6;
    --accent-pink: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Backgrounds & Surfaces */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-glass: rgba(255, 255, 255, 0.85);
    --bg-dark: #0f172a;
    --bg-dark-surface: #1e293b;
    --bg-dark-card: rgba(30, 41, 59, 0.7);

    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Borders & Shadows */
    --border-light: rgba(226, 232, 240, 0.8);
    --border-glass: rgba(255, 255, 255, 0.4);
    --border-focus: rgba(79, 70, 229, 0.4);
    --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);
    --shadow-glow-cyan: 0 0 35px rgba(6, 182, 212, 0.25);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    --grad-primary-alt: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --grad-hero-bg: radial-gradient(circle at 20% 15%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
                     radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
                     radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
                     #f8fafc;
    --grad-dark-bg: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --grad-card-border: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
}

/* Base & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Gradient Utilities */
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Navigation Bar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1050;
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-main);
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    background: var(--grad-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-link-custom {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.935rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--primary) !important;
    background: var(--primary-subtle);
}

/* Modern Buttons */
.btn-primary-gradient {
    background: var(--grad-primary);
    color: #fff !important;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    color: #fff;
}

.btn-primary-gradient:hover::before {
    left: 100%;
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-main) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1.5px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-outline-custom:hover {
    border-color: var(--primary-light);
    color: var(--primary) !important;
    background: var(--primary-subtle);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 5rem;
    background: var(--grad-hero-bg);
    overflow: hidden;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero-pill .pill-tag {
    background: var(--primary);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.725rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Hero Showcase & Floating Badges */
.hero-showcase-container {
    position: relative;
    margin-top: 1.5rem;
}

.hero-preview-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease;
}

.hero-preview-topbar {
    background: #f1f5f9;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-url-bar {
    background: #ffffff;
    padding: 0.25rem 1.25rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid #e2e8f0;
}

/* Floating Chips */
.floating-chip {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    padding: 0.85rem 1.2rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 10;
    animation: floatAnimation 4s ease-in-out infinite;
}

.floating-chip.chip-top-left {
    top: -20px;
    left: -25px;
    animation-delay: 0s;
}

.floating-chip.chip-bottom-right {
    bottom: -20px;
    right: -25px;
    animation-delay: 2s;
}

.chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.chip-text-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.chip-text-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Trust Bar */
.trust-bar {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: #ffffff;
}

.trust-rating-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.trust-stars {
    color: #f59e0b;
}

/* Interactive Product Explorer Section */
.product-explorer-section {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.nav-pills-custom {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.nav-pills-custom .nav-link {
    background: #f1f5f9;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.nav-pills-custom .nav-link.active, .nav-pills-custom .nav-link:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.explorer-tab-content {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.mini-kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.mini-kanban-col {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-light);
}

.mini-kanban-col-header {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.mini-kanban-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.825rem;
    transition: transform 0.2s ease;
}

.mini-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

/* Feature Cards Grid */
.features-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.feature-glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--grad-primary);
    transition: height 0.3s ease;
}

.feature-glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-glass-card:hover::before {
    height: 100%;
}

.feature-icon-gradient {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.2);
}

/* Interactive ROI Calculator Section */
.roi-calculator-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
    color: #ffffff;
    position: relative;
}

.roi-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.roi-slider-group {
    margin-bottom: 2rem;
}

.roi-slider-label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.roi-slider-value {
    color: #38bdf8;
    font-weight: 700;
    font-size: 1.1rem;
}

.custom-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #334155;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.roi-result-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.roi-savings-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* Comparison Matrix Section */
.comparison-section {
    padding: 6rem 0;
    background: #ffffff;
}

.comparison-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-comparison th, .table-comparison td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-color: #f1f5f9;
}

.table-comparison thead th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
}

.highlight-smartcrm-col {
    background: rgba(79, 70, 229, 0.04);
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.pricing-switch-container {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    padding: 0.35rem;
    border-radius: 999px;
    gap: 0.5rem;
    margin-bottom: 3.5rem;
}

.pricing-switch-btn {
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.pricing-switch-btn.active {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.pricing-card-modern {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card-modern.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: scale(1.03);
    z-index: 2;
}

.pricing-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.price-display {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin: 1.25rem 0 0.5rem;
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-feature-list li {
    padding: 0.5rem 0;
    font-size: 0.925rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

/* Testimonial Cards */
.testimonials-section {
    padding: 6rem 0;
    background: #ffffff;
}

.testimonial-modern-card {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    padding: 2.25rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* FAQ Accordion */
.faq-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.accordion-modern .accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 14px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.accordion-modern .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    color: var(--text-main);
    box-shadow: none;
}

.accordion-modern .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

.accordion-modern .accordion-body {
    padding: 1rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Banner Section */
.cta-banner-section {
    padding: 5rem 0;
    background: var(--grad-primary);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
}

/* WhatsApp Floating Button */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer-custom {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 5rem 0 2rem;
    font-size: 0.925rem;
}

.footer-custom h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    margin-top: 4rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding: 6.5rem 0 4rem;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 2rem;
    }
    .floating-chip {
        display: none;
    }
    .pricing-card-modern.featured {
        transform: none;
        margin: 1.5rem 0;
    }
    .mini-kanban-board {
        grid-template-columns: 1fr;
    }
}
