* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-card: #0d0d0d;
    --bg-white: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-purple: #8b5cf6;
    --accent-purple-dark: #7c3aed;
    --accent-purple-light: #a78bfa;
    --accent-blue: #3b82f6;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 80px;
    --spacing-5xl: 120px;
    
    /* Font Sizes */
    --font-xs: 13px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 24px;
    --font-3xl: 36px;
    --font-4xl: 48px;
    --font-5xl: 56px;
    --font-6xl: 72px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-2xl: 16px;
    --radius-3xl: 24px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.1s;
    --transition-base: 0.2s;
    --transition-slow: 0.3s;
    
    /* Logo */
    --logo-item-width: 150px;
    --logo-item-height: 80px;
    --logo-gap: 60px;
    --logo-bg: rgba(255, 255, 255, 0.95);
    --logo-bg-hover: rgba(255, 255, 255, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    z-index: 9999;
    transition: width var(--transition-fast) ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

nav.scroll-down {
    transform: translateY(-100%);
}

nav.scroll-up {
    transform: translateY(0);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-xl);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
    transition: color var(--transition-base);
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.btn {
    padding: 10px var(--font-xl);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-dark) 100%);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 var(--radius-xl) 30px rgba(139, 92, 246, 0.4);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px var(--spacing-2xl) var(--spacing-5xl);
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.hero h1 {
    font-size: var(--font-6xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--accent-purple-light) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-xl) 0 var(--spacing-2xl);
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features p {
    font-size: var(--font-base);
    color: var(--text-secondary);
}

/* Sections */
.section {
    padding: var(--spacing-5xl) var(--spacing-2xl);
    max-width: 1440px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-header h2 {
    font-size: var(--font-4xl);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* Enhanced Card Styling */
.card {
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(var(--radius-xl));
    -webkit-backdrop-filter: blur(var(--radius-xl));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    transition: all var(--transition-slow) ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.card p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.card p:last-of-type {
    margin-bottom: 24px;
}

.card a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card a:hover {
    gap: 10px;
    transition: gap 0.2s ease;
}

/* Card with lists */
.card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.card ul li {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.5;
}

.card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: 700;
}

/* Problem-Solution Cards */
.card p strong {
    color: var(--text-primary);
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* Logos Section */
.logos {
    padding: var(--logo-gap) 0;
    text-align: center;
    background: transparent;
    overflow: hidden;
}

.logos h3 {
    margin-bottom: var(--spacing-4xl);
    color: var(--text-secondary);
    font-size: var(--font-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logo-grid {
    display: flex;
    justify-content: flex-start;
    gap: var(--logo-gap);
    align-items: center;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.logo-carousel:hover .logo-grid {
    animation-play-state: paused;
}

.logo-item {
    min-width: var(--logo-item-width);
    height: var(--logo-item-height);
    background: var(--logo-bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px var(--radius-xl) rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: all var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 1;
    transition: all var(--transition-slow);
}

.logo-item:hover {
    box-shadow: 0 var(--spacing-xs) 30px rgba(139, 92, 246, 0.6);
    border-color: var(--accent-purple);
    background: var(--logo-bg-hover);
    z-index: 10;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Stats Section */
.stats-section {
    padding: 120px 48px;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    text-align: center;
}

.stat {
    padding: 40px 20px;
}

.stat-number {
    font-size: 80px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    border-radius: 2px;
}

.stat-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Features Pills */
.features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 60px 0;
}

.pill {
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pill:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Case Studies */
.case-studies {
    padding: 120px 48px;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.case-card {
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2);
}

.case-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    transition: transform 0.4s;
    overflow: hidden;
    position: relative;
}

.case-card:hover .case-image {
    transform: scale(1.05);
}

.case-content {
    padding: 32px;
}

.case-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.case-content a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Testimonial */
.testimonial-section {
    padding: 120px 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 120px;
    color: rgba(139, 92, 246, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-logo {
    width: 120px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 0 auto 32px;
}

.testimonial-quote {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* How It Works */
.how-it-works {
    padding: 120px 48px;
}

.tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab.active {
    background: var(--accent-purple);
    color: white;
    border-color: var(--accent-purple);
}

.tab:hover:not(.active) {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.tab-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tab-text h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.tab-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.tab-visual {
    width: 100%;
    height: 500px;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
    border: 1px solid var(--border-color);
}

/* Integration Section */
.integration-section {
    padding: 100px 48px;
    text-align: center;
}

.integration-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.integration-visual {
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 40px auto 0;
    background: transparent;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.2);
    border: 1px solid var(--border-color);
}

/* CTA Section */
.cta-section {
    padding: 120px 48px;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.cta-section h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Backed By */
.backed-section {
    padding: 80px 48px;
    text-align: center;
}

.backed-section h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.backed-logos {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0.5;
}

.backed-logo {
    width: 100px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 48px 40px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .tab-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 16px 24px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 140px 24px 80px;
    }

    .hero h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section {
        padding: 80px 24px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .card {
        padding: 24px;
    }

    .stat-number {
        font-size: 48px;
    }

    .cta-section h2 {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .nav-actions {
        gap: 8px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-ghost {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.modal-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    font-size: 36px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    padding: 0 8px;
}

.modal-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px 40px 40px;
}

/* Demo Form Styles */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-message.active {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.success-message h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.success-message p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 24px 24px 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .demo-form {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-close {
        font-size: 28px;
    }
}

/* ============================================
   IMPROVED SCREENSHOT STYLING
   ============================================ */

/* General Screenshot Image Styling - MAJOR IMPROVEMENTS */
.screenshot-image img,
.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover for better visual fill */
    object-position: center;
    display: block;
}

/* Screenshot Image Container - FLEXIBLE HEIGHT */
.screenshot-image {
    width: 100%;
    min-height: 420px;
    max-height: 650px;
    height: auto; /* Allow natural height */
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Hero Screenshot Section - IMPROVED */
.hero-screenshot-section {
    padding: 0 48px 100px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.screenshot-container {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
}

.screenshot-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 50px 120px rgba(139, 92, 246, 0.4);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.screenshot-wrapper:hover {
    box-shadow: 0 60px 140px rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
}

/* Browser Chrome - ENHANCED */
.screenshot-browser-chrome {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 10px;
    margin-right: 24px;
}

.browser-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: transform 0.2s;
}

.browser-dots span:hover {
    transform: scale(1.2);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28ca42; }

.browser-url {
    flex: 1;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* HERO DASHBOARD - LARGE AND PROMINENT */
.hero-dashboard {
    min-height: 700px;
    background: transparent;
}

.hero-dashboard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    padding: 0; /* NO PADDING for maximum visual impact */
}

/* DASHBOARD VIEW IN FEATURE GALLERY - NEEDS FULL VISIBILITY */
.dashboard-view {
    min-height: 500px;
    max-height: 550px;
}

.dashboard-view img {
    object-fit: contain !important; /* Ensure full screenshot is visible */
    padding: 20px !important; /* More padding to show complete UI */
}

/* DOC PROCESSING VIEW - ALSO NEEDS FULL VISIBILITY */
.doc-processing {
    min-height: 480px;
    max-height: 530px;
}

.doc-processing img {
    object-fit: contain !important;
    padding: 20px !important;
}

/* REPORT GENERATION VIEW - FULL VISIBILITY */
.report-gen {
    min-height: 480px;
    max-height: 530px;
}

.report-gen img {
    object-fit: contain !important;
    padding: 20px !important;
}

/* Placeholder Content */
.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.placeholder-content {
    text-align: center;
    max-width: 700px;
}

.placeholder-content h3,
.placeholder-content h4 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.placeholder-content p {
    color: var(--text-secondary);
    font-size: 19px;
    line-height: 1.7;
}

/* Floating Cards - IMPROVED POSITIONING */
.screenshot-floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.floating-card {
    position: absolute;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    right: 6%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: 4%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 10%;
    left: 6%;
    animation-delay: 4s;
}

.card-icon {
    font-size: 40px;
    line-height: 1;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-text strong {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-text span {
    font-size: 14px;
    color: var(--text-secondary);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Screenshots Gallery - DRAMATIC IMPROVEMENT */
.feature-screenshots-section {
    padding: 120px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.screenshot-gallery {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.screenshot-item {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Image gets MORE space */
    gap: 60px;
    align-items: center;
}

.screenshot-item.reverse {
    grid-template-columns: 0.8fr 1.2fr; /* Reverse ratio */
    direction: rtl;
}

.screenshot-item.reverse > * {
    direction: ltr;
}

.screenshot-image-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ensure content fits properly */
    display: flex;
    flex-direction: column;
}

.screenshot-image-wrapper:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 100px rgba(139, 92, 246, 0.35);
    border-color: rgba(139, 92, 246, 0.4);
}

.screenshot-image-wrapper .screenshot-image {
    min-height: 480px; /* Reduced from 550px for better fit */
    max-height: 600px; /* Added max-height to prevent too tall */
    background: transparent;
}

/* SMART PADDING AND FIT FOR DIFFERENT SCREENSHOTS */
.screenshot-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed back to contain for full visibility */
    object-position: center;
    padding: 16px; /* Slightly more padding for breathing room */
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.screenshot-description h3 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.screenshot-description p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.feature-list li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 16px;
    position: relative;
    padding-left: 32px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 20px;
}

/* Before/After Comparison Section - ENHANCED */
.before-after-section {
    padding: 120px 48px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.comparison-container {
    max-width: 1400px;
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 50px;
    align-items: center;
}

.comparison-side {
    position: relative;
}

.comparison-label {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.comparison-label.success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.comparison-screenshot {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.comparison-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 100px rgba(139, 92, 246, 0.3);
}

.comparison-screenshot .screenshot-image {
    min-height: 600px;
}

/* INCREASED SIZE FOR COMPARISON IMAGES */
.comparison-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0; /* NO PADDING for comparison impact */
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: 700;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
    animation: pulse-scale 2s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5); }
    50% { transform: scale(1.15); box-shadow: 0 20px 50px rgba(139, 92, 246, 0.7); }
}

/* Chaos/Organized Views */
.chaos-items,
.organized-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.chaos-item,
.organized-item {
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.chaos-item {
    opacity: 0.7;
}

.chaos-item:hover {
    opacity: 1;
    background: rgba(255, 75, 75, 0.1);
    border-color: rgba(255, 75, 75, 0.3);
}

.organized-item {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.organized-item:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

/* Responsive Showcase Section - IMPROVED DEVICE FRAMES */
.responsive-showcase-section {
    padding: 120px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.responsive-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-top: 80px;
    align-items: flex-start;
}

.device-frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(13, 13, 13, 0.9);
    transition: all 0.4s ease;
}

.device-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 100px rgba(139, 92, 246, 0.3);
}

.desktop-frame {
    border-radius: 20px;
    border: 10px solid #1a1a1a;
    box-shadow: 0 40px 100px rgba(139, 92, 246, 0.3);
}

.desktop-frame .screenshot-image {
    min-height: 650px; /* TALLER desktop view */
}

/* DESKTOP IMAGE - MINIMAL PADDING */
.desktop-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    padding: 0; /* NO PADDING */
}

.mobile-preview {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-frame {
    width: 320px;
    border-radius: 36px;
    border: 14px solid #1a1a1a;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.mobile-frame .screenshot-image {
    min-height: 580px;
}

.mobile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0; /* NO PADDING */
}

.tablet-frame {
    width: 100%;
    border-radius: 28px;
    border: 12px solid #1a1a1a;
}

.tablet-frame .screenshot-image {
    min-height: 400px;
}

.tablet-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

/* Enhanced Case Study Screenshots - LARGER */
.case-card .case-image {
    position: relative;
    overflow: hidden;
    background: transparent;
    height: 320px; /* INCREASED from 280px */
}

.case-card .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0; /* NO PADDING for case studies */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card .case-image .screenshot-placeholder {
    height: 320px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-image img,
.case-card:hover .case-image .screenshot-placeholder {
    transform: scale(1.08);
}

/* Tab Visual - IMPROVED */
.tab-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(20px);
}

.tab-visual .screenshot-image {
    min-height: 500px;
}

.tab-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0; /* NO PADDING */
}

/* Integration Visual - IMPROVED */
.integration-visual {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(20px);
}

.integration-visual .screenshot-image {
    min-height: 450px;
}

.integration-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

/* Responsive Design - IMPROVED */
@media (max-width: 1200px) {
    .screenshot-item {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .screenshot-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

@media (max-width: 1024px) {
    .hero-screenshot-section {
        padding: 0 24px 80px;
    }

    .hero-dashboard {
        min-height: 550px;
    }

    .floating-card {
        display: none;
    }

    .comparison-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparison-divider {
        transform: rotate(90deg);
    }

    .responsive-showcase {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .mobile-preview {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-screenshot-section {
        padding: 0 16px 60px;
    }

    .hero-dashboard {
        min-height: 400px;
    }

    .browser-url {
        font-size: 12px;
    }

    .screenshot-gallery {
        gap: 80px;
    }

    .screenshot-image-wrapper .screenshot-image {
        min-height: 350px;
    }

    .screenshot-description h3 {
        font-size: 28px;
    }

    .comparison-screenshot .screenshot-image {
        min-height: 400px;
    }

    .chaos-items,
    .organized-items {
        grid-template-columns: 1fr;
    }

    .mobile-frame {
        width: 260px;
    }

    .mobile-frame .screenshot-image {
        min-height: 480px;
    }

    .tablet-frame .screenshot-image {
        min-height: 320px;
    }

    .desktop-frame .screenshot-image {
        min-height: 400px;
    }

    .feature-screenshots-section,
    .before-after-section,
    .responsive-showcase-section {
        padding: 80px 24px;
    }

    .case-card .case-image {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero-dashboard {
        min-height: 320px;
    }

    .browser-dots {
        display: none;
    }

    .placeholder-content h3,
    .placeholder-content h4 {
        font-size: 24px;
    }

    .placeholder-content p {
        font-size: 15px;
    }

    .mobile-preview {
        flex-direction: column;
    }

    .mobile-frame {
        width: 100%;
        max-width: 300px;
    }

    .screenshot-image-wrapper img {
        padding: 5px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .divider-icon,
    .screenshot-item,
    .comparison-side,
    .device-frame {
        animation: none !important;
    }

    .screenshot-image-wrapper:hover,
    .device-frame:hover,
    .comparison-screenshot:hover {
        transform: none;
    }
}