:root {
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --bg-dark: #0d1117;
    --card-bg: #1e1e24;
    /* Adjust based on actual mockup */
    --card-border: rgba(255, 255, 255, 0.05);
}

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

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fixed pseudo-element prevents mobile zoom scaling pixelation and side-clipping */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/bg-landing.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo-full {
    height: 88px;
    /* optimized for the full text logo */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-contact {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.nav-contact:hover {
    opacity: 1;
}

.btn-admin-nav {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.btn-admin-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 60px;
    padding-bottom: 50px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mr-2 {
    margin-right: 10px;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
    min-width: 150px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 150px;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Dashboard Mockup */
.hero-mockup {
    flex: 1.2;
    position: relative;
    perspective: 1000px;
}

.mockup-window {
    background: rgba(18, 20, 28, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 100%;
    /* Optional slight 3D rotate for enterprise feel, but let's keep it flat if design is flat */
}

/* Mockup Header */
.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-logo {
    display: flex;
    align-items: center;
}

.mockup-logo-full {
    height: 16px;
    width: auto;
    opacity: 0.9;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-close {
    background-color: #ff5f56;
}

.dot-min {
    background-color: #ffbd2e;
}

.dot-max {
    background-color: #27c93f;
}

/* Mockup Body and Grid */
.mockup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-grid-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mockup-grid-middle {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.mockup-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Mockup Cards */
.m-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}

/* Optional slight variation as in mockup omitted completely */

.m-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.m-card-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-tiny-badge {
    width: 24px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.m-card-value-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.m-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.m-chart-line-blue,
.m-chart-line-green,
.m-chart-line-red {
    width: 60px;
    height: 30px;
    opacity: 0.8;
}

.mini-chart {
    width: 100%;
    height: 100%;
}

/* Main Chart Area */
.m-main-chart {
    height: 80px;
    position: relative;
    margin-top: 10px;
}

.m-chart-bg-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0.1;
}

.m-bar {
    width: 8%;
    background: #fff;
    border-radius: 2px;
}

.m-bar:nth-child(1) {
    height: 20%;
}

.m-bar:nth-child(2) {
    height: 40%;
}

.m-bar:nth-child(3) {
    height: 30%;
}

.m-bar:nth-child(4) {
    height: 60%;
}

.m-bar:nth-child(5) {
    height: 50%;
}

.m-bar:nth-child(6) {
    height: 80%;
}

.m-bar:nth-child(7) {
    height: 70%;
}

.m-bar:nth-child(8) {
    height: 90%;
}

.large-chart {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.chart-glow {
    filter: drop-shadow(0px 8px 6px rgba(124, 58, 237, 0.4));
}

/* Pulse Metrics Card */
.m-pulse-metrics {
    text-align: center;
    padding: 10px 0;
}

.m-pulse-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.m-pulse-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.m-top-users {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: -10px;
    /* Overlap effect */
}

.m-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #1e1e24;
    overflow: hidden;
    margin-left: -20px;
}

.m-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-user-avatar-plus {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #2a2f3a;
    border: 3px solid #1e1e24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-left: -20px;
}

/* Insights List */
.m-insights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.m-insights-list li {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 10px;
    border-radius: 6px;
}

.m-insight-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 10px;
}

.m-insight-badge {
    margin-left: auto;
    width: 16px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Bar Chart */
.m-bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 65px;
    margin-top: 10px;
    padding-bottom: 15px;
}

.m-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 25px;
    gap: 6px;
}

.m-col-fill {
    width: 12px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.m-col-label {
    font-size: 0.6rem;
    color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        padding-top: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .mockup-window {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .hide-mobile {
        display: none !important;
        /* simple burger or hide for mobile landing */
    }

    .landing-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .mockup-grid-top,
    .mockup-grid-middle,
    .mockup-grid-bottom {
        grid-template-columns: 1fr;
        /* stack cards on mobile */
    }

    .m-card[style*="grid-column"] {
        grid-column: span 1 !important;
    }
}

/* Footer Styling (Dashboard Sync) */
.app-footer {
    width: 100%;
    padding: 20px 0;
    margin-top: 60px;
    border-top: 1px solid var(--card-border);
    background: rgba(13, 17, 23, 0.5); /* Restored transparency */
    backdrop-filter: blur(10px);
    font-size: 13px;
    color: var(--text-secondary) !important;
    position: relative;
    z-index: 10;
}

.app-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.app-footer a:hover {
    color: var(--accent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-muted {
    opacity: 0.6;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.version-label-container {
    font-size: 11px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        justify-content: center;
    }

    .footer-section {
        justify-content: center;
        width: 100%;
    }

    .app-footer {
        padding: 40px 0 30px;
        overflow: visible;
    }
}