/* ══════════════════════════════════════════════════
   MANAGEMAX LANDING — STRIPE-INSPIRED REDESIGN
   Style: Professional, Modern, Classic, Creative
   ══════════════════════════════════════════════════ */

:root {
    --lnd-primary: #0057ff; /* Brand Blue */
    --lnd-primary-hover: #02a7e6;
    --lnd-text-main: #1e293b;
    --lnd-text-muted: #64748b;
    --lnd-bg: #ffffff;
    --lnd-card-bg: rgba(255, 255, 255, 0.7);
    --lnd-border: rgba(0, 0, 0, 0.08);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

html[data-theme="dark"] {
    --lnd-primary: #3b82f6;
    --lnd-primary-hover: #0057ff;
    --lnd-text-main: #f8fafc;
    --lnd-text-muted: #94a3b8;
    --lnd-bg: #0f172a;
    --lnd-card-bg: rgba(30, 41, 59, 0.7);
    --lnd-border: rgba(255, 255, 255, 0.08);
}

.landing {
    background-color: transparent;
    color: var(--lnd-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

/* ── Mesh Gradient Background ────────────────────────── */
.mesh-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    background: var(--lnd-bg);
}

.mesh-gradient-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 87, 255, 0.25) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
                      radial-gradient(circle at 50% 80%, rgba(244, 63, 94, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 10% 70%, rgba(2, 167, 230, 0.2) 0%, transparent 50%);
    filter: blur(80px);
    animation: meshRotate 30s linear infinite;
}

@keyframes meshRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Navbar ────────────────────────────────────────── */
.lnd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: max(1.25rem, env(safe-area-inset-top, 1.25rem)) 0 1.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.lnd-header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: max(0.75rem, env(safe-area-inset-top, 0.75rem)) 0 0.75rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

html[data-theme="dark"] .lnd-header.scrolled {
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.mobile-logo { display: none !important; }
.desktop-logo { display: block !important; }

.lnd-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lnd-logo {
    flex-shrink: 0;
}

.lnd-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.lnd-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .lnd-nav-links { display: none; }
}

.lnd-nav-link {
    color: var(--lnd-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.lnd-nav-link:hover {
    color: var(--lnd-primary);
}

.lnd-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ── Hero Section ──────────────────────────────────── */
.lnd-hero {
    padding: 10rem 1.5rem 6rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-tag {
    display: inline-block;
    background: rgba(0, 87, 255, 0.1);
    color: var(--lnd-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 87, 255, 0.2);
}

.lnd-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--lnd-text-main);
}

.lnd-hero-title span {
    background: linear-gradient(135deg, var(--lnd-primary) 0%, var(--lnd-primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lnd-hero-subtitle {
    font-size: 1.25rem;
    color: var(--lnd-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.lnd-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
}

@media (max-width: 480px) {
    .lnd-cta-group { flex-direction: column; padding: 0 1rem; }
}

/* ── Actual Dashboard Mockup ────────────────────────── */
.dashboard-mockup-container {
    perspective: 1200px;
    margin-top: 2rem;
}

.browser-frame {
    background: var(--lnd-bg);
    border: 1px solid var(--lnd-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15),
                0 30px 60px -30px rgba(0, 0, 0, 0.2);
    transform: rotateX(2deg) scale(0.98);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 1100px;
    margin: 0 auto;
}

.browser-frame:hover {
    transform: rotateX(0deg) scale(1);
}

.browser-top {
    height: 40px;
    background: rgba(0,0,0,0.03);
    border-bottom: 1px solid var(--lnd-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

html[data-theme="dark"] .browser-top {
    background: rgba(255,255,255,0.03);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.mock-layout {
    display: flex;
    height: 500px;
    text-align: left;
}

.mock-sidebar {
    width: 220px;
    background: var(--bg-secondary, #f1f5f9);
    border-right: 1px solid var(--lnd-border);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

html[data-theme="dark"] .mock-sidebar {
    background: #0f172a;
}

.mock-sidebar-logo {
    padding: 0 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--lnd-border);
}

.mock-sidebar-logo img {
    height: 24px;
}

.mock-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--lnd-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.mock-sidebar-link i {
    font-size: 0.9rem;
}

.mock-sidebar-link.active {
    background: rgba(0, 87, 255, 0.1);
    color: var(--lnd-primary);
}

.mock-sidebar-voice {
    margin-top: auto;
    background: rgba(0, 87, 255, 0.05);
    border: 1px solid rgba(0, 87, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mock-sv-icon {
    width: 32px;
    height: 32px;
    background: var(--lnd-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.mock-sv-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mock-sv-title { font-size: 0.75rem; font-weight: 700; color: var(--lnd-text-main); }
.mock-sv-sub { font-size: 0.6rem; color: var(--lnd-text-muted); }

.mock-main {
    flex: 1;
    background: var(--lnd-bg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.mock-navbar {
    height: 48px;
    border-bottom: 1px solid var(--lnd-border);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-nav-left {
    font-weight: 700;
    font-size: 1rem;
}

.mock-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mock-nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--lnd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--lnd-text-muted);
}

.mock-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mock-stat-card {
    background: var(--lnd-card-bg);
    border: 1px solid var(--lnd-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
}

.mock-stat-val { font-size: 1.1rem; font-weight: 800; display: block; margin-bottom: 0.25rem; }
.mock-stat-key { font-size: 0.65rem; font-weight: 600; color: var(--lnd-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mock-trend { font-size: 0.6rem; font-weight: 700; margin-top: 0.5rem; display: flex; align-items: center; gap: 2px; }
.mock-trend.up { color: #10b981; }
.mock-trend.down { color: #ef4444; }

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex: 1;
}

.mock-card {
    background: var(--lnd-card-bg);
    border: 1px solid var(--lnd-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.mock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mock-card-title { font-size: 0.85rem; font-weight: 700; }
.mock-card-badge { font-size: 0.65rem; color: var(--lnd-text-muted); }

.mock-chart-container {
    flex: 1;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.mock-chart-bar {
    flex: 1;
    background: var(--lnd-primary);
    opacity: 0.15;
    border-radius: 4px 4px 0 0;
}

.mock-chart-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ── Content Sections ──────────────────────────────── */
.lnd-section {
    padding: 100px 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .section-grid { grid-template-columns: 1fr; text-align: center; }
}

.feature-tag {
    color: var(--lnd-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

.lnd-section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.lnd-section-desc {
    color: var(--lnd-text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ── Bento Grid ────────────────────────────────────── */
.bento-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 900px) {
    .bento-features { grid-template-columns: 1fr; }
}

.bento-item {
    background: var(--lnd-card-bg);
    border: 1px solid var(--lnd-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bento-item:hover {
    transform: translateY(-10px);
    border-color: var(--lnd-primary);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.1),
                0 18px 36px -18px rgba(0, 0, 0, 0.1);
}

.ai-feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    text-align: left;
}

.ai-feature-icon {
    color: var(--lnd-primary);
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.ai-feature-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--lnd-text-main);
}

.ai-feature-content p {
    font-size: 0.95rem;
    color: var(--lnd-text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .ai-feature-item {
        max-width: 400px;
        margin: 0 auto;
    }
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 87, 255, 0.1);
    color: var(--lnd-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* ── Footer ────────────────────────────────────────── */
.lnd-footer {
    border-top: 1px solid var(--lnd-border);
    padding: 5rem 1.5rem;
    background: var(--lnd-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: var(--lnd-text-muted); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--lnd-primary); }

/* ── Buttons ───────────────────────────────────────── */
.lnd-btn {
    padding: 0.8rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.lnd-btn-primary {
    background: var(--lnd-primary);
    color: white;
    border: none;
}

.lnd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--lnd-primary);
}

.lnd-btn-secondary {
    background: transparent;
    color: var(--lnd-text-main);
    border: 1px solid var(--lnd-border);
}

.lnd-btn-secondary:hover {
    background: rgba(0,0,0,0.03);
    border-color: var(--lnd-text-main);
}

html[data-theme="dark"] .lnd-btn-secondary:hover {
    background: rgba(255,255,255,0.03);
}

.lnd-btn-white {
    background-color: white !important;
    color: var(--lnd-primary) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lnd-btn-white:hover {
    background-color: #f8fafc !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.lnd-btn-outline-white {
    border: 1px solid rgba(255,255,255,0.6) !important;
    color: white !important;
    background-color: transparent !important;
}

.lnd-btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1) !important;
    border-color: white !important;
    transform: translateY(-2px);
}

/* ── Responsive Design ────────────────────────────── */

@media (max-width: 1024px) {
    .lnd-hero {
        padding: 8rem 1.5rem 4rem;
    }

    .lnd-hero-title {
        font-size: 3.5rem;
    }

    .section-grid {
        gap: 2rem;
    }

    .bento-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lnd-nav-links { display: none; }
    
    .desktop-logo { display: none !important; }
    .mobile-logo { display: block !important; }

    .lnd-hero {
        padding: 9rem 1rem 3rem;
    }

    .dashboard-mockup-container {
        padding: 0 1rem;
        margin-top: 2rem;
    }

    .lnd-hero-title {
        font-size: 2.75rem;
    }

    .lnd-hero-subtitle {
        font-size: 1.1rem;
    }

    .lnd-cta-group {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .lnd-btn {
        width: 100%;
        justify-content: center;
    }

    /* Creative Mobile Mockup Adjustment */
    .mock-sidebar {
        display: none !important;
    }

    .mock-layout {
        height: auto;
        flex-direction: column;
    }

    .mock-main {
        padding: 0.75rem;
        min-height: 300px;
    }

    .mock-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .mock-stat-card {
        padding: 0.75rem;
    }

    .mock-stat-val {
        font-size: 0.9rem;
    }

    .mock-grid {
        grid-template-columns: 1fr;
    }

    .mock-nav-left {
        font-size: 0.9rem;
    }

    .mock-chart-container {
        min-height: 160px;
    }

    /* Stack features */
    .section-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bento-features {
        grid-template-columns: 1fr;
    }

    .lnd-section {
        padding: 60px 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lnd-header {
        padding: max(0.6rem, env(safe-area-inset-top, 0.6rem)) 0 0.6rem;
    }

    .lnd-logo img {
        height: 42px;
        width: auto;
    }

    .lnd-actions {
        gap: 0.35rem;
    }

    .lnd-nav {
        padding: 0 0.5rem;
    }

    .lnd-btn.btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .lnd-nav-link {
        font-size: 0.8rem;
    }
    
    .lang-btn {
        padding: 0.25rem 0.4rem;
        min-width: 28px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .lnd-hero-title {
        font-size: 2.25rem;
    }

    .lnd-section-title {
        font-size: 1.75rem;
    }
}

.mock-line {
    height: 8px;
    background: var(--lnd-text-muted);
    border-radius: 4px;
    margin-bottom: 1rem;
    opacity: 0.2;
}

/* ── RTL Adjustments ──────────────────────────────── */
[dir="rtl"] .lnd-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

[dir="rtl"] .mock-layout {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .mock-sidebar {
    border-right: none;
    border-left: 1px solid var(--lnd-border);
}

[dir="rtl"] .mock-sv-text {
    text-align: right;
}

[dir="rtl"] .mock-stat-card {
    text-align: right;
}

[dir="rtl"] .mock-card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .browser-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .mock-trend {
    flex-direction: row-reverse; /* Put Icon(Left) Number(Right) */
    justify-content: flex-end; /* Align to the right side of the card */
}

[dir="rtl"] .mock-trend i {
    transform: scaleX(-1); /* Flip the diagonal arrow for RTL */
    margin-right: 4px;
    margin-left: 0;
}

[dir="rtl"] .mock-chart-container {
    flex-direction: row;
}

[dir="rtl"] .mock-chart-line-svg {
    transform: scaleX(-1); /* Mirror the graph line */
}

[dir="rtl"] .ai-feature-item {
    text-align: right;
}

[dir="rtl"] .ai-feature-icon {
    order: 2;
}

[dir="rtl"] .bento-item {
    text-align: right;
}

[dir="rtl"] .lnd-logo {
    margin-left: 0;
}

@media (max-width: 768px) {
    [dir="rtl"] .mock-stat-card {
        text-align: right;
    }
}
