/* ===== Variables ===== */
:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --secondary: #06B6D4;
    --bg: #0A0614;
    --bg-card: #130E24;
    --bg-card-hover: #1A1430;
    --surface: #0F0A1E;
    --text: #F5F3FF;
    --text-muted: #6B7280;
    --border: rgba(124, 58, 237, 0.2);
    --border-hover: rgba(124, 58, 237, 0.5);
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}
body.no-scroll {
    overflow: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; }
strong { font-weight: 600; }

.gradient-text {
    background: linear-gradient(135deg, #A78BFA, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}
.btn-white {
    background: white;
    color: var(--primary-dark);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}
.btn-large { padding: 18px 36px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10, 6, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 32px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #A78BFA, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.nav-links a { font-weight: 500; color: var(--text-muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text); transition: var(--transition); border-radius: 2px; }

.mobile-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--bg-card);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.mobile-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a { padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.mobile-nav-links a:hover { background: rgba(124, 58, 237, 0.1); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%; left: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 20px;
}
.badge-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}
.hero-actions { margin-bottom: 12px; }
.hero-note { font-size: 14px; color: var(--text-muted); margin-bottom: 36px; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number {
    font-size: 26px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, var(--text), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-muted); }

/* AI Dashboard */
.hero-visual { position: relative; }

.ai-dashboard {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-frame {
    background: #0D0A1A;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(124, 58, 237, 0.08);
    transition: var(--transition);
    position: relative;
}

.dashboard-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05));
    border-radius: 16px;
    z-index: 1;
    pointer-events: none;
}

.dashboard-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
}

.dashboard-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.dashboard-frame:hover img {
    transform: scale(1.02);
}

.dashboard-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    opacity: 0;
    transition: var(--transition);
}

.dashboard-frame:hover .dashboard-glow {
    opacity: 1;
}

/* ===== Section Styles ===== */
section { padding: 80px 0; scroll-margin-top: 90px; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid var(--border);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 12px; }

/* ===== ИИ-Агент секция ===== */
.pain-solve { background: var(--surface); }
.pain-solve .container { max-width: 900px; }

.agent-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: -12px auto 40px;
    line-height: 1.6;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.agent-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.agent-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(124, 58, 237, 0.1);
}

.agent-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.agent-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.agent-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ===== Platforms ===== */
.platforms { background: var(--surface); }
.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.platform-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.platform-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.04);
}
.platform-card h3 { font-size: 18px; margin-bottom: 8px; }
.platform-card p { color: var(--text-muted); font-size: 14px; }

/* ===== How it works ===== */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 16px; max-width: 900px; margin: 0 auto; }
.step {
    flex: 1;
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.step:hover { border-color: var(--border-hover); }
.step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
    margin: 0 auto 16px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 14px; }
.step-connector { width: 50px; height: 2px; background: var(--border); flex-shrink: 0; margin-top: 48px; }

/* ===== Comparison ===== */
.comparison { background: var(--surface); }
.comparison-table { max-width: 700px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.comparison-header, .comparison-row { display: grid; grid-template-columns: 1fr 1fr; }
.comparison-row { border-top: 1px solid var(--border); }
.comp-col { padding: 18px 20px; font-size: 14px; }
.comp-col.old { color: var(--text-muted); background: rgba(239,68,68,0.04); border-right: 1px solid var(--border); }
.comparison-header .comp-col.old { font-weight: 700; color: var(--text); }
.comp-col.new { color: var(--text); background: rgba(16,185,129,0.04); font-weight: 500; }
.comparison-header .comp-col.new { font-weight: 700; background: rgba(16,185,129,0.08); color: var(--secondary); }

/* ===== Audience ===== */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.audience-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.audience-icon { font-size: 36px; margin-bottom: 16px; }
.audience-card h3 { font-size: 18px; margin-bottom: 8px; }
.audience-card p { color: var(--text-muted); font-size: 14px; }

/* ===== Signup ===== */
.signup {
    background: var(--surface);
    position: relative;
    overflow: hidden;
}
.signup::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.signup-content { text-align: center; max-width: 560px; margin: 0 auto; position: relative; z-index: 2; }
.signup-title { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 12px; }
.signup-subtitle { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }
.signup-benefits { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin: 0 auto 32px; text-align: left; }
.signup-benefits li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-muted); font-size: 15px; }
.signup-benefits li svg { flex-shrink: 0; margin-top: 2px; }

.signup-form { max-width: 460px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.signup-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}
.signup-form input:focus { outline: none; border-color: var(--primary); }
.signup-form input::placeholder { color: var(--text-muted); }
.signup-form input + input { margin-top: 12px; }
.signup-form .btn { margin-top: 12px; }
.signup-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq { background: var(--bg); }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}
.faq-question:hover { color: var(--primary-light); }
.faq-question svg { transition: var(--transition); flex-shrink: 0; }
.faq-item.active .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.active .faq-answer { max-height: 1000px; }
.faq-answer p { padding-bottom: 20px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ===== Footer CTA ===== */
.footer-cta {
    background: linear-gradient(135deg, #1a0f3e 0%, #0f172a 50%, #0a1628 100%);
    padding: 64px 0;
    text-align: center;
}
.footer-cta .logo { justify-content: center; margin-bottom: 16px; }
.footer-cta .logo-title {
    background: linear-gradient(135deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-cta-text { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 28px; }

/* ===== Footer ===== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-about .logo { margin-bottom: 12px; }
.footer-about p { color: var(--text-muted); font-size: 14px; }
.footer h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--primary-light); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-contact p { margin-bottom: 10px; }
.footer-contact a { color: var(--text-muted); font-size: 14px; }
.footer-contact a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 13px; }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 0; }
.animate.visible { animation: fadeInUp 0.5s ease forwards; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; max-width: 450px; margin: 0 auto; }
    .pain-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .platforms-grid { grid-template-columns: 1fr; }
    .agent-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .steps { flex-direction: column; gap: 16px; }
    .step-connector { display: none; }
    .comparison-header { grid-template-columns: 1fr; }
    .comparison-row { grid-template-columns: 1fr; }
    .comp-col.old { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 700px) {
    .nav-links, .header .btn { display: none; }
    .mobile-menu-btn { display: flex; }
    .container { padding: 0 16px; }
    section { padding: 60px 0; }
    .hero { padding-top: 100px; min-height: auto; }
    .hero h1 { font-size: 28px; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { gap: 20px; }
    .solution-block { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .code-body { font-size: 11px; padding: 14px; }
}
