:root {
    --bg: #0b0c10;
    --card: #12151a;
    --text: #e6eaf2;
    --muted: #a6b0c3;
    --primary: #4f8cff;
    --accent: #22c55e;
    --warning: #f59e0b;
    --border: #1f2430;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --section-padding: 5rem 1.5rem;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f8fafc;
        --card: #ffffff;
        --text: #1e293b;
        --muted: #64748b;
        --border: #e2e8f0;
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
}

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

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.light-mode header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: light) {
    header {
        background: rgba(248, 250, 252, 0.9);
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    width: 24px;
    height: 24px;
    justify-content: space-between;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav.active {
    display: flex;
}

@media (max-width: 768px) {
    .nav-links, .header-cta {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    background: var(--card);
    border-radius: 50px;
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.chat-widget {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.message-user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.message-bot {
    align-self: flex-start;
    background: var(--border);
    border-bottom-left-radius: 0.25rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--border);
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
    align-self: flex-start;
    max-width: 80px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.chat-input button {
    margin-left: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--primary);
    color: white;
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Trust Strip */
.trust-strip {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.logos {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.logo-placeholder {
    width: 100px;
    height: 40px;
    background: var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .trust-container {
        justify-content: center;
    }
}

/* Features */
.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(79, 140, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--muted);
}

/* How It Works */
.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 3rem 0;
}

.steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 200px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--muted);
    font-size: 0.875rem;
}

.code-snippet {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
    font-family: monospace;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 0.75rem;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
        gap: 2rem;
    }
    .steps::before {
        display: none;
    }
    .step {
        max-width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    .step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* Data Sources */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: var(--card);
    border: 1px solid var(--border);
    font-weight: 500;
    transition: var(--transition);
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-panel {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}

.textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    resize: vertical;
}

.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.drop-zone:hover {
    border-color: var(--primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.faq-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.faq-question {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--muted);
    font-size: 0.875rem;
}

.url-input {
    display: flex;
    gap: 0.5rem;
}

.url-input input {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 3s ease;
}

.progress-bar.animating .progress-fill {
    width: 100%;
}

/* Integrations */
.integration-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: var(--transition);
}

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

.integration-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(79, 140, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--warning);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Pricing */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    transition: var(--transition);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.discount-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.pricing-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

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

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price-period {
    font-size: 1rem;
    color: var(--muted);
}

.price-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.price-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-icon {
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 0 1.5rem;
    color: var(--muted);
    display: none;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-control.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Footer */
footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.theme-toggle .moon-icon {
    display: none;
}

.theme-toggle .sun-icon {
    display: block;
}
.lang-switch{
  display:flex;
  gap:.5rem;
  margin-right: 1rem;
}
.lang-link{
  font-weight:600;
  font-size:.85rem;
  opacity:.8;
  padding:.25rem .5rem;
  border-radius:8px;
  text-decoration:none;
  color: var(--text);
  border:1px solid rgba(255,255,255,0.12);
}
.lang-link.active{
  opacity:1;
  background: rgba(79,140,255,0.15);
  border-color: rgba(79,140,255,0.6);
}
/* Light mode icon states */
@media (prefers-color-scheme: light) {
    .theme-toggle .moon-icon {
        display: block;
    }
    .theme-toggle .sun-icon {
        display: none;
    }
}

/* Manual light mode */
.light-mode .theme-toggle .moon-icon {
    display: none;
}

.light-mode .theme-toggle .sun-icon {
    display: block;
}

/* Manual dark mode */
.dark-mode .theme-toggle .moon-icon {
    display: block;
}

.dark-mode .theme-toggle .sun-icon {
    display: none;
}
/* Добавьте эти стили в существующий CSS */
.mobile-toggle span {
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
