/* Public landing page — scoped to .landing-page */
.landing-page {
    --primary-navy: #1e1b4b;
    --primary-indigo: #4f46e5;
    --secondary-turquoise: #0d9488;
    --accent-orange: #f59e0b;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

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

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page h4,
.landing-page h5,
.landing-page h6 {
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.02em;
}

.landing-page .text-indigo { color: var(--primary-indigo) !important; }
.landing-page .text-turquoise { color: var(--secondary-turquoise) !important; }
.landing-page .text-orange { color: var(--accent-orange) !important; }

.landing-page .navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background: transparent;
}

.landing-page .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.landing-page .navbar-brand {
    font-weight: 800;
    color: var(--primary-navy) !important;
    font-size: 1.5rem;
}

.landing-page .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.landing-page .nav-link:hover {
    color: var(--primary-indigo) !important;
}

.landing-page .btn-custom-primary {
    background-color: var(--primary-indigo);
    color: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

.landing-page .btn-custom-primary:hover {
    background-color: #4338ca;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.landing-page .btn-custom-outline {
    background-color: white;
    color: var(--primary-navy);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.landing-page .btn-custom-outline:hover {
    border-color: var(--primary-indigo);
    color: var(--primary-indigo);
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.landing-page .landing-dropdown {
    border-radius: 1rem;
    padding: 0.5rem;
}

.landing-page .landing-hero {
    padding: 160px 0 100px;
    position: relative;
}

.landing-page .hero-blob {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(13, 148, 136, 0.1));
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.landing-page .mockup-wrapper {
    position: relative;
    z-index: 1;
}

.landing-page .dashboard-base {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    position: relative;
}

.landing-page .dash-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.landing-page .dash-dot { width: 12px; height: 12px; border-radius: 50%; }
.landing-page .dash-dot.r { background: #ef4444; }
.landing-page .dash-dot.y { background: #eab308; }
.landing-page .dash-dot.g { background: #22c55e; }

.landing-page .dash-body {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.landing-page .dash-sidebar {
    width: 30%;
    background: #f8fafc;
    border-radius: 1rem;
}

.landing-page .dash-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.landing-page .dash-card-skeleton {
    background: #f1f5f9;
    border-radius: 1rem;
    flex: 1;
}

.landing-page .float-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    animation: landing-float 6s ease-in-out infinite;
}

.landing-page .float-1 { top: 10%; right: -10%; animation-delay: 0s; border-left: 4px solid #ef4444; }
.landing-page .float-2 { bottom: 20%; left: -10%; animation-delay: 2s; border-left: 4px solid var(--secondary-turquoise); }
.landing-page .float-3 { bottom: -5%; right: 10%; animation-delay: 4s; border-left: 4px solid var(--primary-indigo); }
.landing-page .float-4 { top: -5%; left: 15%; animation-delay: 1s; border-left: 4px solid var(--accent-orange); }

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

.landing-page .pulse-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: landing-pulse 2s infinite;
}

@keyframes landing-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.landing-page .custom-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
    height: 100%;
}

.landing-page .custom-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: #e0e7ff;
}

.landing-page .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.landing-page .role-admin .icon-box { background: #fee2e2; color: #ef4444; }
.landing-page .role-teacher .icon-box { background: #e0e7ff; color: var(--primary-indigo); }
.landing-page .role-student .icon-box { background: #ccfbf1; color: var(--secondary-turquoise); }
.landing-page .role-parent .icon-box { background: #fef3c7; color: var(--accent-orange); }

.landing-page .ecosystem-section {
    background-color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.landing-page .eco-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
}

.landing-page .eco-node {
    width: 220px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.landing-page .eco-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.landing-page .eco-node:hover .eco-circle {
    transform: scale(1.1);
    border-color: var(--primary-indigo);
}

.landing-page .live-lesson-card {
    background: linear-gradient(145deg, #1e1b4b, #312e81);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.landing-page .live-lesson-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.landing-page .landing-table {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.landing-page .landing-table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

.landing-page .landing-table td {
    vertical-align: middle;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.landing-page .custom-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.landing-page .badge-success { background: #dcfce7; color: #166534; }
.landing-page .badge-danger { background: #fee2e2; color: #991b1b; }
.landing-page .badge-warning { background: #fef3c7; color: #92400e; }
.landing-page .badge-light-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.landing-page .cta-section {
    background: linear-gradient(135deg, var(--secondary-turquoise), #115e59);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    color: white;
    text-align: center;
}

.landing-page .landing-footer {
    background-color: white;
    border-top: 1px solid #f1f5f9;
    padding: 4rem 0 2rem;
}

.landing-page .footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.landing-page .footer-link:hover {
    color: var(--primary-indigo);
}

.landing-page .btn-student {
    background-color: var(--secondary-turquoise);
    color: white;
    border: none;
}

.landing-page .btn-student:hover {
    background-color: #0f766e;
    color: white;
}

@media (max-width: 991.98px) {
    .landing-page .landing-hero {
        padding: 130px 0 70px;
    }

    .landing-page .float-card {
        display: none;
    }

    .landing-page .hero-blob {
        width: 320px;
        height: 320px;
    }
}
