/* Landing Page Specific Styles */

/* --- HERO SECTION --- */
.hero-section {
    background-color: var(--primary); /* Deep Navy */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(46, 204, 64, 0.15) 0%, transparent 25%), /* Green glow */
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 25%), /* White glow */
        linear-gradient(135deg, #001F3F 0%, #001021 100%);
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

/* Abstract Grid Pattern Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 120px 0 60px; /* More top padding for mobile nav */
        text-align: center;
        min-height: auto;
    }
    
    .hero-content {
        margin-bottom: 60px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

@media (min-width: 992px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Hero Buttons */
.hero-buttons .btn-primary-custom {
    background-color: #2ECC40; /* Green Accent */
    border-color: #2ECC40;
    color: #001F3F;
}

.hero-buttons .btn-primary-custom:hover {
    background-color: #26ab35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 64, 0.3);
}

.hero-buttons .btn-outline-custom {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.hero-buttons .btn-outline-custom:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

/* --- HERO MOCKUP (3D Dashboard) --- */
.hero-mockup-container {
    position: relative;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.hero-dashboard-mock {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}

.hero-dashboard-mock:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

/* Mock Header */
.mock-browser-bar {
    height: 32px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid #cbd5e0;
}

.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #ff5f56; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #27c93f; }

/* Mock Layout */
.mock-layout {
    display: flex;
    height: calc(100% - 32px);
}

.mock-sidebar-hero {
    width: 20%;
    background: #001F3F;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-sidebar-line {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    width: 100%;
}
.mock-sidebar-line.short { width: 60%; }

.mock-content-hero {
    flex: 1;
    background: #f1f5f9;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Mock Widgets */
.mock-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.mock-title-bar { width: 150px; height: 16px; background: #cbd5e0; border-radius: 4px; }
.mock-user-circle { width: 32px; height: 32px; background: #94a3b8; border-radius: 50%; }

.mock-stats-row {
    display: flex;
    gap: 15px;
}
.mock-stat-card {
    flex: 1;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.mock-stat-line { height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 8px; width: 40%; }
.mock-stat-value { height: 16px; background: #001F3F; border-radius: 4px; width: 70%; }

.mock-chart-area {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
}
.mock-bar {
    width: 100%;
    background: #3b82f6;
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

/* Floating Elements */
.hero-floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float 6s ease-in-out infinite;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 220px;
}

.float-1 { top: 20%; right: -20px; animation-delay: 0s; }
.float-2 { bottom: 15%; left: -30px; animation-delay: 2s; }

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


/* --- FEATURES SECTION --- */
.features-section {
    padding: 80px 0; /* Reduced padding */
    background-color: var(--bg-body);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem); /* Fluid typography */
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem); /* Fluid typography */
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px; /* Reduced margin */
}

.feature-card {
    background: var(--bg-surface);
    padding: 32px 24px; /* Reduced padding */
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-subtle);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* --- WORKFLOW SECTION --- */
.workflow-section {
    padding: 80px 0; /* Reduced padding */
    background-color: var(--bg-surface);
}

.step-card {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

/* Connector Line (Desktop only) */
@media (min-width: 992px) {
    .step-card::after {
        content: '';
        position: absolute;
        top: 40px;
        left: 50%;
        width: 100%;
        height: 2px;
        background-color: var(--border-light);
        z-index: 1;
    }
    
    .step-card:last-child::after {
        display: none;
    }
}

/* --- DASHBOARD PREVIEW --- */
.preview-section {
    padding: 80px 0; /* Reduced padding */
    /* Mesh Gradient Background */
    background: 
        radial-gradient(at 0% 0%, hsla(211, 100%, 15%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(211, 100%, 15%, 1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(211, 100%, 15%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(211, 100%, 15%, 1) 0px, transparent 50%),
        linear-gradient(135deg, #001F3F 0%, #003366 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Abstract mesh overlay */
.preview-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.preview-section .section-title, 
.preview-section .section-subtitle {
    color: white;
    position: relative;
    z-index: 2;
}

/* --- DASHBOARD MOCKUPS (LIVELY REALISM) --- */
.dashboard-mockup {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transition: transform 0.5s ease;
    background: transparent; /* Container is transparent */
}

.dashboard-mockup:hover {
    transform: translateY(-5px);
}

.browser-chrome {
    background: #E5E5E5;
    padding: 10px 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d1d1d1;
}

.browser-dots { display: flex; gap: 6px; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot.red { background: #FF5F56; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green { background: #27C93F; }

.browser-url-bar {
    margin-left: 20px;
    flex-grow: 1;
    background: white;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #d1d1d1;
    opacity: 0.6;
}

.mock-ui-container {
    background-color: #f8f9fa; /* Light Gray Background */
    border-radius: 0 0 12px 12px;
    height: 500px; /* Default height */
    display: flex;
    overflow: hidden;
    font-family: 'Inter', sans-serif; /* Ensure clean font */
    font-size: 12px; /* Scale down for mockups */
    color: #333;
}

@media (max-width: 768px) {
    .mock-ui-container {
        height: 400px; /* Reduced height for mobile */
    }
    .mock-sidebar {
        width: 60px; /* Collapsed sidebar on mobile */
        padding: 20px 10px;
    }
    .mock-menu-item span {
        display: none; /* Hide labels */
    }
    .mock-logo-text {
        display: none;
    }
    .mock-logo-icon {
        margin: 0 auto 20px;
    }
}

/* Sidebar Styles */
.mock-sidebar {
    width: 200px;
    background-color: #001F3F; /* Brand Navy */
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.7);
}

/* --- LANDING PAGE GRID OVERRIDES --- */
/* Ensure Bootstrap grid behavior is preserved on landing page against style.css overrides */
.landing-page .row {
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}

.landing-page .row > * {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.landing-page .g-4 {
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}

.landing-page .g-4 > * {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    padding-top: 1.5rem;
}

/* Ensure container isn't too wide on huge screens if style.css forces 1440px */
.landing-page .container {
    max-width: 1320px; /* Bootstrap XXL default */
}

.mock-logo-text {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.mock-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 30px;
}

.mock-nav-item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    cursor: default;
    transition: background 0.2s;
}

.mock-nav-item:hover, .mock-nav-item.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.mock-nav-icon-real {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Main Content Area */
.mock-main {
    flex-grow: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mock-title-real {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

.mock-user-real {
    width: 32px;
    height: 32px;
    background-color: #cbd5e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

/* Cards & Widgets */
.mock-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mock-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.mock-card-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #718096;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.mock-card-value {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Mini Charts */
.mock-mini-chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    margin-top: auto;
}
.mock-mini-chart-bar .bar {
    flex: 1;
    background-color: #4299e1;
    border-radius: 2px 2px 0 0;
    opacity: 0.7;
}

.mock-progress {
    height: 6px;
    background-color: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}

.mock-pill {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

/* Tables & Lists */
.mock-table {
    width: 100%;
    border-collapse: collapse;
}
.mock-table th {
    text-align: left;
    font-size: 10px;
    color: #a0aec0;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}
.mock-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f7fafc;
    font-size: 11px;
    color: #4a5568;
}
.mock-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mock-list-item, .mock-pipeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #edf2f7;
}

/* Variants */
.mock-ui-container.agent .mock-sidebar { background-color: #1a4d2e; } /* Dark Green */
.mock-ui-container.client .mock-sidebar { background-color: #2d3748; }

/* Hide images in mockup since we use CSS now */
.dashboard-mockup img { display: none; }

/* --- ROLES SECTION --- */
.roles-section {
    padding: 100px 0;
    background-color: var(--bg-subtle);
}

.role-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.role-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.role-header {
    padding: 30px;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.role-body {
    padding: 30px;
}

.role-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.role-list i {
    color: var(--success);
    margin-right: 10px;
    margin-top: 4px;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.cta-section .btn-light {
    color: var(--primary);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: var(--radius-full);
}

/* --- FOOTER --- */
.footer {
    background-color: #001226; /* Darker than primary */
    color: var(--text-tertiary);
    padding: 60px 0 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a:hover {
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .step-card::after {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .landing-page .navbar,
    .navbar {
        z-index: 1050;
    }
    .landing-page .navbar .navbar-collapse,
    .navbar .navbar-collapse {
        position: fixed !important;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        background: #fff !important;
        padding: 14px 16px 18px;
        border-top: 1px solid rgba(17, 24, 39, 0.08);
        box-shadow: 0 18px 40px rgba(0,0,0,0.12);
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
        max-height: calc(100vh - var(--header-height, 64px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1049;
    }
    .landing-page .navbar .navbar-collapse.show,
    .landing-page .navbar .navbar-collapse.collapsing,
    .navbar .navbar-collapse.show,
    .navbar .navbar-collapse.collapsing {
        background: #fff !important;
    }
    .landing-page .navbar .navbar-collapse.collapsing,
    .navbar .navbar-collapse.collapsing {
        height: auto !important;
    }
    .landing-page .navbar .navbar-nav,
    .navbar .navbar-nav {
        align-items: stretch !important;
        gap: 6px;
    }
    .landing-page .navbar .nav-link,
    .navbar .nav-link {
        padding: 10px 10px;
        border-radius: 10px;
    }
    .landing-page .navbar .navbar-nav .btn,
    .navbar .navbar-nav .btn {
        width: 100%;
    }
    .landing-page .navbar .dropdown-menu,
    .navbar .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        border: 0;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    .landing-page .navbar .dropdown-item,
    .navbar .dropdown-item {
        padding: 10px 10px;
        border-radius: 10px;
    }
}
