:root {
    /* Brand Colors */
    --primary: #f05a28;
    --primary-dark: #e04a18;
    --primary-light: #f27a48;
    --accent: #1abc9c;
    --accent-dark: #16a085;
    --accent-light: #1fd1b2;
    --accent-secondary: #00b8ff;
    --accent-tertiary: #9847ff;
   
    /* Dark Mode Colors */
    --bg-dark: #212121;
    --bg-card: #2a2a2a;
    --bg-elevated: #303030;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --border: #444444;
   
    /* Light Mode Colors */
    --bg-light: #f9f9f9;
    --bg-card-light: #ffffff;
    --bg-elevated-light: #f2f2f2;
    --text-primary-light: #212121;
    --text-secondary-light: #666666;
    --border-light: #e0e0e0;
   
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
   
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
   
    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }
 
 
 /* Base Styles */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
 }
 
 
 html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Add padding to account for fixed header */
 }
 
 
 body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
    background-color: #161616;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
 }
 
 
 body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-primary-light);
 }
 
 
 /* Layout */
 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
 }
 
 
 /* Utility Classes */
 .flex {
    display: flex;
 }
 
 
 .flex-col {
    flex-direction: column;
 }
 
 
 .items-center {
    align-items: center;
 }
 
 
 .justify-between {
    justify-content: space-between;
 }
 
 
 .gap-2 {
    gap: 0.5rem;
 }
 
 
 .gap-3 {
    gap: 0.75rem;
 }
 
 
 .gap-4 {
    gap: 1rem;
 }
 
 
 .gap-6 {
    gap: 1.5rem;
 }
 
 
 .gap-8 {
    gap: 2rem;
 }
 
 
 .mb-2 {
    margin-bottom: 0.5rem;
 }
 
 
 .mb-4 {
    margin-bottom: 1rem;
 }
 
 
 .mb-6 {
    margin-bottom: 1.5rem;
 }
 
 
 .mb-8 {
    margin-bottom: 2rem;
 }
 
 
 .mb-12 {
    margin-bottom: 3rem;
 }
 
 
 .mt-12 {
    margin-top: 3rem;
 }
 
 
 .pt-6 {
    padding-top: 1.5rem;
 }
 
 
 .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
 }
 
 
 .py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
 }
 
 
 .px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
 }
 
 
 .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
 }
 
 
 .px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
 }
 
 
 .py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
 }
 
 
 .py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
 }
 
 
 .py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
 }
 
 
 .p-6 {
    padding: 1.5rem;
 }
 
 
 .p-8 {
    padding: 2rem;
 }
 
 
 .p-12 {
    padding: 3rem;
 }
 
 
 .rounded-full {
    border-radius: 9999px;
 }
 
 
 .rounded-md {
    border-radius: var(--radius-md);
 }
 
 
 .border {
    border: 1px solid var(--border);
 }
 
 
 .border-t {
    border-top: 1px solid var(--border);
 }
 
 
 .border-b-2 {
    border-bottom: 2px solid var(--primary);
 }
 
 
 .text-center {
    text-align: center;
 }
 
 
 .text-white {
    color: white;
 }
 
 
 .text-primary {
    color: var(--primary);
 }
 
 
 .text-secondary {
    color: var(--text-secondary);
 }
 
 
 .text-sm {
    font-size: 0.875rem;
 }
 
 
 .text-lg {
    font-size: 1.125rem;
 }
 
 
 .text-xl {
    font-size: 1.25rem;
 }
 
 
 .text-2xl {
    font-size: 1.5rem;
 }
 
 
 .text-3xl {
    font-size: 1.875rem;
 }
 
 
 .text-4xl {
    font-size: 2.25rem;
 }
 
 
 .text-5xl {
    font-size: 3rem;
 }
 
 
 .font-medium {
    font-weight: 500;
 }
 
 
 .font-semibold {
    font-weight: 600;
 }
 
 
 .font-bold {
    font-weight: 700;
 }
 
 
 .leading-tight {
    line-height: 1.25;
 }
 
 
 .grid {
    display: grid;
 }
 
 
 .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
 }
 
 
 .w-full {
    width: 100%;
 }
 
 
 .max-w-lg {
    max-width: 32rem;
 }
 
 
 .max-w-2xl {
    max-width: 42rem;
 }
 
 
 .mx-auto {
    margin-left: auto;
    margin-right: auto;
 }
 
 
 .relative {
    position: relative;
 }
 
 
 .absolute {
    position: absolute;
 }
 
 
 .fixed {
    position: fixed;
 }
 
 
 .inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
 }
 
 
 .z-0 {
    z-index: 0;
 }
 
 
 .z-10 {
    z-index: 10;
 }
 
 
 .z-50 {
    z-index: 50;
 }
 
 
 .overflow-hidden {
    overflow: hidden;
 }
 
 
 .pointer-events-none {
    pointer-events: none;
 }
 
 
 .shadow {
    box-shadow: var(--shadow);
 }
 
 
 .hover\:shadow:hover {
    box-shadow: var(--shadow);
 }
 
 
 .opacity-0 {
    opacity: 0;
 }
 
 
 .opacity-30 {
    opacity: 0.3;
 }
 
 
 .opacity-80 {
    opacity: 0.8;
 }
 
 
 .blur-xl {
    filter: blur(24px);
 }
 
 
 .transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
 }
 
 
 .transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
 }
 
 
 .hover\:translate-y-neg2:hover {
    transform: translateY(-0.5rem);
 }
 
 
 .transform {
    transform: translateY(1rem);
 }
 
 
 .active-fade-in {
    opacity: 1;
    transform: translateY(0);
 }
 
 
 /* Animations */
 @keyframes float {
    0% {
        transform: translate(20%, 20%);
    }
    33% {
        transform: translate(60%, 35%);
    }
    66% {
        transform: translate(30%, 60%);
    }
    100% {
        transform: translate(20%, 20%);
    }
 }
 
 
 @keyframes moveDots {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
 }
 
 
 .animate-float-slow {
    animation: float 20s infinite alternate ease-in-out;
 }
 
 
 .animate-float-medium {
    animation: float 15s infinite alternate ease-in-out;
 }
 
 
 .animate-float-fast {
    animation: float 10s infinite alternate ease-in-out;
 }
 
 
 .animate-move-dots {
    animation: moveDots 60s linear infinite;
 }
 
 
 /* Header and Navigation - Updated to match app */
 header {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, var(--bg-elevated) 0%, var(--bg-dark) 100%);
 }
 
 
 body.light-mode header {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%); /* More subtle gradient for light mode */
    border-color: var(--border-light);
 }
 
 
 .navbar {
    padding: 0.75rem 0;
 }
 
 
 .logo {
    position: relative;
    height: 65px; /* Match the image height */
    width: 200px; /* Set a fixed width */
 }
 
 
 .logo img {
    height: 65px;
    position: absolute;
    top: 0;
    left: 0;
 }
 
 
 .light-mode-logo {
    display: none;
 }
 
 
 body.light-mode .dark-mode-logo {
    display: none;
 }
 
 
 body.light-mode .light-mode-logo {
    display: block;
 }
 
 
 .nav-links a {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    padding-bottom: 0.25rem;
 }
 
 
 .nav-links a:hover {
    color: var(--text-primary);
 }
 
 
 .nav-links a.active,
 .nav-links a.current {
    color: var(--primary);
 }
 
 
 .nav-links a.active::after,
 .nav-links a.current::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
 }
 
 
 .nav-links a:not(.active)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
 }
 
 
 .nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
 }
 
 
 /* Button Styles - Match the app */
 .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
 }
 
 
 /* Fix for Font Awesome icon spacing in buttons */
 .button i,
 .button .fas,
 .button .fa,
 .button .fa-solid,
 .button .fa-regular,
 .button svg.svg-inline--fa {
    margin-right: 0.5rem;
 }
 
 
 .button-primary {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
 }
 
 
 .button-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
 }
 
 
 .button-accent {
    background-color: var(--accent);
    color: white;
    border: 1px solid var(--accent);
 }
 
 
 .button-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
 }
 
 
 .button-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
 }
 
 
 .button-outline:hover {
    background-color: var(--bg-elevated);
 }
 
 
 /* Transparent buttons for light mode */
 body.light-mode .button-primary {
    background-color: transparent;
    color: white;
    border: 1px solid var(--primary);
    color: var(--primary);
 }
 
 
 body.light-mode .button-primary:hover {
    background-color: var(--primary);
    color: white;
 }
 
 
 body.light-mode .button-accent {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
 }
 
 
 body.light-mode .button-accent:hover {
    background-color: var(--accent);
    color: white;
 }
 
 
 body.light-mode .button-outline {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
 }
 
 
 body.light-mode .button-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
 }
 
 
 .button i {
    margin-right: 0.5rem;
 }
 
 
 /* Theme Toggle */
 .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
 }
 
 
 .theme-toggle:hover {
    background-color: var(--bg-card);
 }
 
 
 /* Hero Section */
 .hero {
    position: relative;
    padding: 11rem 0 4rem; /* Back to more spacing, between original and first reduction */
    overflow: hidden;
    min-height: 80vh;
 }
 
 
 img {
    max-width: 100%;
    height: auto;
    display: block;
 }
 
 
 .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(240, 90, 40, 0.08) 0%, rgba(33, 33, 33, 0) 50%),
              radial-gradient(circle at 80% 30%, rgba(152, 71, 255, 0.08) 0%, rgba(33, 33, 33, 0) 50%);
    opacity: 0.7;
 }
 
 
 .hero-eyebrow {
    display: inline-block;
    background-color: rgba(240, 90, 40, 0.15);
    color: var(--primary);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
 }
 
 
 .hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700 !important;
 }
 
 
 .hero-title span {
    color: var(--primary);
 }
 
 
 .device-mockup {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
 }
 
 
 .device-mockup:hover {
    transform: translateY(-5px);
 }
 
 
 /* Make hero/device images indicate clickability for modal enlarge */
 .hero-image-container img,
 .device-mockup img {
    cursor: pointer;
 }
 
 
 /* Features Cards */
 .features-section {
    padding: 4rem 0;
 }
 
 
 .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700 !important;
 }
 
 
 .section-title-underline {
    width: 3rem;
    height: 0.25rem;
    background: var(--primary);
    margin: 0 auto 3rem;
    border-radius: var(--radius-sm);
 }
 
 
 .section-description {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
 }
 
 
 .feature-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
 }
 
 
 .feature-card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--primary);
 }
 
 
 .feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
 }
 
 
 /* How It Works Section */
 .how-it-works {
    padding: 4rem 0;
    background-color: var(--bg-elevated);
 }
 
 
 .step {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
 }
 
 
 .step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
 }
 
 
 /* Testimonials */
 .testimonial-section {
    padding: 4rem 0;
 }
 
 
 .testimonial-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
 }
 
 
 .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
 }
 
 
 .testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
 }
 
 
 .testimonial-content:before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: -30px;
    left: -10px;
    color: rgba(240, 90, 40, 0.2);
 }
 
 
 .author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.75rem;
    border: 2px solid var(--primary);
 }
 
 
 .cta-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
 }
 
 
 .cta-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
 }
 
 
 @media (max-width: 640px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
 }
 
 
 /* Remove old circle animation styles */
 .fractal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
 }
 
 
 .spinning-icon {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.05;
    animation: float 30s ease-in-out infinite;
    transform-origin: center center;
 }
 
 
 /* Main center circle */
 .spinning-icon .cls-5 {
    animation: spin 40s linear infinite;
    transform-origin: center;
 }
 
 
 /* Outer circles */
 .spinning-icon .cls-11,
 .spinning-icon .cls-2,
 .spinning-icon .cls-9,
 .spinning-icon .cls-7,
 .spinning-icon .cls-12,
 .spinning-icon .cls-10,
 .spinning-icon .cls-6,
 .spinning-icon .cls-14,
 .spinning-icon .cls-8,
 .spinning-icon .cls-13,
 .spinning-icon .cls-1,
 .spinning-icon .cls-3 {
    animation: orbit 20s linear infinite;
    transform-origin: center;
 }
 
 
 @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
 }
 
 
 @keyframes orbit {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
 }
 
 
 @keyframes float {
    0% {
        transform: translate(20%, 20%);
    }
    33% {
        transform: translate(60%, 35%);
    }
    66% {
        transform: translate(30%, 60%);
    }
    100% {
        transform: translate(20%, 20%);
    }
 }
 
 
 /* Keep the dots background */
 .moving-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
 }
 
 
 /* Parallax Effect */
 .parallax-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
 }
 
 
 .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.03); /* Very subtle background difference */
    z-index: -1;
 }
 
 
 .parallax-content {
    position: relative;
    z-index: 1;
 }
 
 
 /* Float animation for elements */
 .float-element {
    transition: transform 0.3s ease-out;
 }
 
 
 /* Other animations */
 .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
 }
 
 
 .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
 }
 
 
 /* Footer */
 footer {
    background-color: var(--bg-elevated);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

/* Fix footer grid layout */
footer .grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
}

/* Desktop layout: first column takes 2 spaces, other two take 1 each */
@media (min-width: 768px) {
    footer .grid {
        grid-template-columns: 2fr 1fr 1fr; /* Logo section wider, other sections equal */
        gap: 3rem;
        align-items: start; /* Align items to top */
    }
}

/* Ensure footer sections align properly */
footer .grid > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Footer logo section should be wider */
footer .grid > div:first-child {
    max-width: none; /* Remove any width restrictions */
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600 !important;
    margin-bottom: 1rem;
    color: var(--text-primary); /* Ensure proper color inheritance */
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Desktop footer bottom layout */
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 0;
    }
}

.footer-extra-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-extra-links {
        justify-content: flex-end;
    }
}

.footer-extra-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

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

/* Light Mode Styles */
body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-primary-light);
}

body.light-mode header {
    border-color: var(--border-light);
}

body.light-mode .border {
    border-color: var(--border-light);
}

body.light-mode .border-t {
    border-top-color: var(--border-light);
}

body.light-mode .text-secondary {
    color: var(--text-secondary-light);
}

body.light-mode .feature-card,
body.light-mode .testimonial-card,
body.light-mode .step,
body.light-mode .cta-container {
    background-color: var(--bg-card-light);
    border-color: var(--border-light);
}

body.light-mode .how-it-works,
body.light-mode footer {
    background-color: var(--bg-elevated-light);
}

body.light-mode .theme-toggle,
body.light-mode .social-link {
    background-color: var(--bg-elevated-light);
    border-color: var(--border-light);
}

body.light-mode .nav-links a:hover,
body.light-mode .button-outline:hover,
body.light-mode .theme-toggle:hover {
    background-color: var(--bg-elevated-light);
}

body.light-mode .dark-mode-logo {
    display: none;
}

body.light-mode .light-mode-logo {
    display: block;
}

/* Media Queries */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
   
    .md\:flex-row {
        flex-direction: row;
    }
   
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
   
    .md\:w-1\/2 {
        width: 50%;
    }
   
    .md\:w-1\/3 {
        width: 33.333333%;
    }
   
    .md\:text-3xl {
        font-size: 1.875rem;
    }
   
    .md\:text-4xl {
        font-size: 2.25rem;
    }
   
    .md\:flex {
        display: flex;
    }
   
    .md\:mb-0 {
        margin-bottom: 0;
    }
   
    .step {
        flex-direction: row;
        align-items: center;
    }
   
    .footer-bottom {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
   
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
   
    .lg\:text-5xl {
        font-size: 3rem;
    }
   
    .lg\:gap-8 {
        gap: 2rem;
    }
   
    .lg\:gap-12 {
        gap: 3rem;
    }
   
    .lg\:w-1\/4 {
        width: 25%;
    }
   
    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }
}

@media (max-width: 767px) {
    .hidden {
        display: none;
    }
   
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Pricing Section Styles */
.pricing-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pricing-toggle {
    display: flex;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 9999px;
    padding: 2px;
    position: relative;
    width: fit-content;
    margin: 0 auto 2rem;
}

.toggle-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #fff;
}

.toggle-btn.active {
    background-color: #f05a28;
    color: white;
}

.toggle-yearly .discount {
    color: var(--primary);
    margin-left: 4px;
}

/* Pricing Cards */
.pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .pricing-cards {
        flex-direction: row;
        align-items: stretch;
    }
}

.pricing-card {
    flex: 1;
    background: #2a2a2a; /* Lighter background for better contrast in dark mode */
    border: 1px solid #333;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    min-width: 0;
}

.pricing-card.pricing-popular {
    border-color: var(--primary);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem;
    text-align: center;
    font-weight: 600;
}

.pricing-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.pricing-card.pricing-popular .pricing-header {
    padding-top: 2.5rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    margin-top: 1rem;
    gap: 0.25rem;
}

.pricing-amount .monthly-price,
.pricing-amount .yearly-price {
    font-size: 2.25rem;
    font-weight: 700;
}

.yearly-price {
    display: none;
}

.price-suffix {
    color: #9ca3af;
    font-size: 1rem;
}

.pricing-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-included i {
    color: var(--primary);
}

.feature-excluded {
    color: #666;
}

.feature-excluded i {
    color: #666;
}

.pricing-btn {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
}

.pricing-btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.pricing-btn-outline:hover {
    background: rgba(240, 90, 40, 0.1);
}

.pricing-btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.pricing-btn-primary:hover {
    background: var(--primary-dark);
}

.pricing-btn-purple {
    background: transparent;
    border: 1px solid var(--accent-tertiary);
    color: var(--accent-tertiary);
}

.pricing-btn-purple:hover {
    background: rgba(152, 71, 255, 0.1);
}

/* Agent sections spacing */
#agents-preview,
#agents-expanded {
    margin-bottom: 2rem;
}

/* Additional space between sections */
#featured-agents {
    margin-bottom: 0;
    padding-bottom: 4rem;
    background-color: #101010; /* Dark background for featured agents section */
}

/* Utility classes for the agents sections */
.mt-16 {
    margin-top: 4rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.text-gray-400 {
    color: #9ca3af;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Add these spacing classes to your CSS */
.mt-20 {
    margin-top: 5rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

/* Ensure proper spacing for the Custom Solution section */
.pricing-cards {
    margin-bottom: 0;
}

/* Add proper spacing between sections */
#custom-solution {
    padding-top: 3rem;
    padding-bottom: 4rem;
    background-color: #101010; /* Dark background for custom solution section */
}

/* Fix the spacing between sections */
.pricing-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Ensure pricing cards have enough height */
.pricing-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

/* Add proper spacing for the custom solution section */
.custom-solution-section {
    padding: 3rem 0 4rem;
}

/* Make sure the pricing toggle works visually */
.toggle-btn.active {
    background-color: #f05a28;
    color: white;
}

/* Fix specific display properties for pricing */
.monthly-price, .yearly-price {
    font-size: 2.25rem;
    font-weight: 700;
}

/* Make sure the explore button works properly */
#explore-more-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

/* Add bigger margin to the bottom of the agents section button */
#featured-agents .text-center {
    margin-bottom: 3rem;
}

/* Ensure the hidden section displays properly when revealed */
#agents-expanded.hidden {
    display: none;
}

#agents-expanded {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Remove the targeted section backgrounds */
#featured-agents, #pricing, #custom-solution {
    background-color: transparent; /* Reset backgrounds to use the site defaults */
}

/* Restore the parallax section styling */
.parallax-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.03); /* Very subtle background difference */
    z-index: -1;
}

.parallax-content {
    position: relative;
    z-index: 1;
}

/* Fix the spacing between sections */
.pricing-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Agents expanded section styling */
#agents-expanded.hidden {
    display: none;
}

#agents-expanded {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Simplify section styling with direct background colors */
.section-dark {
    background-color: #161616;
}

.section-light {
    background-color: #1d1d1d;
}

body.light-mode .section-dark {
    background-color: #f5f5f5;
}

body.light-mode .section-light {
    background-color: #ffffff;
}

/* Remove any empty elements that might be creating gaps */
section:empty {
    display: none;
}

/* Ensure sections touch each other directly */
section {
    margin: 0;
    padding: 4rem 0;
}

/* Fix the issue with extra spacing */
#featured-agents {
    margin-bottom: 0;
    padding-bottom: 4rem;
}

#pricing {
    margin-top: 0;
    padding-top: 4rem;
}

/* Remove any previous background styles */
section::before {
    display: none;
}

.parallax-bg {
    display: none;
}

/* Ensure the explore more button has proper spacing */
#explore-more-btn {
    margin-bottom: 0;
}

/* Fix container margins */
.container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Agents expanded section styling */
#agents-expanded.hidden {
    display: none;
}

#agents-expanded {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add a background color to the body */
body {
    background-color: #161616;
}

/* Clearly defined section styles */
.section-dark {
    background-color: #161616; /* Darker shade */
    padding: 4rem 0;
    margin: 0;
    position: relative;
}

.section-light {
    background-color: #1d1d1d; /* Lighter shade - increased contrast */
    padding: 4rem 0;
    margin: 0;
    position: relative;
}

/* Ensure proper application to key sections */
#hero-section {
    background-color: #161616 !important; /* DARKER shade in dark mode */
}

#featured-categories {
    background-color: #1d1d1d !important; /* LIGHTER shade in dark mode */
}

#how-it-works {
    background-color: #161616 !important; /* DARKER shade */
}

#testimonials {
    background-color: #1d1d1d !important; /* LIGHTER shade */
}

/* Ensure proper targeting for featured agents */
#featured-agents {
    background-color: #161616 !important; /* DARKER shade */
}

/* Ensure pricing has different background than featured agents */
#pricing {
    background-color: #1d1d1d !important; /* LIGHTER shade */
}

/* Remove the custom solution section */
#custom-solution {
    display: none;
}

/* Ensure sections touch each other directly */
section {
    margin: 0;
    padding: 4rem 0;
}

/* Agents expanded section styling */
#agents-expanded.hidden {
    display: none;
}

#agents-expanded {
    display: grid;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Light mode section backgrounds - more contrast */
body.light-mode .section-dark {
    background-color: #f5f5f5;
}

body.light-mode .section-light {
    background-color: #ffffff;
}

/* Consistent alternation in light mode */
body.light-mode #hero-section {
    background-color: #ffffff !important; /* Pure white */
}

body.light-mode #features {
    background-color: #f5f5f5 !important; /* Light gray (increased contrast) */
}

body.light-mode #how-it-works {
    background-color: #ffffff !important; /* White */
}

body.light-mode #testimonials {
    background-color: #f5f5f5 !important; /* Light gray */
}

body.light-mode #featured-agents {
    background-color: #ffffff !important; /* White */
}

body.light-mode #pricing {
    background-color: #f5f5f5 !important; /* Light gray */
}

/* Pricing section specific light mode styles */
body.light-mode #pricing .pricing-card {
    background-color: #ffffff !important; /* White cards on gray background */
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* More pronounced shadow */
}

body.light-mode #pricing .pricing-card.pricing-popular {
    border-color: var(--primary) !important;
    box-shadow: 0 6px 18px rgba(240, 90, 40, 0.15) !important; /* Stronger shadow for popular card */
}

body.light-mode #pricing .pricing-header {
    border-bottom: 1px solid #e8e8e8 !important;
}

body.light-mode .pricing-title {
    color: #333333;
}

body.light-mode .pricing-description {
    color: #666666;
}

body.light-mode .pricing-amount {
    color: #333333;
}

body.light-mode .price-suffix {
    color: #666666;
}

body.light-mode .pricing-features li {
    color: #555555;
}

body.light-mode .feature-excluded {
    color: #999999;
}

body.light-mode .feature-excluded i {
    color: #999999;
}

/* Toggle button light mode styles */
body.light-mode .toggle-container {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
}

body.light-mode .toggle-btn {
    color: #666666;
    background-color: transparent;
}

body.light-mode .toggle-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(240, 90, 40, 0.3);
}

body.light-mode .toggle-btn:not(.active):hover {
    background-color: rgba(240, 90, 40, 0.1);
    color: var(--primary);
}

body.light-mode .toggle-yearly .discount {
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
}

/* Button styles in light mode */
body.light-mode .pricing-btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

body.light-mode .pricing-btn-outline:hover {
    background: rgba(240, 90, 40, 0.1);
}

body.light-mode .pricing-btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

body.light-mode .pricing-btn-primary:hover {
    background: var(--primary-dark);
}

body.light-mode .pricing-btn-purple {
    background: transparent;
    border: 1px solid var(--accent-tertiary);
    color: var(--accent-tertiary);
}

body.light-mode .pricing-btn-purple:hover {
    background: rgba(152, 71, 255, 0.1);
}

/* Enhanced card styling for light mode */
body.light-mode .feature-card {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

body.light-mode .section-dark .feature-card {
    background-color: #ffffff;
}

body.light-mode .section-light .feature-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
}

/* Fix text colors in light mode */
body.light-mode .text-secondary {
    color: #555555 !important; /* Slightly darker gray */
}

body.light-mode .section-title {
    color: #333333;
}

body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
    color: #333333;
}

body.light-mode p {
    color: #555555;
}

/* Pricing toggle specific fix */
body.light-mode #monthlyToggle,
body.light-mode #yearlyToggle {
    background-color: transparent;
    color: #555555;
}

body.light-mode #monthlyToggle.active,
body.light-mode #yearlyToggle.active {
    background-color: white;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Custom solution section in light mode */
body.light-mode #custom-solution h3 {
    color: #333333;
}

body.light-mode #custom-solution p {
    color: #666666;
}

/* Fix the section after hero to ensure proper alternation */
#features {
    background-color: #1d1d1d !important; /* Lighter in dark mode */
}

body.light-mode #features {
    background-color: #f0f0f0 !important; /* Gray in light mode */
}

/* Fix the toggle button styling in light mode with more specific selectors */
body.light-mode .pricing-toggle .toggle-btn.active,
body.light-mode #monthlyToggle.active,
body.light-mode #yearlyToggle.active {
    background-color: var(--primary) !important; /* Forced primary color */
    color: white !important; /* White text for contrast */
    box-shadow: 0 2px 8px rgba(240, 90, 40, 0.3); /* Shadow matching the primary color */
}

/* Ensure hover state works */
body.light-mode .pricing-toggle .toggle-btn:not(.active):hover {
    background-color: rgba(240, 90, 40, 0.1); /* Light orange hover for inactive */
    color: var(--primary);
}

/* Make sure pricing toggle container has correct styling */
body.light-mode .pricing-toggle {
    background: #e8e8e8;
    border: 1px solid #e0e0e0;
    padding: 2px;
    border-radius: 9999px;
    width: fit-content;
    margin: 0 auto 2rem;
}

/* Fix Testimonial text color in dark mode for better readability */
#testimonials .testimonial-card .testimonial-content {
    color: #e0e0e0; /* Light text for better readability on dark cards */
}

#testimonials .testimonial-card .testimonial-author {
    color: #ffffff; /* White text for the author name */
}

#testimonials .testimonial-card .testimonial-role,
#testimonials .testimonial-card .testimonial-position {
    color: #cccccc; /* Slightly dimmer but still readable text */
}

#testimonials .testimonial-card .testimonial-company {
    color: #dddddd; /* Light enough to read easily */
}

/* Ensure the styles don't conflict with light mode */
body:not(.light-mode) #testimonials .testimonial-card .testimonial-content,
body:not(.light-mode) #testimonials p,
body:not(.light-mode) #testimonials .quote,
body:not(.light-mode) #testimonials blockquote {
    color: #e0e0e0;
}

/* DARK MODE - Testimonial card text colors */
#testimonials .testimonial-card {
    background-color: #191919; /* Darker than section background */
    border: 1px solid #2a2a2a;
}

#testimonials .testimonial-card .testimonial-content,
#testimonials .testimonial-card p,
#testimonials .testimonial-card blockquote {
    color: #ffffff !important; /* White text for main content */
}

#testimonials .testimonial-card .testimonial-author {
    color: #ffffff !important; /* White for author name */
}

#testimonials .testimonial-card .testimonial-role,
#testimonials .testimonial-card .testimonial-position {
    color: #cccccc !important; /* Light gray for role */
}

#testimonials .testimonial-card .testimonial-company {
    color: #dddddd !important; /* Light gray for company */
}

/* LIGHT MODE - Testimonial card text colors */
body.light-mode #testimonials .testimonial-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-mode #testimonials .testimonial-card .testimonial-content,
body.light-mode #testimonials .testimonial-card p,
body.light-mode #testimonials .testimonial-card blockquote {
    color: #333333 !important; /* Dark text for main content */
}

body.light-mode #testimonials .testimonial-card .testimonial-author {
    color: #222222 !important; /* Nearly black for author name */
}

body.light-mode #testimonials .testimonial-card .testimonial-role,
body.light-mode #testimonials .testimonial-card .testimonial-position {
    color: #555555 !important; /* Medium gray for role */
}

body.light-mode #testimonials .testimonial-card .testimonial-company {
    color: #444444 !important; /* Dark gray for company */
}

/* Fix step numbers in How It Works section to be orange in light mode */
body.light-mode #how-it-works .step-number,
body.light-mode #how-it-works .step-icon {
    background-color: var(--primary) !important; /* Orange background */
    color: white !important; /* White text for contrast */
    border-color: var(--primary) !important; /* Orange border */
}

/* Make sure any other number indicators in this section also use the primary color */
body.light-mode #how-it-works .number,
body.light-mode #how-it-works .step-circle,
body.light-mode #how-it-works .step i {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* Fix pricing cards in LIGHT MODE */
body.light-mode #pricing .pricing-card {
    background-color: #ffffff !important; /* White cards on gray background */
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; /* More pronounced shadow */
}

body.light-mode #pricing .pricing-card.pricing-popular {
    border-color: var(--primary) !important;
    box-shadow: 0 6px 18px rgba(240, 90, 40, 0.15) !important; /* Stronger shadow for popular card */
}

body.light-mode #pricing .pricing-header {
    border-bottom: 1px solid #e8e8e8 !important;
}

/* Fix header nav links hover state in light mode */
body.light-mode header .nav-links a:hover {
    color: var(--primary) !important; /* Orange primary color */
    background-color: transparent !important; /* Ensure no background interference */
    text-shadow: none !important; /* Remove any text shadow */
}

/* Fix current/active nav links in light mode */
body.light-mode header .nav-links a.current,
body.light-mode header .nav-links a.active {
    color: var(--primary) !important;
    font-weight: 600 !important; /* Make it slightly bolder */
}

/* Fix nav link transitions for smooth hover effect */
body.light-mode header .nav-links a {
    transition: color 0.2s ease !important;
    color: #333333 !important; /* Dark gray for normal state */
}

/* Ensure no other hover effects are interfering */
body.light-mode header .nav-links a:hover {
    opacity: 1 !important;
    filter: none !important;
    text-decoration: none !important;
}

/* Active/selected state for navigation menu items */
header .main-nav ul li a.active,
header .main-nav ul li a.current {
    color: var(--primary) !important;
    font-weight: 600 !important;
    position: relative;
}

/* Add underline indicator for active menu item */
header .main-nav ul li a.active::after,
header .main-nav ul li a.current::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(1);
}

/* Light mode active state */
body.light-mode header .main-nav ul li a.active,
body.light-mode header .main-nav ul li a.current {
    color: var(--primary) !important;
}

/* Dark mode active state */
body:not(.light-mode) header .main-nav ul li a.active,
body:not(.light-mode) header .main-nav ul li a.current {
    color: var(--primary) !important;
}

/* Fix hover state to not override active state */
header .main-nav ul li a:hover:not(.active):not(.current) {
    color: var(--primary);
    opacity: 0.8;
}

/* Card Link Styling */
.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Ensure the card maintains proper styling when entire card is a link */
.feature-card .card-link:hover {
    text-decoration: none;
}

.feature-card .card-link:hover .text-primary {
    color: var(--primary-light);
}

/* Screenshot Collage Styling from Old CSS */
.screenshot-collage-item {
    position: relative;
    height: 0;
    padding-bottom: 62.5%; /* 16:10 aspect ratio */
    border-radius: 0.75rem;
    overflow: hidden;
    background-size: cover;
    background-position: top center; /* Ensure the top of the image is always shown */
    background-repeat: no-repeat;
    background-color: #1e293b; /* Dark background for placeholders */
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Improve image rendering quality */
    image-rendering: auto !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

html.light-mode .screenshot-collage-item {
    background-color: #f0f0f0; /* Lighter background for light mode */
    box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.screenshot-collage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Make sure the first collage item (the screenshots showing the tool name) has its image aligned to the top */
.screenshot-collage-item:first-child {
    background-position: top center;
}

/* Use Cases Grid Styling */
.use-cases-grid {
    /* Default to single column for mobile for better readability */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    /* Two columns on small tablets */
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* Exactly three horizontally stacked cards on desktop */
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.use-case-card {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
    height: 100%;
}

html.light-mode .use-case-card {
    background-color: var(--bg-card-light);
    box-shadow: 0 4px 10px -1px rgba(0, 0, 0, 0.1);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.use-case-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

html.light-mode .use-case-card h3 {
    color: var(--primary);
}

.use-case-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.use-case-card li:before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: var(--primary);
    font-weight: bold;
}

html.light-mode .use-case-card li {
    color: var(--text-primary-light);
}

/* Image Modal for Screenshot Collage */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto; /* Enable scrolling */
    padding: 2rem; /* Add padding to ensure space around the image */
}

.image-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Allow content to align to top */
    margin: auto; /* Center in viewport */
}

.image-modal-overlay.visible .image-modal-content {
    transform: scale(1);
}

.image-modal-content img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: block; /* Eliminate extra space */
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    z-index: 1001;
}

.image-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* Prevent layout shift */
}

/* Additional optimizations for carousel images */
.screenshot-collage-item {
    background-size: cover !important; /* Use cover for better quality */
    background-position: top center !important; /* Changed from center to top center */
    image-rendering: auto; /* Standardized */
    /* Removed transform, backface-visibility, will-change */
}

/* Specific improvements for hero image */
.hero img,
.hero-image-container img {
    image-rendering: auto; /* Standardized */
    filter: none !important;
    /* Removed transform, will-change */
}

/* Fullscreen image modal improvements */
.image-modal-content img {
    image-rendering: auto; /* Standardized */
    filter: none !important;
    max-width: 100%;
    height: auto;
    /* Removed transform, will-change */
}

/* Fix for image carousel */
.screenshot-carousel-slide img {
    image-rendering: auto; /* Standardized */
    filter: none !important;
    /* Removed transform, will-change */
}

/* Adjust floating logo visibility */
.spinning-icon {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.08; /* Slightly increased opacity for better visibility */
    animation: spin 30s ease-in-out infinite;
    transform-origin: center center;
    right: 10%; /* Position more to the right side */
    top: 10%; /* Position more toward the top */
}

/* Ensure light mode text contrast */
body.light-mode .text-secondary {
    color: #555555 !important; /* Slightly darker gray */
}

/* Make feature card text darker in light mode */
body.light-mode .feature-card p {
    color: #333333 !important;
}

/* Make how it works text darker in light mode */
body.light-mode .step p {
    color: #333333 !important;
}

/* Make use case list items darker in light mode */
body.light-mode .use-case-card li {
    color: #333333 !important;
}

/* Explicitly set footer text color in light mode */
body.light-mode footer p,
body.light-mode .footer-links a,
body.light-mode .footer-extra-links a,
body.light-mode .footer-bottom div {
    color: #555555 !important;
}

body.light-mode .footer-title {
    color: #333333 !important;
}

/* Typography Baseline */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
}

p, li, span, a {
    font-family: var(--font-sans);
    font-weight: 400;
}

/* Ensure nav links inherit baseline weight */
.nav-links a {
    font-weight: 500 !important;
}

/* Hide placeholder text overlays on screenshot collage items */
.placeholder-text {
    display: none !important;
}

/* Also add a utility class override to ensure centering works */
.justify-center {
    justify-content: center !important;
}

/* Ensure flex containers with justify-center work properly */
.flex.justify-center {
    justify-content: center !important;
}

/* Theme Toggle Icon Styling */
#themeToggle .icon-sun {
    display: none; /* Sun icon hidden by default (when light mode is active) */
}
#themeToggle .icon-moon {
    display: inline-block; /* Moon icon shown by default */
}

/* When the button indicates dark theme is active */
#themeToggle.dark-theme-active .icon-sun {
    display: inline-block; /* Show sun icon */
}
#themeToggle.dark-theme-active .icon-moon {
    display: none; /* Hide moon icon */
}