:root {
    --bg: #0a0d1a;
    --bg-2: #0f1424;
    --surface: #141a2e;
    --surface-2: #1a2138;
    --border: #232b45;
    --border-light: #2e3757;
    --text: #eef2ff;
    --text-dim: #98a3c4;
    --text-mute: #6b7699;
    --primary: #4f7cff;
    --primary-2: #6b5cff;
    --accent: #a97aff;
    --success: #4ade80;
    --error: #ff6b6b;
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Декоративные свечения на фоне */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: #2a4bff;
    top: -200px;
    left: -150px;
}
.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: #7a2aff;
    bottom: -250px;
    right: -200px;
    opacity: 0.25;
}

/* ===== Верхняя панель ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: rgba(15, 20, 36, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}

/* Логотип в шапке */
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 16px rgba(79, 124, 255, 0.3);
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    background: linear-gradient(90deg, #fff, #b8c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tabs {
    display: flex;
    gap: 6px;
    background: rgba(20, 26, 46, 0.6);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text);
    background: rgba(79, 124, 255, 0.1);
}

.tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 124, 255, 0.45);
}

.tab-icon { font-size: 16px; }

/* ===== Основной контент ===== */
main {
    flex: 1;
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    width: 100%;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 70px 24px 60px;
    border-radius: 28px;
    margin-bottom: 50px;
    background:
        radial-gradient(ellipse at top, rgba(79, 124, 255, 0.18), transparent 60%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-business {
    background:
        radial-gradient(ellipse at top, rgba(169, 122, 255, 0.2), transparent 60%),
        linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}

.hero-badge {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(79, 124, 255, 0.12);
    border: 1px solid rgba(79, 124, 255, 0.35);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #9fb4ff;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-business .hero-badge {
    background: rgba(169, 122, 255, 0.12);
    border-color: rgba(169, 122, 255, 0.35);
    color: #c5a8ff;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(90deg, #6ea8ff 0%, #a97aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-business .gradient-text {
    background: linear-gradient(90deg, #a97aff 0%, #ff7ad9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 34px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 8px 28px rgba(79, 124, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(79, 124, 255, 0.55);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.btn-full { width: 100%; }

/* ===== Статистика ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
    padding: 30px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.stat { text-align: center; }

.stat-value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #6ea8ff, #a97aff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-mute);
    font-weight: 500;
}

/* ===== Карточки возможностей ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 70px;
}

.card {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(20, 26, 46, 0.6) 100%);
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 124, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before { opacity: 1; }

.card-icon {
    font-size: 30px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(79, 124, 255, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(79, 124, 255, 0.2);
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
}

.card-highlight {
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.15) 0%, var(--surface) 100%);
    border-color: rgba(79, 124, 255, 0.4);
}

.card-highlight .card-icon {
    background: rgba(79, 124, 255, 0.2);
    border-color: rgba(79, 124, 255, 0.4);
}

.card-bonus {
    background: linear-gradient(135deg, rgba(169, 122, 255, 0.15) 0%, var(--surface) 100%);
    border-color: rgba(169, 122, 255, 0.4);
}

.card-bonus .card-icon {
    background: rgba(169, 122, 255, 0.2);
    border-color: rgba(169, 122, 255, 0.4);
}

/* ===== Секция "Как это работает" ===== */
.how {
    margin-bottom: 70px;
    text-align: center;
}

.how h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #fff;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 40px;
}

.how .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.step {
    background: var(--surface);
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: left;
    transition: all 0.25s;
}

.step:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(79, 124, 255, 0.4);
}

.step h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.step p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
}

/* ===== AI-агенты ===== */
.agents {
    margin-bottom: 70px;
    text-align: center;
}

.agents h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #fff;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.agent-card {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(20, 26, 46, 0.5) 100%);
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.25s;
    text-align: center;
}

.agent-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(169, 122, 255, 0.15);
}

.agent-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(107, 92, 255, 0.4);
}

.agent-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.agent-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
}

/* ===== Форма ===== */
.form-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.form-card {
    width: 100%;
    max-width: 560px;
    background:
        radial-gradient(ellipse at top, rgba(79, 124, 255, 0.15), transparent 70%),
        var(--surface);
    padding: 44px 40px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.form-card h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: #fff;
}

.form-subtitle {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 30px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field { position: relative; }

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 15px 18px;
    background: rgba(10, 13, 26, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: var(--text-mute);
}

.lead-form input:focus,
.lead-form textarea:focus {
    border-color: var(--primary);
    background: rgba(10, 13, 26, 0.9);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.15);
}

.lead-form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-message {
    margin-top: 18px;
    font-weight: 600;
    font-size: 15px;
    min-height: 24px;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }

/* ===== Футер ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    background: rgba(10, 13, 26, 0.7);
    text-align: center;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
}

/* Логотип в футере */
.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

.footer-text {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-copy {
    color: var(--text-mute);
    font-size: 13px;
}

/* ===== Адаптив ===== */
@media (max-width: 720px) {
    .topbar {
        padding: 12px 16px;
    }
    .logo-text { display: none; }
    .tab { padding: 9px 14px; font-size: 13px; }
    .tab span:not(.tab-icon) { display: none; }
    .tab-icon { font-size: 18px; }

    main { padding: 24px 16px 60px; }

    .hero { padding: 48px 20px 44px; border-radius: 22px; }

    .form-card { padding: 32px 24px; }

    .stats { padding: 22px 16px; gap: 12px; }
    .stat-value { font-size: 24px; }
}
/* ===== Логотип ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text, #eef2ff);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.logo-img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px;
    object-fit: cover;
    display: block !important;
    box-shadow: 0 4px 16px rgba(79, 124, 255, 0.3);
    transition: transform 0.2s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.footer-logo {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px;
    object-fit: cover;
    display: inline-block !important;
    vertical-align: middle;
    margin-right: 8px;
}