/* ==========================================================================
   Todi — app-todi.ru

   Цвета взяты из самого приложения (presentation/theme/Color.kt), а не
   придуманы заново: графитовый фон #0F1115, ирисовый акцент #8E9BFF,
   мягкий красный просрочки #F0A29B и «сделанный» зелёный #79D68C. Сайт
   должен читаться как продолжение приложения, поэтому палитра здесь одна
   на двоих, а не «примерно похожая».

   Шрифты свои и лежат рядом (assets/fonts): Manrope — заголовки,
   Inter — текст. В Google Fonts сайт не ходит: в России он часто
   недоступен, и внешний запрос на каждой загрузке — это ещё и лишняя
   утечка адреса посетителя на чужой сервер.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
        U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
    /* Фон и поверхности — графит приложения. */
    --bg: #0f1115;
    --bg-2: #12141a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: #232937;
    --border-strong: #2c3240;

    /* Текст. */
    --text: #e9ebf1;
    --muted: #9ca3b2;
    --dim: #6e7686;

    /* Ирисовый акцент — тот же, что в приложении. */
    --iris: #8e9bff;
    --iris-soft: #c6cfff;
    --iris-deep: #5a66e4;
    --iris-ink: #131633;
    --iris-container: #252d4d;

    /* Смысловые цвета: ими в приложении помечены просроченное и сделанное. */
    --done: #79d68c;
    --overdue: #f0a29b;

    --radius: 22px;
    --radius-sm: 14px;
    --radius-pill: 999px;

    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    --glow: 0 0 70px rgba(142, 155, 255, 0.3);
    --glow-strong: 0 0 70px rgba(142, 155, 255, 0.45);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

    --wrap: 1180px;
    --header-h: 72px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Пока язык не определён, страница не показывается: иначе англоязычный
   посетитель успевает увидеть русский текст и экран «переобувается» у него
   на глазах. Класс снимает i18n.js, а если он не загрузится — снимает
   таймер-страховка в самом index.html. */
html.lang-loading body { opacity: 0; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
}

p { margin: 0 0 1em; }

::selection { background: rgba(142, 155, 255, 0.35); color: #fff; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Фон: блобы, звёзды, шум
   ========================================================================== */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% -10%, #1a1f2e 0%, transparent 62%),
        radial-gradient(90% 60% at 100% 100%, #141824 0%, transparent 60%),
        var(--bg);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    opacity: 0.42;
    will-change: transform;
}

.blob--1 {
    width: 620px; height: 620px;
    top: -180px; left: -120px;
    background: radial-gradient(circle at 40% 40%, #5a66e4 0%, rgba(90, 102, 228, 0) 68%);
    animation: blob-1 26s var(--ease-soft) infinite alternate;
}

.blob--2 {
    width: 560px; height: 560px;
    top: 18%; right: -160px;
    background: radial-gradient(circle at 50% 50%, #252d4d 0%, rgba(37, 45, 77, 0) 70%);
    animation: blob-2 32s var(--ease-soft) infinite alternate;
}

.blob--3 {
    width: 700px; height: 700px;
    bottom: -260px; left: 30%;
    background: radial-gradient(circle at 50% 50%, #1b2340 0%, rgba(27, 35, 64, 0) 68%);
    opacity: 0.55;
    animation: blob-3 38s var(--ease-soft) infinite alternate;
}

.blob--4 {
    width: 430px; height: 430px;
    top: 52%; left: 8%;
    background: radial-gradient(circle at 50% 50%, #8e9bff 0%, rgba(142, 155, 255, 0) 70%);
    opacity: 0.16;
    animation: blob-1 30s var(--ease-soft) infinite alternate-reverse;
}

@keyframes blob-1 { to { transform: translate3d(9%, 7%, 0) scale(1.18); } }
@keyframes blob-2 { to { transform: translate3d(-11%, -8%, 0) scale(1.06); } }
@keyframes blob-3 { to { transform: translate3d(-7%, 11%, 0) scale(1.2); } }

/* Мелкая звёздная пыль — два слоя точек, мерцающих вразнобой. */
.stars, .stars--2 {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.4px 1.4px at 20% 30%, rgba(233, 235, 241, 0.5), transparent),
        radial-gradient(1.2px 1.2px at 70% 12%, rgba(233, 235, 241, 0.35), transparent),
        radial-gradient(1.6px 1.6px at 42% 68%, rgba(142, 155, 255, 0.5), transparent),
        radial-gradient(1.1px 1.1px at 85% 55%, rgba(233, 235, 241, 0.3), transparent),
        radial-gradient(1.3px 1.3px at 12% 82%, rgba(198, 207, 255, 0.4), transparent),
        radial-gradient(1.2px 1.2px at 58% 88%, rgba(233, 235, 241, 0.28), transparent),
        radial-gradient(1.5px 1.5px at 92% 28%, rgba(142, 155, 255, 0.42), transparent),
        radial-gradient(1.1px 1.1px at 33% 8%, rgba(233, 235, 241, 0.35), transparent);
    animation: twinkle 7s ease-in-out infinite;
}

.stars--2 {
    background-size: 460px 460px;
    background-position: 120px 200px;
    animation-duration: 11s;
    animation-delay: -4s;
    opacity: 0.7;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.42; }
}

/* Зерно — чтобы градиенты не выглядели «пластиковыми». */
.grain {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}

.header.is-stuck {
    background: rgba(15, 17, 21, 0.74);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--border);
}

.header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.logo__mark {
    width: 34px; height: 34px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--iris) 0%, var(--iris-deep) 60%, #2a3491 100%);
    box-shadow: 0 0 26px rgba(142, 155, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.logo__mark::after {
    content: '';
    width: 11px; height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.85);
    animation: dot-pulse 3.4s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.28); opacity: 1; }
}

.nav { display: flex; gap: 4px; margin-left: 8px; }

.nav a {
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.25s, background 0.25s;
}

.nav a:hover { color: var(--text); background: var(--surface-2); }

.header__right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Переключатель языка */
.lang {
    display: flex;
    align-items: center;
    padding: 4px;
    gap: 2px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    position: relative;
}

.lang__btn {
    border: 0;
    background: transparent;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--dim);
    cursor: pointer;
    transition: color 0.25s;
    position: relative;
    z-index: 1;
}

.lang__btn.is-active { color: var(--iris-ink); }

.lang__pill {
    position: absolute;
    top: 4px; left: 4px;
    height: calc(100% - 8px);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--iris-soft) 0%, var(--iris) 100%);
    box-shadow: 0 2px 12px rgba(142, 155, 255, 0.45);
    transition: transform 0.35s var(--ease-out), width 0.35s var(--ease-out);
    z-index: 0;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border: 0;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn--primary {
    color: var(--iris-ink);
    background: linear-gradient(120deg, var(--iris-soft) 0%, var(--iris) 45%, var(--iris-deep) 100%);
    background-size: 200% 100%;
    box-shadow: 0 12px 34px -10px rgba(142, 155, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
    box-shadow: 0 18px 46px -10px rgba(142, 155, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Блик, пробегающий по кнопке при наведении. */
.btn--primary::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    transition: left 0.7s var(--ease-out);
}

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

.btn--ghost {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn--ghost:hover { background: var(--surface-2); border-color: rgba(142, 155, 255, 0.5); }

.btn--sm { padding: 9px 17px; font-size: 14px; }

/* ==========================================================================
   Секции
   ========================================================================== */

main { position: relative; z-index: 1; }

.section {
    padding: clamp(80px, 11vw, 148px) 0;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--iris);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    width: 22px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--iris));
}

.section__title {
    font-size: clamp(30px, 4.4vw, 52px);
    max-width: 20ch;
}

.section__lead {
    margin-top: 20px;
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--muted);
    max-width: 62ch;
}

.section__head { margin-bottom: clamp(44px, 6vw, 72px); }
.section__head--center { text-align: center; }
.section__head--center .section__title,
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.section__head--center .eyebrow::before { display: none; }

/* Градиентный текст с бегущим блеском. */
.grad {
    background: linear-gradient(100deg, var(--iris-soft) 0%, var(--iris) 28%, #ffffff 50%, var(--iris) 72%, var(--iris-soft) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ==========================================================================
   Появление при скролле
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.85s var(--ease-out),
        transform 0.85s var(--ease-out);
    transition-delay: var(--d, 0ms);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Герой
   ========================================================================== */

.hero {
    padding-top: calc(var(--header-h) + clamp(56px, 8vw, 96px));
    padding-bottom: clamp(60px, 8vw, 110px);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    backdrop-filter: blur(10px);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 26px;
}

.badge__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--done);
    box-shadow: 0 0 12px 2px rgba(121, 214, 140, 0.7);
    animation: dot-pulse 2.6s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(48px, 8.6vw, 96px);
    letter-spacing: -0.055em;
    margin-bottom: 10px;
}

.hero__sub {
    font-family: var(--font-display);
    font-size: clamp(19px, 2.3vw, 26px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 22px;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.hero__text {
    font-size: clamp(16px, 1.7vw, 18.5px);
    color: var(--muted);
    max-width: 54ch;
    margin-bottom: 34px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 38px;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}

.chip:hover {
    border-color: rgba(142, 155, 255, 0.5);
    color: var(--text);
    transform: translateY(-2px);
}

.chip svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--iris); }

/* --- Сцена с орбом --- */

.hero__stage {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    min-height: 340px;
}

/* Вращающиеся кольца вокруг сферы. */
.rings {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    border: 1px solid rgba(142, 155, 255, 0.14);
    animation: spin 46s linear infinite;
}

.rings::before,
.rings::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(142, 155, 255, 0.09);
}

.rings::before { inset: 9%; border-top-color: rgba(198, 207, 255, 0.36); }
.rings::after { inset: 20%; border-left-color: rgba(142, 155, 255, 0.4); }

.rings--2 {
    inset: 14%;
    animation-duration: 32s;
    animation-direction: reverse;
    border-style: dashed;
    border-color: rgba(233, 235, 241, 0.07);
}

@keyframes spin { to { transform: rotate(360deg); } }

.orb-holder {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

#orb, #orb2 { width: 100%; height: 100%; }

#orb { filter: drop-shadow(0 0 44px rgba(142, 155, 255, 0.5)); }
#orb2 { filter: drop-shadow(0 0 46px rgba(142, 155, 255, 0.45)); }

/* Карточка-уведомление, парящая у сферы. */
.float-card {
    position: absolute;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(18, 20, 26, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    font-size: 13px;
    line-height: 1.45;
    width: max-content;
    max-width: 240px;
    animation: float 6s ease-in-out infinite;
}

.float-card b {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 6px;
    font-weight: 700;
}

.float-card span { display: block; font-weight: 500; }

/* Подпись под строкой — акцентная, а не тревожная: «3 дела ждут» это не
   просрочка. Красный приберегаем для того, чем в приложении помечено
   просроченное, иначе цвет перестаёт что-либо значить. */
.float-card i { font-style: normal; color: var(--iris-soft); font-weight: 600; font-size: 12px; }
.float-card i.is-ok { color: var(--done); }

.float-card--1 { top: 4%; left: -6%; animation-delay: -1s; }
.float-card--2 { bottom: 8%; right: -4%; animation-delay: -3.4s; }

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -12px, 0); }
}

/* ==========================================================================
   Бегущая строка
   ========================================================================== */

.marquee {
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    gap: 46px;
    width: max-content;
    animation: marquee 34s linear infinite;
}

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

.marquee__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dim);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.marquee__item::after {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--iris);
    opacity: 0.5;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Назначение (блок, которого требовала проверка Google)
   ========================================================================== */

.purpose {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(28px, 4vw, 52px);
    background:
        linear-gradient(150deg, rgba(142, 155, 255, 0.1) 0%, rgba(142, 155, 255, 0) 55%),
        var(--surface);
    position: relative;
    overflow: hidden;
}

.purpose::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(142, 155, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.purpose__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
    margin-top: 34px;
    position: relative;
}

.purpose__item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.purpose__item p { font-size: 15px; color: var(--muted); margin: 0; }

.tick, .cross {
    width: 20px; height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

.tick { background: rgba(121, 214, 140, 0.15); color: var(--done); }
.cross { background: rgba(240, 162, 155, 0.15); color: var(--overdue); }

/* ==========================================================================
   Возможности (bento)
   ========================================================================== */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.card {
    grid-column: span 2;
    position: relative;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: transform 0.45s var(--ease-out), border-color 0.4s, background 0.4s;
    isolation: isolate;
}

.card--wide { grid-column: span 3; }

/* Шесть карточек не делятся на ряды по три без остатка: две широкие, три
   обычные и одна широкая оставляли бы её одну в половине ряда. Поэтому
   последняя занимает ряд целиком и раскладывается в строку — дыра в сетке
   читается как недоделка, а не как приём. */
.card--full {
    grid-column: span 6;
    display: flex;
    align-items: center;
    gap: 26px;
}

.card--full .card__icon { margin-bottom: 0; flex-shrink: 0; }
.card--full .card__body { min-width: 0; }
.card--full h3 { margin-bottom: 6px; }

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(142, 155, 255, 0.4);
    background: var(--surface-2);
}

/* Прожектор, следующий за курсором: координаты кладёт JS. */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(142, 155, 255, 0.14), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: -1;
}

.card:hover::before { opacity: 1; }

.card__icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(142, 155, 255, 0.2), rgba(142, 155, 255, 0.05));
    border: 1px solid var(--border-strong);
    color: var(--iris);
    margin-bottom: 18px;
    transition: transform 0.45s var(--ease-out);
}

.card:hover .card__icon { transform: scale(1.08) rotate(-5deg); }
.card__icon svg { width: 22px; height: 22px; }

.card h3 {
    font-family: var(--font);
    font-size: 18.5px;
    font-weight: 700;
    margin-bottom: 9px;
    letter-spacing: -0.02em;
}

.card p { font-size: 15px; color: var(--muted); margin: 0; }

/* ==========================================================================
   Голосовой блок со сферой
   ========================================================================== */

.voice {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(34px, 5vw, 64px);
    align-items: center;
}

.voice__stage {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.voice__mic {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mic-btn {
    width: 74px; height: 74px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(18, 20, 26, 0.88);
    backdrop-filter: blur(14px);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
    position: relative;
}

.mic-btn svg { width: 27px; height: 27px; }

.mic-btn:hover {
    transform: scale(1.06);
    border-color: rgba(142, 155, 255, 0.6);
    box-shadow: var(--glow);
}

.mic-btn.is-live {
    border-color: rgba(240, 162, 155, 0.7);
    box-shadow: 0 0 46px rgba(240, 162, 155, 0.45);
}

/* Волны, расходящиеся от кнопки во время записи. */
.mic-btn.is-live::before,
.mic-btn.is-live::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(240, 162, 155, 0.55);
    animation: ripple 2s ease-out infinite;
}

.mic-btn.is-live::after { animation-delay: 1s; }

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(1.75); opacity: 0; }
}

.mic-hint {
    font-size: 12.5px;
    color: var(--dim);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
}

/* Лента распознанных дел */
.drafts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 26px 0 30px;
    min-height: 172px;
}

.draft {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.draft.is-in { opacity: 1; transform: none; }

.draft__time {
    font-size: 13px;
    font-weight: 700;
    color: var(--cw, var(--iris));
    min-width: 46px;
    font-variant-numeric: tabular-nums;
}

.draft__text { font-size: 15px; font-weight: 500; flex: 1; }

.draft__day {
    font-size: 12px;
    font-weight: 600;
    color: var(--dim);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

/* ==========================================================================
   Экран блокировки
   ========================================================================== */

.lock {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(34px, 5vw, 70px);
    align-items: center;
}

.phone {
    width: min(320px, 82vw);
    margin: 0 auto;
    aspect-ratio: 9 / 18.6;
    border-radius: 42px;
    border: 1px solid var(--border-strong);
    background: radial-gradient(120% 60% at 50% 0%, #1e2436 0%, #12141a 55%, #0c0e12 100%);
    padding: 12px;
    box-shadow:
        0 40px 90px -30px rgba(0, 0, 0, 0.95),
        0 0 0 8px rgba(255, 255, 255, 0.03),
        inset 0 0 60px rgba(142, 155, 255, 0.1);
    position: relative;
    animation: float 9s ease-in-out infinite;
}

.phone::before {
    content: '';
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 92px; height: 24px;
    border-radius: var(--radius-pill);
    background: #090a0d;
    z-index: 2;
}

.phone__screen {
    height: 100%;
    border-radius: 32px;
    padding: 46px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lock__clock { text-align: center; margin-bottom: 6px; }

.lock__time {
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 300;
    letter-spacing: -0.045em;
    line-height: 1;
    color: #fff;
}

.lock__date { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 6px; }

/* Уведомление — как в приложении: заголовок группы тише дел, а цвет строки
   выбран по разделу (сегодня / просрочено), а не «на глаз». */
.notif {
    border-radius: 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 34px -12px rgba(0, 0, 0, 0.85);
}

.notif__head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 11px;
}

.notif__icon {
    width: 19px; height: 19px;
    border-radius: 6px;
    background: linear-gradient(145deg, var(--iris), var(--iris-deep));
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
    color: var(--iris-ink);
    flex-shrink: 0;
}

.notif__app { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.notif__time { font-size: 11px; color: rgba(255, 255, 255, 0.45); margin-left: auto; }

.notif__line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 2.5px 0;
    font-weight: 500;
}

.notif__line--head { font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; }
.notif__line--overdue { font-weight: 700; }

.notif__t { font-variant-numeric: tabular-nums; opacity: 0.75; font-size: 11.5px; min-width: 34px; }

/* ==========================================================================
   Шаги
   ========================================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.45s var(--ease-out), border-color 0.4s;
}

.step:hover { transform: translateY(-5px); border-color: rgba(142, 155, 255, 0.4); }

.step__num {
    counter-increment: step;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(160deg, var(--iris) 0%, rgba(142, 155, 255, 0.14) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.step__num::before { content: counter(step, decimal-leading-zero); }

.step h3 { font-family: var(--font); font-size: 17.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }

/* ==========================================================================
   Приватность
   ========================================================================== */

.privacy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.privacy__item {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.45s var(--ease-out), border-color 0.4s;
}

.privacy__item:hover { transform: translateY(-5px); border-color: rgba(121, 214, 140, 0.4); }
.privacy__item .card__icon { color: var(--done); background: linear-gradient(140deg, rgba(121, 214, 140, 0.18), rgba(121, 214, 140, 0.04)); }
.privacy__item h3 { font-family: var(--font); font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.privacy__item p { font-size: 15px; color: var(--muted); margin: 0; }

/* ==========================================================================
   Документы / финальный призыв
   ========================================================================== */

.docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.doc {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
}

.doc:hover {
    transform: translateY(-4px);
    border-color: rgba(142, 155, 255, 0.42);
    background: var(--surface-2);
}

.doc__icon {
    width: 44px; height: 44px;
    border-radius: 13px;
    background: linear-gradient(140deg, rgba(142, 155, 255, 0.22), rgba(142, 155, 255, 0.06));
    border: 1px solid var(--border-strong);
    display: grid;
    place-items: center;
    color: var(--iris);
    flex-shrink: 0;
}

.doc__icon svg { width: 21px; height: 21px; }
.doc b { display: block; font-size: 16px; font-weight: 600; }
.doc span { font-size: 13.5px; color: var(--dim); }

.cta {
    margin-top: clamp(60px, 8vw, 96px);
    text-align: center;
    padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
    border: 1px solid var(--border);
    border-radius: 30px;
    background:
        radial-gradient(90% 130% at 50% 0%, rgba(142, 155, 255, 0.18) 0%, transparent 60%),
        var(--surface);
    position: relative;
    overflow: hidden;
}

.cta h2 { font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 16px; }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }
.cta__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Подвал
   ========================================================================== */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 54px 0 40px;
    margin-top: clamp(60px, 8vw, 100px);
    background: linear-gradient(180deg, transparent, rgba(142, 155, 255, 0.04));
}

.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 34px;
}

.footer__about { max-width: 34ch; }
.footer__about p { font-size: 14px; color: var(--dim); margin: 14px 0 0; }

.footer__col h4 {
    font-family: var(--font);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dim);
    margin-bottom: 14px;
    font-weight: 700;
}

.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { font-size: 14.5px; color: var(--muted); transition: color 0.25s; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--dim);
}

.footer__note {
    font-size: 12.5px;
    color: var(--dim);
    max-width: 78ch;
    margin-top: 22px;
    line-height: 1.6;
}

/* Полоса прогресса чтения. */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--iris), var(--iris-soft));
    z-index: 100;
    transition: width 0.1s linear;
}

/* ==========================================================================
   Правовые страницы
   ========================================================================== */

.legal {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 80px;
    max-width: 880px;
}

.legal h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.legal h2 { font-family: var(--font); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 46px 0 14px; letter-spacing: -0.025em; }
.legal h3 { font-family: var(--font); font-size: 18px; font-weight: 700; margin: 30px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: #c9cfdd; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--iris); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--iris-soft); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 0.5em; }

.legal code {
    font-size: 0.9em;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(142, 155, 255, 0.12);
    border: 1px solid var(--border);
    color: var(--iris-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.legal__meta {
    font-size: 14px;
    color: var(--dim);
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--border);
}

.legal table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 15px; }
.legal th, .legal td {
    border: 1px solid var(--border);
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
}
.legal th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.legal td { color: #c9cfdd; }

.callout {
    margin: 28px 0;
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(142, 155, 255, 0.32);
    background: rgba(142, 155, 255, 0.08);
    font-size: 15.5px;
}

.callout p:last-child { margin-bottom: 0; }

/* Показ языка: обе версии лежат в разметке, лишняя просто скрыта.
   Так текст виден и без JavaScript, и поисковому роботу. */
.lang-en { display: none; }
html[data-lang='en'] .lang-ru { display: none; }
html[data-lang='en'] .lang-en { display: block; }
html[data-lang='ru'] .lang-ru { display: block; }
html[data-lang='ru'] .lang-en { display: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1000px) {
    .hero__grid, .voice, .lock { grid-template-columns: 1fr; }
    .hero__stage { max-width: 460px; margin: 0 auto; }
    .voice__stage { max-width: 420px; margin: 0 auto; order: -1; }
    .lock .phone { order: -1; }
    .card, .card--wide { grid-column: span 3; }
    /* Широкая карточка шире ряда и здесь: без этого правила её span 3
       перебивается общим .card из этой же секции. */
    .card--full { grid-column: span 6; }
    .float-card--1 { left: 0; }
    .float-card--2 { right: 0; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .nav { display: none; }
    .card, .card--wide { grid-column: span 6; }
    /* На узком экране строка не помещается — иконка встаёт над текстом. */
    .card--full { flex-direction: column; align-items: flex-start; gap: 16px; }
    .card--full .card__icon { margin-bottom: 0; }
    .float-card { display: none; }
    .marquee__track { animation-duration: 22s; }
}

@media (max-width: 520px) {
    .wrap { padding: 0 18px; }
    .header__right .btn { display: none; }
    .hero__cta .btn { width: 100%; }
}

/* Уважаем системную настройку «меньше движения»: всё, что крутится и
   мерцает, останавливается, а появление при скролле становится простым
   проявлением без сдвига. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Если JS выключен, класс .lang-loading снять некому — страница обязана
   быть видимой всё равно. */
.no-js html.lang-loading body, html.no-js.lang-loading body { opacity: 1; }
