/* ====================================================
   LangNetwork Home — Variant E "CIAO" (WebGL hello constellation)
   Babel palette (ink / violet / lilac) + Orbiter word constellation of hellos.
   ==================================================== */

.lnw-ciao-landing {
    background: #0b0e14;
    color: #e8eaf0;
    --ciao-space: #0b0e14;
    --ciao-deep: #131722;
    --ciao-panel: #131722;
    --ciao-phosphor: #8b7cf6;
    --ciao-green: #b39ddb;
    --ciao-white: #e8eaf0;
    --ciao-muted: #8b93a7;
    --ciao-border: rgba(139, 147, 167, 0.18);
}

/* ==================== HERO ==================== */
.lnw-ciao-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(139, 124, 246, 0.30) 0%, rgba(11, 14, 20, 0) 68%),
        var(--ciao-space);
}

.lnw-ciao-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lnw-ciao-scene canvas {
    display: block;
}

.lnw-ciao-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 55%, rgba(11, 14, 20, 0.9) 100%);
}

.lnw-ciao-hero-inner {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 120px;
    pointer-events: none;
}

.lnw-ciao-hero-inner a,
.lnw-ciao-hero-inner .lnw-ciao-tip {
    pointer-events: auto;
}

.lnw-ciao-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 760px;
}

.lnw-ciao-kicker {
    margin: 0;
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ciao-phosphor);
    text-shadow: 0 0 22px rgba(139, 124, 246, 0.55);
}

.lnw-ciao-hero-title {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--ciao-white);
    text-shadow: 0 0 40px rgba(179, 157, 219, 0.35);
}

.lnw-ciao-sub {
    margin: 0;
    max-width: 620px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ciao-muted);
}

.lnw-ciao-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 6px;
}

.lnw-ciao-btn-ghost {
    color: var(--ciao-white);
    border-color: var(--ciao-border);
    background: rgba(11, 17, 34, 0.6);
    backdrop-filter: blur(6px);
}

.lnw-ciao-tip {
    margin: 14px 0 0;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ciao-muted);
}

/* --- tooltip (word + translations on hover) --- */
.lnw-ciao-tooltip {
    position: fixed;
    z-index: 60;
    min-width: 220px;
    max-width: 300px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(139, 124, 246, 0.35);
    background: rgba(7, 11, 22, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.lnw-ciao-tooltip-word {
    font-size: 19px;
    font-weight: 700;
    color: var(--ciao-phosphor);
    margin-bottom: 8px;
}

.lnw-ciao-tooltip-title {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ciao-muted);
    margin-bottom: 6px;
}

.lnw-ciao-tooltip-translations ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lnw-ciao-tooltip-translations li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
    color: var(--ciao-white);
}

.lnw-ciao-tooltip-translations .lnw-ciao-tooltip-lang {
    color: var(--ciao-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* ==================== MARQUEE ==================== */
.lnw-ciao-marquee {
    border-top: 1px solid var(--ciao-border);
    border-bottom: 1px solid var(--ciao-border);
    background: var(--ciao-panel);
    padding: 20px 0;
    position: relative;
    z-index: 3;
}

.lnw-ciao-marquee .lnw-marquee-word {
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--ciao-muted);
    opacity: 0.85;
    margin: 0 24px;
}

.lnw-ciao-marquee .lnw-marquee-sep {
    color: var(--ciao-green);
    font-size: 10px;
    opacity: 0.7;
}

/* ==================== PILLARS ==================== */
.lnw-ciao-pillars {
    background: linear-gradient(180deg, var(--ciao-space) 0%, var(--ciao-deep) 30%, var(--ciao-deep) 70%, var(--ciao-space) 100%);
    padding: 110px 0 60px;
}

.lnw-ciao-pillar {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 40px;
    padding: 52px 0;
    margin-bottom: 26px;
    border: 1px solid var(--ciao-border);
    border-radius: 20px;
    background: rgba(11, 17, 34, 0.55);
    padding: 48px 44px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.lnw-ciao-pillar:hover {
    border-color: rgba(139, 124, 246, 0.45);
    box-shadow: 0 0 60px rgba(179, 157, 219, 0.1);
}

.lnw-pillar-number {
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 72px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(139, 124, 246, 0.5);
    text-shadow: 0 0 30px rgba(139, 124, 246, 0.25);
    user-select: none;
}

.lnw-pillar-kicker {
    margin: 0 0 12px;
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ciao-green);
}

.lnw-pillar-title {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1.16;
    color: var(--ciao-white);
}

.lnw-pillar-desc {
    margin: 0 0 24px;
    max-width: 600px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ciao-muted);
}

.lnw-pillar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lnw-pillar-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    border: 1px solid var(--ciao-border);
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--ciao-white);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.lnw-pillar-link:hover {
    border-color: var(--ciao-phosphor);
    color: var(--ciao-phosphor);
    box-shadow: 0 0 24px rgba(139, 124, 246, 0.2);
}

.lnw-pillar-link-arrow {
    transition: transform 0.3s ease;
}

.lnw-pillar-link:hover .lnw-pillar-link-arrow {
    transform: translateX(4px);
}

/* ==================== DEMO ==================== */
.lnw-ciao-demo {
    background: var(--ciao-space);
    padding: 90px 0 110px;
}

.lnw-demo-head {
    text-align: center;
    margin-bottom: 52px;
}

.lnw-demo-kicker {
    margin: 0 0 12px;
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ciao-green);
}

.lnw-demo-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--ciao-white);
}

.lnw-demo-desc {
    margin: 0 auto;
    max-width: 560px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ciao-muted);
}

.lnw-demo-stage {
    display: flex;
    justify-content: center;
}

.lnw-demo-window {
    width: 100%;
    max-width: 880px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(139, 124, 246, 0.25);
    background: var(--ciao-panel);
    box-shadow: 0 0 80px rgba(179, 157, 219, 0.12), 0 40px 90px rgba(0, 0, 0, 0.55);
}

.lnw-demo-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ciao-border);
    background: rgba(255, 255, 255, 0.02);
}

.lnw-demo-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
}

.lnw-demo-dot:nth-child(2) {
    background: #febc2e;
}

.lnw-demo-dot:nth-child(3) {
    background: #28c840;
}

.lnw-demo-window-title {
    margin-left: 12px;
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ciao-muted);
}

.lnw-demo-window-body {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    padding: 22px;
    min-height: 360px;
}

.lnw-demo-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lnw-demo-feed {
    overflow: hidden;
}

.lnw-demo-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--ciao-border);
    background: rgba(255, 255, 255, 0.03);
    animation: lnw-ciao-feed-slide 14s linear infinite;
    animation-delay: var(--lnw-demo-delay, 0s);
    transform: translateY(30px);
    opacity: 0;
}

.lnw-demo-feed-item-1 { --lnw-demo-delay: 0s; }
.lnw-demo-feed-item-2 { --lnw-demo-delay: 3.5s; }
.lnw-demo-feed-item-3 { --lnw-demo-delay: 7s; }
.lnw-demo-feed-item-4 { --lnw-demo-delay: 10.5s; }

@keyframes lnw-ciao-feed-slide {
    0%   { transform: translateY(30px); opacity: 0; }
    6%   { transform: translateY(0); opacity: 1; }
    22%  { transform: translateY(0); opacity: 1; }
    28%  { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(-30px); opacity: 0; }
}

.lnw-demo-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, var(--ciao-phosphor), var(--ciao-green));
    color: #051a06;
}

.lnw-demo-feed-text {
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--ciao-white);
}

.lnw-demo-side {
    position: relative;
}

.lnw-demo-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    font-size: 13px;
    font-weight: 600;
    color: #fca5a5;
    align-self: flex-start;
}

.lnw-demo-live-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    animation: lnw-ciao-live-pulse 1.6s ease-in-out infinite;
}

@keyframes lnw-ciao-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
    50%      { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
}

.lnw-demo-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.lnw-demo-chat-bubble {
    max-width: 92%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    background: rgba(139, 124, 246, 0.08);
    border: 1px solid rgba(139, 124, 246, 0.25);
    color: var(--ciao-white);
    animation: lnw-ciao-bubble-pop 7s ease-in-out infinite;
    animation-delay: var(--lnw-demo-delay, 0s);
    opacity: 0;
    transform: scale(0.9);
}

.lnw-demo-chat-bubble-1 { --lnw-demo-delay: 1.2s; }
.lnw-demo-chat-bubble-2 { --lnw-demo-delay: 4.8s; align-self: flex-end; background: rgba(56, 130, 246, 0.1); border-color: rgba(56, 130, 246, 0.3); }

@keyframes lnw-ciao-bubble-pop {
    0%, 100% { opacity: 0; transform: scale(0.9) translateY(6px); }
    8%, 38%  { opacity: 1; transform: scale(1) translateY(0); }
    46%      { opacity: 0; transform: scale(0.95) translateY(-4px); }
}

.lnw-demo-badge {
    position: absolute;
    top: 10px;
    right: 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--ciao-phosphor);
    color: #051a06;
    animation: lnw-ciao-badge-bounce 3.4s ease-in-out infinite;
}

@keyframes lnw-ciao-badge-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

/* ==================== STATS ==================== */
.lnw-ciao-stats {
    background: var(--ciao-deep);
    border-top: 1px solid var(--ciao-border);
    border-bottom: 1px solid var(--ciao-border);
    padding: 70px 0;
}

.lnw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}

.lnw-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lnw-stat-value {
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1;
    color: var(--ciao-phosphor);
    text-shadow: 0 0 26px rgba(139, 124, 246, 0.45);
    letter-spacing: 0.02em;
}

.lnw-stat-label {
    font-size: 12.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ciao-muted);
}

/* ==================== FINAL CTA ==================== */
.lnw-ciao-final-cta {
    position: relative;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(179, 157, 219, 0.14) 0%, transparent 60%),
        var(--ciao-space);
    padding: 130px 0;
    text-align: center;
    overflow: hidden;
}

.lnw-final-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lnw-final-cta-title {
    max-width: 780px;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    color: var(--ciao-white);
}

.lnw-final-cta-sub {
    max-width: 560px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ciao-muted);
}

.lnw-final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 12px;
}

/* ==================== FOOTER ==================== */
.lnw-ciao-footer {
    background: #04060d;
    border-top: 1px solid var(--ciao-border);
    padding: 64px 0 0;
}

.lnw-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
}

.lnw-footer-logo {
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 22px;
    letter-spacing: 0.06em;
    color: var(--ciao-white);
    margin-bottom: 14px;
}

.lnw-footer-tagline {
    max-width: 340px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ciao-muted);
}

.lnw-footer-heading {
    margin: 0 0 16px;
    font-family: 'Orbitron', 'Rubik', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ciao-green);
}

.lnw-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lnw-footer-col a {
    font-size: 15px;
    color: var(--ciao-muted);
    transition: color 0.3s ease;
}

.lnw-footer-col a:hover {
    color: var(--ciao-phosphor);
}

.lnw-footer-bottom {
    border-top: 1px solid var(--ciao-border);
    padding: 22px 0;
}

.lnw-footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--ciao-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .lnw-ciao-pillar {
        grid-template-columns: 110px 1fr;
        gap: 26px;
        padding: 40px 30px;
    }
    .lnw-pillar-number {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .lnw-ciao-hero-inner {
        padding-top: 140px;
    }
    .lnw-ciao-pillar {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 36px 26px;
    }
    .lnw-pillar-number {
        font-size: 44px;
    }
    .lnw-demo-window-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .lnw-demo-badge {
        display: none;
    }
    .lnw-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px;
    }
    .lnw-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
