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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --glow: rgba(99, 102, 241, 0.4);
    --green: #10b981;
    --red-muted: #f87171;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

.hero-logo {
    text-align: center;
    margin-bottom: 24px;
}

.hero-logo img {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.nav-links { display: flex; gap: 30px; list-style: none; }

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); }

.btn-header {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--glow);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow);
}

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: block; }
}

.hero { padding: 100px 0 60px; text-align: center; }

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.beta-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--green);
    margin-bottom: 20px;
}

.hero-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

.value-anchor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.value-old {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.value-new {
    font-size: 1.1rem;
    color: var(--green);
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    text-wrap: balance;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px var(--glow); }

.btn-secondary {
    padding: 16px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }

.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 60px; flex-wrap: wrap; }

.stat { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

section { padding: 80px 0; }

.section-title { text-align: center; font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* === Chat Demo === */
.chat-demo {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.chat-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.demo-badge {
    margin-left: auto;
    padding: 4px 10px;
    background: rgba(255, 200, 0, 0.15);
    color: #ffc800;
    border: 1px solid rgba(255, 200, 0, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.chat-name { font-weight: 600; }
.chat-status { font-size: 0.85rem; color: var(--green); }

.chat-messages {
    display: flex; flex-direction: column; gap: 16px;
    max-height: 320px; overflow-y: auto;
    padding-bottom: 16px;
}

.message {
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-line;
}

.message.user {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.bot {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.bot .source { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--accent); }

/* === Blur CTA === */
.blurred-response {
    position: relative;
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.blur-cta {
    text-align: center;
    padding: 20px 0 0;
}

.btn-blur-cta {
    padding: 14px 28px;
    font-size: 1rem;
}

.demo-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.demo-label {
    text-align: center;
    font-size: 0.75rem;
    color: #ffc800;
    font-style: italic;
    margin-top: -8px;
    margin-bottom: 8px;
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blur-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* === Chat Input === */
.chat-input-area {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    padding: 12px 16px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
}

.user-message {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    animation: fadeIn 0.3s ease 0.5s;
}

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

/* === Audience Tabs === */
.audience-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.audience-tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.audience-tab:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.audience-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--glow);
}

.audience-panel { display: none; }
.audience-panel.active { display: block; }

.audience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.audience-examples h3,
.audience-offer h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.audience-examples ul,
.audience-offer ul {
    list-style: none;
    margin-bottom: 24px;
}

.audience-examples li,
.audience-offer li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.audience-examples li { padding-left: 20px; position: relative; }
.audience-examples li::before { content: '\2022'; position: absolute; left: 0; color: var(--primary); }

.audience-offer li { display: flex; align-items: center; gap: 8px; }
.audience-offer li::before { content: '\2713'; color: var(--green); font-weight: 700; }

.btn-audience {
    padding: 14px 28px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .audience-content { grid-template-columns: 1fr; gap: 30px; }
}

/* === Trust Section === */
.trust-section { padding: 40px 0; }

.trust-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 28px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
}

.trust-icon { font-size: 2rem; flex-shrink: 0; }

.trust-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.trust-text strong { color: var(--text); }

.trust-date {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--accent);
}

.trust-disclaimer {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 16px;
    opacity: 0.7;
}

/* === Compare Section === */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.compare-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.compare-new {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
}

.compare-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.compare-list { list-style: none; }

.compare-list li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.compare-old .compare-list li { opacity: 0.7; }

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

/* === Steps, Features, Interest === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

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

.step-number {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
    margin: 0 auto 20px;
}

.step-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step-card p { color: var(--text-muted); }

.features-grid { 
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px; 
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    width: 320px;
    flex-shrink: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === Pricing === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
    justify-items: center;
}

.pricing-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 40px var(--glow);
}

.pricing-card.popular::before {
    content: 'Популярный';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card:hover { transform: translateY(-5px); }
.pricing-card.popular:hover { transform: translateY(-5px); }

.pricing-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }

.pricing-price { font-size: 3rem; font-weight: 800; margin-bottom: 8px; }
.pricing-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.pricing-desc { color: var(--text-muted); margin-bottom: 30px; font-size: 0.95rem; }

.pricing-features { list-style: none; margin-bottom: 32px; }

.pricing-features li {
    padding: 10px 0;
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted);
}

.pricing-features li::before { content: '\2713'; color: var(--accent); font-weight: 700; font-size: 1.1rem; }

.pricing-btn {
    width: 100%; padding: 16px;
    border-radius: 14px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block; text-align: center;
}

.pricing-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border: none;
    box-shadow: 0 4px 15px var(--glow);
}

.pricing-btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.pricing-btn:hover { transform: translateY(-2px); }

/* === Compare Table === */
.compare-table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    padding: 18px 20px;
}

.compare-table th:first-child {
    text-align: left;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.compare-table .highlight {
    color: var(--accent);
    font-weight: 700;
}

.compare-table th:last-child {
    color: var(--accent);
}

/* === FAQ === */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.faq-item summary {
    padding: 24px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 1.05rem;
    transition: background 0.3s;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, 0.03); }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer { padding: 0 24px 24px; color: var(--text-muted); }

/* === CTA === */
.cta-section { text-align: center; padding: 100px 0; }

.cta-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 32px;
    padding: 60px 40px;
    backdrop-filter: blur(20px);
}

.cta-box h2 { font-size: 2.5rem; margin-bottom: 16px; }

.cta-box p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === Footer === */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; }

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }

.footer-disclaimer { margin-top: 15px; font-size: 0.8em; opacity: 0.7; }

/* === Legal pages === */
.legal-page { padding: 120px 0 80px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: 2.2rem; margin-bottom: 24px; text-align: center; }
.legal-page h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--accent); }
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: 12px; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page .back-link { display: inline-block; margin-bottom: 24px; color: var(--accent); text-decoration: none; }

@media (max-width: 768px) {
    .hero-stats { gap: 30px; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 1.8rem; }
    .feature-card { width: 100%; max-width: 400px; }
}

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