/* =================================================================== */
/* ROOT VARIABLES & GLOBAL STYLES                                      */
/* =================================================================== */
:root {
    --primary-blue: #0d47a1; /* A deeper, more corporate blue */
    --accent-blue: #1976d2;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #00205B;
    --border-color: #e2e8f0;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text-dark); line-height: 1.6; background-color: var(--bg-white); font-weight: 400; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-title { font-size: 2.5rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-gray); max-width: 700px; margin: 0 auto; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 4rem; }

/* =================================================================== */
/* NAVIGATION                                                          */
/* =================================================================== */
.main-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 12px 24px; /* MODIFIED: Added side padding */
    width: 100%; /* ADDED: Ensures it spans the full width */
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px; /* ADDED: This is your page's content width */
    margin: 0 auto;    /* ADDED: This centers the content */
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 600; color: var(--text-dark); }
.logo-image { height: 48px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link { color: var(--text-gray); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-link:hover { color: var(--primary-blue); }
.nav-link-highlight { background: var(--primary-blue); color: white; padding: 10px 20px; border-radius: 25px; transition: var(--transition); }
.nav-link-highlight:hover { background: var(--accent-blue); }
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
}
.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 10px; }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }
/* =================================================================== */
/* HERO SECTION                                                        */
/* =================================================================== */
.hero-section { background: var(--bg-light); padding: 80px 0; text-align: center; }
.hero-container { max-width: 800px; }
.hero-title { font-size: 3.2rem; font-weight: 800; line-height: 1.2; color: var(--primary-blue); margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-gray); margin-bottom: 2rem; }
.cta-button { display: inline-block; padding: 14px 32px; border-radius: var(--border-radius); font-size: 1rem; font-weight: 600; text-decoration: none; transition: var(--transition); box-shadow: var(--shadow-md); }
.cta-primary { background: var(--primary-blue); color: white; }
.cta-primary:hover { background: var(--accent-blue); transform: translateY(-2px); }
.how-it-works-summary { margin-top: 3rem; font-weight: 500; color: var(--text-gray); }
.how-it-works-summary span { margin: 0 0.5rem; }

/* HERO VISUAL SECTION */
.hero-visual-section { padding: 60px 0; background-color: var(--bg-light); border-bottom: 1px solid var(--border-color); }
.hero-visual-image { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: var(--border-radius); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }

/* VALIDATION SECTION */
.validation-section { padding: 40px 0; background: var(--bg-light); text-align: center; border-bottom: 1px solid var(--border-color); }
.validation-section .container { display: flex; gap: 2rem; justify-content: center; }
.validation-item { flex: 1; max-width: 400px; }
.validation-item h3 { font-size: 1rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 0.5rem; }
.validation-item p { font-size: 0.95rem; color: var(--text-gray); margin: 0; }

/* =================================================================== */
/* CREDIBILITY & PROBLEM SECTIONS                                      */
/* =================================================================== */
.credibility-bar { background-color: var(--bg-white); padding: 2rem 0; border-bottom: 1px solid var(--border-color); text-align: center; }
.credibility-bar p { font-size: 0.9rem; font-weight: 600; color: #a0aec0; letter-spacing: 1px; margin-bottom: 1.5rem; }
.logos-container { display: flex; justify-content: space-around; align-items: center; filter: grayscale(100%); opacity: 0.6; margin-top: 2rem; }
.logos-container img { max-height: 35px; }
.logos-container img[alt="Client Logo 3"] {
    max-height: 115px; /* or whatever size you want */
}
.problem-section { padding: 80px 0; background: var(--bg-white); }
.problem-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.problem-costs { background: var(--bg-light); padding: 2rem; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.costs-title { font-size: 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.problem-costs ul { list-style: none; }
.problem-costs li { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.problem-costs .icon { color: #ef4444; }

/* =================================================================== */
/* SOLUTION SECTION                                                    */
/* =================================================================== */
.solution-section { padding: 80px 0; background: var(--bg-light); }
.solution-visual { margin-bottom: 4rem; text-align: center; }
.solution-visual img { max-width: 100%; height: auto; border-radius: var(--border-radius); box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.solution-workflow { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.workflow-step { flex: 1; text-align: center; }
.step-number { width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: var(--primary-blue); color: white; font-weight: 700; margin: 0 auto 1rem; }
.workflow-step h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.workflow-arrow { font-size: 2rem; color: var(--accent-blue); margin-top: 2.5rem; }

/* =================================================================== */
/* NARRATIVE INTRO, SECTORS & MARKETPLACE                              */
/* =================================================================== */
.narrative-intro-section { padding: 80px 0 0 0; background: var(--bg-white); }

/* REPLACE THE ENTIRE SECTORS-SECTION BLOCK WITH THIS FINAL VERSION */

/* =================================================================== */
/* [FINAL ARCHITECTURE V2] SECTORS SECTION                             */
/* =================================================================== */
.sectors-section { padding: 40px 0 80px 0; background: var(--bg-white); }
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

.sector-card {
    /* This element is now just a container for the clickable part */
    position: relative;
    grid-column: span 1; /* Default state */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.sector-collapsed {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all 0.4s ease-in-out;
}
.sector-card:hover .sector-collapsed {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.sector-icon { font-size: 1.5rem; flex-shrink: 0; }
.sector-collapsed h3 { font-size: 1.1rem; line-height: 1.3; }

.sector-expanded {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 1rem;
    
    /* Collapsed by default */
    max-height: 0; 
    overflow: hidden;
    /* We animate visibility and transform for the container itself */
    visibility: hidden;
    transform: translateY(-10px);
    opacity: 0;

    transition: max-height 650ms cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 650ms cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 650ms, /* Hide after transition ends */
                transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* THIS IS THE KEY: FULL-WIDTH EXPANSION */
.sector-card.is-open {
    grid-column: 1 / -1; /* SPAN FULL WIDTH */
}
.sector-card.is-open .sector-collapsed {
    /* Optional: style the active trigger */
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}
.sector-card.is-open .sector-expanded {
    max-height: 500px; /* Animate to this height */
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    transition: max-height 650ms cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 650ms cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s, /* Show immediately */
                transform 650ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.expanded-left h4 { font-size: 1.5rem; font-weight: 700; color: var(--primary-blue); margin-bottom: 1rem; }
.expanded-left p { color: var(--text-gray); margin-bottom: 2rem; }
.expanded-right { text-align: center; }

/* The staggered cinematic reveal remains the same */
.expanded-right, .sector-cta {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.sector-card.is-open .expanded-right {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 250ms;
}
.sector-card.is-open .sector-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 450ms;
}

.expanded-right img { max-width: 200px; border-radius: var(--border-radius); }
.sector-cta { background: var(--primary-blue); color: white; border: none; padding: 12px 24px; border-radius: 25px; font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 500; cursor: pointer; }
.sector-cta:hover { background: var(--accent-blue); }


/* =================================================================== */
/* [FINAL CALIBRATION] MARKETPLACE SECTION                             */
/* =================================================================== */
.marketplace-section { padding: 80px 0; background: var(--bg-light); }
.filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filters button { background: var(--bg-white); border: 1px solid var(--border-color); padding: 10px 20px; border-radius: 25px; font-family: 'Poppins', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.filters button:hover { background: #e2e8f0; }
.filters button.active { background: var(--primary-blue); color: white; border-color: var(--primary-blue); }

.marketplace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sample-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    /* 5. REMOVE PERCEIVED LATENCY */
    transition: opacity 200ms ease-out;
}
.sample-card:hover { transform: translateY(-5px); }
.sample-thumb { width: 100%; height: 200px; object-fit: cover; }
.sample-info { padding: 1.5rem; text-align: center; }
.sample-cta { display: none; }

/* =================================================================== */
/* PROOF SECTION                                                       */
/* =================================================================== */
.proof-section { padding: 80px 0; background: var(--bg-light); }
.credibility-strip { text-align: center; margin-bottom: 4rem; } /* Added from previous fix */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.proof-item {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.proof-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.proof-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* --- Metrics Block Surprise --- */
.metrics-block .metrics-container { display: flex; flex-direction: column; gap: 2rem; }
.metric-item .metric-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.metric-item p { font-size: 1rem; font-weight: 500; color: var(--text-gray); margin-top: 0.5rem; }

/* --- Founder Credibility Surprise --- */
.founder-profile {
    text-align: center; /* Centers the image within the container */
}
.certificate-image {
    max-width: 100%; /* Ensures the image is responsive and fits the card */
    height: auto;
    border-radius: var(--border-radius); /* Gives it the same rounded corners as the card */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Adds a subtle, professional shadow */
    border: 1px solid var(--border-color);
}
/* --- Security Block Surprise --- */
.security-badges { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.security-badges span {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}
.security-badges svg { width: 16px; height: 16px; fill: var(--text-gray); }
/* =================================================================== */
/* FINAL CTA & FOOTER                                                  */
/* =================================================================== */
.final-cta-section { padding: 80px 0; text-align: center; background: var(--primary-blue); color: white; }
.final-cta-section h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.final-cta-section p { max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; }
.final-cta-section .cta-primary { background: white; color: var(--primary-blue); }
.main-footer { background: var(--bg-dark); color: white; padding: 60px 0 0; font-size: 0.95rem; }
.footer-container { display: flex; justify-content: space-between; gap: 4rem; margin-bottom: 4rem; flex-wrap: wrap; }
.footer-brand { flex: 2; max-width: 350px; }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .nav-logo .logo-text {
    color: white;
}
.footer-brand p { color: rgba(255, 255, 255, 0.7); }
.footer-brand .social-links { margin-top: 1.5rem; display: flex; gap: 1rem; }
/* Replace the old rules with this new block */
.footer-brand .social-links a {
    background: rgba(255, 255, 255, 0.1); /* A subtle background */
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px; /* Creates the button size */
    border-radius: 20px; /* Creates the pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Adds a subtle border */
}

.footer-brand .social-links a:hover {
    background: var(--accent-blue); /* Your brand's blue on hover */
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-2px); /* Adds a slight lift effect */
}
.footer-links-group { display: flex; flex: 3; justify-content: space-between; gap: 2rem; }
.footer-column h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column p { color: rgba(255, 255, 255, 0.7); }
.footer-column a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: var(--transition); }
.footer-column a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 1.5rem 0; text-align: center; color: rgba(255, 255, 255, 0.6); }
/* ADD THIS BLOCK BEFORE THE RESPONSIVE SECTION in style.css */

/* =================================================================== */
/* LEGAL PAGE STYLES (Terms, Privacy, etc.)                            */
/* =================================================================== */
.legal-page-container {
    padding: 80px 0;
    background: var(--bg-white);
}
.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.legal-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.legal-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content section {
    margin-bottom: 2.5rem;
}
.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.legal-content p, .legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1rem;
}
.legal-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.legal-content a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}
.legal-content a:hover {
    text-decoration: underline;
}


/* =================================================================== */
/* RESPONSIVE DESIGN                                                   */
/* =================================================================== */
@media (max-width: 992px) {
    .problem-container { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
    .case-study { grid-row: auto; }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .marketplace-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; }
    .solution-workflow { flex-direction: column; align-items: center; }
    .workflow-arrow { transform: rotate(90deg); margin: 0; }
    .footer-container { flex-direction: column; }
    .footer-links-group { flex-direction: column; }
    .sectors-grid { grid-template-columns: 1fr; }
    .marketplace-grid { grid-template-columns: repeat(2, 1fr); }
    
    .sector-card.is-open { grid-column: span 1; }
    .sector-expanded { grid-template-columns: 1fr; text-align: center; }
    .expanded-left { order: 2; }
    .expanded-right { order: 1; margin-bottom: 1.5rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px; /* Height of the nav bar */
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .logos-container {
        gap: 2rem; /* Reduce gap on mobile */
    }
}

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