/* Elegant Styles for Ringfluent */

:root {
    /* Sophisticated Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --accent-light: #fbbf24;
    --dark-color: #0f172a;
    --dark-light: #1e293b;
    --light-color: #f8fafc;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    
    /* Elegant Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #64748b 0%, #475569 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-neutral: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    
    /* Refined Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Global Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
}

h1 { font-size: 2.75rem; font-weight: 200; line-height: 1.1; }
h2 { font-size: 2rem; font-weight: 300; line-height: 1.2; }
h3 { font-size: 1.5rem; font-weight: 400; line-height: 1.3; }
h4 { font-size: 1.25rem; font-weight: 500; line-height: 1.4; }
h5 { font-size: 1.25rem; font-weight: 500; line-height: 1.5; }
h6 { font-size: 1rem; font-weight: 600; line-height: 1.5; }

.display-4 {
    font-weight: 200;
    font-size: 2.75rem;
    line-height: 1.1;
}

.display-5 {
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.2;
}

.lead {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--neutral-600);
}

/* Elegant Buttons */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    backdrop-filter: blur(10px);
}

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

.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Refined Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    color: white !important;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0 1rem;
    color: var(--neutral-300) !important;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menus */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 1rem 0;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.3s ease;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 400;
    color: var(--neutral-700);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-light) 50%, #334155 100%);
    color: #f8fafc;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

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

.hero-section h1 {
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
}

.hero-section .lead {
    color: #e2e8f0;
    font-weight: 300;
}

.hero-section .text-primary {
    background: linear-gradient(135deg, #a5b4fc 0%, #c7d2fe 50%, #ddd6fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
}

.hero-image-container {
    position: relative;
    height: 500px;
    margin: 2rem 0;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    animation: float 8s ease-in-out infinite;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: scale(1.05) translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.floating-card:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 40%;
    right: 5%;
    animation-delay: 2.5s;
}

.floating-card:nth-child(3) {
    bottom: 15%;
    left: 15%;
    animation-delay: 5s;
}

.floating-card i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.floating-card h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-20px) rotate(0.5deg); }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(99,102,241,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-color);
    color: white;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--neutral-900);
    font-size: 1.05rem;
}

.feature-card p {
    color: var(--neutral-500);
    margin: 0;
    font-weight: 400;
    line-height: 1.55;
    font-size: 0.875rem;
}

/* Benefit Cards */
.benefit-card {
    padding: 2.5rem 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.75rem;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.benefit-card h4 {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--neutral-900);
    font-size: 1.25rem;
}

.benefit-card p {
    color: var(--neutral-600);
    margin: 0;
    font-weight: 300;
    line-height: 1.6;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    color: white;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--neutral-600);
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-content p {
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author h6 {
    font-weight: 500;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-author h6 {
    color: white;
}

.testimonial-author small {
    color: var(--neutral-500);
    font-weight: 300;
    transition: color 0.3s ease;
}

.testimonial-card:hover .testimonial-author small {
    color: rgba(255, 255, 255, 0.8);
}

.stars i {
    margin-right: 0.25rem;
    color: #fbbf24;
}

/* FAQ Section */
.accordion-item {
    border: none;
    margin-bottom: 1.5rem;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
}

.accordion-button {
    background: white;
    color: var(--neutral-900);
    font-weight: 500;
    border: none;
    padding: 2rem;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

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

.accordion-button::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23374151'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
}

.accordion-body {
    padding: 2rem;
    color: var(--neutral-600);
    line-height: 1.7;
    font-weight: 300;
    background: white;
}

/* Demo Section */
#demo {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

#demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ffffff;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23ffffff;stop-opacity:0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>') center/cover;
}

#demo .container {
    position: relative;
    z-index: 2;
}

#demo h2 {
    font-weight: 300;
    color: white;
}

#demo .lead {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

#demo .form-control {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 300;
}

#demo .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#demo .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-light) 100%);
}

#contact h3, #contact h5 {
    color: white;
    font-weight: 400;
}

#contact h5 {
    color: #a5b4fc;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

#contact p {
    color: var(--neutral-300);
    font-weight: 300;
}

#contact a {
    transition: all 0.3s ease;
    color: var(--neutral-300);
}

#contact a:hover {
    color: #c7d2fe !important;
    transform: translateY(-2px);
}

/* Section Spacing */
section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--neutral-50) !important;
}

/* Enhanced Mobile Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .display-5 {
        font-size: 2.25rem;
    }
    
    .floating-card {
        position: static;
        margin: 1rem auto;
        animation: none;
        width: 220px;
    }
    
    .hero-image-container {
        height: auto;
        text-align: center;
        margin-top: 3rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .feature-card, .testimonial-card {
        margin-bottom: 2rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .navbar-nav {
        padding: 1rem 0;
        background: rgba(15, 23, 42, 0.98);
        border-radius: 12px;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .btn {
        margin: 1rem 1.5rem 0 1.5rem !important;
        display: block;
        text-align: center;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 0.5rem 1.5rem;
        border-radius: 8px;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2);
        color: white !important;
        transform: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-section .btn-lg {
        padding: 1rem 2rem;
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .floating-card {
        position: static;
        margin: 1.5rem auto;
        animation: none;
        width: 200px;
    }
    
    .hero-image-container {
        height: auto;
        text-align: center;
    }
    
    .feature-card, .testimonial-card, .custom-report-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    h1 { font-size: 2.5rem; line-height: 1.2; }
    h2 { font-size: 2rem; line-height: 1.3; }
    
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
    }
    
    .demo-dashboard {
        padding: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* Small Mobile Phones */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        border: none;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .feature-icon, .benefit-icon, .custom-report-icon {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card, .testimonial-card, .custom-report-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card h4, .testimonial-card h6, .custom-report-card h4 {
        font-size: 1.125rem;
    }
    
    .floating-card {
        width: 160px;
        padding: 1.25rem;
        margin: 1rem auto;
    }
    
    .floating-card h5 {
        font-size: 0.875rem;
    }
    
    .floating-card i {
        font-size: 2rem;
    }
    
    .accordion-button {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
    }
    
    .demo-dashboard {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .dashboard-header h5 {
        font-size: 1rem;
        text-align: center;
    }
    
    .dashboard-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .metric-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .metric-card h6 {
        font-size: 0.875rem;
    }
    
    .source-item {
        margin-bottom: 1rem;
    }
    
    .source-info {
        font-size: 0.875rem;
    }
    
    .pricing-card {
        padding: 2rem 1.25rem;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .pricing-header h4 {
        font-size: 1.25rem;
    }
    
    .price .amount {
        font-size: 2rem;
    }
    
    .pricing-features li {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }
    
    .report-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .report-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .report-header h5 {
        font-size: 1rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .report-features li {
        font-size: 0.875rem;
        padding: 0.375rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h1 { 
        font-size: 2rem; 
        line-height: 1.1; 
    }
    
    h2, .display-5 { 
        font-size: 1.75rem; 
        line-height: 1.2;
        margin-bottom: 1rem; 
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    #demo .form-control {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    #demo .row.g-3 {
        flex-direction: column;
    }
    
    #demo .col-md-4,
    #demo .col-md-3 {
        width: 100%;
        max-width: 100%;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

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

/* Additional refinements */
.navbar-scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .8;
        transform: scale(1.02);
    }
}

/* Call Tracking Dashboard */
.demo-dashboard {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--neutral-200);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--neutral-100);
}

.dashboard-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-top: 0.25rem;
}

.metric-card {
    background: var(--neutral-50);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.metric-card h6 {
    color: var(--neutral-700);
    margin-bottom: 1rem;
    font-weight: 500;
}

.progress {
    height: 8px;
    border-radius: 4px;
}

.call-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--neutral-100);
    color: var(--neutral-600);
    font-size: 0.875rem;
}

.timeline-item.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.timeline-item.current {
    background: var(--gradient-primary);
    color: white;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h4 {
    color: var(--neutral-900);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

.price .period {
    color: var(--neutral-500);
    font-weight: 300;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-100);
    color: var(--neutral-600);
}

.pricing-features li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* Analytics & Reports Styles */
.report-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    height: 100%;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.report-header h5 {
    color: var(--neutral-900);
    margin: 0;
    font-weight: 500;
}

.report-date {
    color: var(--neutral-500);
    font-size: 0.875rem;
}

.report-metric {
    text-align: center;
    padding: 1rem 0;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: var(--neutral-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.metric-change {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.metric-change.positive {
    background: #dcfce7;
    color: #166534;
}

.metric-change.negative {
    background: #fee2e2;
    color: #991b1b;
}

.source-item {
    margin-bottom: 1.5rem;
}

.source-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.source-name {
    font-weight: 500;
    color: var(--neutral-700);
}

.source-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.source-bar {
    height: 8px;
    background: var(--neutral-100);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.source-metrics {
    color: var(--neutral-500);
}

.custom-report-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
    height: 100%;
}

.custom-report-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.custom-report-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.75rem;
    color: white;
}

.custom-report-card h4 {
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.custom-report-card p {
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.report-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.report-features li {
    color: var(--neutral-600);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.report-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .floating-card {
        width: 140px;
        padding: 1rem;
    }
    
    .feature-icon, .benefit-icon, .custom-report-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 0.75rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section .display-4 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
        padding: 0;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .feature-card, .testimonial-card, .custom-report-card {
        padding: 1.25rem 0.75rem;
    }
    
    .demo-dashboard {
        padding: 0.75rem;
    }
    
    .pricing-card {
        padding: 1.25rem 0.75rem;
    }
    
    .report-card {
        padding: 1.25rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .testimonial-card:hover,
    .custom-report-card:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .floating-card:hover {
        transform: none;
    }
}

/* Contact Form Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    border-bottom: 1px solid var(--neutral-200);
    padding: 2rem 2rem 1.5rem 2rem;
}

.modal-title {
    color: var(--neutral-900);
    font-weight: 500;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid var(--neutral-200);
    padding: 1.5rem 2rem 2rem 2rem;
}

.form-label {
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.required {
    color: #dc3545;
    font-weight: 600;
}

.form-control,
.form-select {
    border: 2px solid var(--neutral-300);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-check-input {
    border: 2px solid var(--neutral-300);
    border-radius: 6px;
    margin-top: 0.125rem;
}

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

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-check-input.is-invalid {
    border-color: #dc3545 !important;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.5;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    display: none;
}

.error-message.show {
    display: block;
}

/* Toast Notifications */
.toast {
    border-radius: 12px;
    border: none;
    border-left: 4px solid var(--neutral-400);
    box-shadow: var(--shadow-lg);
}

.toast-header {
    border-bottom: 1px solid var(--neutral-200);
    border-radius: 12px 12px 0 0;
    background: var(--neutral-50);
}

.toast-body {
    padding: 1rem 1.25rem;
}

/* Success toast */
.toast.success {
    border-left-color: #198754;
    background: #f0fdf4;
}
.toast.success .toast-header {
    background: #d1fae5;
    color: #166534;
}
.toast.success .toast-body {
    color: #166534;
}

/* Error toast */
.toast.error {
    border-left-color: #dc3545;
    background: #fef2f2;
}
.toast.error .toast-header {
    background: #fde8e8;
    color: #991b1b;
}
.toast.error .toast-body {
    color: #991b1b;
}

/* Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn.loading .fas {
    opacity: 0;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile Modal Optimizations */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .form-control,
    .form-select {
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}