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

:root {
    /* Core Colors */
    --primary: #6B46C1;
    --secondary: #9333EA;
    --accent: #EC4899;
    --dark: #111827;
    --light: #F9FAFB;
    
    /* Gradient Definitions - Consolidated */
    --gradient-primary: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);  /* Coral-Yellow */
    --gradient-primary-90: linear-gradient(90deg, #FF6B6B 0%, #FFE66D 100%);
    --gradient-primary-light: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 230, 109, 0.1) 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-purple-alt: linear-gradient(135deg, #9333EA 0%, #6366F1 100%);
    --gradient-purple-light: linear-gradient(135deg, #A855F7 0%, #818CF8 100%);
    --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #1A1A2E 50%, #0F3460 100%);
    --gradient-dark-alt: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
    --gradient-dark-panel: linear-gradient(135deg, rgba(30, 30, 46, 0.95) 0%, rgba(20, 20, 35, 0.95) 100%);
    --gradient-dark-panel-solid: linear-gradient(135deg, rgba(30, 30, 46, 0.98) 0%, rgba(20, 20, 35, 0.98) 100%);
    --gradient-danger: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    --gradient-danger-hover: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    --gradient-warning: linear-gradient(135deg, #FFB800 0%, #FF8C00 100%);
    --gradient-info: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    --gradient-pink: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
    
    /* Legacy alias for compatibility */
    --gradient: var(--gradient-purple);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    padding-top: 90px; /* Space for fixed navbar (increased for better spacing) */
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.95));
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(107, 70, 193, 0.08);
    border-bottom: 1px solid rgba(107, 70, 193, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a.logo, .logo {
    height: 63px; /* Reduced to 90% of original 70px */
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center; /* Center-align nav links vertically */
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center; /* Ensure link text is centered */
    height: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Unified Button System - Primary button style for all CTAs */
.cta-button,
.btn-primary,
.demo-btn,
.submit-button {
    background: var(--gradient-primary);
    color: #0A0A0A;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.cta-button:hover,
.btn-primary:hover,
.demo-btn:hover,
.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

/* Secondary button variant */
.btn-secondary,
.demo-btn.secondary {
    background: #F3F4F6;
    color: #4B5563;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover,
.demo-btn.secondary:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Mobile Navigation Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--gradient-primary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    padding: 100px 2rem 2rem;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-links a {
    color: #0A0A0A;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    padding: 10px;
    border-radius: 10px;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.mobile-nav-links .cta-button {
    background: #0A0A0A;
    color: #FFE66D;
    text-align: center;
    margin-top: 1rem;
}

.mobile-nav-links .cta-button:hover {
    background: rgba(10, 10, 10, 0.9);
    transform: translateX(0) scale(1.05);
}

/* Common Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -20px) scale(1.05); }
}

/* Footer Link Styles - High Contrast */
footer a,
footer a:link,
footer a:visited,
footer a:active,
.footer a,
.footer a:link, 
.footer a:visited,
.footer a:active,
.footer-section a,
.footer-section a:link,
.footer-section a:visited,
.footer-section a:active {
    color: #CBD5E1 !important;
    text-decoration: none !important;
}

footer a:hover,
.footer a:hover,
.footer-section a:hover {
    color: #F3F4F6 !important;
    text-decoration: underline !important;
}

.footer-section h3,
.footer h3 {
    color: #FFE66D !important;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 75px; /* Less space needed on mobile */
    }
    
    nav {
        padding: 0.25rem 0; /* Reduced padding for mobile */
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-container > .cta-button {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        height: 40px; /* Reduced to 90% of original 45px */
    }
}

/* iPhone and small screens */
@media (max-width: 480px) {
    nav {
        padding: 0.2rem 0; /* Even less padding for iPhone */
    }
    
    .logo {
        height: 36px; /* Reduced to 90% of original 40px */
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .mobile-nav {
        width: 100%;
        max-width: none;
    }
    
    .mobile-nav-links a {
        font-size: 1.2rem;
    }
}