:root {
    /* Telegram theme values with premium fallback */
    --bg-color: #000000; /* Absolute Black */
    --text-color: #f5f5f7; /* Soft White */
    --hint-color: #86868b; /* Calm Apple Gray */
    --link-color: #6366f1; /* Indigo */
    --button-color: #16161a; /* Space Gray */
    --button-text-color: #ffffff;
    --secondary-bg-color: #0a0a0c; /* Deep Graphite */
    
    --card-bg-glass: rgba(10, 10, 12, 0.55);
    --card-border: rgba(255, 255, 255, 0.06);
    --input-bg: rgba(255, 255, 255, 0.02);
    --shadow-color: rgba(0, 0, 0, 0.8);
    
    --accent-purple: #a855f7; /* Interactive elements accent */
    --accent-sapphire: #2563eb;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Стилизация под светлую тему Telegram (минимальные изменения для читаемости) */
.light-theme {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --hint-color: #86868b;
    --card-bg-glass: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.08);
    --secondary-bg-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* Сброс стилей */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.08) 1.5px, transparent 40px);
    background-size: 400px 400px, 280px 280px;
    background-position: 0 0, 100px 150px;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Контейнер приложения */
.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    max-width: 480px; /* Ограничиваем ширину для мобильного WebApp вида */
    margin: 0 auto;
    z-index: 1;
}

/* Фоновое свечение (Glow) */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12; /* Экстремально аккуратно */
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: 5%;
    left: -20%;
    width: 320px;
    height: 320px;
    background: #6366f1;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: 25%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: #4f46e5;
    animation: floatGlow 16s infinite alternate-reverse ease-in-out;
}

.glow-3 {
    top: 40%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: #a855f7;
    animation: floatGlow 20s infinite alternate ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}

/* Шапка */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 24px;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Минималистичный языковой переключатель */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--hint-color);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    opacity: 0.5;
}

.lang-btn:hover {
    color: var(--text-color);
    opacity: 0.85;
}

.lang-btn.active {
    color: var(--link-color);
    opacity: 1;
    font-weight: 800;
}

.lang-separator {
    color: var(--hint-color);
    font-size: 10px;
    opacity: 0.25;
    pointer-events: none;
    font-weight: 400;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    display: inline-block;
    animation: pulse 2s infinite ease-in-out;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    color: var(--hint-color);
    font-weight: 500;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: blink 1.5s infinite ease-in-out;
}

/* Основной контент */
.app-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-grow: 1;
}

.section {
    position: relative;
}

.section-header {
    margin-bottom: 20px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--link-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.section-header p {
    font-size: 14px;
    color: var(--hint-color);
}

/* Герой блок */
.hero-content {
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--hint-color);
}

/* Сетка услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
}

.service-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
}

.service-mini-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    padding: 3px 8px;
    border-radius: 8px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin: 4px 0 0 0;
}

.service-card-desc {
    font-size: 13px !important;
    color: var(--hint-color) !important;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Workflow в карточках услуг */
.mini-workflow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 8px;
    gap: 4px;
}

.mini-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    flex: 1;
    opacity: 0.35;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mini-step-icon {
    font-size: 15px;
}

.mini-step-text {
    font-size: 9px;
    font-weight: 600;
    color: var(--hint-color);
    white-space: nowrap;
}

.mini-arrow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.08);
    transition: color 0.4s ease;
}

.service-card:hover .mini-step {
    opacity: 1;
    transform: scale(1);
    transition-delay: calc(var(--i) * 0.18s);
}

.service-card:hover .mini-arrow {
    color: rgba(99, 102, 241, 0.45);
    transition-delay: calc(var(--i) * 0.18s);
}

.service-card p {
    font-size: 13px;
    color: var(--hint-color);
    line-height: 1.5;
}

/* Таймлайн */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--card-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-bg-color);
    border: 2px solid var(--link-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: var(--link-color);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.timeline-content {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.timeline-duration {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--link-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 13px;
    color: var(--hint-color);
}

/* Стек */
.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.tech-category {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
}

.tech-category h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--hint-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag-item {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--secondary-bg-color);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tech-tag-item:hover {
    transform: scale(1.05);
    border-color: var(--link-color);
}

.benefits-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
}

.benefit-icon {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item h5 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.benefit-item p {
    font-size: 12px;
    color: var(--hint-color);
}

/* Форма и контакты */
.contact-card {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 40px var(--shadow-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--hint-color);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: var(--secondary-bg-color);
}

.submit-button {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--button-text-color);
    background: var(--button-color);
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.submit-button:hover .btn-icon {
    transform: translate(2px, -2px);
}

.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--hint-color);
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--card-border);
}

.or-separator:not(:empty)::before {
    margin-right: .5em;
}

.or-separator:not(:empty)::after {
    margin-left: .5em;
}

.contact-buttons-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.direct-tg-button {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #229ED9;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.3);
    flex: 1;
}

.direct-tg-button.channel-btn {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.direct-tg-button.outline-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    box-shadow: none;
}

.direct-tg-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
}

.direct-tg-button.channel-btn:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.direct-tg-button.outline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

@media (max-width: 480px) {
    .contact-buttons-group {
        flex-direction: column;
        gap: 8px;
    }
}

.tg-icon {
    width: 18px;
    height: 18px;
}

/* Футер */
.app-footer {
    text-align: center;
    padding: 24px 0 12px;
    color: var(--hint-color);
    font-size: 11px;
    font-weight: 500;
}

/* Интерактивный Canvas блок */
.interactive-canvas-wrapper {
    width: 100%;
    height: 300px;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px var(--shadow-color);
    background: rgba(11, 15, 25, 0.4);
    position: relative;
}

.light-theme .interactive-canvas-wrapper {
    background: rgba(255, 255, 255, 0.3);
}

.canvas-overlay-text {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--hint-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.light-theme .canvas-overlay-text {
    background: rgba(255, 255, 255, 0.6);
    color: #4b5563;
}

#interactive-network {
    width: 100%;
    height: 100%;
    display: block;
}

/* Анимации при скролле (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Динамические анимации фоновых свечений */
@keyframes moveGlow1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -40px) scale(1.2);
    }
}

@keyframes moveGlow2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-40px, 30px) scale(0.85);
    }
}

.glow-1 {
    animation: moveGlow1 12s infinite ease-in-out;
}

.glow-2 {
    animation: moveGlow2 15s infinite ease-in-out;
}

/* Пульсация точек на таймлайне */
@keyframes timelinePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
    }
}

.timeline-number {
    animation: timelinePulse 3s infinite ease-in-out;
}

/* Анимации стандартных элементов */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px #10b981;
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px #10b981;
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    white-space: nowrap;
}

.toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(6, 78, 59, 0.95);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(127, 29, 29, 0.95);
}

/* Виджет Чат-ассистента */
.chat-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: var(--font-body);
}

/* Кнопка вызова (Бабл) */
.chat-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-trigger-btn:hover {
    transform: scale(1.08) rotate(5deg);
}

.chat-trigger-btn:active {
    transform: scale(0.95);
}

.trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: white;
}

.magic-robot-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 5px rgba(99, 102, 241, 0.5));
    animation: floatRobot 4s ease-in-out infinite;
}

.robot-eye-left,
.robot-eye-right {
    animation: robotEyes 2s ease-in-out infinite alternate;
}

/* Пульсация глаз робота */
@keyframes robotEyes {
    0% {
        stroke: #38bdf8;
        filter: drop-shadow(0 0 1px #38bdf8);
    }
    100% {
        stroke: #ec4899;
        filter: drop-shadow(0 0 5px #ec4899);
    }
}

/* Покачивание робота */
@keyframes floatRobot {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.trigger-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: triggerPulse 2.5s infinite ease-out;
}

@keyframes triggerPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Окно чата */
.chat-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 320px;
    height: 450px;
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.light-theme .chat-window {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* Шапка чата */
.chat-header {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    font-size: 24px;
}

.chat-header-info h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.status-online {
    font-size: 10px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.status-online .status-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 6px #10b981;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--hint-color);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Сообщения в чате */
.chat-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 12.5px;
    line-height: 1.4;
    word-break: break-word;
}

.system-message {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    align-self: center;
    text-align: center;
    max-width: 95%;
    color: var(--text-color);
    border-radius: 12px;
}

.user-message {
    background: var(--button-color);
    color: var(--button-text-color);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: var(--secondary-bg-color);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--card-border);
}

/* Область ввода в чате */
.chat-input-area {
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-area input {
    flex-grow: 1;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 10px 16px;
    color: var(--text-color);
    font-size: 13px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--link-color);
}

.voice-record-btn,
.chat-send-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.voice-record-btn {
    color: var(--hint-color);
}

.voice-record-btn:hover {
    background: rgba(255,255,255,0.05);
}

.voice-record-btn.recording {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    animation: micPulse 1.5s infinite ease-in-out;
}

@keyframes micPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.chat-send-btn {
    background: var(--button-color);
    color: var(--button-text-color);
}

.chat-send-btn:hover {
    opacity: 0.9;
}

.mic-icon,
.send-icon {
    width: 16px;
    height: 16px;
}

/* Стили Динамического Роадмапа */
.roadmap-dynamic-section {
    margin-top: 16px;
}

.roadmap-dynamic-section.hidden {
    display: none !important;
}

.roadmap-card {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 40px var(--shadow-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.roadmap-meta {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.meta-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}

.meta-badge.stack {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.meta-badge.time {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.roadmap-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
    margin-bottom: 24px;
}

.roadmap-steps::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--card-border);
}

.roadmap-step-item {
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    animation: roadmapFadeIn 0.5s forwards ease-out;
}

@keyframes roadmapFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roadmap-step-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--link-color);
    box-shadow: 0 0 8px var(--link-color);
}

.roadmap-step-content h4 {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.roadmap-step-content p {
    font-size: 12.5px;
    color: var(--hint-color);
    line-height: 1.45;
}

.roadmap-step-time {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--link-color);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 6px;
}

.roadmap-action-btn {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: var(--button-color);
    color: var(--button-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.roadmap-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}


/* Стили для Telegram Mini App OS */

.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--hint-color);
    line-height: 1.5;
    max-width: 90%;
    margin-bottom: 16px;
}

.value-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    color: var(--text-color);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.badge-dot.purple { background-color: #a855f7; box-shadow: 0 0 6px #a855f7; }
.badge-dot.blue { background-color: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.badge-dot.green { background-color: #10b981; box-shadow: 0 0 6px #10b981; }
.badge-dot.orange { background-color: #f97316; box-shadow: 0 0 6px #f97316; }

.cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.cta-button {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background: var(--text-color);
    color: var(--bg-color);
}
.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.volumetric-clouds {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, rgba(168, 85, 247, 0.03) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.crystal-sphere-container {
    position: relative;
    width: 380px; /* Увеличено на 30% */
    height: 380px; /* Увеличено на 30% */
    margin: 20px auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Живой тикер бизнес-событий (Living Business) */
.live-event-ticker {
    position: absolute;
    bottom: -46px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hint-color);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.live-event-ticker.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ticker-dot {
    width: 5px;
    height: 5px;
    background: #6366f1; /* индиго */
    border-radius: 50%;
    box-shadow: 0 0 6px #6366f1;
}

.sphere-glow-ring {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.08), 0 0 30px rgba(99, 102, 241, 0.05);
    pointer-events: none;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.pulse-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 22, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(15px);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    z-index: 5;
}

.pulse-counter span {
    color: rgba(255, 255, 255, 0.88);
}

.pulse-counter-value {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 12.5px;
}

.pulse-dot-live {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: blink-live 1.5s infinite ease-in-out;
}

@keyframes blink-live {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

#crystal-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Workspace Grid & Cards */
.workspace-section {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 2000px;
    opacity: 1;
    overflow: visible;
    margin-top: 20px;
}

.workspace-section.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    margin-top: 0;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.workspace-card {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 32px var(--shadow-color);
    overflow: hidden;
    animation: floatCard 8s infinite ease-in-out;
}

.workspace-card:nth-child(even) {
    animation-delay: -3s;
}

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

.workspace-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
    transform: translateY(-3px) scale(1.01);
}

.card-header-clean {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.card-icon {
    font-size: 18px;
}

.card-header-clean h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

/* Chat Card */
.chat-preview-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.4;
}

.preview-message.user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-color);
}

.preview-message.ai {
    align-self: flex-start;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: var(--text-color);
    display: flex;
    gap: 8px;
}

.ai-avatar-mini {
    font-size: 12px;
}

.voice-wave-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    margin-top: 6px;
}

.wave-bar {
    width: 3px;
    background: var(--link-color);
    border-radius: 5px;
    animation: wave-pulsate 1.2s infinite ease-in-out;
}

.wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.wave-bar:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.wave-bar:nth-child(4) { height: 10px; animation-delay: 0.4s; }
.wave-bar:nth-child(5) { height: 15px; animation-delay: 0.5s; }
.wave-bar:nth-child(6) { height: 8px; animation-delay: 0.6s; }

@keyframes wave-pulsate {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1.2); }
}

.voice-text-indicator {
    font-size: 11px;
    color: var(--hint-color);
    margin-top: 4px;
    font-style: italic;
}

/* Team Card */
.team-agents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.agent-item.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.agent-item.inactive {
    opacity: 0.45;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-avatar-mini {
    font-size: 14px;
}

.agent-name {
    font-size: 12px;
    font-weight: 500;
}

.agent-status-badge {
    font-size: 10px;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Workflow Steps */
.workflow-steps-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.flow-step {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.4s ease;
}

.flow-step.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.step-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--hint-color);
    opacity: 0.6;
}

.flow-step.active .step-num {
    color: var(--link-color);
    opacity: 1;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
}

.flow-step-arrow {
    font-size: 11px;
    color: var(--hint-color);
    opacity: 0.4;
}

/* Memory Card */
.memory-blocks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memory-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.memory-tag {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--hint-color);
    letter-spacing: 0.5px;
}

.memory-val {
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

/* Web Docs Analysis */
.web-analysis-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.web-url {
    font-family: monospace;
    font-size: 12px;
    color: var(--link-color);
}

.analysis-status {
    font-size: 11px;
    font-weight: 600;
}

.analysis-status.positive {
    color: #10b981;
}

.doc-drop-zone {
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.01);
}

.doc-label {
    font-size: 11px;
    color: var(--hint-color);
}

/* Analytics Card */
.analytics-preview-box {
    position: relative;
    height: 70px;
    display: flex;
    align-items: flex-end;
}

.efficiency-badge {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #10b981;
}

.mini-chart-svg-container {
    width: 100%;
    height: 40px;
}

.mini-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Input Bar under Workspace */
.workspace-input-bar {
    margin-top: 10px;
}

.input-glass-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 16px;
}

.input-glass-container input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 12px;
    font-family: var(--font-body);
    width: 80%;
    outline: none;
}

.input-glass-container input::placeholder {
    color: var(--hint-color);
    opacity: 0.6;
}

.input-actions-icons {
    display: flex;
    gap: 10px;
    font-size: 14px;
    opacity: 0.6;
    cursor: pointer;
}

/* Состояния страницы (state-workspace) */
.state-workspace .crystal-sphere-container {
    width: 160px;
    height: 160px;
    margin: 10px auto;
}

.state-workspace .hero-title,
.state-workspace .hero-subtitle,
.state-workspace .value-badges,
.state-workspace .cta-group,
.state-workspace .live-event-ticker {
    display: none;
}

.state-workspace .hero-section {
    padding-bottom: 0;
}

@media(min-width: 768px) {
    .app-container {
        max-width: 768px;
    }
}

/* Стили для интерактивного Квиза-Симулятора */
.ai-quiz-container {
    background: rgba(10, 10, 12, 0.35);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.quiz-question-title {
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--hint-color);
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.quiz-opt-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    outline: none;
}

.quiz-opt-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.quiz-opt-btn.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.08);
}

.opt-emoji {
    font-size: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.quiz-opt-btn:hover .opt-emoji {
    transform: scale(1.15) rotate(-5deg);
}

.opt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.opt-text strong {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-color);
}

.opt-text span {
    font-size: 11px;
    color: var(--hint-color);
    font-weight: 500;
    line-height: 1.35;
}

.quiz-submit-btn {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    padding: 13px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    background: var(--text-color);
    color: var(--bg-color);
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.05);
}

.quiz-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.quiz-submit-btn:active {
    transform: translateY(0);
}

/* Скрытие старых демо элементов во время AI Discovery */
.discovery-workspace-header {
    display: none !important;
}

#workspace.discovery-mode-active .legacy-workspace-header,
#workspace.discovery-mode-active .workspace-grid,
#workspace.discovery-mode-active .workspace-input-bar {
    display: none !important;
}

#workspace.discovery-mode-active span.discovery-workspace-header {
    display: inline-block !important;
}

#workspace.discovery-mode-active h2.discovery-workspace-header,
#workspace.discovery-mode-active p.discovery-workspace-header {
    display: block !important;
}

/* Стили карточки исходного запроса пользователя */
.discovery-user-query-card {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--link-color);
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px var(--shadow-color);
    animation: fadeIn 0.4s ease-out;
}

.query-card-tag {
    font-family: var(--font-heading);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--link-color);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.query-card-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.45;
    margin: 0;
}

/* AI Discovery Container Styles */
.ai-discovery-container {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discovery-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.discovery-spinner-wrapper {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.discovery-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(120, 120, 120, 0.15);
    border-top-color: var(--link-color);
    border-radius: 50%;
    animation: discovery-spin 0.8s linear infinite;
}

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

#discovery-status-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.discovery-indicators {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.indicator-item {
    font-size: 13.5px;
    color: var(--hint-color);
    padding-left: 20px;
    position: relative;
    opacity: 0.4;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.indicator-item::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hint-color);
}

.indicator-item.active {
    opacity: 1;
    color: var(--link-color);
}

.indicator-item.active::before {
    background: var(--link-color);
    box-shadow: 0 0 8px var(--link-color);
}

/* stage 2: Understanding */
.discovery-facts-panel {
    display: none;
    margin-top: 10px;
    animation: fadeIn 0.4s ease-out;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--hint-color);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    padding: 12px 16px;
    border-radius: 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fact-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.fact-icon {
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
}

/* Language Suggestion Card */
.discovery-lang-suggestion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    background: var(--card-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 16px;
    margin-top: 20px;
    animation: fadeIn 0.4s ease-out;
}

.suggestion-icon {
    font-size: 24px;
}

#discovery-lang-suggestion-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.suggestion-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.suggestion-btn.primary {
    background: var(--link-color);
    color: #ffffff;
}

.suggestion-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.suggestion-btn.secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-color);
}

.suggestion-btn.secondary:hover {
    background: var(--secondary-bg-color);
    transform: translateY(-1px);
}

/* stage 3: Clarifying */
.discovery-questions-panel {
    display: none;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    animation: fadeIn 0.5s ease-out;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.question-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    padding: 16px;
    border-radius: 16px;
}

.question-card label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-color);
}

.question-input {
    width: 100%;
    background: var(--secondary-bg-color);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-color);
    font-size: 12.5px;
    outline: none;
    transition: all 0.25s ease;
}

.question-input:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.question-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media(min-width: 480px) {
    .question-options {
        grid-template-columns: 1fr 1fr;
    }
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--secondary-bg-color);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: var(--card-bg-glass);
    border-color: var(--link-color);
}

.option-btn.selected {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--link-color);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.05);
    font-weight: 700;
}

.discovery-submit-btn {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    padding: 13px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    background: var(--link-color);
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.discovery-submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.discovery-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--hint-color);
    box-shadow: none;
}

.discovery-saved-status {
    display: none;
    text-align: center;
    margin-top: 14px;
    animation: fadeIn 0.3s ease;
}

.saved-title {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 4px;
}

.saved-subtitle {
    font-size: 13px;
    color: var(--hint-color);
    font-weight: 500;
    margin: 0;
}

/* Error panel */
.discovery-error-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.error-title {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
    margin: 0 0 4px;
}

.error-subtitle {
    font-size: 13px;
    color: var(--hint-color);
    font-weight: 500;
    margin: 0;
}

.discovery-retry-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.discovery-retry-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-discovery-container,
    .fact-item,
    .discovery-submit-btn,
    .discovery-spinner,
    .option-btn {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Стили для сюжетных уведомлений (Cinematic Visit Sequence) */
.story-notification {
    position: absolute;
    top: 50px;
    left: -20px;
    background: rgba(10, 10, 12, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 12px 16px;
    border-radius: 16px;
    width: 200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.06);
    z-index: 10;
    opacity: 0;
    transform: translateX(-30px) scale(0.92);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.story-notification.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.story-notification-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.story-notification-icon {
    font-size: 14px;
}

.story-notification-title {
    font-family: var(--font-heading);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: #6366f1; /* индиго */
    letter-spacing: 0.8px;
}

.story-notification-body {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
}

.story-notification-footer {
    font-size: 9px;
    color: var(--hint-color);
    margin-top: 5px;
    font-weight: 500;
}

/* Виджет часов Реального Времени */
.system-time {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.85;
}

/* Стеклянный лог активности (Live Activity Feed) */
.live-activity-feed {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 320px;
    width: 100%;
    opacity: 0.85;
    z-index: 5;
}

/* AI ARCHITECT CONTAINER */
.architect-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    margin-top: 35px;
    width: 100%;
}

@media (max-width: 768px) {
    .architect-container {
        grid-template-columns: 1fr;
    }
}

/* Chat Column */
.architect-chat-column {
    background: var(--card-bg-glass);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 480px;
    position: relative;
}

.architect-presence {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 12px;
}

/* Orb Presence animation */
.architect-orb {
    position: relative;
    width: 18px;
    height: 18px;
}

.orb-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.orb-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.4);
    animation: orbRipple 2.2s infinite ease-out;
}

@keyframes orbRipple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.architect-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.presence-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-color);
}

.presence-status {
    font-size: 9px;
    color: #6366f1;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Chat Log */
.architect-chat-log {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    margin-bottom: 16px;
    scroll-behavior: smooth;
}

.architect-chat-log::-webkit-scrollbar {
    width: 4px;
}

.architect-chat-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.architect-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
}

.architect-msg.ai {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.architect-msg.user {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.architect-typing {
    display: none;
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 14px;
    border-radius: 12px;
    gap: 4px;
    margin-bottom: 12px;
}

.architect-typing span {
    width: 6px;
    height: 6px;
    background: #6366f1;
    border-radius: 50%;
    display: inline-block;
    animation: typingPulse 1.2s infinite ease-in-out;
}

.architect-typing span:nth-child(2) { animation-delay: 0.2s; }
.architect-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* Input box */
.architect-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 6px 6px 6px 14px;
    align-items: center;
    gap: 8px;
    transition: border-color 0.3s ease;
}

.architect-input-wrapper:focus-within {
    border-color: rgba(99, 102, 241, 0.28);
}

#architect-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 13.5px;
    flex-grow: 1;
}

.architect-send-btn {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.architect-send-btn:hover {
    transform: scale(1.05);
}

.architect-send-btn svg {
    width: 14px;
    height: 14px;
}

.architect-placeholder-hint {
    font-size: 11px;
    color: var(--hint-color);
    margin-top: 8px;
    font-style: italic;
    opacity: 0.7;
    text-align: center;
}

/* Blueprint panel */
.blueprint-panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 24px;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.blueprint-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.blueprint-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.blueprint-modules {
    margin-bottom: 12px;
}

.modules-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--hint-color);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 8px;
}

.modules-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.module-check-placeholder {
    font-size: 12px;
    color: var(--hint-color);
    font-style: italic;
}

.blueprint-badge {
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 8px;
    animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes badgePop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Visualization diagram */
.blueprint-visual-container {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

#blueprint-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blueprint-summary-block {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 14px;
}

.blueprint-estimate {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 12px;
}

.blueprint-actions {
    display: flex;
    gap: 10px;
}

.blueprint-actions button {
    flex: 1;
    font-size: 12px;
    padding: 10px;
}

/* Subtle Proof Line */
.subtle-proof-line {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.subtle-proof-line span {
    font-size: 11px;
    color: var(--hint-color);
    opacity: 0.65;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 10, 12, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-color);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* BLUEPRINT UNDERSTANDING PANEL */
.blueprint-understanding-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.understanding-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
}

@media (max-width: 480px) {
    .understanding-grid {
        grid-template-columns: 1fr;
    }
}

.understanding-item {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    padding-bottom: 4px;
}

.u-label {
    color: var(--hint-color);
    font-weight: 500;
}

.u-value {
    color: #6366f1;
    font-weight: 700;
    text-align: right;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.activity-item-dot {
    width: 5px;
    height: 5px;
    background: #6366f1; /* Индиго */
    border-radius: 50%;
    box-shadow: 0 0 6px #6366f1;
    flex-shrink: 0;
}

.activity-item-dot.success {
    background: #10b981; /* Зеленый для Trust Moments */
    box-shadow: 0 0 6px #10b981;
}

.activity-item-time {
    font-size: 9.5px;
    color: var(--hint-color);
    font-weight: 700;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.activity-item-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* HERO AI ENTRY POINT */
.hero-ai-entry {
    margin-top: 30px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.entry-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--hint-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 2px;
}

.entry-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 6px 8px 6px 12px;
    gap: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.entry-input-wrapper:focus-within {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15), 0 8px 30px rgba(0, 0, 0, 0.04);
}

#hero-ai-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 14px;
    flex-grow: 1;
}

#hero-ai-input::placeholder {
    color: var(--hint-color);
    opacity: 0.7;
}

.entry-mic-btn, .entry-send-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: var(--hint-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.entry-mic-btn:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.entry-send-btn {
    background: var(--primary-gradient);
    color: white;
}

.entry-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Scenarios list */
.entry-scenarios {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.scenario-tag {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.scenario-tag:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: white;
    transform: translateY(-1px);
}

/* Micro-feedback animation on mic button */
.entry-mic-btn.listening {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: micPulse 1.4s infinite ease-in-out;
}

@keyframes micPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Десктопная композиция первого экрана (Stage 02 - Viewport) */
@media (min-width: 1024px) {
    .app-container {
        max-width: 1200px; /* Расширяем для двух колонок */
        padding: 24px 40px;
    }
    
    .hero-layout {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 60px;
        margin-top: 40px;
        width: 100%;
    }
    
    .hero-left {
        align-items: flex-start;
        text-align: left;
        flex: 1.2;
        max-width: 620px;
    }
    
    .hero-right {
        flex: 0.8;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .hero-title {
        font-size: 42px; /* Возвращаем полноценный размер */
        line-height: 1.15;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 20px;
        max-width: 100%;
        color: #a1a1aa; /* Усилили контраст подзаголовка на 20% */
    }
    
    .value-badges {
        justify-content: flex-start;
        margin-bottom: 24px;
    }
    
    .cta-group {
        justify-content: flex-start;
        margin-bottom: 30px;
    }
    
    .hero-ai-entry {
        margin-top: 0;
        margin-bottom: 16px;
        max-width: 100%;
    }
    
    .crystal-sphere-container {
        width: 370px; /* Увеличено на 15% (было 320px) */
        height: 370px;
        margin: 0 auto;
        margin-top: -40px; /* Поднимаем сферу для визуальной связи с инпутом */
    }
    
    .live-activity-feed {
        position: absolute;
        top: 80px;
        right: 40px; /* Сдвинуто в верхний правый угол под время */
        left: auto;
        margin-top: 0;
        max-width: 260px;
        pointer-events: none;
        z-index: 100;
    }
    
    .hero-section {
        padding-bottom: 100px; /* Добавили больше воздуха снизу */
    }
    
    .live-activity-feed,
    .live-event-ticker {
        display: none !important;
    }
}



