/* ================================================================
   landing.css — Board Book · fikrasmart.com
   Professional multi-section marketing page
   ================================================================ */

/* ── Page Shell ── */
#landing-page {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-app);
    color: var(--text-main);
    z-index: var(--z-landing);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    font-family: 'Outfit', 'Inter', sans-serif;
    scroll-behavior: smooth;
}

#landing-page.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ── Shared Container ── */
.lp-container {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
}

/* ================================================================
   HEADER / NAV
   ================================================================ */
.landing-header {
    width: 100%;
    background: var(--bg-surface-solid);
    border-bottom: 1px solid var(--border-glass);
    height: 72px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: var(--z-floating);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo-domain {
    font-size: 0.65rem;
    font-weight: 600;
    color: #10b981;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav links */
.header-nav {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.header-nav a:hover { color: var(--primary); }

/* Header buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lp-btn-ghost {
    padding: 9px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: transparent;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lp-btn-ghost:hover {
    background: var(--bg-item);
    border-color: var(--primary);
    color: var(--primary);
}

.lp-btn-primary {
    padding: 10px 22px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 24px -6px rgba(99,102,241,0.45);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(99,102,241,0.55);
    background: linear-gradient(135deg, #5558e4, #7c3aed);
}

.lp-btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: 16px;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.lp-hero {
    position: relative;
    padding: 90px 0 100px;
    overflow: hidden;
}

/* Decorative glows */
.lp-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.35;
}

.lp-hero-glow.g1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -200px; left: -100px;
}

.lp-hero-glow.g2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    bottom: -150px; right: -80px;
}

.lp-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Eyebrow pill */
.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 22px;
}

.lp-eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: eyebrowPulse 2s ease-in-out infinite;
}

@keyframes eyebrowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* Hero title */
.lp-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin: 0 0 24px;
}

.lp-gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 520px;
}

/* CTA buttons */
.lp-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* Meta trust badges */
.lp-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lp-hero-meta span {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.lp-hero-meta .fa-check-circle { color: #10b981; }

/* ── Hero Entry Cards (Right) ── */
.lp-hero-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-entry-card {
    background: var(--bg-surface-solid);
    border: 1.5px solid var(--border-glass);
    border-radius: 22px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.lp-entry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.3s;
}

.lp-entry-card.teacher-card::before {
    background: linear-gradient(135deg, rgba(99,102,241,0.06), transparent);
}

.lp-entry-card.student-card::before {
    background: linear-gradient(135deg, rgba(16,185,129,0.06), transparent);
}

.lp-entry-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.lp-entry-card:hover::before { opacity: 1; }

.lp-entry-card.teacher-card:hover { border-color: #6366f1; }
.lp-entry-card.student-card:hover  { border-color: #10b981; }

.lp-entry-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.lp-entry-icon.teacher {
    background: rgba(99,102,241,0.1);
    color: #6366f1;
}

.lp-entry-icon.student {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

.lp-entry-info {
    flex: 1;
    min-width: 0;
}

.lp-entry-info strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.lp-entry-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lp-entry-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.lp-entry-card:hover .lp-entry-arrow { transform: translateX(4px); color: var(--primary); }

/* Divider between entry cards */
.lp-divider-or {
    text-align: center;
    padding: 12px 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    font-style: italic;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.lp-features {
    padding: 90px 0;
    background: var(--bg-surface-solid);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.lp-section-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6366f1;
    margin-bottom: 14px;
}

.lp-section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-main);
    margin: 0 0 14px;
}

.lp-section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 54px;
    line-height: 1.6;
}

/* 3-column feature grid */
.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.lp-feat-card {
    background: var(--bg-item);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
}

.lp-feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: rgba(99,102,241,0.25);
}

.lp-feat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.lp-feat-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.lp-feat-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.lp-about {
    padding: 100px 0;
}

.lp-about-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: center;
}

/* Avatar visual */
.lp-about-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.lp-about-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-avatar-img {
    width: 288px;
    height: 288px;
    display: block;
}

.lp-about-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.lp-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.lp-badge.purple {
    background: rgba(99,102,241,0.1);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,0.2);
}

.lp-badge.green {
    background: rgba(16,185,129,0.1);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.2);
}

.lp-badge.blue {
    background: rgba(14,165,233,0.1);
    color: #38bdf8;
    border: 1px solid rgba(14,165,233,0.2);
}

/* About text */
.lp-about-text .lp-section-label { margin-bottom: 10px; }

.lp-about-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 18px;
}

.lp-about-desc strong {
    color: var(--text-main);
    font-weight: 700;
}

.lp-about-facts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.lp-fact {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
}

.lp-fact i {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(99,102,241,0.08);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

/* ================================================================
   BOTTOM CTA BAR
   ================================================================ */
.lp-cta-bar {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(16,185,129,0.06) 100%);
    border-top: 1px solid rgba(99,102,241,0.12);
    border-bottom: 1px solid rgba(99,102,241,0.12);
}

.lp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.lp-cta-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0 0 8px;
}

.lp-cta-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* ================================================================
   FOOTER
   ================================================================ */
.lp-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-surface-solid);
}

.lp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-footer-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.lp-footer-domain a {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.lp-footer-domain a:hover { text-decoration: underline; }

.lp-footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: right;
}

.lp-footer-copy a {
    color: #6366f1;
    text-decoration: none;
}

.lp-footer-copy a:hover { text-decoration: underline; }

/* ================================================================
   STUDENT JOIN OVERLAY (preserved from original)
   ================================================================ */
.student-entry-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-auth);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.student-entry-overlay.show {
    display: flex;
    opacity: 1;
}

.student-panel-content {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-glass);
    width: 90%; max-width: 440px;
    padding: 48px 40px;
    border-radius: 32px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    transform: scale(0.92) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.student-entry-overlay.show .student-panel-content {
    transform: scale(1) translateY(0);
}

.close-panel {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--bg-item);
    border: 1px solid var(--border-glass);
    width: 38px; height: 38px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-panel:hover { background: #fee2e2; color: #ef4444; }

.student-panel-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.student-panel-content p {
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.55;
    font-size: 0.95rem;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Inputs inside the student panel */
#landing-page .auth-input,
.student-entry-overlay .auth-input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1.5px solid var(--border-glass);
    background: var(--bg-item);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

#landing-page .auth-input:focus,
.student-entry-overlay .auth-input:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--bg-item-hover);
}

#landing-page .auth-input:-webkit-autofill,
.student-entry-overlay .auth-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a;
}

/* Existing landing buttons (for student join form) */
.landing-btn {
    padding: 12px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.landing-btn.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

.landing-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(99,102,241,0.5);
}

.landing-btn.full {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* Student remember me */
.student-remember-me {
    margin-top: 4px;
    justify-content: center;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .lp-eyebrow { justify-content: center; }
    .lp-hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
    .lp-hero-cta { justify-content: center; }
    .lp-hero-meta { justify-content: center; }
    .lp-hero-cards { max-width: 440px; margin: 0 auto; }

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

    .lp-about-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .lp-about-visual { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .lp-about-badges { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .lp-fact { justify-content: center; }

    .lp-cta-inner { flex-direction: column; text-align: center; align-items: center; }
    .lp-footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .lp-footer-copy { text-align: center; }

    .header-nav { display: none; }
}

@media (max-width: 600px) {
    .lp-hero { padding: 60px 0 70px; }
    .lp-hero-title { font-size: 2.2rem; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-hero-cta { flex-direction: column; }
    .lp-btn-lg { width: 100%; justify-content: center; }
    .lp-features, .lp-about { padding: 60px 0; }
    .student-panel-content { padding: 36px 24px; }
    .lp-cta-bar .lp-btn-primary { width: 100%; justify-content: center; }
}