/* 
 * ImageXLab Website Styles
 * Main stylesheet for imagexlab.com and PhotoX AI product
 */

/* ===== RESET & BASE STYLES ===== */
:root {
    /* Main colors - Updated to match mobile app */
    --primary: #3F5EFB;
    --primary-dark: #324ACC;
    --primary-light: #5B77FF;
    --secondary: #F0C14B;
    --secondary-dark: #DBA82C;
    --secondary-light: #FFD175;
    --gradient-primary: linear-gradient(135deg, #3F5EFB 0%, #5B77FF 100%);

    /* Neutral colors - Updated to match mobile app */
    --dark: #121212;
    --gray-900: #1E1E1E;
    --gray-800: #292929;
    --gray-700: #3D3D3D;
    --gray-600: #555555;
    --gray-500: #6E6E6E;
    --gray-400: #8A8A8A;
    --gray-300: #ACACAC;
    --gray-200: #CECECE;
    --gray-100: #E8E8E8;
    --light: #F5F5F5;
    --white: #FFFFFF;

    /* Accent colors */
    --success: #4cd964;
    --warning: #F0C14B;
    --error: #CF6679;
    --info: #34aadc;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Spacing */
    --space-xxs: 0.25rem; /* 4px */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 0.75rem;  /* 12px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-xxl: 3rem;    /* 48px */
    --space-xxxl: 4rem;   /* 64px */

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-round: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-default: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Z-indices */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-toast: 600;
    --z-tooltip: 700;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--light);
    background-color: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
    list-style: none;
}

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

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--light);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-default);
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(63, 94, 251, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(63, 94, 251, 0.35);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--dark);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    padding: var(--space-md) 0;
    background-color: var(--dark);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    max-width: 100px;
    max-height: 100px;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--light);
    font-weight: 500;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    height: 24px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--gray-800);
    transition: all var(--transition-default);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--space-xxxl) 0;
    background: var(--dark);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-content h1 {
    margin-bottom: var(--space-lg);
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light);
    margin-bottom: var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--space-xxxl) 0;
    background-color: var(--dark);
}

.features h2 {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

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

.feature-card {
    background-color: var(--gray-900);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    color: var(--light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--secondary);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    color: var(--dark);
    font-size: 1.75rem;
}

.feature-card h3 {
    margin-bottom: var(--space-md);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: var(--space-xxxl) 0;
    background-color: var(--gray-900);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
}

.step {
    text-align: center;
    padding: var(--space-lg);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--secondary);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--dark);
    font-size: 1.75rem;
    font-weight: 700;
}

.step h3 {
    margin-bottom: var(--space-md);
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: var(--space-xxxl) 0;
    background-color: var(--dark);
}

.gallery h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    transition: transform var(--transition-default);
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

/* ===== PRICING SECTION ===== */
.pricing {
    padding: var(--space-xxxl) 0;
    background-color: var(--gray-900);
}

.pricing h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

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

.pricing-card {
    background-color: var(--dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    position: relative;
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    color: var(--light);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--secondary);
    box-shadow: 0 8px 24px rgba(240, 193, 75, 0.15);
}

.pricing-card.popular:hover {
    box-shadow: 0 12px 32px rgba(240, 193, 75, 0.25);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--secondary);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-800);
    margin-bottom: var(--space-lg);
}

.pricing-header h3 {
    margin-bottom: var(--space-xs);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: var(--space-xs);
}

.price span {
    font-size: 1.125rem;
    color: var(--gray-400);
}

.pricing-features {
    margin-bottom: var(--space-xl);
}

.pricing-features ul li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
}

.pricing-features ul li i {
    color: var(--primary);
    margin-right: var(--space-sm);
}

.pricing-features ul li.disabled {
    color: var(--gray-500);
}

.pricing-features ul li.disabled i {
    color: var(--gray-600);
}

.pricing-cta {
    text-align: center;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: var(--space-xxxl) 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
    position: relative;
}

.cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.cta-content h2 {
    margin-bottom: var(--space-lg);
    color: var(--light);
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.app-download {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: var(--space-xl);
}

.download-badge {
    height: 53px;
    width: 180px;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.download-badge img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
}

.app-store-badge, .google-play-badge {
    background-color: #000;
}

.download-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.cta-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--gray-900);
    padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-logo {
    max-width: 100px;
    margin-bottom: var(--space-md);
}

.footer-logo p {
    color: var(--gray-400);
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background-color: var(--gray-800);
    color: var(--gray-300);
    transition: all var(--transition-default);
}

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

.footer-links h4, .footer-contact h4 {
    color: var(--light);
    margin-bottom: var(--space-md);
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-default);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    color: var(--gray-400);
    margin-bottom: var(--space-sm);
}

.footer-contact p i {
    color: var(--primary);
    margin-right: var(--space-sm);
}

.footer-bottom {
    margin-top: var(--space-xxl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-800);
    text-align: center;
    color: var(--gray-500);
}

/* ===== PRODUCT PAGE STYLES ===== */
.product-page main {
    padding-top: 0;
}

.product-hero {
    padding: var(--space-xxxl) 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
}

.product-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.product-hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.product-hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.product-hero-content .description {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: var(--space-xl);
}

.product-hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===== CAPABILITIES SECTION ===== */
.capabilities {
    padding: var(--space-xxxl) 0;
    background-color: var(--gray-900);
}

.capabilities h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.capabilities-tabs {
    margin-top: var(--space-xxl);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-800);
    padding-bottom: var(--space-md);
}

.tab-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-default);
    color: var(--gray-400);
}

.tab-btn:hover {
    color: var(--light);
}

.tab-btn.active {
    color: var(--secondary);
    position: relative;
}

.tab-content {
    display: none;
    opacity: 0;
    animation: fadeIn var(--transition-default) forwards;
    padding: var(--space-lg) 0;
    max-width: 800px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.tab-text {
    margin-bottom: var(--space-xl);
}

.tab-text h3 {
    margin-bottom: var(--space-md);
}

.feature-list {
    margin-bottom: var(--space-xl);
}

.feature-list li {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--secondary);
    margin-right: var(--space-md);
}

.tab-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== TECHNOLOGY SECTION ===== */
.technology {
    padding: var(--space-xxxl) 0;
    background-color: var(--dark);
}

.technology h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.technology-card {
    background-color: var(--gray-900);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.technology-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.technology-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--white);
    font-size: 2rem;
}

/* ===== EXAMPLES SECTION ===== */
.examples {
    padding: var(--space-xxxl) 0;
    background-color: var(--gray-900);
}

.examples h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.examples-slider {
    width: 100%;
    position: relative;
    margin: 40px 0;
    overflow: hidden;
}

.example-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.example-slide.active {
    display: block !important;
    opacity: 1;
}

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

.before-after-showcase {
    background-color: var(--dark);
    padding: var(--space-xxl) 0;
}

.before-after-showcase h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.before-after-showcase .section-subtitle {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.before-after {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.before, .after {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.before img, .after img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.before:hover img, .after:hover img {
    transform: scale(1.03);
}

.label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.example-caption {
    text-align: center;
    padding: 15px 0;
    color: var(--light);
}

.example-caption h4 {
    margin-bottom: 5px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.slider-dots {
    display: flex;
    gap: 8px;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-700);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.prev, .next {
    background-color: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.prev:hover, .next:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.showcase-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--space-xxxl) 0;
    background-color: var(--gray-900);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

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

.testimonial-card {
    background-color: var(--dark);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    color: var(--light);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: var(--secondary);
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-lg);
    color: var(--gray-300);
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-round);
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: var(--space-xxs);
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ===== DOWNLOAD CTA SECTION ===== */
.download-cta {
    background: var(--primary);
    padding: var(--space-xxxl) 0;
}

.download-cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.download-content h2 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.download-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.download-content .app-download {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.download-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===== LEGAL PAGES STYLES ===== */
.legal-page main {
    padding-top: var(--space-xl);
}

.legal-header {
    padding: var(--space-xl) 0;
    background-color: var(--dark);
    border-bottom: 1px solid var(--gray-800);
}

.legal-header h1 {
    text-align: center;
    margin-bottom: 0;
}

.legal-content {
    padding: var(--space-xl) 0 var(--space-xxl);
    background-color: var(--gray-900);
}

.legal-content .container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-xl);
}

.legal-toc {
    position: sticky;
    top: calc(var(--space-xl) + 80px);
    background-color: var(--dark);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    align-self: start;
}

.legal-toc h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.legal-toc ul li {
    margin-bottom: var(--space-xs);
}

.legal-toc a {
    color: var(--gray-300);
    font-size: 0.9rem;
    transition: color var(--transition-default);
}

.legal-toc a:hover {
    color: var(--secondary);
}

.legal-sections section {
    margin-bottom: var(--space-xl);
}

.legal-sections section:last-child {
    margin-bottom: 0;
}

.legal-sections h2 {
    font-size: 1.75rem;
    color: var(--light);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-800);
}

.legal-sections h3 {
    font-size: 1.35rem;
    color: var(--gray-200);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-sections ul, .legal-sections ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.legal-sections ul li, .legal-sections ol li {
    margin-bottom: var(--space-xs);
    list-style-type: disc;
}

.legal-sections ol li {
    list-style-type: decimal;
}

.legal-sections a {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== FADE COMPARISON ===== */
.fade-comparison {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-lg);
    height: 450px;
    box-shadow: var(--shadow-lg);
    background-color: var(--gray-800);
}

.fade-comparison .image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fade-comparison .before-image,
.fade-comparison .after-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
}

.fade-comparison .before-image {
    z-index: 2;
    opacity: 1;
}

.fade-comparison .after-image {
    opacity: 0;
}

.fade-comparison img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fade-comparison .label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    z-index: 3;
    transition: opacity 0.3s ease-in-out;
}

.fade-comparison .before-label {
    opacity: 1;
}

.fade-comparison .after-label {
    opacity: 0;
}

.fade-comparison.showing-after .before-image {
    opacity: 0;
}

.fade-comparison.showing-after .after-image {
    opacity: 1;
}

.fade-comparison.showing-after .before-label {
    opacity: 0;
}

.fade-comparison.showing-after .after-label {
    opacity: 1;
}

.fade-comparison:hover .label {
    background-color: var(--secondary);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .product-hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero .container,
    .product-hero .container,
    .cta .container,
    .download-cta .container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .hero-content,
    .product-hero-content,
    .cta-content,
    .download-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons,
    .app-download {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .legal-content .container {
        grid-template-columns: 1fr;
    }
    
    .legal-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-buttons .btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .before-after {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .app-download {
        justify-content: center;
    }
    
    .download-badge {
        height: 48px;
        width: 160px;
    }
}

@media (max-width: 576px) {
    h1, .product-hero-content h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero, .features, .how-it-works, .gallery, .pricing, .cta,
    .capabilities, .technology, .examples, .testimonials, .download-cta {
        padding: var(--space-xl) 0;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-content p,
    .cta-content p,
    .download-content p,
    .product-hero-content .description {
        font-size: 1rem;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .examples-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }
    
    .fade-comparison {
        height: 350px;
    }
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(63, 94, 251, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(63, 94, 251, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(63, 94, 251, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Before and After Fade Effect */
.fade-comparison {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.fade-comparison .image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fade-comparison .before-image,
.fade-comparison .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1.2s ease;
}

.fade-comparison .before-image {
    opacity: 1;
    z-index: 1;
}

.fade-comparison .after-image {
    opacity: 0;
    z-index: 2;
}

.fade-comparison img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.fade-comparison .label {
    position: absolute;
    padding: 4px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    z-index: 3;
    opacity: 0.8;
    transition: opacity 0.8s ease;
    top: 10px;
}

.fade-comparison .before-label {
    left: 10px;
}

.fade-comparison .after-label {
    left: 10px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-comparison.showing-after .before-image {
    opacity: 0;
}

.fade-comparison.showing-after .after-image {
    opacity: 1;
}

.fade-comparison.showing-after .before-label {
    opacity: 0;
}

.fade-comparison.showing-after .after-label {
    opacity: 0.8;
}

.fade-comparison:hover .label {
    opacity: 1;
}

@media (max-width: 768px) {
    .fade-comparison {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .fade-comparison {
        height: 250px;
    }
}

/* Examples Grid Layout */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .examples-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .examples-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Video Elements */
.capabilities-video,
.features-video {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: #f5f5f5; /* Lighter background instead of black */
    z-index: 1;
    height: auto;
    aspect-ratio: 9/16; /* Modern approach using aspect-ratio */
    /* Add gradient border */
    border: 1px solid transparent;
    background-clip: padding-box;
}

/* Gradient border effect for video */
.capabilities-video::before,
.features-video::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), #6c5ce7, #00cec9);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.5;
}

.capabilities-video video,
.features-video video {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
    z-index: 2;
    background-color: #f5f5f5; /* Match container background */
}

/* Video background styling */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #e0e0e0, #f8f8f8);
    z-index: 1;
}

@media (max-width: 768px) {
    .capabilities-video,
    .features-video {
        margin: 20px auto;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .capabilities-video,
    .features-video {
        margin: 15px auto;
        border-radius: 6px;
        max-width: 100%;
    }
}

/* Video error handling */
.capabilities-video.video-error,
.features-video.video-error {
    background-image: url('../images/fallback-image.jpg');
    background-size: cover;
    background-position: center;
}

.capabilities-video.video-error video,
.features-video.video-error video {
    opacity: 0;
}

#download.cta {
    background: var(--primary);
}

/* Support Page Styles */
.support-hero {
    background-color: var(--gray-900);
    padding: 80px 0;
    text-align: center;
}

.support-content {
    padding: 60px 0;
    background-color: var(--dark);
}

.support-card {
    background-color: var(--gray-900);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
}

.support-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.support-email {
    display: block;
    font-size: 24px;
    color: var(--primary);
    margin: 20px 0;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-default);
}

.support-email:hover {
    color: var(--primary-dark);
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--gray-800);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--light);
}

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

.resource-links li {
    margin-bottom: 12px;
}

.resource-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-default);
}

.resource-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Add these styles for heading icons */
.support-hero h1 i,
.support-card h2 i,
.faq-item h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.support-hero h1 i {
    margin-right: 15px;
}

.faq-item h3 i {
    width: 20px;
    text-align: center;
    font-size: 0.9em;
} 