/* ============================================
   TEAMLINK — ЛЕНДИНГ
   ============================================ */

:root {
    --bg-base: #0a0a0f;
    --bg-surface: #111118;
    --bg-elevated: #1a1a24;
    --bg-card: #15151f;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-muted: rgba(99, 102, 241, 0.15);
    --green: #22c55e;
    --green-muted: rgba(34, 197, 94, 0.15);
    --red: #ef4444;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --orange: #f59e0b;
    --cyan: #06b6d4;
    --border: rgba(255, 255, 255, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===== УТИЛИТЫ ===== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-muted);
    color: var(--accent-light);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.section-tag--green {
    background: var(--green-muted);
    color: var(--green);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-top: 16px;
}

.section-title--center { text-align: center; }

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: var(--bg-elevated);
    border-color: rgba(255,255,255,0.15);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn__arrow {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow { transform: translateX(4px); }

/* ===== НАВИГАЦИЯ ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background var(--transition-base), padding var(--transition-base);
}

.nav--scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 700;
}

.nav__logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav__logo-icon svg { width: 20px; height: 20px; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav__link:hover { color: var(--text-primary); }

.nav__link--cta {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
}

.nav__link--cta:hover {
    background: var(--accent-light);
    color: white;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.nav__burger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero__orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    top: 30%;
    right: -15%;
    animation: orbFloat2 25s ease-in-out infinite;
}

.hero__orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(100px, 80px); }
    66% { transform: translate(50px, 150px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-80px, 60px); }
    66% { transform: translate(-120px, -40px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(80px, -60px); }
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content { display: flex; flex-direction: column; gap: 24px; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-muted);
    color: var(--accent-light);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    width: fit-content;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
}

.hero__stat { text-align: center; }

.hero__stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero__stat-suffix {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-light);
}

.hero__stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.hero__stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Телефон */
.hero__visual { display: flex; justify-content: center; }

.hero__phone {
    width: 300px;
    height: 600px;
    background: var(--bg-surface);
    border-radius: 40px;
    border: 2px solid var(--border);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.1);
    animation: phoneFloat 6s ease-in-out infinite;
}

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

.hero__phone-notch {
    width: 120px;
    height: 28px;
    background: var(--bg-base);
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
}

.hero__phone-screen {
    height: calc(100% - 28px);
    display: flex;
    flex-direction: column;
}

/* Мок-чат */
.mock-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
}

.mock-chat__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.mock-chat__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8125rem;
}

.mock-chat__name { font-weight: 600; font-size: 0.875rem; }
.mock-chat__status { font-size: 0.75rem; color: var(--green); }

.mock-chat__messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
    overflow: hidden;
}

.mock-msg { display: flex; flex-direction: column; gap: 2px; }
.mock-msg--out { align-items: flex-end; }

.mock-msg__bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.mock-msg--in .mock-msg__bubble {
    background: var(--bg-elevated);
    border-bottom-left-radius: 4px;
}

.mock-msg--out .mock-msg__bubble {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.mock-msg__time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding: 0 4px;
}

.mock-chat__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 24px;
    border: 1px solid var(--border);
}

.mock-chat__input-field {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.mock-chat__send {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mock-chat__send svg { width: 14px; height: 14px; }

/* ===== ПРОБЛЕМА / РЕШЕНИЕ ===== */
.problem {
    padding: 120px 0;
    position: relative;
}

.problem__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.problem__list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }

.problem__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.problem__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem__icon svg { width: 20px; height: 20px; }

.problem__icon--red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.problem__item strong { font-size: 0.9375rem; display: block; margin-bottom: 2px; }
.problem__item p { font-size: 0.8125rem; color: var(--text-secondary); }

.problem__arrow {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.problem__arrow svg {
    width: 32px;
    height: 32px;
    color: var(--green);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.problem__solution-text {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Org Chart */
.org-chart {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.org-chart__node {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8125rem;
}

.org-chart__node--ceo {
    background: var(--accent);
    color: white;
}

.org-chart__node--dept {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.org-chart__branches {
    display: flex;
    gap: 24px;
}

.org-chart__branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.org-chart__team {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.org-chart__member {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--accent-muted);
}

/* ===== ВОЗМОЖНОСТИ ===== */
.features {
    padding: 120px 0;
    position: relative;
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: left;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card__icon--blue { background: rgba(99, 102, 241, 0.12); color: var(--accent); }
.feature-card__icon--purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.feature-card__icon--green { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.feature-card__icon--orange { background: rgba(245, 158, 11, 0.12); color: var(--orange); }
.feature-card__icon--pink { background: rgba(236, 72, 153, 0.12); color: var(--pink); }
.feature-card__icon--cyan { background: rgba(6, 182, 212, 0.12); color: var(--cyan); }

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
    padding: 120px 0;
    background: var(--bg-surface);
}

.advantages__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.advantages__list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
}

.advantage {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.advantage:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(8px);
}

.advantage__number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.5;
    flex-shrink: 0;
    width: 56px;
}

.advantage__content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.advantage__content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== ДЕМО ===== */
.demo {
    padding: 120px 0;
}

.demo__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.demo__preview {
    margin-top: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.demo__tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.demo__tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.demo__tab:hover { color: var(--text-primary); }

.demo__tab--active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
}

.demo__screen {
    height: 500px;
    position: relative;
}

.demo__panel {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.demo__panel--active {
    display: flex;
    opacity: 1;
}

/* Демо-чат */
.demo-sidebar {
    width: 320px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.demo-sidebar__header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.demo-sidebar__search {
    padding: 10px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.demo-sidebar__list {
    flex: 1;
    overflow-y: auto;
}

.demo-sidebar__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.demo-sidebar__item:hover { background: var(--bg-elevated); }
.demo-sidebar__item--active { background: var(--accent-muted); }

.demo-sidebar__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.demo-sidebar__info { flex: 1; min-width: 0; }
.demo-sidebar__name { font-size: 0.875rem; font-weight: 600; }
.demo-sidebar__last {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-sidebar__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.demo-sidebar__time { font-size: 0.6875rem; color: var(--text-muted); }

.demo-sidebar__badge {
    padding: 2px 7px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
}

.demo-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.demo-chat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.demo-chat__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.8125rem;
}

.demo-chat__info { flex: 1; }
.demo-chat__name { font-size: 0.9375rem; font-weight: 600; }
.demo-chat__status { font-size: 0.75rem; color: var(--green); }

.demo-chat__actions { display: flex; gap: 8px; }

.demo-chat__action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.demo-chat__action svg { width: 16px; height: 16px; }

.demo-chat__messages {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.demo-msg { display: flex; flex-direction: column; gap: 2px; }
.demo-msg--out { align-items: flex-end; }

.demo-msg__bubble {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.demo-msg--in .demo-msg__bubble {
    background: var(--bg-elevated);
    border-bottom-left-radius: 4px;
}

.demo-msg--out .demo-msg__bubble {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.demo-msg__time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    padding: 0 4px;
}

.demo-chat__input {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.demo-chat__input-field {
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-radius: 24px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Демо-звонок */
.demo-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.demo-call__bg { position: absolute; inset: 0; pointer-events: none; }

.demo-call__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.demo-call__orb--1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: -20%;
    right: -10%;
    animation: orbFloat1 15s ease-in-out infinite;
}

.demo-call__orb--2 {
    width: 200px;
    height: 200px;
    background: var(--purple);
    bottom: -10%;
    left: -5%;
    animation: orbFloat2 12s ease-in-out infinite;
}

.demo-call__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.demo-call__participants {
    display: flex;
    gap: 32px;
}

.demo-call__participant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.demo-call__participant span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.8);
}

.demo-call__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.demo-call__participant--me .demo-call__avatar {
    box-shadow: 0 0 0 3px var(--green);
}

.demo-call__speaking {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: speakingPulse 1s ease-in-out infinite;
}

@keyframes speakingPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.5); }
}

.demo-call__timer {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    font-variant-numeric: tabular-nums;
}

.demo-call__controls {
    display: flex;
    gap: 16px;
}

.demo-call__ctrl {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.demo-call__ctrl svg { width: 20px; height: 20px; }

.demo-call__ctrl--end {
    background: var(--red);
}

/* Демо-стена */
.demo-wall {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.demo-wall__post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.demo-wall__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.demo-wall__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
}

.demo-wall__author { font-size: 0.9375rem; font-weight: 600; }
.demo-wall__time { font-size: 0.75rem; color: var(--text-muted); }

.demo-wall__content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.demo-wall__stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ===== CTA ===== */
.cta {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

.cta__container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta__content { text-align: center; }

.cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta__subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.cta__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cta__input,
.cta__textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.cta__input::placeholder,
.cta__textarea::placeholder { color: var(--text-muted); }

.cta__input:focus,
.cta__textarea:focus { border-color: var(--accent); }

.cta__textarea {
    min-height: 100px;
    resize: vertical;
}

.cta__submit {
    align-self: center;
    margin-top: 8px;
}

/* ===== ФУТЕР ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.footer__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__contact svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
}

.footer__contact:hover {
    color: var(--text);
}

.footer__copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ===== АНИМАЦИИ СКРОЛЛА ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-up"] { transform: translateY(30px); }
[data-animate="fade-down"] { transform: translateY(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-right"] { transform: translateX(-30px); }

[data-animate].animated {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__content { text-align: center; align-items: center; }
    .hero__subtitle { margin: 0 auto; }
    .hero__actions { justify-content: center; }
    .hero__stats { justify-content: center; }

    .hero__phone {
        width: 260px;
        height: 520px;
    }

    .problem__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-sidebar { width: 240px; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__burger { display: flex; }

    .nav__links--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .advantage {
        flex-direction: column;
        gap: 12px;
    }

    .demo-sidebar { display: none; }

    .cta__form-row {
        grid-template-columns: 1fr;
    }

    .footer__container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .demo__screen { height: 400px; }
    .demo-chat__messages { padding: 12px; }
    .demo-call__participants { gap: 20px; }
    .demo-call__avatar { width: 56px; height: 56px; font-size: 0.9375rem; }
}

@media (max-width: 480px) {
    .hero__stats { flex-direction: column; gap: 12px; }
    .hero__stat-divider { width: 32px; height: 1px; }
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .hero__phone { width: 220px; height: 440px; }
    .org-chart__branches { flex-direction: column; }
}

/* ===== СКРОЛЛБАРЫ ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Скроллбар для демо-чата */
.demo-sidebar__list::-webkit-scrollbar,
.demo-chat__messages::-webkit-scrollbar,
.demo-wall::-webkit-scrollbar {
    width: 4px;
}

.demo-sidebar__list::-webkit-scrollbar-thumb,
.demo-chat__messages::-webkit-scrollbar-thumb,
.demo-wall::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ===== */

/* Glassmorphism для карточек */
.feature-card,
.advantage {
    backdrop-filter: blur(10px);
    background: rgba(21, 21, 31, 0.8);
}

/* Свечение при hover */
.feature-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.advantage:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.15);
}

/* Градиентная линия-разделитель */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-muted), transparent);
}

.features::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-muted), transparent);
}

/* Пульсирующая точка на кнопке CTA */
.btn--primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn--primary {
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn--primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Particles dots background */
.problem::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(99, 102, 241, 0.07) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Улучшенные тени для демо-превью */
.demo__preview {
    box-shadow:
        0 0 0 1px var(--border),
        0 25px 60px -12px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(99, 102, 241, 0.08);
}

/* Анимированная обводка */
.hero__phone::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 42px;
    background: linear-gradient(135deg, var(--accent), var(--purple), var(--cyan), var(--accent));
    background-size: 300% 300%;
    animation: gradientBorder 6s ease infinite;
    z-index: -1;
    opacity: 0.4;
}

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

/* Hover эффект для org-chart членов */
.org-chart__member {
    transition: all var(--transition-fast);
}

.org-chart__member:hover {
    background: var(--accent-muted);
    border-color: var(--accent);
    transform: scale(1.2);
}

/* Текстовый selection */
::selection {
    background: var(--accent-muted);
    color: var(--accent-light);
}

/* Focus-visible для accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible,
.nav__link:focus-visible,
.demo__tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Smooth loading */
body {
    animation: pageLoad 0.6s ease;
}

@keyframes pageLoad {
    from { opacity: 0; }
    to { opacity: 1; }
}
