/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px; /* Reduced for mobile */
    width: 100%;
}

/* Header Styles - Mobile First */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Reduced from 70px for mobile */
    padding: 0 16px;
    min-height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced for mobile */
    flex-shrink: 0;
}

.brand-name {
    font-size: 18px; /* Reduced from 24px for mobile */
    font-weight: 700;
    white-space: nowrap;
}

.nav-desktop {
    display: none;
    gap: 24px; /* Reduced from 32px */
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

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

.cta-desktop {
    display: none;
}

/* Mobile Menu - Improved */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 3px; /* Reduced from 4px */
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px; /* Reduced from 8px */
    flex-shrink: 0;
}

.hamburger {
    width: 20px; /* Reduced from 25px */
    height: 2px; /* Reduced from 3px */
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content {
    padding: 16px; /* Reduced from 20px */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 16px */
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 6px 0; /* Reduced from 8px */
    font-size: 16px;
}

.mobile-cta {
    margin-top: 12px; /* Reduced from 16px */
}

/* Hero Section - Mobile Optimized */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 40px 0; /* Reduced from 80px for mobile */
    min-height: 80vh; /* Reduced from 90vh for mobile */
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px; /* Reduced from 60px for mobile */
    align-items: center;
    text-align: center; /* Center text on mobile */
}

.hero-title {
    font-size: 32px; /* Reduced from 48px for mobile */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px; /* Reduced from 24px */
    color: var(--gray-900);
}

.hero-description {
    font-size: 16px; /* Reduced from 20px for mobile */
    color: var(--gray-600);
    margin-bottom: 24px; /* Reduced from 40px */
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 16px */
    width: 100%;
}

.cookg-button-primary.large {
    padding: 12px 24px; /* Reduced from 16px 32px */
    font-size: 16px; /* Reduced from 18px */
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    justify-content: center;
    width: 100%; /* Full width on mobile */
}

.arrow-icon {
    width: 16px; /* Reduced from 20px */
    height: 16px;
}

.demo-button {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: 12px 24px; /* Reduced from 16px 32px */
    border-radius: var(--radius-md);
    font-size: 16px; /* Reduced from 18px */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    justify-content: center;
    width: 100%; /* Full width on mobile */
}

.demo-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.play-icon {
    width: 16px; /* Reduced from 20px */
    height: 16px;
}

/* Phone Mockup Carousel - Mobile Optimized */
.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 20px;
}

.screenshots-carousel {
    position: relative;
    width: 250px; /* Reduced from 300px for mobile */
    height: 500px; /* Reduced from 600px for mobile */
}

.phone-mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px; /* Reduced from 300px */
    height: 500px; /* Reduced from 600px */
    background: var(--gray-900);
    border-radius: 32px; /* Reduced from 40px */
    padding: 6px; /* Reduced from 8px */
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease;
}

.phone-mockup.active {
    opacity: 1;
    transform: translateX(0);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 26px; /* Reduced from 32px */
    overflow: hidden;
}

.chat-preview {
    padding: 16px; /* Reduced from 20px */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header-preview {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 12px */
    padding-bottom: 16px; /* Reduced from 20px */
    border-bottom: 1px solid var(--gray-200);
}

.chat-logo {
    width: 32px; /* Reduced from 40px */
    height: 32px;
    border-radius: 50%;
}

.chat-messages-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 16px */
    padding-top: 16px; /* Reduced from 20px */
    overflow-y: auto;
}

.message {
    padding: 8px 12px; /* Reduced from 12px 16px */
    border-radius: 14px; /* Reduced from 18px */
    max-width: 85%; /* Increased from 80% for better mobile fit */
    font-size: 11px; /* Reduced from 13px */
    line-height: 1.4;
    white-space: pre-line;
}

.user-msg {
    background: var(--primary-color);
    color: var(--white);
    align-self: flex-end;
    margin-left: auto;
}

.bot-msg {
    background: var(--gray-100);
    color: var(--gray-800);
    align-self: flex-start;
}

.bot-msg strong {
    color: var(--gray-900);
    font-weight: 600;
}

.carousel-dots {
    position: absolute;
    bottom: -30px; /* Reduced from -40px */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px; /* Reduced from 8px */
}

.dot {
    width: 8px; /* Reduced from 12px */
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Pricing Section - Mobile Optimized */
.pricing {
    padding: 20px 0; /* Reduced from 100px for mobile */
    background: var(--gray-50);
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px; /* Further reduced from 20px */
    max-width: 600px; /* Further reduced from 750px */
    margin: 0 auto 60px; /* Reduced from 80px */
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 16px; /* Further reduced from 20px for mobile */
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-2px); /* Reduced from -4px */
    box-shadow: var(--shadow-lg);
}

.pricing-card.premium {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-primary);
}

.popular-badge {
    position: absolute;
    top: -10px; /* Reduced from -12px */
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: var(--white);
    padding: 6px 20px; /* Reduced from 8px 24px */
    border-radius: var(--radius-full);
    font-size: 12px; /* Reduced from 14px */
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 24px; /* Reduced from 32px */
}

.pricing-title {
    font-size: 20px; /* Reduced from 24px */
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px; /* Reduced from 16px */
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 20px; /* Reduced from 24px */
    font-weight: 600;
    color: var(--gray-600);
}

.amount {
    font-size: 36px; /* Reduced from 48px */
    font-weight: 800;
    color: var(--gray-900);
}

.period {
    font-size: 14px; /* Reduced from 16px */
    color: var(--gray-600);
}

.pricing-features {
    margin-bottom: 24px; /* Reduced from 32px */
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px; /* Reduced from 16px */
    text-align: left;
    font-size: 14px; /* Added explicit font size */
}

.feature-icon {
    width: 16px; /* Reduced from 20px */
    height: 16px;
    color: var(--success-color);
    flex-shrink: 0;
}

.pricing-btn {
    width: 100%;
    padding: 12px 24px; /* Reduced from 16px 32px */
    border-radius: var(--radius-md);
    font-size: 14px; /* Reduced from 16px */
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: 12px; /* Reduced from 16px */
}

.free-btn {
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.free-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.premium-btn {
    background: var(--primary-gradient);
    border: none;
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.premium-btn:hover {
    transform: translateY(-1px); /* Reduced from -2px */
    box-shadow: var(--shadow-cookg);
}

.pricing-note {
    color: var(--gray-500);
    font-size: 12px; /* Reduced from 14px */
    margin: 0;
}

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

.faq-title {
    text-align: center;
    font-size: 24px; /* Reduced from 28px */
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 32px; /* Reduced from 40px */
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px; /* Reduced from 24px */
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px; /* Reduced from 24px */
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px; /* Reduced from 12px */
}

.faq-answer {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
    font-size: 14px; /* Added explicit font size */
}

/* Features Section - Mobile Optimized */
.features {
    padding: 20px 0; /* Reduced from 100px */
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px; /* Reduced from 80px */
    padding: 0 16px;
}

.section-title {
    font-size: 28px; /* Reduced from 42px for mobile */
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px; /* Reduced from 16px */
}

.section-description {
    font-size: 16px; /* Reduced from 20px */
    color: var(--gray-600);
    max-width: 90%; /* Reduced from 600px for mobile */
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px; /* Reduced from 40px */
}

.feature-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 24px; /* Reduced from 40px */
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.feature-card:hover,
.feature-card.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px); /* Reduced from -4px */
}

.feature-icon {
    width: 20px; /* Further reduced from 48px */
    height: 20px; /* Further reduced from 48px */
    background: var(--primary-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 18px; /* Further reduced from 24px */
    height: 18px; /* Further reduced from 24px */
}

.feature-title {
    font-size: 18px; /* Reduced from 20px */
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px; /* Further reduced from 8px */
}

.feature-description {
    font-size: 14px; /* Reduced from 16px */
    color: var(--gray-600);
    line-height: 1.6;
}

/* Testimonials Section - Mobile Optimized */
.testimonials {
    padding: 20px 0; /* Reduced from 100px */
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; /* Reduced from 32px */
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px; /* Reduced from 32px */
    box-shadow: var(--shadow-md);
}

.stars {
    display: flex;
    gap: 2px; /* Reduced from 4px */
    margin-bottom: 16px; /* Reduced from 20px */
}

.star {
    color: var(--primary-color);
    font-size: 16px; /* Reduced from 20px */
}

.testimonial-text {
    font-size: 14px; /* Reduced from 16px */
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 16px; /* Reduced from 24px */
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 12px */
}

.author-avatar {
    width: 40px; /* Reduced from 48px */
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 12px; /* Reduced from 14px */
}

.author-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
}

.author-location {
    font-size: 12px; /* Reduced from 14px */
    color: var(--gray-500);
}

/* About Section - Mobile Optimized */
.about {
    padding: 20px 0; /* Reduced from 100px */
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px; /* Reduced from 60px */
    align-items: center;
}

.about-description {
    font-size: 16px; /* Reduced from 18px */
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px; /* Reduced from 32px */
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 16px */
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 12px */
    font-size: 14px; /* Reduced from 16px */
    color: var(--gray-700);
}

.about-feature-icon {
    width: 20px; /* Reduced from 24px */
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.about-image {
    display: flex;
    justify-content: center;
}

.stats-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px; /* Reduced from 40px */
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; /* Reduced from 32px */
    text-align: center;
}

.stat-number {
    font-size: 28px; /* Reduced from 36px */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 6px; /* Reduced from 8px */
}

.stat-label {
    font-size: 12px; /* Reduced from 14px */
    color: var(--gray-600);
    font-weight: 500;
}

/* Gallery Section - Mobile Optimized */

/* --- Gallery Section (Carousel) - Modified for Bigger Size --- */

/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 900px; /* INCREASED: Max width for the carousel itself on larger screens (from 500px) */
    margin: 40px auto; /* Space above/below carousel, center it */
    overflow: hidden; /* Hide overflowing slides */
    border-radius: var(--radius-xl); /* Rounded corners for the whole carousel */
    box-shadow: var(--shadow-xl); /* Prominent shadow for the carousel */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio for the image area (no change, ensures image scales proportionally) */
    display: flex;
    align-items: center; /* Vertically center image */
    justify-content: center; /* Horizontally center image */
    /* Add a height if aspect-ratio doesn't work as expected or for fixed height:
    height: 393.75px; /* (700 * 9 / 16) calculated height for 16:9 aspect ratio at 700px width */
}

.carousel-track-container {
    display: flex; /* Flex to arrange slides horizontally */
    transition: transform var(--transition-normal) ease-in-out; /* Smooth slide transition */
    height: 100%; /* Take full height of container */
    width: 100%; /* Take full width */
    position: relative; /* For absolute positioning of slides */
}

.carousel-slide {
    position: absolute; /* Position slides on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity var(--transition-normal) ease-in-out; /* Fade transition for slides */
    display: flex; /* For image content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide.current-slide {
    opacity: 1; /* Make current slide visible */
    z-index: 1; /* Ensure current slide is on top */
}

.carousel-image {
    width: 100%;
    height: 100%; /* Image takes full height of slide */
    object-fit: cover; /* Cover the area, crop if necessary */
    border-radius: var(--radius-lg); /* Slightly smaller border radius than container */
}

/* Image Overlay (from previous gallery-item) - Reused */
/* No changes to these styles as they are fine */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 16px;
    transform: translateY(0);
    transition: none;
    text-align: left;
}

.overlay-content {
    text-align: left;
}

.overlay-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.overlay-description {
    font-size: 12px;
    color: var(--gray-200);
    line-height: 1.4;
    margin: 0;
}



.carousel-track-container {
    display: flex; /* Flex to arrange slides horizontally */
    transition: transform var(--transition-normal) ease-in-out; /* Smooth slide transition */
    height: 100%; /* Take full height of container */
    width: 100%; /* Take full width */
    position: relative; /* For absolute positioning of slides */
}

.carousel-slide {
    position: absolute; /* Position slides on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity var(--transition-normal) ease-in-out; /* Fade transition for slides */
    display: flex; /* For image content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide.current-slide {
    opacity: 1; /* Make current slide visible */
    z-index: 1; /* Ensure current slide is on top */
}

.carousel-image {
    width: 100%;
    height: 100%; /* Image takes full height of slide */
    object-fit: contain; /* CHANGED: To ensure the entire image is visible, even if it leaves empty space */
    border-radius: var(--radius-lg); /* Slightly smaller border radius than container */
}

/* Image Overlay (from previous gallery-item) - Reused */
/* No changes to these styles as they are fine */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 16px; /* Adjusted padding */
    transform: translateY(0); /* Always visible on carousel slide */
    transition: none; /* No transition on load, always show */
    text-align: left;
}

.overlay-content {
    text-align: left;
}

.overlay-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.overlay-description {
    font-size: 12px;
    color: var(--gray-200);
    line-height: 1.4;
    margin: 0;
}


/* Carousel Navigation Arrows */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: var(--white);
    border: none;
    padding: 12px; /* Large touch target */
    border-radius: var(--radius-full); /* Circular buttons */
    cursor: pointer;
    z-index: 2; /* Above slides */
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button svg {
    width: 24px; /* Icon size */
    height: 24px;
}

.prev-button {
    left: 15px; /* Position on the left */
}

.next-button {
    right: 15px; /* Position on the right */
}

/* Carousel Dots Navigation */
.carousel-nav {
    position: absolute;
    bottom: 15px; /* Position at the bottom of the carousel container */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px; /* Space between dots */
    z-index: 2; /* Above slides */
}

.carousel-dot {
    width: 10px; /* Dot size */
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--primary-color); /* Highlight active dot */
    transform: scale(1.2); /* Slightly larger */
}

/* Gallery CTA (Call to Action) - No change needed to existing styles here */
.gallery-cta {
    text-align: center;
    padding: 24px;
    background: var(--primary-bg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-border);
    margin-top: 40px; /* Space between carousel and CTA */
}
.gallery-cta-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

/* --- Responsive Adjustments for Carousel --- */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 90%; /* Take more width on smaller screens */
        height: auto; /* Allow height to adjust based on aspect ratio */
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        margin: 30px auto; /* Adjust margin */
    }

    .carousel-button {
        padding: 8px; /* Smaller padding for mobile arrows */
    }
    .carousel-button svg {
        width: 20px; /* Smaller icon size */
        height: 20px;
    }
    .prev-button { left: 10px; }
    .next-button { right: 10px; }

    .carousel-nav {
        bottom: 10px; /* Closer to bottom on mobile */
        gap: 6px;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .image-overlay {
        padding: 12px; /* Smaller padding for mobile overlay */
    }
    .overlay-title {
        font-size: 14px;
    }
    .overlay-description {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        max-width: 100%; /* Full width on very small screens */
        border-radius: var(--radius-md);
        margin: 20px auto;
    }
    .carousel-button {
        padding: 6px;
    }
    .carousel-button svg {
        width: 16px;
        height: 16px;
    }
    .image-overlay {
        padding: 8px;
    }
    .overlay-title {
        font-size: 13px;
    }
    .overlay-description {
        font-size: 10px;
    }
}
/* Gallery CTA (Call to Action) - No change needed to existing styles here */
.gallery-cta {
    text-align: center;
    padding: 24px;
    background: var(--primary-bg);
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-border);
    margin-top: 40px; /* Space between carousel and CTA */
}
.gallery-cta-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

/* --- Responsive Adjustments for Carousel --- */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 90%; /* Take more width on smaller screens */
        height: auto; /* Allow height to adjust based on aspect ratio */
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        margin: 30px auto; /* Adjust margin */
    }

    .carousel-button {
        padding: 8px; /* Smaller padding for mobile arrows */
    }
    .carousel-button svg {
        width: 20px; /* Smaller icon size */
        height: 20px;
    }
    .prev-button { left: 10px; }
    .next-button { right: 10px; }

    .carousel-nav {
        bottom: 10px; /* Closer to bottom on mobile */
        gap: 6px;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .image-overlay {
        padding: 12px; /* Smaller padding for mobile overlay */
    }
    .overlay-title {
        font-size: 14px;
    }
    .overlay-description {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        max-width: 100%; /* Full width on very small screens */
        border-radius: var(--radius-md);
        margin: 20px auto;
    }
    .carousel-button {
        padding: 6px;
    }
    .carousel-button svg {
        width: 16px;
        height: 16px;
    }
    .image-overlay {
        padding: 8px;
    }
    .overlay-title {
        font-size: 13px;
    }
    .overlay-description {
        font-size: 10px;
    }
}
/* Footer - Mobile Optimized */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 40px 0 20px; /* Reduced from 60px 0 30px */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px; /* Reduced from 40px */
    margin-bottom: 24px; /* Reduced from 40px */
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Reduced from 12px */
    margin-bottom: 12px; /* Reduced from 16px */
}

.footer-logo .cookg-brand-text {
    color: var(--white);
    font-size: 20px; /* Reduced from 24px */
}

.footer-description {
    color: var(--gray-300);
    font-size: 14px; /* Reduced from 16px */
    max-width: 300px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px; /* Reduced from 32px */
    text-align: center;
}

.footer-section-title {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 600;
    margin-bottom: 12px; /* Reduced from 16px */
    color: var(--white);
}

.footer-link {
    /* Apply consistent button/link styling */
    display: inline-block; /* Make them inline-block for better centering */
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px; /* Adjusted font size for readability */
    padding: 4px 0; /* Add some vertical padding for clickable area */
    line-height: 1.2;
}

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

.privacy-link {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 20px; /* Reduced from 30px */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Reduced from 8px */
}

.footer-copyright,
.footer-contact {
    color: var(--gray-400);
    font-size: 12px; /* Reduced from 14px */
    margin: 0;
}

/* Privacy Policy Modal - Mobile Optimized */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px; /* Reduced from 20px */
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; /* Reduced from 30px */
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
    font-size: 22px; /* Reduced from 28px */
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px; /* Reduced from 32px */
    cursor: pointer;
    color: var(--gray-500);
    padding: 6px; /* Reduced from 8px */
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 20px; /* Reduced from 30px */
}

.privacy-updated {
    color: var(--gray-600);
    font-size: 12px; /* Reduced from 14px */
    margin-bottom: 16px; /* Reduced from 20px */
}

.privacy-intro {
    color: var(--gray-700);
    font-size: 14px; /* Reduced from 16px */
    line-height: 1.6;
    margin-bottom: 24px; /* Reduced from 30px */
}

.privacy-section {
    margin-bottom: 24px; /* Reduced from 32px */
}

.privacy-section-title {
    font-size: 18px; /* Reduced from 20px */
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px; /* Reduced from 12px */
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
}

.privacy-section-icon {
    width: 16px; /* Reduced from 20px */
    height: 16px;
    color: var(--primary-color);
}

.privacy-section-content {
    color: var(--gray-700);
    line-height: 1.7;
    white-space: pre-line;
    font-size: 14px;
}

.privacy-contact {
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 16px; /* Reduced from 20px */
    margin-top: 24px; /* Reduced from 30px */
}

.privacy-contact h4 {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px; /* Reduced from 8px */
}

.privacy-contact p {
    color: var(--gray-700);
    margin: 0;
    font-size: 14px;
}

.privacy-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-contact a:hover {
    text-decoration: underline;
}

/* Gallery Lightbox - Mobile Optimized */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px; /* Reduced from 20px */
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%; /* Increased from 90% for mobile */
    max-height: 95%; /* Increased from 90% for mobile */
    position: relative;
}

.lightbox-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.lightbox-close {
    position: absolute;
    top: -32px; /* Reduced from -40px */
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px; /* Reduced from 32px */
    cursor: pointer;
    padding: 6px; /* Reduced from 8px */
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* Mobile-Specific Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 12px; /* Further reduced for very small screens */
    }
    
    .header-content {
        height: 50px; /* Further reduced for small screens */
        padding: 0 12px;
    }
    
    .brand-name {
        font-size: 16px; /* Further reduced */
    }
    
    .hero {
        padding: 24px 0; /* Further reduced */
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 24px; /* Further reduced for very small screens */
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 14px; /* Further reduced */
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        gap: 8px;
    }
    
    .cookg-button-primary.large,
    .demo-button {
        padding: 10px 20px; /* Further reduced */
        font-size: 14px;
    }
    
    .screenshots-carousel {
        width: 200px; /* Further reduced for very small screens */
        height: 400px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        border-radius: 24px;
        padding: 4px;
    }
    
    .phone-screen {
        border-radius: 20px;
    }
    
    .chat-preview {
        padding: 12px;
    }
    
    .message {
        padding: 6px 10px;
        border-radius: 12px;
        font-size: 9px;
    }
    
    .pricing {
        padding: 40px 0;
    }
    
    .pricing-cards {
        gap: 12px; /* Further reduced */
        margin-bottom: 40px;
        max-width: 280px; /* Further reduced from 320px for very small screens */
    }
    
    .pricing-card {
        padding: 12px; /* Further reduced from 16px */
    }
    
    .pricing-title {
        font-size: 16px; /* Further reduced from 18px */
    }
    
    .currency {
        font-size: 14px; /* Further reduced from 16px */
    }
    
    .amount {
        font-size: 24px; /* Further reduced from 28px */
    }
    
    .features,
    .testimonials,
    .about {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-description {
        font-size: 14px;
    }
    
    .features-grid,
    .testimonials-grid {
        gap: 16px;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 16px;
    }
    
    .feature-icon {
        width: 32px; /* Further reduced for very small screens */
        height: 32px;
        margin-bottom: 6px; /* Further reduced */
    }
    
    .feature-icon svg {
        width: 16px; /* Further reduced */
        height: 16px;
    }
    
    .feature-title {
        font-size: 16px; /* Further reduced from 18px */
        margin-bottom: 4px; /* Further reduced */
    }
    
    .feature-description {
        font-size: 13px;
    }
    
    .gallery-image-placeholder {
        height: 160px; /* Further reduced for very small screens */
    }
    
    .gallery-image-placeholder::before {
        font-size: 12px;
    }
    
    .image-overlay {
        padding: 12px;
    }
    
    .overlay-title {
        font-size: 14px;
    }
    
    .overlay-description {
        font-size: 11px;
    }
    
    .gallery-cta {
        padding: 16px;
    }
    
    .gallery-cta-text {
        font-size: 14px;
    }
    
    .footer {
        padding: 32px 0 16px;
    }
    
    .footer-content {
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .footer-links {
        grid-template-columns: 1fr; /* Single column for very small screens */
        gap: 16px;
        text-align: center;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .faq-grid {
        gap: 12px;
    }
    
    .faq-item {
        padding: 12px;
    }
    
    .faq-question {
        font-size: 14px;
    }
    
    .faq-answer {
        font-size: 12px;
    }
}

/* Tablet Responsive Design (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-desktop {
        display: flex;
    }
    
    .cta-desktop {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        text-align: left;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .cookg-button-primary.large,
    .demo-button {
        width: auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-card {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .gallery-image-placeholder {
        height: 240px;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr;
        text-align: left;
    }
    
    .footer-brand {
        text-align: left;
    }
    
    .footer-logo {
        justify-content: flex-start;
    }
    
    .footer-links {
        text-align: center;
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop Responsive Design (1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero {
        padding: 80px 0;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-description {
        font-size: 20px;
    }
    
    .screenshots-carousel {
        width: 300px;
        height: 600px;
    }
    
    .phone-mockup {
        width: 300px;
        height: 600px;
        border-radius: 40px;
        padding: 8px;
    }
    
    .phone-screen {
        border-radius: 32px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .section-description {
        font-size: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-image-placeholder {
        height: 280px;
    }
    
    .carousel-dots {
        bottom: -60px;
    }
    
    .pricing,
    .features,
    .testimonials,
    .about {
        padding: 20px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .pricing-cards {
        margin-bottom: 32px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .phone-mockup {
        transition: opacity 0.5s ease;
        transform: none !important;
    }
    
    .phone-mockup.active {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .testimonial-card,
    .pricing-card {
        border-width: 3px;
    }
    
    .message {
        border: 1px solid var(--gray-400);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .gallery-item:hover,
    .pricing-card:hover {
        transform: none;
    }
    
    .image-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.8));
    }
    
    .cookg-button-primary.large,
    .demo-button,
    .pricing-btn {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .mobile-menu-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .carousel-dots .dot {
        min-width: 44px;
        min-height: 44px;
        border-radius: 22px;
    }
}

/* Print styles */
@media print {
    .header,
    .mobile-menu,
    .hero-buttons,
    .carousel-dots,
    .gallery-lightbox,
    .modal {
        display: none !important;
    }
    
    .hero,
    .features,
    .testimonials,
    .about,
    .pricing {
        padding: 20px 0;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .feature-card,
    .testimonial-card,
    .pricing-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
@media (max-width: 768px) {
    .cookg-button-primary.large {
        padding: 4px 8px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
        min-width: auto !important;
        width: auto !important;
        flex-shrink: 1 !important;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 8px !important;
    }
    
    .cookg-button-primary.large {
        padding: 3px 6px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }
}
