/* =============================================================
   PUBLIC LANDING PAGE — CSS
   /public/css/public/landing.css
   ============================================================= */

:root {
    --primary: #1a56db;
    --primary-dark: #1342a8;
    --primary-light: #e8f0fe;
    --accent: #0ea5e9;
    --accent2: #06b6d4;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg: #f8faff;
    --white: #ffffff;
    --radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 20px rgba(26,86,219,.1);
    --shadow-lg: 0 20px 60px rgba(26,86,219,.15);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* ─── NAVBAR ─────────────────────────────────────────── */
.lp-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26,86,219,.08);
    transition: box-shadow .3s;
}
.lp-navbar.scrolled {
    box-shadow: 0 2px 24px rgba(26,86,219,.12);
}
.lp-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
}
.lp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.lp-logo-img {
    height: 38px;
    width: auto;
}
.lp-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.lp-logo-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
}
.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.lp-nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    transition: background .2s, color .2s;
}
.lp-nav-link:hover, .lp-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* Login button group */
.lp-login-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border: 1.5px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.lp-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 9px 18px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.lp-login-btn:hover {
    background: var(--primary);
    color: var(--white);
}
.lp-login-divider {
    width: 1.5px;
    height: 32px;
    background: rgba(26,86,219,.2);
    flex-shrink: 0;
}
.lp-login-btn.admin-btn i { color: #f59e0b; }
.lp-login-btn.lab-btn i { color: #10b981; }
.lp-login-btn.admin-btn:hover i, .lp-login-btn.lab-btn:hover i { color: var(--white); }

/* Mobile hamburger */
.lp-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
}
.lp-hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all .3s;
}

/* ─── HERO ─────────────────────────────────────────────── */
.lp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 68px;
}
.lp-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f9ff 40%, #ecfdf5 100%);
    z-index: 0;
}
.lp-hero-blob1, .lp-hero-blob2, .lp-hero-blob3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    animation: blobFloat 8s ease-in-out infinite alternate;
}
.lp-hero-blob1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #bdd3fe, #93c5fd);
    top: -100px; right: -100px;
}
.lp-hero-blob2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, #a7f3d0, #6ee7b7);
    bottom: -80px; left: 10%;
    animation-delay: 3s;
}
.lp-hero-blob3 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, #fde68a, #fbbf24);
    top: 30%; left: 40%;
    opacity: .2;
    animation-delay: 5s;
}
@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.07); }
}
.lp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,86,219,.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(26,86,219,.15);
}
.lp-hero-badge i { font-size: 0.9rem; }
.lp-hero-title {
    font-size: clamp(1.4remrem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.lp-hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}
.lp-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26,86,219,.3);
    transition: transform .2s, box-shadow .2s;
}
.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26,86,219,.4);
    color: var(--white);
}
.btn-outline-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid var(--primary);
    cursor: pointer;
    transition: transform .2s, background .2s, color .2s;
}
.btn-outline-lg:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero illustration / visual */
.lp-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.lp-hero-card-stack {
    position: relative;
    width: 420px;
    height: 380px;
}
.lp-stat-card {
    position: absolute;
    background: var(--white);
    border-radius: 18px;
    padding: 22px 26px;
    box-shadow: var(--shadow-lg);
    animation: cardFloat 6s ease-in-out infinite alternate;
}
.lp-stat-card:nth-child(1) {
    top: 0; left: 0; right: 0;
    animation-delay: 0s;
    z-index: 3;
}
.lp-stat-card:nth-child(2) {
    top: 190px; right: 0;
    width: 200px;
    animation-delay: 2s;
    z-index: 4;
}
.lp-stat-card:nth-child(3) {
    top: 210px; left: 0;
    width: 210px;
    animation-delay: 4s;
    z-index: 2;
}
@keyframes cardFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}
.lp-stat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.lp-stat-icon.blue { background: #dbeafe; color: var(--primary); }
.lp-stat-icon.green { background: #d1fae5; color: #059669; }
.lp-stat-icon.orange { background: #fef3c7; color: #d97706; }
.lp-stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.lp-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); }
.lp-stat-value small { font-size: 0.75rem; font-weight: 500; color: #10b981; }
.lp-stat-row {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}
.lp-stat-mini {
    flex: 1;
    background: var(--bg);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.lp-stat-mini-val { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.lp-stat-mini-lbl { font-size: 0.7rem; color: var(--text-muted); }

/* ─── SERVICES ─────────────────────────────────────────── */
.lp-section {
    padding: 100px 28px;
}
.lp-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.lp-section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.lp-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}
.lp-section-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 50px;
}
.lp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lp-service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,86,219,.07);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.lp-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26,86,219,.15);
}
.lp-service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.lp-service-icon.blue { background: #dbeafe; color: var(--primary); }
.lp-service-icon.green { background: #d1fae5; color: #059669; }
.lp-service-icon.teal { background: #cffafe; color: #0891b2; }
.lp-service-icon.purple { background: #ede9fe; color: #7c3aed; }
.lp-service-icon.orange { background: #fef3c7; color: #d97706; }
.lp-service-icon.rose { background: #ffe4e6; color: #e11d48; }
.lp-service-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.lp-service-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── HOW IT WORKS ──────────────────────────────────────── */
.lp-steps {
    background: linear-gradient(135deg, #1a56db 0%, #1342a8 100%);
    color: var(--white);
}
.lp-steps .lp-section-tag { background: rgba(255,255,255,.15); color: var(--white); }
.lp-steps .lp-section-title { color: var(--white); }
.lp-steps .lp-section-desc { color: rgba(255,255,255,.75); }
.lp-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
}
.lp-steps-grid::before {
    content: '';
    position: absolute;
    top: 32px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
    height: 2px;
    background: rgba(255,255,255,.2);
    z-index: 0;
}
.lp-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.lp-step-num {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 20px;
    backdrop-filter: blur(8px);
    transition: background .3s;
}
.lp-step:hover .lp-step-num {
    background: rgba(255,255,255,.28);
}
.lp-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.lp-step-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,.7);
    line-height: 1.6;
}

/* ─── CTA SECTION ────────────────────────────────────────── */
.lp-cta {
    background: var(--white);
}
.lp-cta-box {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f9ff 100%);
    border-radius: 24px;
    padding: 64px 48px;
    text-align: center;
    border: 1px solid rgba(26,86,219,.1);
    position: relative;
    overflow: hidden;
}
.lp-cta-box::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,86,219,.12), transparent);
}
.lp-cta-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}
.lp-cta-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.lp-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.lp-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,.6);
    padding: 40px 28px;
    text-align: center;
}
.lp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.lp-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lp-footer-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .7; }
.lp-footer-logo span { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,.8); }
.lp-footer-copy { font-size: 0.82rem; }

/* ─── MOBILE MENU ─────────────────────────────────────────── */
.lp-mobile-menu {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(26,86,219,.1);
    padding: 20px 28px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    flex-direction: column;
    gap: 10px;
}
.lp-mobile-menu.open { display: flex; }
.lp-mobile-menu .lp-nav-link { width: 100%; }
.lp-mobile-login-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(26,86,219,.08);
    margin-top: 4px;
}
.lp-mobile-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.lp-mobile-login-btn.admin {
    background: #eff6ff;
    color: #1a56db;
    border: 1.5px solid #dbeafe;
}
.lp-mobile-login-btn.admin:hover { background: #dbeafe; }
.lp-mobile-login-btn.lab {
    background: #f0fdf4;
    color: #059669;
    border: 1.5px solid #d1fae5;
}
.lp-mobile-login-btn.lab:hover { background: #d1fae5; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .lp-hero-content { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px; }
    .lp-hero-visual { display: none; }
    .lp-services-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-steps-grid::before { display: none; }
}
@media (max-width: 767px) {
    .lp-nav-desktop { display: none; }
    .lp-hamburger { display: flex; }
    .lp-services-grid { grid-template-columns: 1fr; }
    .lp-steps-grid { grid-template-columns: 1fr; }
    .lp-cta-box { padding: 40px 24px; }
    .lp-section { padding: 70px 20px; }
}
