:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-color: #0f172a;
    --light-bg: #f9fafb;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --border-color: rgba(0,0,0,0.06);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.08);
}

html[data-theme="dark"] {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

b {
    color: white !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-variation-settings: "wght" 400;
    line-height: 1.7;
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .display-*, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-variation-settings: "wght" 700;
    font-weight: 700;
}

.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    opacity: 0.95;
}

.hero-mockup {
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: all 0.6s ease;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-play-state: paused;
}


.animate-float {
    animation: float 6s ease-in-out infinite;
}

.pricing-card {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.6);
}

.pricing-card.featured {
    transform: scale(1.02);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
}

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

.pricing-card .badge {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 2;
}

.price-section h2 {
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1;
}

.form-switch {
    --bs-form-switch-bg: var(--bg-secondary);
    --bs-form-switch-color: var(--primary-color);
}

.form-switch input:checked + .form-check-label {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25), var(--shadow);
}

.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.table {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
}

.table th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
}

.table td {
    border-color: rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    padding: 1.25rem 1.5rem;
    font-weight: 500;
}

.table tr:hover {
    background-color: rgba(99, 102, 241, 0.04);
}

.bg-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.testimonial-card {
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Modern Section Styling */
section {
    scroll-margin-top: 80px;
}

section h2, section h3 {
    letter-spacing: -0.5px;
}

/* Enhanced Heading Styles */
.display-3, .display-4, .display-5 {
    letter-spacing: -1px;
    font-weight: 800;
}

/* Contact Card Hover Effect */
.card.bg-transparent:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Badge Styling */
.badge {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Lead text enhancement */
.lead {
    font-weight: 400;
    line-height: 1.8;
}

/* Link hover effects */
a {
    transition: all 0.3s ease;
}

a:not(.btn) {
    color: var(--primary-color);
}

a:not(.btn):hover {
    opacity: 0.8;
}

/* Form elements */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

/* Stars rating */
.stars i {
    margin: 0 2px;
    transition: transform 0.2s ease;
}

/* Animation refinements */
@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    to {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .navbar-brand {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    @container (max-width: 400px) {
        .pricing-card .card-body {
            padding: 1.5rem;
        }
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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