/* =====================================================================
   Landing Page — MidLab
   ===================================================================== */

/* --- Container --- */
html, body {
    overflow-x: hidden;
}

.ln-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Navbar --- */
.ln-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line, #dde4ef);
}

.ln-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.ln-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ln-brand-logo {
    height: 38px;
    width: auto;
}

.ln-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ln-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue, #426ab3);
}

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

.ln-nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--sub, #6b7280);
    text-decoration: none;
    transition: color .2s;
}

.ln-nav-links a:hover {
    color: var(--blue, #426ab3);
}

.ln-nav-links a.active {
    color: var(--blue, #426ab3);
    font-weight: 600;
    position: relative;
}

.ln-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue, #426ab3);
    border-radius: 1px;
}

.ln-btn-login {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue, #426ab3);
    border: 1.5px solid var(--blue, #426ab3);
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}

.ln-btn-login:hover {
    background: var(--blue, #426ab3);
    color: #fff;
}

.ln-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ink, #231f20);
    cursor: pointer;
}

/* --- Hero --- */
.ln-hero {
    position: relative;
    padding: 160px 0 120px;
    background: linear-gradient(135deg, #dce5f5 0%, #d0dff5 30%, #c5d5f0 60%, #b8cce8 100%);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 600px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.ln-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(220, 229, 245, 1) 0%, rgba(220, 229, 245, .97) 20%, rgba(220, 229, 245, .88) 35%, rgba(220, 229, 245, .5) 55%, rgba(220, 229, 245, .15) 75%, transparent 100%);
    z-index: 1;
}

.ln-hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.ln-hero-text {
    flex: 1;
    max-width: 520px;
}

.ln-badge {
    display: inline-block;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--blue, #426ab3);
    border-radius: 6px;
    margin-bottom: 18px;
}

.ln-hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--blue-dark, #345796);
    margin: 0 0 16px;
}

.ln-hero-text p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--sub, #6b7280);
    margin: 0 0 28px;
    max-width: 420px;
}

.ln-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ln-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--blue, #426ab3);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s;
}

.ln-btn-primary:hover {
    background: var(--blue-dark, #345796);
    color: #fff;
}

.ln-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 12px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue, #426ab3);
    text-decoration: none;
    transition: opacity .2s;
}

.ln-btn-ghost:hover {
    opacity: .75;
    color: var(--blue, #426ab3);
}

.ln-hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white, #fff);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 3;
}

/* --- Subtitle --- */
.ln-subtitle {
    padding: 24px 0 0;
    background: var(--white, #fff);
}

.ln-subtitle p {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue, #426ab3);
    letter-spacing: .5px;
    margin: 0;
}

/* --- Features --- */
.ln-features {
    padding: 60px 0 30px;
    background: var(--white, #fff);
    position: relative;
}

.ln-features::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: var(--line, #dde4ef);
}

.ln-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ln-feature-card {
    padding: 24px 22px;
    background: var(--blue-pale, #eaf0fa);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform .2s, box-shadow .2s;
}

.ln-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(66, 106, 179, .12);
}

.ln-feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--blue, #426ab3);
    background: #d6e0f0;
    border-radius: 14px;
}

.ln-feature-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ink, #231f20);
}

.ln-feature-info p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--sub, #6b7280);
    margin: 0;
}

/* --- Stats --- */
.ln-stats {
    padding: 0 0 40px;
    background: var(--white, #fff);
}

.ln-stats-grid {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 880px;
    margin: 0 auto;
}

.ln-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    flex: 1;
    background: transparent;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid var(--line, #dde4ef);
    cursor: default;
}

.ln-stat-card:last-child {
    border-right: none;
}

.ln-stat-card .ln-stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--blue, #426ab3);
    background: #d6e0f0;
    border-radius: 12px;
    flex-shrink: 0;
}

.ln-stat-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
}

.ln-stat-text strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink, #231f20);
    line-height: 1.2;
    white-space: nowrap;
}

.ln-stat-text span {
    font-size: 12px;
    color: var(--sub, #6b7280);
    margin-top: 4px;
    white-space: nowrap;
}

/* --- About --- */
.ln-about {
    padding: 60px 0;
    background-color: var(--white, #fff);
    background-image: url('/img/bottom-wave.svg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
}

.ln-about-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.ln-about-img {
    flex: 0 0 42%;
}

.ln-about-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.ln-about-text {
    flex: 1;
}

.ln-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue, #426ab3);
    margin-bottom: 10px;
}

.ln-about-text h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink, #231f20);
    margin: 0 0 14px;
}

.ln-about-text > p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--sub, #6b7280);
    margin: 0 0 24px;
}

.ln-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue, #426ab3);
    border: 1.5px solid var(--blue, #426ab3);
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
}

.ln-btn-outline:hover {
    background: var(--blue, #426ab3);
    color: #fff;
}

/* --- CTA --- */
.ln-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--blue, #426ab3) 0%, var(--blue-dark, #345796) 100%);
    color: #fff;
}

.ln-cta h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.ln-cta p {
    font-size: 14px;
    opacity: .85;
    margin: 0 0 24px;
}

.ln-btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue, #426ab3);
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.ln-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    color: var(--blue-dark, #345796);
}

/* --- Footer --- */
.ln-footer {
    padding: 20px 0;
    background: var(--ink, #231f20);
}

.ln-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ln-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
}

.ln-footer-brand img {
    opacity: .7;
}

.ln-footer-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
    transition: color .2s;
}

.ln-footer-links a:hover {
    color: #fff;
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 992px) {
    .ln-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .ln-hero-text {
        max-width: 100%;
    }

    .ln-hero-text p {
        max-width: 100%;
    }

    .ln-hero-actions {
        justify-content: center;
    }

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

    .ln-about-inner {
        flex-direction: column;
        text-align: center;
    }

    .ln-about-img {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

    .ln-stats-grid {
        flex-wrap: wrap;
        max-width: 400px;
    }

    .ln-stat-card {
        width: 50%;
        border-right: none;
        border-bottom: 1px solid var(--line, #dde4ef);
        justify-content: center;
    }

    .ln-stat-card:nth-child(odd) {
        border-right: 1px solid var(--line, #dde4ef);
    }

    .ln-stat-card:nth-child(3),
    .ln-stat-card:nth-child(4) {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .ln-nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 12px 24px;
        border-bottom: 1px solid var(--line, #dde4ef);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }

    .ln-nav-links.show {
        display: flex;
    }

    .ln-nav-links a {
        padding: 10px 0;
    }

    .ln-nav-toggle {
        display: block;
    }

    .ln-btn-login {
        display: none;
    }

    .ln-hero {
        padding: 120px 0 70px;
        min-height: auto;
    }

    .ln-hero {
        background-position: center;
    }

    .ln-hero-text h1 {
        font-size: 30px;
    }

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

    .ln-stats-grid {
        max-width: 280px;
    }

    .ln-stat-card {
        width: 100%;
        border-right: none !important;
        border-bottom: 1px solid var(--line, #dde4ef);
    }

    .ln-stat-card:last-child {
        border-bottom: none;
    }

    .ln-footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* =====================================================================
   Animations
   ===================================================================== */

/* Hero entrance */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ln-hero .ln-badge {
    animation: fadeInDown .6s ease-out both;
}

.ln-hero h1 {
    animation: fadeInUp .7s ease-out .1s both;
}

.ln-hero-text p {
    animation: fadeInUp .7s ease-out .2s both;
}

.ln-hero-actions {
    animation: fadeInUp .7s ease-out .3s both;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
