/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    
    /* Secondary Colors */
    --secondary-color: #10b981;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Neutral Colors */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --background-light: #f9fafb;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    
    /* Border Radius */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-3 {
    font-weight: var(--font-weight-black);
    line-height: 1.1;
}

.display-5 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: var(--font-weight-semibold);
    border-radius: var(--border-radius-md);
    padding: 12px 28px;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--success-color) 100%);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-outline-dark {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
    transform: translateY(-1px);
}

/* CTA Button Special Effects */
.cta-btn {
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

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

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    transition: all var(--transition-medium);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary) !important;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

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

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0;
}

.hero-image {
    position: relative;
}

.dashboard-preview img {
    border-radius: var(--border-radius-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.dashboard-preview:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.floating-card {
    position: absolute;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -10%;
    animation-delay: 2s;
}

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

.icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.trust-indicators {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ===== SOCIAL PROOF BANNER ===== */
.social-proof-banner {
    border-bottom: 1px solid var(--border-color);
}

.logos-carousel .logo-item img {
    height: 40px;
    filter: grayscale(100%);
    transition: filter var(--transition-medium);
}

.logos-carousel .logo-item:hover img {
    filter: grayscale(0%);
}

/* ===== PROBLEM/SOLUTION SECTION ===== */
.problem-solution {
    padding: var(--section-padding);
}

.problem-item, .solution-item {
    padding: 20px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-medium);
    margin-bottom: 1rem;
}

.problem-item {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--danger-color);
}

.solution-item {
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--secondary-color);
}

.problem-item:hover, .solution-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--section-padding);
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 24px;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}

.feature-benefits li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: var(--section-padding);
}

.step-card {
    position: relative;
    padding: 40px 20px;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: white;
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 40px auto 24px;
    transition: all var(--transition-medium);
}

.step-card:hover .step-icon {
    transform: scale(1.1);
    background: var(--gradient-primary);
    color: white;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: var(--section-padding);
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.stars i {
    font-size: 1.1rem;
}

.success-stats {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.stat-item h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    padding: var(--section-padding);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.pricing-toggle .form-check-input {
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background-color: var(--border-color);
    border: none;
    position: relative;
}

.pricing-toggle .form-check-input:checked {
    background-color: var(--primary-color);
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.popular-badge span {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-md);
}

.price-wrapper {
    margin: 20px 0;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

.amount {
    font-size: 4rem;
    font-weight: var(--font-weight-black);
    color: var(--primary-color);
    margin: 0 5px;
}

.period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.annual-savings {
    font-size: 0.85rem;
    color: var(--success-color);
    margin-top: 5px;
}

.pricing-features {
    flex-grow: 1;
    margin: 30px 0;
}

.pricing-features ul li {
    padding: 8px 0;
    color: var(--text-secondary);
}

.pricing-features ul li.text-muted {
    opacity: 0.5;
}

.pricing-footer {
    margin-top: 30px;
}

.guarantee-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    font-weight: var(--font-weight-semibold);
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: var(--section-padding);
}

.accordion-item {
    border: none;
    margin-bottom: 16px;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-button {
    background: white;
    border: none;
    padding: 24px 30px;
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
    border-radius: var(--border-radius-md) !important;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 0 30px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.cta-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.cta-card-body {
    padding: 40px 30px;
}

.feature-item {
    color: var(--text-secondary);
}

.trust-signals .stars {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 0 30px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-section {
        text-align: center;
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .dashboard-preview img {
        transform: none;
    }
    
    .pricing-card.popular {
        transform: none;
        margin-top: 20px;
    }
    
    .step-card {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .hero-stats .row > div {
        margin-bottom: 20px;
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .feature-card, .testimonial-card, .pricing-card {
        margin-bottom: 30px;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .logos-carousel {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .display-3 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .feature-card, .testimonial-card, .pricing-card {
        padding: 30px 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.text-primary-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    position: relative;
    background: white;
    background-clip: padding-box;
    border: 2px solid transparent;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 20%, 
        rgba(255,255,255,0.5) 60%, 
        rgba(255,255,255,0)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== FOCUS STATES ===== */
.btn:focus,
.form-control:focus,
.accordion-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}