@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --cream: #f4f7f9; 
    --ink: #111111;
    --accent: #ff4d00;
    --grey: #888;
    /* Define a common font variable for easy updates */
    --common-font: 'Inter', sans-serif;
}

/* --- BASE STYLES --- */
html { scroll-behavior: smooth; }
body { 
    margin: 0; 
    font-family: var(--common-font); 
    background: var(--cream); 
    color: var(--ink); 
    overflow-x: hidden; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Updated to keep a common font family for all 3 pages as requested */
h1, h2, h3, .code-text, button, input, select, textarea { 
    font-family: var(--common-font) !important; 
}

/* --- HERO SECTION --- */
.hero-v2 { padding: 40px 0; padding-bottom: 20px;}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

h1 { 
    font-size: clamp(2rem, 6vw, 3rem); 
    line-height: 1.2; 
    margin: 10px 0; 
}

/* Updated Logo Styling - Fixing the "bad" look */
.logo-inline {
    height: 1.3em !important; 
    width: auto;
    vertical-align: -0.25em;
    mix-blend-mode: multiply;
    background: transparent !important;
    display: inline-block;
}

.hero-desc { color: var(--grey); font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; max-width: 500px; }
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- GLASS VISUALS --- */
.hero-visual-side {
    padding-top: 30px;
    display: flex;
    justify-content: center;
}

.glass-container { 
    position: relative; 
    width: 100%;
    max-width: 400px; 
    height: 400px;
}

.glass-doc { 
    position: absolute; 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(0, 0, 0, 0.05); 
    padding: 25px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    box-sizing: border-box;
}

/* --- FUNCTIONAL HERO VISUALS (The Scanner) --- */
.hero-visual-side {
    padding-top: 30px;
    display: flex;
    justify-content: center;
    position: relative;
}

.glass-container { 
    position: relative; 
    width: 100%;
    max-width: 450px; 
    height: 400px;
}

/* The Main Document being 'Scanned' */
.doc-main {
    width: 280px;
    height: 350px;
    top: 0;
    left: 50px;
    z-index: 5;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden; /* Clips the scan-bar */
    position: absolute;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    padding: 30px;
}

/* The Animated Laser Scan Line */
.scan-bar {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 77, 0, 0.15), 
        rgba(255, 77, 0, 0.4), 
        transparent);
    border-bottom: 3px solid var(--accent);
    z-index: 6;
    animation: scanMove 4s infinite ease-in-out;
}

@keyframes scanMove {
    0%, 100% { top: -10%; }
    50% { top: 90%; }
}

/* Floating Extraction Chips */
.data-chip {
    position: absolute;
    padding: 10px 18px;
    background: var(--ink);
    color: white;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
}

.chip-1 { top: 40px; right: 0; animation: float 5s infinite ease-in-out; }
.chip-2 { top: 140px; right: -40px; animation: float 6s infinite ease-in-out 1s; }
.chip-3 { bottom: 80px; left: -20px; animation: float 5.5s infinite ease-in-out 0.5s; }

/* The Animated Checkmark Glow */
.doc-3 {
    width: 70px !important;
    height: 70px !important;
    top: 290px !important;
    left: 300px !important;
    background: var(--accent) !important;
    color: white !important;
    border: none !important;
    font-size: 1.8rem !important;
    z-index: 11 !important;
    animation: pulseCheck 2s infinite !important;
}

@keyframes pulseCheck {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.5); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(255, 77, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 0, 0); }
}

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

/* --- BEAUTIFIED CAPABILITIES GRID (No Numbers) --- */
.box-section { 
    padding: 100px 0; 
    background: radial-gradient(circle at top right, rgba(255,77,0,0.03), transparent 400px),
                radial-gradient(circle at bottom left, rgba(255,77,0,0.02), transparent 400px);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.creative-box {
    background: rgba(255, 255, 255, 0.6); /* Translucent glass */
    backdrop-filter: blur(10px);
    padding: 60px 45px;
    border: 1px solid rgba(0, 0, 0, 0.03); /* Extremely faint border */
    border-radius: 24px; /* More rounded, modern corners */
    position: relative;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.creative-box h3 {
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, var(--ink), #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.creative-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
}

/* --- BUTTONS --- */
.btn-main, .btn-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 35px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-main { background: var(--ink); color: white; border: 2px solid var(--ink); }
.btn-main:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.btn-sub { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-sub:hover { background: #fff; border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* --- LOGIN PAGE --- */
.entry-wrapper {
    min-height: 80vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.entry-card {
    background: white;
    padding: 50px;
    width: 100%;
    max-width: 420px;
    border: 1px solid #eee;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    text-align: center;
    border-radius: 8px;
}

.entry-input {
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
    padding: 0 15px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    border-radius: 4px;
}

.captcha-box {
    background: #f9f9f9;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 30px; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 768px) {
    .capabilities-grid { grid-template-columns: 1fr; }
}

/* ================= NAVBAR RESPONSIVE ================= */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
     header { padding: 16px 0 !important; }
    header > div { padding: 0 20px !important; }
    .menu-toggle { display: contents; font-size: 28px; }
    header nav {
        position: absolute; top: 80px; left: 0; width: 100%; background: #fff;
        flex-direction: column !important; align-items: center; padding: 20px 0;
        display: none !important; border-top: 1px solid #eee;
    }
    header nav.active { display: flex !important; padding: 25px 0; }
}

/* --- Issue #4: System Capabilities --- */
.capabilities-row-v4 {
    display: flex; gap: 25px; justify-content: center; margin-top: 50px; padding: 0 10px;
}

.capability-card-v4 {
    flex: 1; background: #ffffff; border-bottom: 4px solid #ff8c00; 
    border-top: 1px solid #f0f0f0; border-left: 1px solid #f0f0f0; border-right: 1px solid #f0f0f0;
    border-radius: 12px; padding: 35px 20px; text-align: center; transition: all 0.4s ease;
}

.capability-card-v4:hover {
    transform: translateY(-12px); border-color: #ff8c00; 
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.15);
}

.card-icon-circle {
    width: 40px; height: 40px; background: rgba(255, 140, 0, 0.1); 
    border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
}

.inner-dot { width: 8px; height: 8px; background: #ff8c00; border-radius: 50%; }

/* --- Button Loading States --- */
.btn-main:disabled { opacity: 0.6; cursor: not-allowed !important; background-color: #cccccc !important; }
.btn-main.htmx-request { position: relative; color: transparent !important; }
.btn-main.htmx-request::after {
    content: ""; position: absolute; width: 16px; height: 16px; top: 50%; left: 50%;
    margin-top: -8px; margin-left: -8px; border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ==========================================================================
   LALO REDESIGN V2 - NEW STYLES BELOW (ADDED AS REQUESTED)
   ========================================================================== */

.lalo-redesign-v2 { padding: 120px 0; background: #fff; }

.lalo-intro-bento {
    display: grid;
    grid-template-columns: 1fr 60px 1.2fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 100px;
}

.bento-card {
    padding: 45px;
    border-radius: 28px;
    height: 100%;
}

.bento-problem { background: #fff8f8; border: 1px solid #fee2e2; }
.bento-definition { background: #f8fafc; border: 1px solid #f1f5f9; }

.bento-card h3 { font-size: 1.75rem; margin-bottom: 25px; color: var(--ink); }

.bullet-list-red { list-style: none; padding: 0; }
.bullet-list-red li { 
    margin-bottom: 12px; 
    padding-left: 30px; 
    position: relative; 
    color: #4b5563; 
}
.bullet-list-red li::before { 
    content: '×'; position: absolute; left: 0; color: #ef4444; 
    font-size: 20px; font-weight: bold; line-height: 1;
}

.bento-footer-alert { color: #dc2626; font-weight: 700; margin-top: 30px; }

.def-icon-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin-top: 30px; 
}
.def-badge { 
    background: white; 
    padding: 15px; 
    border-radius: 12px; 
    font-size: 13px; 
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 10px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.work-card {
    padding: 35px;
    border-radius: 32px;
    border: 1px solid rgba(0,0,0,0.04);
}

.card-blue { background: #f0f9ff; }
.card-purple { background: #f5f3ff; }
.card-orange { background: #fffaf5; }
.card-green { background: #f0fdf4; }

.step-tag { 
    display: block; 
    font-weight: 800; 
    font-size: 1.1rem; 
    margin-bottom: 8px; 
    color: #111; 
}

.work-bullets { list-style: none; padding: 0; margin: 25px 0; }
.work-bullets li { 
    font-size: 0.9rem; 
    margin-bottom: 10px; 
    padding-left: 25px; 
    position: relative; 
}
.work-bullets li::before { 
    content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: bold; 
}

.work-summary { font-weight: 700; font-size: 0.95rem; margin-top: auto; }

.work-mockup {
    background: white;
    height: 200px;
    border-radius: 16px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
}

.wide-step { grid-column: span 3; margin-top: 30px; }
.wide-flex { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

@media (max-width: 992px) {
    .lalo-intro-bento, .workflow-grid, .wide-flex { 
        grid-template-columns: 1fr; 
        flex-direction: column; 
    }
    .wide-step { grid-column: span 1; }
}

/* Final cleanup for new layout visuals */
.workflow-header { text-align: center; margin-bottom: 40px; }
.lalo-title-main { font-size: 2.8rem; font-weight: 800; margin-bottom: 5px; }
.text-orange { color: var(--accent); }

/* --- LALO MOCKUP INNER ELEMENTS --- */

/* General Mockup Container Refinement */
.work-mockup {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    font-family: var(--common-font);
}

/* Step 1: Smart Scope Processing Mockup */
.mockup-sc .inner-mock {
    width: 100%;
}

.mock-line {
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
    color: #111;
}

.mock-check-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #444;
}

.mock-check-row span:last-child {
    color: #10b981;
    font-weight: bold;
}

/* Step 2: Transaction Intelligence (Seller -> TC -> Buyer) */
.mockup-tc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flow-visual {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.flow-visual span {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.tc-node {
    background: #fff;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.1);
}

.status-pill {
    background: #f0fdf4;
    color: #10b981;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #dcfce7;
}

/* Step 3: Library Mockup */
.mockup-lib .lib-ui {
    width: 100%;
}

.lib-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fcfcfc;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.lib-item span {
    font-size: 10px;
    color: #ff4d00;
    text-transform: uppercase;
    font-weight: 800;
    border: 1px solid #ff4d00;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Step 4: Search Mockup */
.search-bar-mock {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-bar-mock span {
    font-size: 14px;
    color: #64748b;
}

.search-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.search-tags span {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.tag-s { background: #eff6ff; color: #3b82f6; }
.tag-p { background: #fff7ed; color: #f97316; }
.tag-c { background: #f5f3ff; color: #8b5cf6; }

/* --- STEP 4: SEARCH LIKE YOU TALK --- */
.search-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Results Box UI */
.search-results-box {
    background: transparent;
}

.search-input-mock {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.results-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.results-count { font-size: 13px; color: #64748b; margin-bottom: 15px; }
.top-results-label { font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 8px;
}

.res-info strong { display: block; font-size: 12px; }
.res-info small { font-size: 10px; color: #94a3b8; }

.view-pill {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.view-all-link { display: block; font-size: 11px; font-weight: 700; color: #3b82f6; text-decoration: none; margin-top: 10px; }

/* Features List */
.search-features { display: flex; flex-direction: column; gap: 25px; }
.s-feature { display: flex; align-items: flex-start; gap: 15px; }
.s-icon { background: #dcfce7; padding: 10px; border-radius: 10px; font-size: 18px; }
.s-feature p { font-size: 14px; color: #475569; line-height: 1.5; margin: 0; }

/* Graphic Badges */
.search-graphic { position: relative; height: 250px; display: flex; align-items: center; justify-content: center; }
.glass-orb {
    width: 80px; height: 80px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); z-index: 2;
}

.g-tag {
    position: absolute; padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 700;
}
.t-standards { top: 20px; left: 0; background: #dcfce7; color: #166534; }
.t-products { top: 10px; right: 20px; background: #ffedd5; color: #9a3412; }
.t-companies { right: 0; background: #f3e8ff; color: #6b21a8; }
.t-sites { bottom: 40px; left: 10px; background: #dbeafe; color: #1e40af; }
.t-processes { bottom: 10px; right: 40px; background: #fef3c7; color: #92400e; }

@media (max-width: 1100px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-graphic { height: 300px; order: -1; }
}