/* =============================================================================
   Modern SaaS Landing Page Styles
   ============================================================================= */

/* CSS Custom Properties (Variables) */
:root {
    /* Tandem Theory Brand Colors */
    --brand-red: rgb(254, 0, 0);
    --brand-red-hover: rgb(220, 0, 0);
    --brand-red-light: rgba(254, 0, 0, 0.1);
    --brand-red-50: rgba(254, 0, 0, 0.05);
    --brand-slate: rgb(51, 65, 85);
    --brand-slate-light: rgb(71, 85, 105);
    --brand-slate-dark: rgb(31, 45, 65);
    --brand-black: rgb(2, 2, 2);
    --brand-gray: rgb(105, 114, 125);
    --brand-gray-light: rgb(125, 134, 145);
    
    /* Primary system using brand colors */
    --primary-50: rgba(254, 0, 0, 0.05);
    --primary-100: rgba(254, 0, 0, 0.1);
    --primary-200: rgba(254, 0, 0, 0.2);
    --primary-300: rgba(254, 0, 0, 0.3);
    --primary-400: rgba(254, 0, 0, 0.5);
    --primary-500: rgb(254, 0, 0);
    --primary-600: rgb(220, 0, 0);
    --primary-700: rgb(180, 0, 0);
    --primary-800: rgb(140, 0, 0);
    --primary-900: rgb(100, 0, 0);
    
    /* Gray system using brand slate */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: var(--brand-gray-light);
    --gray-500: var(--brand-gray);
    --gray-600: var(--brand-slate-light);
    --gray-700: var(--brand-slate);
    --gray-800: var(--brand-slate-dark);
    --gray-900: var(--brand-black);
    
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --error-500: var(--brand-red);
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-600);
    color: white;
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin: 0 0 var(--space-4) 0;
    color: var(--gray-600);
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

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

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-outline {
    background-color: white;
    color: var(--brand-slate);
    border-color: var(--brand-slate);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(51, 65, 85, 0.05), transparent);
    transition: left 0.5s;
}

.btn-outline:hover {
    background-color: var(--brand-slate);
    color: white;
    border-color: var(--brand-slate);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 20px rgba(51, 65, 85, 0.15);
}

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

.btn-outline:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(2, 2, 2, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header scroll status effect */
.header.scrolled {
    background-color: rgba(2, 2, 2, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: var(--space-4) 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: var(--text-xl);
    color: white;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: var(--space-3);
}

.logo-text {
    color: white;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-2) 0;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-red);
    transition: width var(--transition-fast);
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    margin: 2px 0;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    color: white;
    text-align: center;
    padding: var(--space-24) 0;
    margin-top: 80px; /* Account for fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: floatBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes floatBackground {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-60px); }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
}

.hero-particle:nth-child(1) {
    left: 10%;
    width: 4px;
    height: 4px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.hero-particle:nth-child(2) {
    left: 20%;
    width: 6px;
    height: 6px;
    animation-delay: 2s;
    animation-duration: 25s;
}

.hero-particle:nth-child(3) {
    left: 30%;
    width: 3px;
    height: 3px;
    animation-delay: 4s;
    animation-duration: 18s;
}

.hero-particle:nth-child(4) {
    left: 40%;
    width: 5px;
    height: 5px;
    animation-delay: 6s;
    animation-duration: 22s;
}

.hero-particle:nth-child(5) {
    left: 50%;
    width: 4px;
    height: 4px;
    animation-delay: 8s;
    animation-duration: 24s;
}

.hero-particle:nth-child(6) {
    left: 60%;
    width: 7px;
    height: 7px;
    animation-delay: 10s;
    animation-duration: 19s;
}

.hero-particle:nth-child(7) {
    left: 70%;
    width: 3px;
    height: 3px;
    animation-delay: 12s;
    animation-duration: 21s;
}

.hero-particle:nth-child(8) {
    left: 80%;
    width: 5px;
    height: 5px;
    animation-delay: 14s;
    animation-duration: 26s;
}

.hero-particle:nth-child(9) {
    left: 90%;
    width: 4px;
    height: 4px;
    animation-delay: 16s;
    animation-duration: 23s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

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

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-description {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

.hero-social-proof {
    margin-top: var(--space-12);
}

.social-proof-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-6);
}

.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    opacity: 0.7;
}

/* Features Section */
.features {
    padding: var(--space-24) 0;
    background-color: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform var(--transition-normal), 
                box-shadow var(--transition-normal),
                background var(--transition-normal),
                backdrop-filter var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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


.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: var(--space-24) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.pricing-plan {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.pricing-price {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--primary-600);
    margin-bottom: var(--space-1);
}

.pricing-period {
    color: var(--gray-500);
    margin-bottom: var(--space-6);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-8) 0;
}

.pricing-features li {
    padding: var(--space-2) 0;
    color: var(--gray-600);
    position: relative;
    padding-left: var(--space-6);
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-500);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-24) 0;
    background-color: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.testimonial-quote {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: var(--space-6);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
}

.testimonial-info h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.testimonial-info p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0;
}

/* CTA Section */
.cta {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-6) 0;
}

.footer-bottom {
    text-align: center;
}


/* Responsive Design */
@media (max-width: 1023px) {
    .navbar-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        gap: var(--space-4);
    }
    
    .navbar-menu .nav-link {
        color: var(--gray-800);
    }
    
    .navbar-menu .nav-link:hover {
        color: var(--primary-600);
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: var(--space-2);
    }
    
    .navbar-actions {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-4);
        padding-top: var(--space-4);
        border-top: 1px solid var(--gray-200);
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 767px) {
    .hero {
        padding: var(--space-16) 0;
        margin-top: 60px; /* Smaller header on mobile */
    }
    
    .hero-title {
        font-size: var(--text-4xl);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: var(--text-lg);
        margin-bottom: var(--space-6);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: var(--space-4) var(--space-6);
    }
    
    .section-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-3);
    }
    
    .section-description {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }
    
    .cta-title {
        font-size: var(--text-3xl);
    }
    
    
    .container {
        padding: 0 var(--space-4);
    }

    /* Optimize hero particles for mobile */
    .hero-particle {
        animation-duration: 30s; /* Slower on mobile for better performance */
    }

    /* Better mobile touch targets */
    .btn {
        min-height: 44px; /* iOS accessibility guidelines */
        touch-action: manipulation;
    }

    .nav-link {
        padding: var(--space-3) 0;
        font-size: var(--text-lg);
    }

    /* Mobile-optimized FAQ */
    .faq-question h3 {
        font-size: var(--text-base);
        line-height: 1.4;
    }

    /* Better mobile form experience */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: var(--space-4);
    }

    /* Mobile hero stats adjustment */
    .hero-stats {
        margin-top: var(--space-6);
        gap: var(--space-3);
    }

    .stat-item {
        padding: var(--space-3);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 479px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Focus Styles for Better Accessibility */
*:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--animation-delay, 0s);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation for grid items */
.features-grid .feature-card:nth-child(1) { --animation-delay: 0s; }
.features-grid .feature-card:nth-child(2) { --animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { --animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { --animation-delay: 0.3s; }

.testimonials-grid .testimonial-card:nth-child(1) { --animation-delay: 0s; }
.testimonials-grid .testimonial-card:nth-child(2) { --animation-delay: 0.15s; }
.testimonials-grid .testimonial-card:nth-child(3) { --animation-delay: 0.3s; }

.benefit-list li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: calc(var(--item-index, 0) * 0.1s);
}

.benefit-section.visible .benefit-list li {
    opacity: 1;
    transform: translateX(0);
}

/* Enhanced hover effects for cards */
.feature-card,
.testimonial-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease;
}

.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hero Section Enhancements */
.hero-tagline {
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.stat-item {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* Benefits Section */
.benefits {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    margin-bottom: var(--space-20);
    padding: var(--space-8);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.benefit-section.reverse {
    direction: rtl;
}

.benefit-section.reverse > * {
    direction: ltr;
}

.benefit-content {
    padding: var(--space-4);
}

.benefit-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.benefit-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    padding: var(--space-2) 0 var(--space-2) var(--space-6);
    color: var(--gray-700);
    position: relative;
    font-size: var(--text-base);
    line-height: 1.6;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-600);
    font-weight: bold;
    font-size: var(--text-lg);
}

.benefit-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-xl);
}

.growth-chart {
    display: flex;
    align-items: end;
    gap: var(--space-3);
    height: 200px;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(to top, var(--primary-600), var(--primary-400));
    border-radius: var(--radius) var(--radius) 0 0;
    animation: growBar 1.5s ease-out;
}

@keyframes growBar {
    from { height: 0; }
    to { height: var(--final-height, 100%); }
}

.data-visualization {
    position: relative;
    width: 250px;
    height: 200px;
}

.data-point {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    position: absolute;
    animation: pulse 2s infinite;
}

.data-point.active {
    background: var(--primary-600);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.data-point:nth-child(1) { top: 20px; left: 50px; }
.data-point:nth-child(2) { top: 80px; left: 20px; }
.data-point:nth-child(3) { top: 60px; left: 120px; }
.data-point:nth-child(4) { top: 140px; left: 80px; }
.data-point:nth-child(5) { top: 100px; left: 180px; }

.relationship-network {
    position: relative;
    width: 250px;
    height: 200px;
}

.network-node {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--primary-600);
    position: absolute;
    animation: networkPulse 3s infinite;
}

.network-node.central {
    width: 32px;
    height: 32px;
    background: var(--primary-700);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.network-node:nth-child(2) { top: 20px; left: 40px; }
.network-node:nth-child(3) { top: 30px; right: 30px; }
.network-node:nth-child(4) { bottom: 40px; left: 20px; }
.network-node:nth-child(5) { bottom: 30px; right: 40px; }

@keyframes networkPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.benefits-cta {
    text-align: center;
    margin-top: var(--space-16);
}

/* Testimonials Enhancements */
.testimonial-results {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.result-metric {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.metric-number {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-600);
}

.metric-label {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.social-proof-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-16);
    padding: var(--space-8);
    background: var(--gray-900);
    border-radius: var(--radius-2xl);
}

.proof-stat {
    text-align: center;
    color: white;
}

.proof-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--primary-400);
    display: block;
    margin-bottom: var(--space-2);
}

.proof-label {
    font-size: var(--text-sm);
    color: var(--gray-300);
}

/* FAQ Section */
.faq {
    padding: var(--space-24) 0;
    background-color: var(--gray-50);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.faq-question:hover {
    background-color: var(--gray-50);
}

.faq-question h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
    padding-right: var(--space-4);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.faq-toggle:hover {
    background: var(--primary-200);
}

.faq-item.active .faq-toggle {
    background: var(--primary-600);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Contact Form Section */
.contact-form {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.form-header h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.form-header p {
    font-size: var(--text-lg);
    color: var(--gray-600);
}

.contact-form-element {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-3);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-full {
    width: 100%;
}

.form-disclaimer {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-align: center;
    margin-top: var(--space-4);
}

.cta-guarantee {
    margin-top: var(--space-6);
}

.cta-guarantee p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}


/* Mobile Responsive Adjustments */
@media (max-width: 1023px) {
    .benefit-section {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .benefit-section.reverse {
        direction: ltr;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .social-proof-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        margin-top: var(--space-6);
    }
    
    .stat-item {
        padding: var(--space-3);
    }
    
    .benefit-section {
        margin-bottom: var(--space-12);
        padding: var(--space-6);
    }
    
    .benefit-title {
        font-size: var(--text-2xl);
    }
    
    .social-proof-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .proof-number {
        font-size: var(--text-3xl);
    }
}

/* Animation enhancements */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gray-900);
    color: white;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: var(--success-500);
}

.toast-error {
    background: var(--error-500);
}

/* Screen reader only content */
.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;
}

/* Touch device optimizations */
.touch-device .btn:hover {
    transform: none; /* Disable hover effects on touch devices */
}

.touch-device .feature-card:hover,
.touch-device .testimonial-card:hover {
    transform: none;
}

.touch-active {
    background-color: rgba(59, 130, 246, 0.05) !important;
    transform: scale(0.98);
    transition: all 0.1s ease;
}

/* Reduced performance mode */
.reduced-performance * {
    animation: none !important;
    transition: none !important;
}

.reduced-performance .hero::before {
    display: none;
}

.reduced-performance .hero-particles {
    display: none;
}

/* Better touch targets */
@media (max-width: 767px) {
    .navbar-toggle {
        padding: var(--space-3);
        min-width: 44px;
        min-height: 44px;
    }

    .faq-toggle {
        min-width: 44px;
        min-height: 44px;
    }

}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .btn {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    input, textarea, select {
        -webkit-appearance: none;
        border-radius: var(--radius-lg);
    }
}

/* Viewport height fix for mobile browsers */
:root {
    --vh: 1vh;
}

@media (max-width: 767px) {
    .hero {
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}