/* Лендинг Paradis — один экран, без скролла.
   Замысел: страница показывает не скриншот, а сам продукт в работе —
   живой войс с плиткой говорящего, осциллограмма голоса и гейт, который
   на паузах схлопывает волну в линию. Это и есть главная фишка чата,
   и её видно за три секунды, до всякого текста. */

@font-face {
    font-family: Unbounded;
    src: url(vendor/fonts/unbounded-latin.woff2) format('woff2');
    font-weight: 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: Unbounded;
    src: url(vendor/fonts/unbounded-cyrillic.woff2) format('woff2');
    font-weight: 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Manrope;
    src: url(vendor/fonts/manrope-cyrillic.woff2) format('woff2');
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Manrope;
    src: url(vendor/fonts/manrope-latin.woff2) format('woff2');
    font-weight: 200 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}

:root {
    --void: #08090C;
    --panel: #14161D;
    --panel-deep: #0D0F14;
    --line: rgba(255, 255, 255, .075);
    --ink: #E9EBF2;
    --dim: #9CA3B4;
    --dim2: #838A9B;
    --blurple: #5865F2;
    --air: #3BE8B4;          /* «в эфире»: живой звук, гейт открыт */
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;        /* один экран: прокрутки нет нигде */
}

body {
    margin: 0;
    background: var(--void);
    color: var(--ink);
    font-family: Manrope, system-ui, sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --- фон: чертёжная сетка, два холодных пятна света, зерно ------------- */

.bg-grid, .bg-glow, .bg-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 66% 46%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 80% at 66% 46%, #000 0%, transparent 78%);
}

.bg-glow {
    background:
        radial-gradient(48% 46% at 72% 34%, rgba(88, 101, 242, .17), transparent 70%),
        radial-gradient(40% 40% at 12% 88%, rgba(59, 232, 180, .07), transparent 70%);
}

.bg-noise {
    width: 100%;
    height: 100%;
    opacity: .04;
    mix-blend-mode: overlay;
}

/* --- каркас экрана ---------------------------------------------------- */

.page {
    position: relative;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(14px, 2.4vh, 26px) clamp(18px, 4vw, 64px) clamp(12px, 2vh, 22px);
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .01em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #131417;
    border: 1px solid var(--line);
    font-family: Unbounded, Manrope, sans-serif;
    font-weight: 800;
    font-size: .8rem;
    color: #fff;
}

.top-right {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.ver {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim2);
}

.link-app {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    color: var(--dim);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    transition: color .2s var(--ease);
}

.link-app:hover { color: var(--ink); }
.link-app .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-app:hover .ic { transform: translateX(3px); }

/* --- две колонки: слово слева, живой войс справа ---------------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
    align-items: center;
    gap: clamp(24px, 5vw, 76px);
    min-height: 0;
}

.pitch { min-width: 0; }

.title {
    margin: 0;
    font-family: Unbounded, Manrope, sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 6.9vw, 6.1rem);
    line-height: .92;
    letter-spacing: -.035em;
    text-shadow: 0 0 80px rgba(88, 101, 242, .5);
}

.tagline {
    margin: 14px 0 0;
    font-size: clamp(.74rem, .95vw, .86rem);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--air);
    opacity: .85;
}

.lead {
    margin: clamp(14px, 2.2vh, 22px) 0 0;
    max-width: 44ch;
    font-size: clamp(.98rem, 1.2vw, 1.14rem);
    line-height: 1.55;
    color: var(--dim);
}

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 1.6vh, 16px) 26px;
    margin: clamp(18px, 3vh, 30px) 0 0;
    padding: 0;
    list-style: none;
}

.facts li {
    position: relative;
    padding-left: 16px;
    min-width: 0;
}

.facts li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .5em;
    width: 5px;
    height: 5px;
    background: var(--air);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(59, 232, 180, .8);
}

.facts b {
    display: block;
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: -.005em;
}

.facts span {
    display: block;
    margin-top: 2px;
    font-size: .82rem;
    line-height: 1.35;
    color: var(--dim2);
}

/* --- кнопки скачивания ------------------------------------------------ */

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: clamp(20px, 3.4vh, 34px) 0 0;
}

.dl {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 22px 10px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background .25s var(--ease), border-color .25s var(--ease);
}

.dl .ic { width: 22px; height: 22px; opacity: .75; flex: none; }
.dl-text { display: block; }
.dl b { display: block; font-size: .96rem; font-weight: 700; }
.dl small { display: block; margin-top: 2px; font-size: .72rem; color: var(--dim2); }

.dl:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
}

.dl.primary {
    background: var(--blurple);
    border-color: transparent;
    box-shadow: 0 14px 40px -12px rgba(88, 101, 242, .75);
}

.dl.primary .ic { opacity: .95; }
.dl.primary small { color: rgba(255, 255, 255, .72); }

.dl.primary:hover {
    background: #6874F5;
    box-shadow: 0 20px 52px -12px rgba(88, 101, 242, .9);
}

.dl:active { transform: translateY(0); }

.dl:focus-visible,
.link-app:focus-visible {
    outline: 2px solid var(--air);
    outline-offset: 3px;
}

.fine {
    margin: clamp(14px, 2.4vh, 22px) 0 0;
    max-width: 46ch;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--dim2);
}

/* --- правая колонка: живой войс --------------------------------------- */

.demo {
    position: relative;
    perspective: 1400px;
    min-width: 0;
}

.echo {
    position: absolute;
    inset: -30% -18%;
    width: 136%;
    height: 160%;
    pointer-events: none;
}

.room {
    position: relative;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(155deg, var(--panel), var(--panel-deep));
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95),
                inset 0 1px 0 rgba(255, 255, 255, .04);
    transform: rotateY(calc(-8deg + var(--px, 0) * 1deg)) rotateX(calc(3deg + var(--py, 0) * 1deg));
    transform-style: preserve-3d;
    transition: transform .5s var(--ease);
}

.room-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px 14px;
    font-size: .88rem;
    font-weight: 700;
}

.hash { color: var(--dim2); font-weight: 800; }

.room-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dim2);
}

.room-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--air);
    box-shadow: 0 0 10px var(--air);
    animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tile {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 17 / 10;      /* та же пропорция плитки, что в самом чате */
    border-radius: 13px;
    border: 1px solid var(--line);
    background: #0F1117;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease),
                background .3s var(--ease);
}

.tile-ava {
    display: grid;
    place-items: center;
    width: clamp(34px, 3.6vw, 46px);
    height: clamp(34px, 3.6vw, 46px);
    border-radius: 50%;
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}

.tile-name {
    position: absolute;
    left: 9px;
    bottom: 7px;
    font-size: .68rem;
    font-weight: 600;
    color: var(--dim);
}

.tile.speaking {
    border-color: rgba(59, 232, 180, .75);
    background: #10161A;
    box-shadow: 0 0 0 1px rgba(59, 232, 180, .35), 0 0 30px -6px rgba(59, 232, 180, .45);
}

.tile.speaking .tile-ava { transform: scale(1.04); box-shadow: 0 0 0 3px rgba(59, 232, 180, .3); }
.tile.speaking .tile-name { color: var(--ink); }

.tile.muted .tile-ava { opacity: .45; }

.tile-mic {
    position: absolute;
    right: 8px;
    bottom: 7px;
    width: 15px;
    height: 15px;
    color: #F23F42;
    opacity: .85;
}

.room-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.wave {
    display: block;
    width: 100%;
    height: clamp(46px, 6.4vh, 66px);
}

.gate {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: .66rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim2);
    transition: color .3s var(--ease);
}

.gate-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2A2E38;
    transition: background .25s var(--ease), box-shadow .25s var(--ease);
}

.gate.open { color: var(--air); }
.gate.open .gate-dot { background: var(--air); box-shadow: 0 0 12px var(--air); }

/* уголки-прицелы: техника, а не украшение — держат карточку в кадре */
.corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(59, 232, 180, .45);
}

.corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 20px 0 0 0; }
.corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; border-radius: 0 20px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 20px; }
.corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 20px 0; }

/* --- подвал: технический пояс, он же держит низ экрана ---------------- */

.hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: clamp(10px, 1.8vh, 18px);
    border-top: 1px solid var(--line);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: .64rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6E7585;
}

/* --- появление -------------------------------------------------------- */

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
    to   { opacity: 1; transform: none; filter: none; }
}

.title, .tagline, .lead, .facts li, .cta, .fine, .demo, .top, .hud {
    animation: rise .8s var(--ease) both;
}

.top { animation-delay: .05s; }
.title { animation-delay: .1s; }
.tagline { animation-delay: .18s; }
.lead { animation-delay: .26s; }
.facts li:nth-child(1) { animation-delay: .34s; }
.facts li:nth-child(2) { animation-delay: .4s; }
.facts li:nth-child(3) { animation-delay: .46s; }
.facts li:nth-child(4) { animation-delay: .52s; }
.cta { animation-delay: .6s; }
.fine { animation-delay: .68s; }
.demo { animation-delay: .22s; animation-duration: 1s; }
.hud { animation-delay: .76s; }

/* --- узкие экраны: живой войс сверху, слово под ним -------------------- */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        align-content: center;
        gap: clamp(16px, 3vh, 28px);
    }

    .demo { order: -1; perspective: none; }
    .echo { display: none; }
    .room { transform: none; padding: 14px; }
    .room .tiles { grid-template-columns: repeat(4, 1fr); }
    .tile { aspect-ratio: 1 / 1; border-radius: 11px; }
    .tile-name { display: none; }
    .facts { grid-template-columns: 1fr; }
    .facts span { display: none; }
    .lead { max-width: none; }
    .cta .dl { flex: 1 1 240px; }
    .wave { height: clamp(38px, 5.2vh, 54px); }
}

/* Телефон: тот же экран, но плотнее — ничего не прокручивается и здесь */
@media (max-width: 560px) {
    .title { font-size: clamp(2.4rem, 13.5vw, 3.2rem); }
    .link-app span, .lead-tail, .hud { display: none; }
    .lead { font-size: .95rem; margin-top: 10px; }
    .facts {
        grid-template-columns: 1fr 1fr;
        gap: 8px 14px;
        margin-top: clamp(14px, 2.4vh, 20px);
    }
    .facts b { font-size: .85rem; }
    .facts li { padding-left: 14px; }
    .cta { gap: 10px; margin-top: clamp(14px, 2.6vh, 22px); }
    .dl { min-height: 52px; padding: 8px 16px; gap: 10px; }
    .dl b { font-size: .9rem; }
    .dl small { font-size: .68rem; }
    .fine { font-size: .74rem; margin-top: 12px; }
    .room { padding: 12px; }
    .tiles { gap: 8px; }
    .room-head { padding-bottom: 10px; font-size: .82rem; }
    .room-foot { margin-top: 10px; padding-top: 10px; }
}

/* совсем низкие экраны: сцену оставляем как индикатор — волна и гейт */
@media (max-width: 560px) and (max-height: 740px) {
    .tiles { display: none; }
    .room-foot { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* лежачий телефон и низкие окна: оставляем суть — слово и кнопки */
@media (max-height: 560px) and (max-width: 1000px) {
    .demo, .lead, .facts, .hud { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .room { transform: none; }
}
