/* ==========================================================================
   PAGE MARICHKA-AI — AI Sales Manager (HuntBot.ai)
   ========================================================================== */

/* --- SECTION --- */

.mar-section-bordered { border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* --- INTEGRATIONS BAR --- */

.mar-integrations-bar {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.mar-bar-mask {
    position: absolute; inset: 0;
    background: linear-gradient(to right, var(--bg-color), transparent 15%, transparent 85%, var(--bg-color));
    z-index: 2; pointer-events: none;
}

.logos-track {
    display: flex; gap: 80px; align-items: center;
    width: max-content;
    animation: marScrollLogos 50s linear infinite;
}

@keyframes marScrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- TRANSFORMATION --- */

.mar-bg-glow {
    position: absolute; top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: var(--primary-glow); filter: blur(150px); opacity: 0.1;
    pointer-events: none;
}

.mar-transformation-list { margin-top: 60px; display: flex; flex-direction: column; gap: 16px; }

.mar-trans-row {
    display: grid; grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px; padding: 10px; overflow: hidden;
}

.mar-trans-pain { padding: 24px 32px; background: rgba(255, 77, 77, 0.03); border-radius: 12px; }

.mar-trans-solution { padding: 24px 32px; background: rgba(74, 222, 128, 0.03); border-radius: 12px; }

.mar-trans-bad-label { color: #ff4d4d; font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }

.mar-trans-good-label { color: #4ade80; font-size: 13px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }

.mar-trans-title { font-size: 18px; font-weight: 700; color: white; }

.mar-trans-arrow { display: flex; justify-content: center; }

.mar-arrow-circle {
    width: 40px; height: 40px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; box-shadow: 0 0 20px var(--primary-glow);
}

/* --- FEATURES --- */

.mar-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.mar-features-title { font-size: 44px; margin-bottom: 32px; }

.mar-feature-list { display: flex; flex-direction: column; gap: 24px; }

.mar-feature-item { display: flex; gap: 20px; }

.mar-feature-icon {
    width: 44px; height: 44px; background: rgba(252, 96, 17, 0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); flex-shrink: 0;
}

.mar-feature-heading { color: white; font-size: 18px; margin-bottom: 6px; }

.mar-feature-desc { color: var(--text-muted); font-size: 14px; }

/* ROI Card */

.mar-roi-card {
    padding: 48px;
    background: rgba(252, 96, 17, 0.03);
    border: 1px solid rgba(252, 96, 17, 0.2);
}

.mar-roi-title { color: white; font-size: 28px; margin-bottom: 24px; }

.mar-roi-list { list-style: none; padding: 0; }

.mar-roi-list li { margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }

.mar-roi-num { font-size: 24px; color: var(--primary); font-weight: 800; }

.mar-roi-text { color: var(--text-muted); }

.mar-roi-stat { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

.mar-roi-big { font-size: 52px; font-weight: 800; color: white; }

.mar-roi-label { font-size: 13px; color: var(--primary); font-weight: 700; text-transform: uppercase; }

/* --- SCENARIO --- */

.mar-scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

.mar-scenario-title { font-size: 40px; margin-bottom: 40px; }

/* Steps */

.marichka-step {
    display: flex; gap: 24px; margin-bottom: 40px;
    opacity: 0.4; transition: all 0.4s ease;
}

.marichka-step.active { opacity: 1; transform: translateX(10px); }

.step-num {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--primary);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-weight: 800; flex-shrink: 0;
}

.marichka-step.active .step-num {
    background: var(--primary); color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.mar-step-heading { color: white; margin-bottom: 8px; }

.mar-step-text { color: var(--text-muted); font-size: 14px; }

/* Visual Card */

.mar-visual-wrapper { display: flex; align-items: center; justify-content: center; position: relative; width: 100%; }

.mar-visual-card { width: 100%; height: 500px; padding: 40px; background: rgba(0, 0, 0, 0.4); overflow: hidden; position: relative; }

.scenario-visual {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; transition: all 0.6s ease;
    position: absolute; inset: 0;
    opacity: 0; transform: scale(0.9); pointer-events: none;
}

.scenario-visual.active { opacity: 1; transform: scale(1); pointer-events: all; }

/* Visual 1: Glow circle */

.mar-vis-glow-circle {
    width: 120px; height: 120px; background: rgba(252, 96, 17, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 30px; position: relative;
}

.mar-scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid var(--primary); border-radius: 50%; opacity: 0.3;
}

/* Visual 2: DB Grid */

.mar-db-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 30px; }

.mar-db-item {
    width: 60px; height: 60px; background: rgba(255, 255, 255, 0.05);
    border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
}

.mar-db-item--active { background: rgba(252, 96, 17, 0.1); border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }

/* Visual 3: Proposal mock */

.mar-proposal-mock {
    width: 200px; background: rgba(255, 255, 255, 0.03); border-radius: 15px;
    padding: 20px; border: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 30px;
}

.mar-prop-line { height: 10px; width: 80%; background: rgba(255, 255, 255, 0.1); border-radius: 5px; margin-bottom: 12px; }

.mar-prop-line--short { width: 60%; margin-bottom: 24px; }

.mar-prop-actions { display: flex; justify-content: space-between; align-items: center; }

.mar-prop-price { height: 20px; width: 30%; background: var(--primary); border-radius: 4px; }

.mar-prop-check { height: 14px; width: 20%; background: #4ade80; border-radius: 4px; }

/* Visual 4: CRM connect */

.mar-crm-connect { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }

.mar-crm-user { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; }

.mar-crm-arrow { font-size: 24px; color: var(--primary); }

.mar-crm-box { width: 50px; height: 50px; border-radius: 12px; background: white; display: flex; align-items: center; justify-content: center; color: #333; font-weight: 800; font-size: 10px; }

.mar-vis-title { color: white; font-size: 24px; margin-bottom: 15px; }

.mar-vis-desc { color: var(--text-muted); text-align: center; max-width: 300px; }

.mar-tech-title { font-size: 48px; line-height: 1.1; }

.mar-tech-desc { font-size: 18px; margin-top: 24px; opacity: 0.8; }

.tech-icon-wrap { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

.tech-icon-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1) brightness(2); transition: 0.3s; }

.tech-card-v4:hover .tech-icon-wrap img { filter: grayscale(0) brightness(1); }

.tech-name-label { font-size: 11px; font-weight: 800; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 1px; text-align: center; }

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

/* --- PROCESS --- */

.mar-process-title { font-size: 48px; line-height: 1.1; }

.mar-process-sub { font-size: 18px; margin-top: 20px; opacity: 0.8; }

@media (max-width: 991px) {
    .mar-features-grid, .mar-scenario-grid { grid-template-columns: 1fr; }
    .mar-trans-row { grid-template-columns: 1fr; }
    .mar-trans-arrow { display: none; }
    .mar-visual-card { height: 300px; }
}
