/* ============================================
   Landing Page — Modern Courses Platform
   ============================================ */

html {
    scroll-behavior: smooth;
}

body.landing {
    background: var(--color-surface-warm);
    color: var(--color-text);
}

/* --- Fade In Animations --- */
.landing .fade-in-up {
    opacity: 1 !important;
    transform: none !important;
    animation: landingFadeIn 0.7s var(--ease-out) both;
}
@keyframes landingFadeIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
.landing .fade-d1 { animation-delay: 0.08s; }
.landing .fade-d2 { animation-delay: 0.16s; }
.landing .fade-d3 { animation-delay: 0.24s; }
.landing .fade-d4 { animation-delay: 0.32s; }
.landing .fade-d5 { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    .landing .fade-in-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Navbar — Floating Pill
   ============================================ */
.lp-nav {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.3s var(--ease-out);
}
.lp-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(15, 31, 40, 0.92);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 0.4rem 0.75rem;
    box-shadow: 0 8px 32px rgba(15, 31, 40, 0.28), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: all 0.3s var(--ease-out);
}
.lp-nav.scrolled .lp-nav-inner {
    background: rgba(15, 31, 40, 0.97);
    box-shadow: 0 12px 40px rgba(15, 31, 40, 0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.lp-nav-logo {
    display: flex;
    align-items: center;
    padding: 0 1.5rem 0 1.25rem;
    flex-shrink: 0;
}
.lp-nav-logo img {
    height: 22px;
    filter: brightness(0) invert(1);
}
.lp-nav-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 0.75rem;
    flex-shrink: 0;
}
.lp-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
    border: 1px solid transparent;
}
.lp-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}
.lp-nav-cta {
    background: #6A102F;
    color: white !important;
    padding: 0.5rem 1.625rem;
    margin-left: 0.25rem;
    box-shadow: 0 4px 16px rgba(106,16,47,0.25);
}
.lp-nav-cta:hover {
    background: #500C22;
    box-shadow: 0 6px 20px rgba(106,16,47,0.35);
    transform: translateY(-1px);
}

/* --- Language Selector --- */
.lp-lang-selector {
    position: relative;
    margin-left: 0.125rem;
}
.lp-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
}
.lp-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}
.lp-lang-arrow {
    transition: transform 0.2s var(--ease-out);
}
.lp-lang-selector.open .lp-lang-arrow {
    transform: rotate(180deg);
}
.lp-lang-dropdown {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20, 24, 32, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.3rem;
    min-width: 145px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
    flex-direction: column;
}
.lp-lang-selector.open .lp-lang-dropdown {
    display: flex !important;
}
.lp-lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s var(--ease-out);
}
.lp-lang-option span:first-child {
    font-weight: 700;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.3);
    min-width: 20px;
}
.lp-lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}
.lp-lang-option.active {
    background: rgba(30, 68, 89, 0.4);
    color: white;
}
.lp-lang-option.active span:first-child {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Hero
   ============================================ */
.lp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f1f28 0%, #1a3a4a 40%, #1e4459 60%, #152f3a 100%);
    position: relative;
    overflow: hidden;
}
.lp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.lp-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,31,40,0.88) 0%, rgba(106,16,47,0.7) 40%, rgba(60,10,30,0.65) 70%, rgba(15,31,40,0.85) 100%);
}
.lp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(30,68,89,0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 85% 20%, rgba(106,16,47,0.15) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}
.lp-hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}
.lp-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 10rem 1.5rem 6rem;
    width: 100%;
    position: relative;
    z-index: 3;
    text-align: center;
}
.lp-hero-content {
    max-width: 720px;
    margin: 0 auto;
}
.lp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9999px;
    color: rgba(255,255,255,0.8);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}
.lp-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.06;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}
.lp-hero h1 strong {
    font-weight: 700;
    display: block;
    background: linear-gradient(135deg, #fff 0%, #f0c4c8 50%, #e8a0a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.lp-hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 2.75rem;
    line-height: 1.75;
    font-weight: 300;
    max-width: 520px;
}
.lp-hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #6A102F;
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.25s var(--ease-out);
    box-shadow: 0 8px 24px rgba(106,16,47,0.3);
}
.btn-hero-primary:hover {
    background: #500C22;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(106,16,47,0.4);
    color: white;
}
.lp-hero-fade-bottom {
    display: none;
}

/* ============================================
   Section Header
   ============================================ */
.lp-section-hdr {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}
.lp-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: rgba(30,68,89,0.06);
    border: 1px solid rgba(30,68,89,0.1);
    border-radius: 9999px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 1.25rem;
}
.lp-section-hdr h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-teal-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.lp-section-hdr p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ============================================
   Pilares
   ============================================ */
.lp-pilares {
    padding: 5rem 0 6rem;
    position: relative;
}
.lp-pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.lp-pilar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--color-border-subtle);
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: default;
}
.lp-pilar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent, var(--color-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.lp-pilar-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(20, 46, 60, 0.1);
    border-color: transparent;
}
.lp-pilar-card:hover::before {
    transform: scaleX(1);
}
.lp-pilar-ico {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lp-pilar-ico .material-icons-outlined {
    font-size: 24px;
    transition: transform 0.3s var(--ease-out);
}
.lp-pilar-card:hover .lp-pilar-ico .material-icons-outlined {
    transform: scale(1.1);
}
.lp-pilar-content {
    flex: 1;
}
.lp-pilar-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-teal-dark);
    margin-bottom: 0.4rem;
}
.lp-pilar-card p {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ============================================
   Cierre
   ============================================ */
.lp-cierre {
    padding: 0 0 6rem;
}
.lp-cierre-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.lp-cierre-inner {
    background: linear-gradient(135deg, #1a3a4a 0%, #1e4459 40%, #6a102f 100%);
    border-radius: var(--radius-xl);
    padding: 4.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lp-cierre-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.lp-cierre-inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -8%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.lp-cierre-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.lp-cierre-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.btn-cierre {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: white;
    color: var(--color-teal-dark);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.25s var(--ease-out);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-cierre:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: var(--color-teal-dark);
}

/* ============================================
   Footer
   ============================================ */
.lp-footer {
    background: linear-gradient(180deg, #142e3c 0%, #10232d 100%);
    padding: 3rem 0 2rem;
}
.lp-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.lp-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.75rem;
}
.lp-footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}
.lp-footer-tag {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}
.lp-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.lp-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.lp-footer-contact-item .material-icons-outlined {
    font-size: 16px;
    color: var(--color-coral-light);
}
.lp-footer-links {
    display: flex;
    gap: 2rem;
}
.lp-footer-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}
.lp-footer-links a:hover {
    color: var(--color-coral-light);
}
.lp-footer-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
}
.lp-footer-dev {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .lp-hero-inner {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .lp-nav {
        top: 0.75rem;
    }
    .lp-nav-inner {
        padding: 0.3rem 0.35rem;
    }
    .lp-nav-logo {
        padding: 0 0.875rem;
    }
    .lp-nav-link {
        padding: 0.4rem 0.875rem;
        font-size: 0.72rem;
    }
    .lp-nav-cta {
        padding: 0.4rem 1rem;
    }
    .lp-hero-inner {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    .lp-hero h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }
    .lp-hero-sub {
        font-size: 0.95rem;
    }
    .lp-hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .lp-hero-btns a {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .lp-pilares {
        padding: 3rem 0 4rem;
    }
    .lp-pilares-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 420px;
    }
    .lp-pilar-card {
        padding: 1.25rem;
    }
    .lp-section-hdr {
        margin-bottom: 2.5rem;
    }
    .lp-cierre {
        padding: 0 0 4rem;
    }
    .lp-cierre-inner {
        padding: 3rem 1.5rem;
    }
    .lp-footer-top {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .lp-footer-contact {
        align-items: center;
    }
    .lp-footer-links {
        justify-content: center;
    }
    .lp-footer-bot {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lp-nav-inner {
        gap: 0;
    }
    .lp-nav-divider {
        display: none;
    }
    .lp-nav-logo {
        padding: 0 0.625rem;
    }
    .lp-nav-link {
        padding: 0.35rem 0.625rem;
        font-size: 0.68rem;
    }
    .lp-hero-inner {
        padding: 5rem 1rem 2.5rem;
    }
    .lp-hero-badge {
        font-size: 0.65rem;
        padding: 0.35rem 0.75rem;
    }
    .lp-hero h1 {
        font-size: 1.75rem;
    }
    .lp-hero-sub {
        font-size: 0.88rem;
        margin-bottom: 2rem;
    }
    .lp-pill-badge {
        font-size: 0.62rem;
    }
    .lp-section-hdr h2 {
        font-size: 1.5rem;
    }
    .lp-section-hdr p {
        font-size: 0.9rem;
    }
    .lp-cierre-title {
        font-size: 1.35rem;
    }
    .lp-footer {
        padding: 2rem 0 1.5rem;
    }
}
