/* Xeno Now - главная страница: hero + bento-сетка */
.hero { padding: 150px 0 26px; text-align: center; }
.hero-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    max-width: 900px;
    margin: 0 auto 22px;
    font-size: clamp(1.45rem, 3.2vw, 2.25rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text);
}
.hero-logo {
    display: inline-grid;
    place-items: center;
    width: 1.12em;
    height: 1.12em;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 0 24px rgba(255,255,255,0.18);
}
.hero-logo svg {
    width: 60%;
    height: 60%;
    fill: #fff;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.55));
}
.brand-x { width: 17px; height: 17px; fill: #fff; }
.hero p {
    max-width: 620px;
    margin: 0 auto;
    font-size: 0.88rem;
    color: var(--muted);
}

/* Плавное появление при загрузке */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}
.anim-up { animation: fadeUp 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.anim-d1 { animation-delay: 0.05s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.38s; }

/* ===== BENTO ===== */
.bento-section { padding: 40px 0 30px; }
.bento-frame {
    position: relative;
    border-radius: 28px;
    padding: 14px;
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse at top, rgba(255,255,255,0.07), transparent 55%),
        linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0.4) 45%, rgba(0,0,0,0.6));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.bcell {
    position: relative;
    overflow: hidden;
    padding: 34px 30px 38px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bb { border-bottom: 1px solid rgba(38,38,38,1); }
@media (min-width: 980px) {
    .span-4 { grid-column: span 4; }
    .span-2 { grid-column: span 2; }
    .span-3 { grid-column: span 3; }
.span-6 { grid-column: span 6; }
    .br-lg { border-right: 1px solid rgba(38,38,38,1); }
    .bb-lg-only { border-bottom: none !important; }
}
@media (max-width: 979px) {
    .bento { grid-template-columns: 1fr; }
    .bb:last-child, .bb-last { border-bottom: none; }
}
.bcell h2 {
    font-size: 1.35rem;
    font-weight: 600;
    background: linear-gradient(90deg, #fff, #e4e4e7, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bcell .bdesc {
    font-size: 0.86rem;
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 18px;
}
.bfill { flex: 1; display: flex; }

/* --- Ячейка 1: карусель моков интерфейса --- */
.xe-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background-image:
        linear-gradient(to right, #1c1c1c 1px, transparent 1px),
        linear-gradient(to bottom, #1c1c1c 1px, transparent 1px);
    background-size: 20px 20px;
}
.xe-carousel::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 25%, #000 95%);
    pointer-events: none;
}
.xe-slide {
    position: absolute; inset: 0;
    display: flex;
    opacity: 0;
    transform: translateX(60px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    pointer-events: none;
    z-index: 1;
}
.xe-slide.on { opacity: 1; transform: none; filter: none; pointer-events: auto; z-index: 2; }
.xe-window {
    flex: 1;
    margin: 22px;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}
.xe-titlebar {
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.xe-dot { width: 10px; height: 10px; border-radius: 50%; background: #2e2e2e; }
.xe-title { margin-left: auto; font-size: 0.68rem; color: var(--faint); letter-spacing: 0.06em; }
.xe-body { flex: 1; display: flex; min-height: 0; }
.xe-side {
    width: 128px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.xe-side-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 0.68rem;
    color: var(--muted);
}
.xe-side-item i { width: 11px; text-align: center; opacity: 0.75; }
.xe-side-item.on { background: rgba(255,255,255,0.08); color: var(--text); }
.xe-editor {
    flex: 1;
    padding: 14px 16px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.72rem;
    line-height: 2;
    color: #8f8f8f;
    overflow: hidden;
}
.xe-editor .ln { white-space: pre; }
.xe-kw { color: #f4f4f5; }
.xe-str { color: #a1a1aa; }
.xe-cm { color: #525252; }
.xe-fn { color: #d4d4d8; }
.xe-statusbar {
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.62rem;
    color: var(--faint);
}
.xe-status-ok { color: #4ade80; }
.xe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.07);
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.xe-arrow.prev { left: 10px; }
.xe-arrow.next { right: 10px; }
.xe-carousel:hover .xe-arrow { opacity: 1; }
.xe-arrow:hover { background: rgba(255,255,255,0.16); }
.xe-arrow:active { transform: translateY(-50%) scale(0.93); }
.xe-dots {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 7px;
}
.xe-dot-btn {
    width: 8px; height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.xe-dot-btn.on { width: 26px; background: rgba(255,255,255,0.92); }

/* --- Ячейка 2: производительность --- */
.perf { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.spin-wrap { position: relative; width: 64px; height: 64px; margin-top: 6px; }
.spin-ring {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    animation: rot 1s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.spin-core {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff;
    font-size: 1.35rem;
}
.stat-rows { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 13px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.stat-row:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.2); transform: scale(1.03); }
.stat-ico {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    font-size: 0.85rem;
}
.stat-txt { flex: 1; line-height: 1.35; }
.stat-label { display: block; font-size: 0.82rem; color: var(--text); }
.stat-desc { display: block; font-size: 0.72rem; color: var(--text-2); }
.stat-val { font-size: 0.82rem; font-weight: 800; color: var(--text); white-space: nowrap; }

/* --- Ячейка 3: Free & Keyless --- */
.keyless-big {
    font-size: clamp(0.78rem, 0.95vw, 0.9rem);
    font-weight: 600;
    line-height: 1.55;
    color: var(--text);
    max-width: 420px;
    margin: auto 0;
    padding: 26px 0 10px;
    letter-spacing: -0.01em;
}
.member-count {
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 18px rgba(255,255,255,0.45);
}
.count-pulse {
    display: inline-block;
    width: 76px; height: 1em;
    vertical-align: -0.12em;
    border-radius: 6px;
    background: rgba(255,255,255,0.12);
    animation: pulseBg 1.6s ease-in-out infinite;
}
@keyframes pulseBg { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* --- Низ бенто: единый прямоугольник: Keyless | полоска | планета --- */
.uw-row { display: flex; align-items: stretch; overflow: hidden; }
.uw-left { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; padding: 28px 30px; }
.uw-left .feed-wrap { max-width: none; width: 100%; height: 215px; margin: 22px auto 0; padding: 2px 0; }
.uw-sep {
    flex: none;
    align-self: stretch;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.30) 15%, rgba(255,255,255,0.30) 85%, transparent);
}
.uw-right { flex: 1 1 50%; min-width: 0; position: relative; overflow: hidden; min-height: 340px; }
.uw-right .globe-wrap {
    position: absolute;
    right: -40px;
    bottom: -320px;
    width: 600px;
    height: 600px;
    max-width: none;
    min-height: 0;
    margin: 0;
    z-index: 0;
    pointer-events: none;
}
.uw-right > h2, .uw-right > .bdesc { position: relative; z-index: 1; margin: 26px 30px 0; }
.uw-right > .bdesc { margin-top: 10px; }
.globe-wrap {
    position: relative;
    flex: 1;
    min-height: 250px;
    max-width: 330px;
    margin: -6px auto 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
}
.globe-wrap::before {
    content: '';
    position: absolute;
    bottom: -30px; left: 50%;
    transform: translateX(-50%);
    width: 85%; height: 55%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.10), transparent 68%);
    filter: blur(12px);
    pointer-events: none;
}
.globe-wrap canvas { position: relative; z-index: 1; margin-bottom: -46px; }

@media (max-width: 979px) {
    .uw-row { flex-direction: column; }
    .uw-sep { width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.26) 15%, rgba(255,255,255,0.26) 85%, transparent); }
    .uw-left .feed-wrap { height: 190px; margin-top: 16px; }
    .uw-right { min-height: 300px; }
    .uw-right .globe-wrap { width: 420px; height: 420px; right: -30px; bottom: -250px; }
}

@media (max-width: 979px) {
    .hero { padding-top: 120px; }
    .bcell { padding: 26px 22px 30px; }
    .xe-side { display: none; }
}

/* Пользовательские скриншоты поверх моков (кладутся в images/) */
.xe-slide { position: relative; }
.xe-shot {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 6;
}
.hero-logo { position: relative; overflow: hidden; border-radius: 18%; }
.hero-logo img.hero-shot {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Живая лента активности у глобуса */
.feed-wrap {
    position: relative;
    height: 200px;
    max-width: 70%;
    margin: 8px auto 0;
    overflow: hidden;
    padding: 2px 10px;
}
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-card {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.feed-card.new { animation: feedIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes feedIn {
    from { transform: scale(0.6); opacity: 0; transform-origin: top center; }
    to { transform: scale(1); opacity: 1; }
}
.fava {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    display: grid; place-items: center;
    overflow: hidden;
    position: relative;
}
.fava svg { width: 15px; height: 15px; fill: #fff; }
.fava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feed-mid { flex: 1; min-width: 0; text-align: left; }
.feed-name { font-size: 0.84rem; color: var(--text); line-height: 1.35; overflow-wrap: break-word; }
.feed-desc { font-size: 0.72rem; color: #d4d4d4; line-height: 1.35; overflow-wrap: break-word; }
.feed-time { flex-shrink: 0; font-size: 0.78rem; font-weight: 700; color: var(--text); }
.skel-round { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.1); animation: skelPulse 1.6s ease-in-out infinite; flex-shrink: 0; }
.skel-line { display: inline-block; height: 12px; border-radius: 6px; background: rgba(255,255,255,0.1); animation: skelPulse 1.6s ease-in-out infinite; }
.feed-fade {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 25%;
    background: linear-gradient(to top, #000, transparent);
    pointer-events: none;
}
@media (max-width: 979px) {
    .feed-wrap { max-width: 100%; }
}

/* ===== SHOWCASE FINAL: единое стеклянное полотно как на оригинале ===== */
.show-head { text-align: center; margin: 0 auto 38px; max-width: 900px; padding: 0 10px; }
.show-head h4 {
    font-size: clamp(1.45rem, 2.9vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
}
.grad-xeno { color: #fff; text-shadow: 0 0 12px rgba(255,255,255,0.55); }
.show-head p { color: #d4d4d4; font-size: clamp(0.82rem, 0.95vw, 0.92rem); font-weight: 400; max-width: 600px; margin: 14px auto 0; }

.bento-frame { position: relative; }
.glass-back {
    position: absolute;
    inset: -14px;
    z-index: 0;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(0,0,0,0.62) 50%, rgba(0,0,0,0.80));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.glass-glow {
    position: absolute;
    inset: -14px;
    z-index: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.10), transparent 62%);
    opacity: 0.5;
}
.bento {
    gap: 0 !important;
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,0.30);
    border-radius: 6px;
    overflow: hidden;
}
.bento .bcell {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 16px clamp(13px, 1.8vw, 24px) 18px;
}
.bento .bcell h2 { font-size: clamp(1rem, 1.6vw, 1.25rem); }
.bento .bcell .bdesc { font-size: clamp(0.78rem, 0.95vw, 0.88rem); margin-top: 6px; }
.bento .bcell.bb { border-bottom: 1px solid #262626 !important; }
.bento .bcell.br-lg { border-right: 1px solid #262626 !important; }
@media (min-width: 980px) { .bento .bcell.bb-lg-only { border-bottom: 1px solid #262626 !important; } }

.bento .bcell.c-ext { display: flex; flex-direction: column; }
.bento .bcell.c-ext .bfill { flex: 1; align-items: center; justify-content: center; }
.bento .bcell.c-ext .xe-carousel {
    height: auto;
    min-height: 290px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.c-key { display: flex; flex-direction: column; }
.c-key .keyless-big { margin-bottom: 0; }
.c-key .feed-wrap { max-width: none; width: 100%; height: 225px; margin: 18px auto 0; padding: 2px 0; }

.c-world { position: relative; overflow: hidden; }
.uw-strip { position: relative; height: 240px; margin-top: 34px; }
.c-world .globe-wrap {
    position: absolute;
    right: -40px;
    bottom: -320px;
    width: 600px;
    height: 600px;
    min-height: 0;
    max-width: none;
    margin: 0;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 979px) {
    .uw-strip { height: 190px; margin-top: 20px; }
    .c-world .globe-wrap { width: 430px; height: 430px; right: -28px; bottom: -250px; }
}