:root {
    /* --- Palette 2026 (Deep Slate & Crisp White) --- */
    --primary: #0F172A;       /* Slate 900 */
    --primary-light: #334155; /* Slate 700 */
    --accent: #2563EB;        /* Blue 600 - subtle Tech accent */
    --bg-body: #FFFFFF;
    --bg-light: #F8FAFC;      /* Slate 50 */
    --text-heading: #0F172A;
    --text-body: #475569;     /* Slate 600 */
    --text-muted: #94A3B8;    /* Slate 400 */
    --border-light: #E2E8F0;  /* Slate 200 */
    --border-medium: #CBD5E1; /* Slate 300 */

    /* --- Fluid Typography (Clamp) --- */
    --font-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --font-h2: clamp(2rem, 4vw + 0.5rem, 3rem);
    --font-h3: clamp(1.25rem, 2vw + 1rem, 1.5rem);
    --font-body: clamp(1rem, 1vw + 0.5rem, 1.125rem);

    /* --- Fluid Spacing --- */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(3rem, 5vw, 5rem); /* Increased slightly for desktop, small for mobile */
    --space-lg: clamp(4rem, 8vw, 8rem);
    --container-width: 1200px;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 48px;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body);
    background: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    line-height: 1.1;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }

/* --- Utility Classes --- */
.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: transparent;
    color: var(--text-heading);
    border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.btn-outline {
    width: 100%;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--bg-light); }

/* --- Navbar (Glassmorphism & Mobile Ready) --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.05em;
}

/* Desktop Nav */
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-light);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    cursor: pointer;
}
.lang-switcher span { color: var(--text-muted); transition: color 0.2s; }
.lang-switcher span.active { color: var(--primary); }
.lang-switcher .divider { color: var(--border-medium); pointer-events: none;}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}


/* --- Hero Section --- */
.hero {
    padding: var(--space-lg) 0 var(--space-md);
    background: radial-gradient(circle at 60% 10%, #F8FAFC 0%, #FFFFFF 60%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split standard layout */
    align-items: center;
    gap: var(--space-md);
}

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

.badge-new {
    display: inline-block;
    background: #E0F2FE;
    color: #0284C7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: var(--font-h1);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: var(--font-body);
    margin-bottom: 2.5rem;
    color: var(--text-body);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tech-stack-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.supported-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* --- Phone Mockup (Refined & Responsive) --- */
.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px; /* Base width */
    height: 600px;
    background: #0F172A;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25), 0 30px 60px -30px rgba(0,0,0,0.3);
    position: relative;
    border: 4px solid #334155;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 28px;
    background: #0F172A;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 20;
}

.screen {
    background: #F8FAFC;
    width: 100%; height: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex; flex-direction: column;
}

/* Internal App UI */
.app-header { background: white; padding: 40px 16px 16px; border-bottom: 1px solid var(--border-light); }
.user-welcome { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.greeting { display: block; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.username { display: block; font-weight: 700; color: var(--text-heading); font-size: 0.95rem; }

.quick-actions { padding: 20px 16px; }
.quick-actions h3 { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.action-icon { width: 44px; height: 44px; background: white; border: 1px solid var(--border-light); border-radius: 12px; display: grid; place-items: center; color: var(--text-body); }
.action-item.active .action-icon { background: var(--primary); color: white; border-color: var(--primary); }
.action-item span { font-size: 0.65rem; font-weight: 600; }

.recent-scans { background: white; flex: 1; padding: 20px; border-top-left-radius: 24px; border-top-right-radius: 24px; box-shadow: 0 -4px 20px rgba(0,0,0,0.03); }
.recent-scans h3 { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.scan-list { display: flex; flex-direction: column; gap: 10px; }
.scan-item { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border-light); border-radius: 10px; }
.scan-icon { width: 32px; height: 32px; background: var(--bg-light); border-radius: 8px; display: grid; place-items: center; color: var(--text-heading); }
.scan-info { flex: 1; }
.scan-name { display: block; font-weight: 700; font-size: 0.8rem; color: var(--text-heading); }
.scan-meta { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

.app-nav { height: 60px; background: white; border-top: 1px solid var(--border-light); display: flex; justify-content: space-around; align-items: center; }


/* --- Bento Grid Features (Responsive) --- */
.features {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-md);
}
.section-header h2 { font-size: var(--font-h2); margin-bottom: 0.5rem; }

.feature-grid-bento {
    display: grid;
    /* Auto-fit: Automatically places as many columns as fit */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 1.5rem;
    grid-auto-flow: dense; /* Helps fill gaps */
}

.bento-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Modern tech layout: Text at bottom */
    min-height: 250px;
    transition: transform 0.3s ease;
}

.bento-card:hover { border-color: var(--border-medium); transform: translateY(-4px); }

.icon-box {
    width: 48px; height: 48px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    display: grid; place-items: center;
    margin-bottom: auto; /* Push icon to top */
    color: var(--text-heading);
}

.badge-coming-soon {
    display: inline-block;
    background: var(--text-heading);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

/* --- Workflow Process (Stepped) --- */
.workflow-section {
    padding: var(--space-md) 0;
    background: #FAFAFA;
    border-block: 1px solid var(--border-light);
}

.section-title { text-align: center; margin-bottom: 3rem; font-size: var(--font-h2); }

.pipeline-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap; 
}

.pipeline-step {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.step-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--border-medium);
    font-family: 'JetBrains Mono', monospace;
}

.pipeline-connector {
    width: 2rem; height: 2px;
    background: var(--border-medium);
    margin-top: 3rem;
    display: none; /* Hidden on mobile default */
}
@media(min-width: 900px) { .pipeline-connector { display: block; } }


/* --- Pricing Grid --- */
.pricing { padding: var(--space-md) 0; }
.section-subtitle { text-align: center; color: var(--text-body); margin-bottom: 3rem; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    background: white;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-card);
    transform: scale(1.05);
    z-index: 10;
    position: relative;
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.card-header h3 { font-size: 1rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 1rem 0;
}
.price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.features-list { margin: 2rem 0; flex-grow: 1; }
.features-list li { 
    margin-bottom: 0.75rem; 
    font-size: 0.9rem; 
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}
.features-list li::before { 
    content: "✓"; 
    color: var(--accent); 
    font-weight: 700; 
    position: absolute;
    left: 0;
}
.features-list li span { font-weight: 700; color: var(--text-heading); }

.enterprise-contact { text-align: center; margin-top: 3rem; font-size: 0.95rem; }
.enterprise-contact a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* --- Footer --- */
.footer {
    background: var(--primary);
    color: white;
    padding: var(--space-md) 0;
}
.footer-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.logo.white { color: white; }
.footer-links-group a {
    color: var(--border-medium);
    margin-left: 1.5rem;
    font-size: 0.9rem;
}


.nav-item-mobile {
    display: none;
}

/* --- 2026 MEDIA QUERIES (Mobile First approach applied via overrides) --- */

@media (min-width: 900px) {
    /* Desktop specific Grid adjustments */
    .bento-card.large { grid-column: span 1; grid-row: span 2; }
    .bento-card.wide { grid-column: span 2; }
}

@media (max-width: 900px) {
    /* Tablet & Mobile */
    
    .navbar {
        height: auto;
        padding: 0.5rem 0;
    }

    /* Hide desktop nav actions on mobile */
    .link-login, 
    .nav-actions .btn-primary { 
        display: none !important; 
    }

    .nav-item-mobile {
        display: block;
    }
    
    .nav-item-mobile a {
        display: block;
        padding: 0.8rem !important;
        margin: 0.2rem 0;
        border-radius: 8px;
        font-weight: 700 !important;
    }
    
    .nav-item-mobile:nth-last-child(2) a {
        background: var(--bg-light);
        color: var(--text-heading);
        margin-top: 1rem;
    }
    
    .nav-item-mobile:last-child a {
        background: var(--primary);
        color: white;
    }

    .hero-container {
        grid-template-columns: 1fr; /* Stack hero */
        text-align: center;
        gap: var(--space-lg);
    }
    
    .hero-content { margin: 0 auto; }
    
    .hero-buttons, .supported-docs {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 260px; /* Smaller phone */
        height: 520px;
        transform: none; /* Remove 3D effect on mobile for sharpness */
        margin: 0 auto;
    }

    /* Navbar Mobile */
    .mobile-toggle { display: block; }
    
    .nav-links {
        display: none; /* Hide standard links */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-light);
        gap: 1rem;
        box-shadow: var(--shadow-card);
    }
    .nav-links.active { display: flex; }
    
    .nav-links li { width: 100%; text-align: center; }
    .nav-links li a { display: block; padding: 0.5rem; font-size: 1.1rem;}
    
    .nav-actions {
        display: none; /* Hide buttons in header, move to menu if needed or hide */
    }
    
    /* Reset Pricing Scale */
    .pricing-card.popular { transform: none; }
}

@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
    
    .feature-grid-bento { grid-template-columns: 1fr; }
}
