:root {
    --primary: #6366f1; /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #ec4899; /* Pink 500 */
    --accent: #8b5cf6; /* Violet 500 */
    
    /* Modern Dark Theme Palette */
    --bg-dark: #020617; /* Slate 950 */
    --bg-card: rgba(30, 41, 59, 0.6); /* Slate 800 with opacity */
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --nav-height: 80px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle Grid Background Pattern */
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.025em; /* Tight tracking for modern look */
    color: white;
}

h1 { 
    font-size: 4rem; 
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

h2 { font-size: 3rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }

p { 
    color: var(--text-muted); 
    margin-bottom: 1.5rem; 
    font-size: 1.125rem;
    font-weight: 400;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px) scale(1.02);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.section-padding { padding: 100px 0; }

/* Utility Classes */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.text-center { text-align: center; }
.grid { display: grid; }
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    height: var(--nav-height);
    background: rgba(2, 6, 23, 0.8); /* Slate 950 alpha */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a.btn,
.nav-links a.btn-primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important; /* Override potential gradient text */
    padding: 12px 28px;
    opacity: 1 !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Animated Underline for Nav */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background: var(--gradient-main);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: white; }

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
    position: relative;
    /* Dynamic light effect */
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: #c084fc; /* Purple 400 */
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.1);
    animation: float 3s ease-in-out infinite;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

/* Card Glow Effect on Hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.card:hover::before { opacity: 1; }

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: var(--bg-card-hover);
}

/* Feature Icons */
.icon-box {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    color: #a855f7;
    font-size: 1.75rem;
    transition: 0.3s;
}

.card:hover .icon-box {
    background: var(--gradient-main);
    color: white;
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Animations using .animate-on-scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Grids */
.industry-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.toggle-label.active {
    color: white;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Pricing Popular Highlight */
.pricing-card.popular {
    border: 1px solid #8b5cf6;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
    transform: scale(1.05); /* Slightly bigger */
    z-index: 2;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.2);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.3);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

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

/* Form Styles */
.form-group { margin-bottom: 1.25rem; }

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
    background: rgba(2, 6, 23, 0.95);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-grid h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-grid ul li a {
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-grid ul li a:hover {
    color: var(--accent);
    padding-left: 5px; /* Slight nudge */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0; width: 100%; height: auto;
        background: rgba(2, 6, 23, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .nav-links.active { display: flex; animation: slideDown 0.3s ease; }

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

    .mobile-toggle { display: block; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
}

/* Modern Industries Section */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.industry-card {
    flex: 1 1 300px; /* Allow grow/shrink with 300px basis */
    max-width: 400px; /* Prevent getting too wide on single row */
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1.8rem; /* Reduced padding */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.industry-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Glowing Mesh Gradient Effect on Hover */
.industry-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 70%);
    opacity: 0;
    transition: 0.4s;
}

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

.industry-card .icon-box {
    width: 56px; /* Slightly smaller icon box */
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem; /* Reduced margin */
    transition: all 0.4s ease;
}

.industry-card:hover .icon-box {
    background: var(--gradient-main);
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.5);
}

.industry-card .icon-box i {
    font-size: 1.6rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.3s;
}

.industry-card:hover .icon-box i {
    -webkit-text-fill-color: #ffffff;
}

.industry-card h3 {
    font-size: 1.4rem; /* Increased font size */
    font-weight: 700;
    margin-bottom: 1rem; /* Reduced margin */
    color: white;
}

.industry-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    flex-grow: 1; /* Pushes content down */
}

.industry-card ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px; /* Tighter spacing */
    color: var(--text-muted);
    font-size: 1.05rem; /* Increased list text size */
    line-height: 1.4;
    transition: 0.3s;
}

.industry-card ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px; /* Adjusted alignment for larger text */
    color: var(--primary);
    font-size: 0.85rem;
}

.industry-card:hover ul li {
    color: rgba(255,255,255,0.95);
}

/* Special styling for 'And Many More' card */
.industry-card.more-card {
    border-style: dashed !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.industry-card.more-card .icon-box {
    margin: 0 auto 1.5rem auto;
}
