/* Public homepage landing — visual fit matches the student course overview hero. */

.landing-page-body {
    position: relative;
}

.landing-nav {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 40;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.landing-nav a {
    color: rgb(255 255 255 / 0.95);
}

.landing-nav a:hover {
    color: #fff;
}

.landing-nav .bg-primary\/10,
.landing-nav [class*="bg-primary/10"] {
    background: rgb(255 255 255 / 0.14);
    color: #fff;
}

.landing-nav a svg {
    color: inherit;
}

.landing-nav #navToggleBtn {
    border-color: rgb(255 255 255 / 0.28);
    color: rgb(255 255 255 / 0.92);
    background: transparent;
}

.landing-nav #navToggleBtn:hover {
    background: rgb(255 255 255 / 0.1);
    color: #fff;
}

.landing-nav .language-switcher-trigger {
    border-color: rgb(255 255 255 / 0.22);
    background: transparent;
    color: rgb(255 255 255 / 0.92);
    box-shadow: none;
}

.landing-nav .language-switcher-trigger:hover,
.landing-nav .language-switcher-dropdown[open] .language-switcher-trigger {
    background: rgb(255 255 255 / 0.1);
    border-color: rgb(255 255 255 / 0.38);
    color: #fff;
}

.landing-nav .language-switcher-trigger-label,
.landing-nav .language-switcher-chevron {
    color: rgb(255 255 255 / 0.82);
}

.landing-nav .user-avatar {
    border-color: rgb(255 255 255 / 0.32);
    background: rgb(255 255 255 / 0.14);
    color: #fff;
}

.landing-nav .user-avatar--guest {
    color: rgb(255 255 255 / 0.9);
}

.landing-nav #lms-public-theme button {
    color: rgb(255 255 255 / 0.9);
    background: transparent;
}

.landing-nav #lms-public-theme button:hover {
    background: rgb(255 255 255 / 0.1);
    color: #fff;
}

.landing-nav #navMenuMobile {
    border-top: 1px solid rgb(255 255 255 / 0.12);
}

.landing-nav #navMenuMobile.flex {
    background: hsl(228 50% 8% / 0.42);
    backdrop-filter: blur(16px);
    margin-inline: -1rem;
    padding-inline: 1rem;
    padding-top: 0.75rem;
}

.landing-page {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow-x: clip;
}

.landing-hero {
    position: relative;
    display: flex;
    min-height: min(58vh, 30rem);
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
}

.landing-hero-media {
    position: absolute;
    inset: 0;
}

.landing-hero-fallback {
    height: 100%;
    width: 100%;
    background:
        linear-gradient(
            128deg,
            hsl(228 58% 14%) 0%,
            hsl(238 62% 26%) 30%,
            hsl(272 68% 42%) 62%,
            hsl(24 92% 58%) 100%
        );
}

.landing-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, hsl(228 50% 8% / 0.42) 0%, transparent 28%),
        linear-gradient(
            105deg,
            hsl(228 50% 8% / 0.92) 0%,
            hsl(245 55% 22% / 0.74) 22%,
            hsl(275 62% 38% / 0.36) 44%,
            hsl(24 90% 52% / 0.16) 62%,
            transparent 78%
        ),
        linear-gradient(180deg, transparent 0%, transparent 55%, hsl(228 50% 8% / 0.38) 100%);
}

@media (max-width: 640px) {
    .landing-hero {
        min-height: min(62vh, 28rem);
    }

    .landing-hero-scrim {
        background:
            linear-gradient(
                180deg,
                hsl(228 50% 8% / 0.38) 0%,
                hsl(265 58% 28% / 0.64) 34%,
                hsl(228 50% 8% / 0.9) 100%
            ),
            linear-gradient(
                105deg,
                hsl(245 58% 32% / 0.48) 0%,
                hsl(24 90% 52% / 0.2) 48%,
                transparent 80%
            );
    }
}

.landing-hero-body {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1rem 3.5rem;
}

@media (min-width: 640px) {
    .landing-hero-body {
        padding: 2.5rem 1.5rem 4.25rem;
    }
}

@media (min-width: 1024px) {
    .landing-hero-body {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.landing-hero-copy {
    display: flex;
    max-width: 36rem;
    flex-direction: column;
    animation: landing-hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes landing-hero-in {
    from {
        opacity: 0;
        transform: translate3d(0, 0.85rem, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.landing-hero-eyebrow {
    display: inline-block;
    margin: 0 0 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.8);
}

.landing-hero-title {
    margin: 0 0 1.5rem;
    max-width: 16ch;
    font-size: clamp(1.9rem, 4.4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: balance;
    color: #fff;
}

.landing-hero-lead {
    margin: 0 0 2.5rem;
    max-width: 32rem;
    font-size: clamp(0.95rem, 1.45vw, 1.1rem);
    font-weight: 500;
    line-height: 1.625;
    color: rgb(255 255 255 / 0.85);
}

.landing-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 640px) {
    .landing-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}

.landing-hero-cta {
    min-width: 11rem;
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    box-shadow: 0 10px 28px hsl(var(--primary) / 0.35);
}

.landing-hero-ghost {
    display: inline-flex;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgb(255 255 255 / 0.25);
    background: transparent;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(255 255 255 / 0.9);
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.landing-hero-ghost:hover {
    border-color: rgb(255 255 255 / 0.4);
    background: rgb(255 255 255 / 0.1);
    color: #fff;
}

.landing-body {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 72rem;
    margin: -1.5rem auto 0;
    flex-direction: column;
    gap: 4rem;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .landing-body {
        margin-top: -2rem;
        gap: 5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .landing-body {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.landing-section-head {
    margin-bottom: 1.25rem;
}

.landing-section-kicker {
    margin: 0 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--primary));
}

.landing-section-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
}

.landing-section-lead {
    margin: 0.5rem 0 0;
    max-width: 36rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.625;
    color: hsl(var(--muted-foreground));
}

.landing-facts {
    position: relative;
    z-index: 2;
}

.landing-facts-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-radius: 0.9rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    box-shadow: 0 12px 40px hsl(222 40% 20% / 0.06);
}

.landing-fact {
    min-width: 7.5rem;
    flex: 1 1 0;
    border-color: hsl(var(--border));
    padding: 0.875rem 1.25rem;
    border-right-width: 1px;
    border-right-style: solid;
}

.landing-fact:last-child {
    border-right-width: 0;
}

@media (max-width: 720px) {
    .landing-fact {
        flex-basis: 42%;
        border-right-width: 0;
        border-bottom-width: 1px;
        border-bottom-style: solid;
    }

    .landing-facts-inner .landing-fact:nth-child(odd) {
        border-right-width: 1px;
        border-right-style: solid;
    }

    .landing-fact:nth-last-child(-n+2) {
        border-bottom-width: 0;
    }
}

.landing-fact-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: hsl(var(--foreground));
}

.landing-fact-label {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}

.landing-about-text {
    margin: 0;
    max-width: 42rem;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.625;
    color: hsl(var(--foreground) / 0.8);
}

.landing-feature-grid {
    display: grid;
    margin-top: 2rem;
    gap: 1rem;
}

@media (min-width: 640px) {
    .landing-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .landing-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.landing-feature {
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    padding: 1.5rem;
    box-shadow: 0 8px 28px hsl(221 50% 40% / 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.landing-feature:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: 0 8px 28px hsl(221 50% 40% / 0.06);
}

.landing-feature-icon {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

.landing-feature h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.landing-feature p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.625;
    color: hsl(var(--muted-foreground));
}

.landing-audience-grid,
.landing-steps {
    display: grid;
    margin-top: 2rem;
    gap: 1rem;
}

@media (min-width: 640px) {
    .landing-audience-grid,
    .landing-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.landing-audience,
.landing-step {
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    padding: 1.5rem;
}

.landing-audience-icon {
    display: block;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    color: hsl(var(--primary));
}

.landing-audience h3,
.landing-step h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.landing-audience p,
.landing-step p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.625;
    color: hsl(var(--muted-foreground));
}

.landing-step {
    list-style: none;
}

.landing-steps {
    margin-left: 0;
    padding: 0;
}

.landing-step-index {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: hsl(var(--primary));
}

.landing-cta {
    margin-top: 4rem;
    background: hsl(var(--primary));
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: hsl(var(--primary-foreground));
}

@media (min-width: 640px) {
    .landing-cta {
        margin-top: 5rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.landing-cta-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .landing-cta-title {
        font-size: 1.5rem;
    }
}

.landing-cta-lead {
    margin: 0.75rem auto 0;
    max-width: 36rem;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

@media (min-width: 640px) {
    .landing-cta-lead {
        font-size: 1rem;
    }
}

.landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.landing-cta-button {
    height: 2.75rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    border: 0;
    background: hsl(var(--primary-foreground));
    color: hsl(var(--primary));
    box-shadow: 0 10px 15px rgb(0 0 0 / 0.12);
}

.landing-cta-button:hover {
    background: hsl(var(--primary-foreground) / 0.9);
}

@media (prefers-reduced-motion: reduce) {
    .landing-hero-copy {
        animation: none;
    }
}
