/* ====================================================
   LangNetwork — Guest Home shared base
   Full-bleed landing under the standard platform header.
   Used by all 4 homepage variants (babel/orbiter/atlas/hybrid).
   NEVER touches snausch.css.
   ==================================================== */

/* --- Guest wrapper: remove any sidebar offset assumptions --- */
.lnw-guest-wrapper {
    max-width: 100vw;
    overflow-x: hidden;
}

.lnw-guest-wrapper .page-body-wrapper {
    display: block;
}

.lnw-guest-body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Platform header stays fixed on top of the landing.
   Dedicated class on the home header div: full width, no sidebar offset,
   even when sidebar-menu.js adds compact-wrapper to the wrapper at runtime. */
.lnw-home-header .page-header {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100vw;
}

.lnw-home-header .page-header .header-wrapper {
    margin-left: 0;
}

/* Show the platform header logo on the homepage
   (compact-wrapper normally hides it because the sidebar shows it) */
.lnw-home-header .logo-header-main {
    display: block !important;
}

/* --- Shared typography --- */
.lnw-landing {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #232323;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.lnw-landing h1,
.lnw-landing h2,
.lnw-landing h3,
.lnw-landing h4 {
    margin: 0;
    padding: 0;
}

.lnw-landing a {
    text-decoration: none;
    color: inherit;
}

.lnw-landing img,
.lnw-landing svg {
    max-width: 100%;
    display: block;
}

/* --- Grain / noise overlay (SVG feTurbulence, data-URI) --- */
.lnw-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    z-index: 40;
}

/* --- Marquee (infinite band of scripts) --- */
.lnw-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.lnw-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: lnw-marquee-scroll 40s linear infinite;
    will-change: transform;
}

.lnw-marquee:hover .lnw-marquee-track {
    animation-play-state: paused;
}

@keyframes lnw-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --- Buttons base (variants style their own) --- */
.lnw-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 16px 34px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.4s ease;
    will-change: transform;
}

/* light sweep across the button */
.lnw-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -85%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.lnw-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.lnw-btn:hover::after {
    left: 130%;
}

.lnw-btn:active {
    transform: translateY(-1px) scale(0.99);
    transition-duration: 0.12s;
}

.lnw-btn:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.lnw-btn-primary {
    background: linear-gradient(120deg, #22d3ee 0%, #0ea5e9 100%);
    color: #06121f;
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}

.lnw-btn-primary:hover {
    box-shadow: 0 16px 42px rgba(34, 211, 238, 0.5);
}

.lnw-btn-ghost {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.lnw-btn-ghost:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

/* --- Reveal on scroll (JS toggles .lnw-revealed) --- */
.lnw-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.lnw-reveal.lnw-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Count-up numbers --- */
.lnw-count-up {
    font-variant-numeric: tabular-nums;
}

/* --- Section shell --- */
.lnw-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
}

.lnw-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Scroll hint --- */
.lnw-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.75;
}

.lnw-scroll-hint .lnw-scroll-line {
    width: 1px;
    height: 48px;
    background: currentColor;
    position: relative;
    overflow: hidden;
}

.lnw-scroll-hint .lnw-scroll-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -50%;
    width: 100%;
    height: 50%;
    background: currentColor;
    animation: lnw-scroll-drip 1.8s ease-in-out infinite;
}

@keyframes lnw-scroll-drip {
    from { top: -50%; }
    to   { top: 110%; }
}

/* --- Content visibility perf --- */
.lnw-below-fold {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

/* --- Reduced motion: kill everything --- */
@media (prefers-reduced-motion: reduce) {
    .lnw-marquee-track {
        animation: none !important;
    }
    .lnw-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .lnw-scroll-hint .lnw-scroll-line::after {
        animation: none !important;
    }
    .lnw-landing *,
    .lnw-landing *::before,
    .lnw-landing *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Mobile helpers --- */
@media (max-width: 768px) {
    .lnw-container {
        padding: 0 18px;
    }
    .lnw-btn {
        padding: 14px 26px;
        font-size: 15px;
    }
}
