/* Base Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #d946ef;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* Remove scroll-snap and section height constraints */
section {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Delius', cursive;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}



/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 1.2rem 6rem;
    font-size: 1.5rem;
    border-radius: 12px;
    text-decoration: solid white;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-content {
    text-align: center;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.loader-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.progress-container {
    width: 300px;
    height: 30px;
    background-color: rgba(99, 102, 241, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0;
    border-radius: 5px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(207, 121, 181, 0.5);
}

.progress-text {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
}

.main-content {
    display: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 100;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-link span {
    margin-left: 0.5rem;
    font-family: 'Delius', cursive;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: relative;
}

.document-scanner {
    background-color: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.document {
    width: 60%;
    background-color: #f1f5f9;
    border-radius: 10px;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.document-content {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: 
        linear-gradient(to right, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px),
        linear-gradient(to right, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px),
        linear-gradient(to right, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px),
        linear-gradient(to right, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px),
        linear-gradient(to right, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px),
        linear-gradient(to right, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px),
        linear-gradient(to right, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px),
        linear-gradient(to right, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px);
    background-size: 100% 16px;
    background-position: 
        0 20px, 0 50px, 0 80px, 0 110px,
        0 140px, 0 170px, 0 200px, 0 230px;
    background-repeat: no-repeat;
    padding: 20px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    box-shadow: 0 0 10px 2px var(--primary-light);
    opacity: 0.7;
}

.data-visualization {
    width: 35%;
    border-radius: 10px;
    background-color: #1a1a2e;
    padding: 1rem;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.data-json {
    color: #eeeeee;
    font-family: monospace;
    font-size: 12px;
    overflow: hidden;
    height: 100%;
    opacity: 0;
}

.hero-shapes .shape {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    filter: blur(30px);
}

.hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(99, 102, 241, 0.15);
    top: -100px;
    right: -100px;
}

.hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(139, 92, 246, 0.15);
    bottom: 0;
    left: 10%;
}

.hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background-color: rgba(217, 70, 239, 0.15);
    top: 40%;
    right: 20%;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background-color: white;
}

.workflow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.workflow-step {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--gray);
}

.step-illustration {
    border-radius: var(--border-radius);
    background-color: #f8fafc;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Playground Section */
.playground {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.playground-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Adjusted opacity for better readability */
    z-index: 1;
}

.playground .container {
    position: relative;
    z-index: 2;
}

.playground-button-container {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 3;
}
.playground-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    position: relative;
}

.playground-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

.playground-button-container {
    text-align: center;
    margin-top: 2rem;
}

.playground-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.playground-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

/* Footer */
.footer {
    background-color: white;
    padding: 4rem 0 2rem;
   
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-svg {
    margin-right: 1rem;
}

.footer-logo-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.footer-logo-text p {
    font-size: 0.9rem;
    color: var(--gray);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-links-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links-column h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 0.75rem;
}

.footer-links-column ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-links-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
}

.social-link:hover svg path {
    fill: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .workflow-step {
        grid-template-columns: 60px 1fr;
    }
    
    .step-illustration {
        grid-column: span 2;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .playground-ui {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}