/* ==========================================================================
   Hero — первый экран, анимированный фон, превью приложения (index.html)
   ========================================================================== */

/* ===== Hero ===== */
.hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
    padding: 90px 0 120px;
    /* Растягиваем hero на всё свободное место и центрируем контент
       по вертикали — на больших экранах тёмный экран заполняет высоту */
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero .wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

/* ===== Анимированный mesh-фон ===== */
.mesh {
    position: absolute;
    inset: -20% -10%;
    z-index: 0;
    filter: blur(70px);
    opacity: 0.9;
}
.blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: float 16s ease-in-out infinite;
}
.b1 {
    width: 520px;
    height: 520px;
    background: var(--purple);
    top: -120px;
    left: -60px;
}
.b2 {
    width: 460px;
    height: 460px;
    background: var(--azure);
    top: 40px;
    right: -40px;
    animation-delay: -4s;
}
.b3 {
    width: 420px;
    height: 420px;
    background: var(--barbie);
    bottom: -160px;
    left: 30%;
    animation-delay: -8s;
}
.b4 {
    width: 360px;
    height: 360px;
    background: var(--lavender);
    top: 120px;
    left: 38%;
    animation-delay: -2s;
}
.b5 {
    width: 300px;
    height: 300px;
    background: var(--coral);
    bottom: -120px;
    right: 14%;
    animation-delay: -10s;
    opacity: 0.7;
}
@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -30px) scale(1.08);
    }
    66% {
        transform: translate(-30px, 25px) scale(0.95);
    }
}

/* ===== Текст hero ===== */
.hero-copy {
    opacity: 0;
    animation: rise 0.9s 0.1s ease forwards;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--mint);
}
.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grass);
    box-shadow: 0 0 12px var(--grass);
}
h1.hero-title {
    font-family: "Unbounded";
    font-weight: 800;
    font-size: clamp(44px, 6.4vw, 82px);
    line-height: 0.96;
    margin: 22px 0 8px;
    letter-spacing: -0.02em;
}
h1.hero-title .l2 {
    display: block;
    background: linear-gradient(
        100deg,
        var(--azure),
        var(--barbie) 60%,
        var(--purple)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 14px 0 6px;
}
.hero-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.62);
    max-width: 430px;
    margin-bottom: 30px;
}

/* ===== Кнопки сторов ===== */
.stores {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}
.store {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    color: var(--navy);
    padding: 12px 20px;
    border-radius: 15px;
    transition: 0.25s;
    font-weight: 600;
}
.store:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px -18px rgba(0, 204, 255, 0.8);
}
.store svg {
    width: 24px;
    height: 24px;
}
.store small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.6;
    letter-spacing: 0.03em;
}
.store span {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

/* ===== Теги ===== */
.tags {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.tags span {
    font-family: "Unbounded";
    font-style: oblique 8deg;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
}

/* ===== Превью приложения ===== */
.hero-art {
    position: relative;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: rise 1s 0.35s ease forwards;
}
.device-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.device-stage::before {
    content: "";
    position: absolute;
    width: 78%;
    height: 64%;
    top: 16%;
    left: 11%;
    background: radial-gradient(
        circle,
        rgba(0, 204, 255, 0.55),
        rgba(153, 153, 255, 0.25) 45%,
        transparent 72%
    );
    filter: blur(55px);
    z-index: 0;
}
.device-img {
    position: relative;
    z-index: 1;
    width: 300px;
    max-width: 82%;
    height: auto;
    border-radius: 30px;
    filter: drop-shadow(0 42px 70px rgba(0, 0, 0, 0.6));
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Phone mockup — детальный макет телефона (на случай возврата секции)
   ========================================================================== */
.phone {
    position: relative;
    width: 300px;
    aspect-ratio: 300/612;
    background: var(--navy-2);
    border-radius: 46px;
    padding: 11px;
    box-shadow:
        0 50px 90px -30px rgba(0, 0, 0, 0.7),
        inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
}
.screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 36px;
    overflow: hidden;
    color: var(--ink);
}
.notch {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: var(--navy);
    border-radius: 0 0 16px 16px;
    z-index: 5;
}
.scr-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 6px;
    font-size: 11px;
    font-weight: 700;
}
.scr-top .loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(153, 153, 255, 0.22);
    color: var(--blue);
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
}
.search {
    margin: 6px 14px 12px;
    background: #fff;
    border-radius: 13px;
    padding: 11px 13px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}
.feed {
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.ev {
    border-radius: 18px;
    padding: 12px;
    color: #fff;
    box-shadow: 0 14px 26px -16px rgba(10, 0, 46, 0.5);
}
.ev.purple {
    background: linear-gradient(140deg, #8c84ff, #a06cf0);
}
.ev.green {
    background: linear-gradient(140deg, #2fcb6a, #00a651);
}
.ev.dark {
    background: linear-gradient(160deg, #1f1f2e, #0f0f18);
    position: relative;
}
.ev.dark::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>');
    opacity: 0.6;
}
.ev-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}
.ev-user {
    display: flex;
    gap: 7px;
    align-items: center;
}
.ev-ava {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    flex: none;
}
.ev-user b {
    font-size: 11px;
    line-height: 1.1;
    display: block;
}
.ev-user small {
    font-size: 9px;
    opacity: 0.8;
}
.ev-time {
    text-align: right;
}
.ev-time b {
    font-family: "Unbounded";
    font-style: oblique 8deg;
    font-size: 16px;
    line-height: 1;
    display: block;
}
.ev-time small {
    font-family: "Unbounded";
    font-style: oblique 8deg;
    font-size: 10px;
    opacity: 0.9;
}
.chip {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 8px;
    border-radius: 999px;
    margin: 9px 0 5px;
    position: relative;
}
.ev-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
}
.ev-loc {
    font-size: 9.5px;
    opacity: 0.85;
    margin-top: 3px;
    position: relative;
}
.ev-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 9px;
    position: relative;
}
.ev-stats div {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 5px 6px;
    text-align: center;
}
.ev-stats small {
    font-size: 7.5px;
    opacity: 0.8;
    display: block;
}
.ev-stats b {
    font-size: 10px;
    font-weight: 700;
}
.tabbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 14px;
}
.tabbar .t {
    font-size: 9px;
    color: var(--muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.tabbar .t.active {
    color: var(--blue);
    font-weight: 700;
}
.tabbar .fab {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--azure);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    box-shadow: 0 10px 22px -8px rgba(0, 204, 255, 0.9);
    margin-top: -12px;
}
