/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base Colors - matching ContextuAI frontend theme */
    --brand-primary: #FF4700;
    --brand-primary-hover: #E63900;
    --brand-primary-dark: #CC3300;
    --brand-secondary: #0EA5E9;
    --brand-secondary-hover: #0284C7;
    
    /* Success/Error Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;
    
    /* Light Theme Variables */
    --primary-black: #171717;
    --secondary-black: #262626;
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-light: #737373;
    --background-white: #ffffff;
    --background-light: #FAFAFA;
    --background-section: #F5F5F5;
    --border-light: #E5E5E5;
    --accent-blue: var(--brand-primary);
    --accent-blue-hover: var(--brand-primary-hover);
    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    --gradient-text: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    
    /* Light mode shadows with brand accent */
    --shadow-brand-sm: 0 1px 2px 0 rgb(255 71 0 / 0.05);
    --shadow-brand-md: 0 4px 6px -1px rgb(255 71 0 / 0.1), 0 2px 4px -2px rgb(255 71 0 / 0.1);
    --shadow-brand-lg: 0 10px 15px -3px rgb(255 71 0 / 0.1), 0 4px 6px -4px rgb(255 71 0 / 0.1);
    --shadow-brand-xl: 0 20px 25px -5px rgb(255 71 0 / 0.1), 0 8px 10px -6px rgb(255 71 0 / 0.1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Standard Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    /* Dark Theme Colors - matching ContextuAI frontend */
    --primary-black: #FAFAFA;
    --secondary-black: #F4F4F5;
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-light: #71717A;
    --background-white: #242523;
    --background-light: #2D2E2B;
    --background-section: #35362F;
    --border-light: #3A3B38;
    --accent-blue: var(--brand-primary);
    --accent-blue-hover: var(--brand-primary-hover);
    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    --gradient-text: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
    
    /* Dark mode shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.15);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.15);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.25), 0 4px 6px -4px rgb(0 0 0 / 0.2);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.25);
    
    --shadow-brand-sm: 0 1px 2px 0 rgb(0 0 0 / 0.15);
    --shadow-brand-md: 0 4px 6px -1px rgb(0 0 0 / 0.2), 0 2px 4px -2px rgb(0 0 0 / 0.15);
    --shadow-brand-lg: 0 10px 15px -3px rgb(0 0 0 / 0.25), 0 4px 6px -4px rgb(0 0 0 / 0.2);
    --shadow-brand-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Light Theme Enhanced Styling - matching dark mode quality */
[data-theme="light"] {
    /* Enhanced Light Theme Colors for better definition */
    --text-primary: #171717;
    --text-secondary: #404040;
    --text-light: #525252;
    --background-white: #ffffff;
    --background-light: #FAFAFA;
    --background-section: #F8F9FA;
    --border-light: #D4D4D4;
    --accent-blue: var(--brand-primary);
    --accent-blue-hover: var(--brand-primary-hover);
    
    /* Enhanced radius values to match dark mode appearance */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    
    /* Enhanced shadows for better depth - matching dark mode intensity */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    
    --shadow-brand-sm: 0 1px 3px 0 rgb(255 71 0 / 0.12), 0 1px 2px 0 rgb(255 71 0 / 0.08);
    --shadow-brand-md: 0 4px 6px -1px rgb(255 71 0 / 0.15), 0 2px 4px -1px rgb(255 71 0 / 0.1);
    --shadow-brand-lg: 0 10px 15px -3px rgb(255 71 0 / 0.15), 0 4px 6px -2px rgb(255 71 0 / 0.08);
    --shadow-brand-xl: 0 20px 25px -5px rgb(255 71 0 / 0.15), 0 8px 10px -6px rgb(255 71 0 / 0.08);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(23, 23, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.brand-animation {
    position: relative;
    display: inline-block;
}

.brand-main,
.brand-alt {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-main {
    opacity: 1;
    transform: translateY(0);
    animation: brandCycle 8s infinite;
}

.brand-alt {
    opacity: 0;
    transform: translateY(8px);
    animation: brandCycleAlt 8s infinite;
}

.brand-u {
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

/* Animation keyframes for brand cycling */
@keyframes brandCycle {
    0%, 45% {
        opacity: 1;
        transform: translateY(0);
    }
    50%, 95% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brandCycleAlt {
    0%, 45% {
        opacity: 0;
        transform: translateY(8px);
    }
    50%, 95% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* Set the container width to match the longest text */
.brand-animation {
    width: 110px; /* Adjust based on font size to fit "ContextuAI" */
    height: 1.2em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link.cta-link {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.nav-link.cta-link:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary-dark) 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: calc(70px + var(--spacing-3xl)) 0 var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero Background Animation */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.floating-element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-element-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-element-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 25%;
    animation-delay: 4s;
    animation-duration: 6s;
}

.floating-element-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.floating-element-5 {
    width: 40px;
    height: 40px;
    top: 10%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 7s;
}

.floating-element-6 {
    width: 90px;
    height: 90px;
    bottom: 30%;
    right: 35%;
    animation-delay: 5s;
    animation-duration: 11s;
}

/* Floating animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.05;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) scale(0.9);
        opacity: 0.1;
    }
    75% {
        transform: translateY(-20px) translateX(15px) scale(1.05);
        opacity: 0.2;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.hero-proof {
    margin-top: var(--spacing-3xl);
}

.proof-text {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.proof-logos {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.proof-logo {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--background-section);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary-dark) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-header h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.feature-card {
    padding: var(--spacing-2xl);
    background-color: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    box-shadow: var(--shadow-brand-lg);
    transform: translateY(-2px);
    border-color: var(--brand-primary);
}

.feature-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Connectors Section */
.connectors {
    padding: 30px 0;
    background-color: var(--background-section);
    overflow: hidden;
}

.connectors-scroll {
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.connectors-scroll::-webkit-scrollbar {
    display: none;
}

.connectors-track {
    display: flex;
    gap: 40px;
    padding: 10px 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.connector-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.connector-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Solutions Section */
.solutions {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background-section);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.solution-card {
    padding: var(--spacing-2xl);
    background-color: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.solution-card:hover {
    box-shadow: var(--shadow-brand-lg);
    transform: translateY(-2px);
    border: 1px solid var(--brand-primary);
}

.solution-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.solution-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.solution-card ul {
    list-style: none;
    padding: 0;
}

.solution-card li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--spacing-lg);
}

.solution-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 600;
}

/* Stats Section */
.stats {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-2xl);
    text-align: center;
}

.stat-item h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.stat-item p {
    color: #cccccc;
    font-size: var(--font-size-base);
}

/* Contact Section */
.contact {
    padding: var(--spacing-2xl) 0;
    background-color: var(--background-section);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.contact-info p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.contact-benefits {
    space-y: var(--spacing-lg);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background-color: var(--brand-primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.benefit-item p {
    margin: 0;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--background-white);
    padding: var(--spacing-2xl);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--background-white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-disclaimer {
    font-size: var(--font-size-xs);
    color: var(--text-light);
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #171717 0%, #262626 100%);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: #cccccc;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-xl);
}

.footer-column h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-column a {
    display: block;
    color: #cccccc;
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid #333333;
    text-align: center;
}

.footer-bottom p {
    color: #cccccc;
    font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #171717;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-3xl);
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        gap: var(--spacing-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .theme-toggle {
        order: -1; /* Show theme toggle before other menu items on mobile */
    }
    
    /* Reduce animation complexity on mobile */
    .floating-element {
        animation-duration: 12s !important;
    }
    
    .floating-element-1,
    .floating-element-4 {
        display: none; /* Hide some elements on mobile for performance */
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .features-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .proof-logos {
        flex-direction: column;
        align-items: center;
    }
    
    /* Connector section responsive - tablet */
    .connector-logo {
        width: 60px;
        height: 60px;
    }
    
    .connectors-track {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(70px + var(--spacing-2xl)) 0 var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .features,
    .solutions,
    .contact,
    .connectors {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Connector section responsive - mobile */
    .connector-logo {
        width: 50px;
        height: 50px;
    }
    
    .connectors-track {
        gap: 20px;
        justify-content: flex-start;
    }
    
    .connectors-scroll {
        overflow-x: auto;
    }
    
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .section-header h2 {
        font-size: var(--font-size-3xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: var(--spacing-lg);
    }
}

/* Loading States and Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background-color: var(--background-section);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: scale(1.05);
}

.theme-toggle:hover .theme-icon {
    color: white;
}

.theme-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.theme-toggle.rotating {
    animation: rotateIcon 0.5s ease-in-out;
}

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg) scale(0.8); }
    100% { transform: rotate(360deg); }
}

/* Dark mode specific adjustments */

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #242523 0%, #2D2E2B 50%, #1F201D 100%);
}

[data-theme="dark"] .floating-element {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    opacity: 0.08;
}

[data-theme="dark"] .features {
    background-color: var(--background-white);
}

[data-theme="dark"] .solutions {
    background-color: var(--background-section);
}

[data-theme="dark"] .contact {
    background-color: var(--background-section);
}

[data-theme="dark"] .proof-logo {
    background-color: var(--background-section);
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

/* Ensure buttons work well in dark mode */
[data-theme="dark"] .btn-secondary {
    border-color: var(--border-light);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Light Theme Enhanced Element Styling - matching dark mode quality */
[data-theme="light"] .features {
    background-color: var(--background-white);
}

[data-theme="light"] .solutions {
    background-color: var(--background-section);
}

[data-theme="light"] .contact {
    background-color: var(--background-section);
}

[data-theme="light"] .feature-card {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    background-color: var(--background-white);
}

[data-theme="light"] .feature-card:hover {
    box-shadow: var(--shadow-brand-lg);
    border-color: var(--brand-primary);
    transform: translateY(-3px);
}

[data-theme="light"] .solution-card {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    background-color: var(--background-white);
}

[data-theme="light"] .solution-card:hover {
    box-shadow: var(--shadow-brand-lg);
    border-color: var(--brand-primary);
    transform: translateY(-3px);
}

[data-theme="light"] .contact-form-container {
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    background-color: var(--background-white);
}

[data-theme="light"] .proof-logo {
    background-color: var(--background-section);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .btn-secondary {
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    background-color: transparent;
}

[data-theme="light"] .btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 71, 0, 0.02);
}

[data-theme="light"] .btn-primary {
    box-shadow: var(--shadow-brand-md);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: var(--shadow-brand-lg);
}

[data-theme="light"] .theme-toggle {
    background-color: var(--background-section);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
}

[data-theme="light"] .theme-toggle:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-brand-md);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 0, 0.15);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 71, 0, 0.2);
}

/* Explicit theme styling for form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background-color: #ffffff;
    color: #171717;
    border-color: #e5e5e5;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background-color: #262626;
    color: #ffffff;
    border-color: #404040;
}

/* Placeholder text styling */
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: #737373;
    opacity: 1;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: #a3a3a3;
    opacity: 1;
}

/* Smooth transitions for theme switching */
*,
*::before,
*::after {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-light: #666666;
        --text-secondary: #333333;
    }
    
    [data-theme="dark"] {
        --border-light: #888888;
        --text-secondary: #CCCCCC;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        display: none; /* Hide floating animations for reduced motion */
    }
    
    .brand-main,
    .brand-alt {
        animation: none !important; /* Disable brand animation for reduced motion */
        opacity: 1 !important;
        transform: none !important;
    }
    
    .brand-alt {
        display: none; /* Hide alternative text for reduced motion */
    }
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--background-white);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    border: 2px solid var(--color-success);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    position: relative;
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-icon {
    margin: 0 auto 1rem;
    width: 64px;
    height: 64px;
    animation: modalIconBounce 0.6s ease-out 0.2s;
}

@keyframes modalIconBounce {
    0% { 
        transform: scale(0);
        opacity: 0;
    }
    50% { 
        transform: scale(1.2);
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--background-section);
    color: var(--text-primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-message {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    border-left: 4px solid var(--color-success);
}

.detail-icon {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

.detail-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.modal-btn {
    min-width: 200px;
    padding: 0.875rem 2rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand-lg);
}

/* Dark Theme Modal Styles */
[data-theme="dark"] .modal-content {
    background: var(--background-white);
    border-color: var(--color-success);
}

[data-theme="dark"] .modal-title {
    color: var(--text-primary);
}

[data-theme="dark"] .modal-message {
    color: var(--text-secondary);
}

[data-theme="dark"] .detail-item {
    background: var(--background-section);
}

[data-theme="dark"] .detail-item span:last-child {
    color: var(--text-primary);
}

[data-theme="dark"] .modal-close:hover {
    background: var(--background-section);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: none;
        border-radius: 0.75rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .modal-title {
        font-size: var(--font-size-xl);
    }
    
    .modal-message {
        font-size: var(--font-size-base);
    }
    
    .modal-btn {
        width: 100%;
        min-width: auto;
    }
    
    .detail-item {
        padding: 0.6rem;
    }
}