/* === ErmiData Landing Styles === */
:root {
    --ed-bg: #0a0a0f;
    --ed-bg2: #12121a;
    --ed-bg3: #1a1a26;
    --ed-surface: #15151f;
    --ed-border: rgba(255,255,255,0.06);
    --ed-border2: rgba(255,255,255,0.1);
    --ed-text: #e8e8ed;
    --ed-muted: #7a7a8a;
    --ed-dim: #4a4a5a;
    --ed-accent: #3b82f6;
    --ed-accent-hover: #2563eb;
    --ed-accent2: #60a5fa;
    --ed-green: #22c55e;
    --ed-green-dim: rgba(34,197,94,0.12);
    --ed-red: #ef4444;
    --ed-red-dim: rgba(239,68,68,0.12);
    --ed-yellow: #eab308;
    --ed-amber: #f59e0b;
    --ed-purple: #a78bfa;
    --ed-teal: #2dd4bf;
    --ed-font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --ed-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

.ed-landing {
    font-family: var(--ed-font);
    background: var(--ed-bg);
    color: var(--ed-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Сброс отступов body для лендинга */
body {
    margin: 0 !important;
    padding: 0 !important;
}

.ed-landing * {
    box-sizing: border-box;
}

.ed-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 28px;
}

@media (max-width: 768px) {
    .ed-container {
        padding: 0 16px;
    }
}

.ed-section {
    padding: 100px 0;
    position: relative;
}

.ed-section + .ed-section {
    border-top: 1px solid var(--ed-border);
}

.ed-section-alt {
    background: var(--ed-bg2);
}

/* === Badge & Pulse === */
.ed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ed-badge-green {
    background: var(--ed-green-dim);
    color: var(--ed-green);
    border: 1px solid rgba(34,197,94,0.2);
}

.ed-badge-blue {
    background: rgba(59,130,246,0.12);
    color: var(--ed-accent2);
    border: 1px solid rgba(59,130,246,0.2);
}

.ed-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ed-green);
    animation: edPulse 2s infinite;
}

@keyframes edPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* === Buttons === */
.ed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--ed-font);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.ed-btn-primary {
    background: var(--ed-accent);
    color: #fff;
}

.ed-btn-primary:hover {
    background: var(--ed-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.25);
}

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

.ed-btn-outline:hover {
    border-color: var(--ed-muted);
    background: var(--ed-bg3);
}

/* === Hero Section === */
.ed-hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.ed-hero-title-gradient {
    background: linear-gradient(135deg, var(--ed-accent2), var(--ed-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ed-hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
}

.ed-hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.ed-live-bar {
    background: var(--ed-bg2);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    padding: 16px 24px;
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
}

.ed-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ed-green);
    flex-shrink: 0;
    animation: edPulse 2s infinite;
}

.ed-live-bar span {
    color: var(--ed-muted);
}

.ed-live-bar strong {
    color: var(--ed-text);
}

.ed-equity-note {
    margin-top: 24px;
    background: rgba(59,130,246,0.06);
    border: 1px solid rgba(59,130,246,0.12);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--ed-accent2);
}

.ed-equity-note strong {
    color: var(--ed-text);
}

/* === Strategy Backtest Chart === */
.ed-strategy-chart {
    background: var(--ed-bg2);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
}

.ed-strategy-chart canvas {
    width: 100% !important;
}

.ed-strategy-vs-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.ed-strategy-vs-up {
    background: var(--ed-green-dim);
    color: var(--ed-green);
}

.ed-strategy-vs-down {
    background: var(--ed-red-dim);
    color: var(--ed-red);
}

.ed-strategy-logic {
    background: var(--ed-bg2);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ed-strategy-logic p {
    font-size: 14px;
    color: var(--ed-text);
    margin: 0;
}

.ed-strategy-logic code {
    font-family: var(--ed-mono);
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.ed-stat-sub {
    font-size: 12px;
    color: var(--ed-dim);
    margin-top: 4px;
}

.ed-label {
    font-family: var(--ed-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ed-accent2);
    margin-bottom: 12px;
}

.ed-hero-subtitle {
    font-size: 20px;
    color: var(--ed-muted);
    margin-bottom: 32px;
    /*max-width: 640px;*/
}

.ed-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ed-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 48px;
    padding: 24px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
}

.ed-stat-item {
    text-align: center;
}

.ed-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ed-accent);
}

.ed-stat-label {
    font-size: 13px;
    color: var(--ed-muted);
    margin-top: 4px;
}

/* === KPI Grid === */
.ed-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

/* Модификатор для 4 карточек — сетка 2×2 */
.ed-kpi-grid--four {
    grid-template-columns: repeat(2, 1fr);
}

/* A+E: одна колонка на мобильных + адаптивные размеры */
@media (max-width: 768px) {
    .ed-kpi-grid,
    .ed-kpi-grid--four {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ed-kpi-card {
        padding: 20px 18px;
    }
    .ed-kpi-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .ed-kpi-value {
        font-size: 24px;
    }
    .ed-kpi-card {
        padding: 18px 14px;
    }
}

.ed-kpi-card {
    background: var(--ed-bg2);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
}

.ed-kpi-value {
    font-size: 32px;
    font-weight: 700;
}

.ed-kpi-label {
    font-size: 14px;
    color: var(--ed-muted);
    margin-top: 8px;
}

.ed-kpi-positive .ed-kpi-value { color: var(--ed-green); }
.ed-kpi-negative .ed-kpi-value { color: var(--ed-red); }
.ed-kpi-neutral .ed-kpi-value { color: var(--ed-accent); }

/* === Tables === */
.ed-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.ed-table th,
.ed-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ed-border);
}

.ed-table th {
    font-size: 13px;
    color: var(--ed-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ed-table td {
    font-size: 15px;
}

.ed-good { color: var(--ed-green); }
.ed-ok { color: var(--ed-amber); }
.ed-bad { color: var(--ed-red); }

/* === Accuracy Table Rows === */
.ed-acc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--ed-border);
    font-size: 14px;
}

.ed-acc-row:last-child {
    border-bottom: none;
}

.ed-acc-target-name {
    font-family: var(--ed-mono);
    font-size: 13px;
    color: var(--ed-text);
}

.ed-acc-target-desc {
    color: var(--ed-muted);
    font-size: 12px;
    margin-left: 8px;
}

.ed-acc-hit-val {
    font-weight: 600;
}

.ed-acc-hit-val.good {
    color: var(--ed-green);
}

.ed-acc-hit-val.ok {
    color: var(--ed-amber);
}

/* === Code Blocks === */
.ed-code-block {
    background: #161622;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    padding: 20px;
    font-family: var(--ed-mono);
    font-size: 14px;
    color: #d4d4de;
    overflow-x: auto;
    margin: 16px 0;
    max-width: 100%;
}

.ed-code-snippet {
    margin: 24px 0;
}

/* === FAQ === */
.ed-faq-item {
    border-bottom: 1px solid var(--ed-border);
    padding: 20px 0;
}

.ed-faq-question {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ed-faq-answer {
    margin-top: 12px;
    color: var(--ed-muted);
    display: none;
}

.ed-faq-item.active .ed-faq-answer {
    display: block;
}

.ed-faq-toggle {
    font-size: 24px;
    transition: transform 0.2s;
}

.ed-faq-item.active .ed-faq-toggle {
    transform: rotate(45deg);
}

/* === Disclaimer === */
.ed-disclaimer {
    background: var(--ed-surface);
    border-left: 3px solid var(--ed-yellow);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    margin-top: 48px;
    font-size: 13px;
    color: var(--ed-muted);
    line-height: 1.7;
}

/* === Hero Badge === */
.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--ed-green-dim);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 100px;
    font-size: 14px;
    color: var(--ed-green);
    font-weight: 500;
    width: fit-content;
}

/* === Section Titles === */
.ed-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.ed-section-desc {
    font-size: 17px;
    color: var(--ed-muted);
    /*max-width: 680px;*/
    line-height: 1.7;
}

.ed-subsection-title {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--ed-text);
}

/* === Equity Chart Section === */
.equity-header {
    margin-bottom: 32px;
}

.equity-chart {
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

/* === Accuracy Grid === */
.accuracy-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

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

.accuracy-table {
    background: var(--ed-bg2);
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    padding: 20px;
}

.acc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ed-border);
}

.acc-row-last {
    border-bottom: none;
}

.acc-row > div {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.acc-target-name {
    font-family: var(--ed-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--ed-text);
    min-width: 100px;
}

.acc-target-desc {
    font-size: 13px;
    color: var(--ed-muted);
}

.acc-hit-val {
    font-size: 16px;
    font-weight: 700;
}

/* === Yesterday Card === */
.ed-yesterday-card {
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(59,130,246,0.06));
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 16px;
    padding: 28px;
}

.yesterday-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ed-text);
}

.yesterday-text {
    font-size: 15px;
    color: var(--ed-text);
    margin-bottom: 12px;
    line-height: 1.6;
}

.yesterday-stat {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.yesterday-stat-label {
    font-size: 13px;
    color: var(--ed-muted);
    margin-bottom: 4px;
}

.yesterday-stat-value {
    font-size: 36px;
    font-weight: 800;
}

.yesterday-stat-sub {
    font-size: 13px;
    color: var(--ed-dim);
    margin-top: 4px;
}

.yesterday-updated {
    font-size: 12px;
    color: var(--ed-dim);
    margin-top: 16px;
}

/* === Download Section === */
.ed-download-desc {
    font-size: 17px;
    color: var(--ed-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.ed-download-meta {
    font-size: 13px;
    color: var(--ed-dim);
    margin-top: 16px;
}

/* Download Lock Badge */
.ed-download-lock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--ed-green);
}

.ed-download-lock-icon {
    font-size: 16px;
    line-height: 1;
}

.ed-download-lock-text {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* === Scrollable Code Block === */
.ed-code-scrollable {
    position: relative;
    margin: 24px 0;
}

.ed-code-block-scroll {
    background: #161622;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    padding: 20px;
    font-family: var(--ed-mono);
    font-size: 14px;
    color: #d4d4de;
    line-height: 1.5;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 200px;
    max-width: 100%;
}

.ed-code-block-scroll pre {
    margin: 0;
    margin-bottom: 50px;
}

/* Gradient fade at bottom of scrollable code */
.ed-code-scroll-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #161622);
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}

/* === Strategy CTA === */
.ed-strategy-cta {
    margin: 24px 0;
    text-align: center;
}

.ed-strategy-cta .ed-btn {
    min-width: 320px;
    justify-content: center;
}

@media (max-width: 768px) {
    .ed-strategy-cta .ed-btn {
        min-width: auto;
        width: 100%;
    }

    .ed-download-lock {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        padding: 12px 16px;
    }

    .ed-code-block-scroll {
        max-height: 200px;
        font-size: 12px;
    }
}

.ed-code-full {
    margin-top: 32px;
}

/* === Steps Section === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.2s ease;
}

.step-card:hover {
    border-color: var(--ed-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.1);
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ed-accent), var(--ed-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.step-time {
    font-family: var(--ed-mono);
    font-size: 13px;
    color: var(--ed-accent2);
    margin-bottom: 12px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--ed-muted);
    line-height: 1.7;
}

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

/* === WebSocket Section === */
.ws-section {
    margin-top: 32px;
}

.ws-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ed-text);
}

/* === Pricing Section === */
.ed-pricing-subtitle {
    font-size: 17px;
    color: var(--ed-muted);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 40px;
}

/* === FAQ Section === */
.ed-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.ed-faq-title {
    text-align: center;
    margin-bottom: 40px;
}

.ed-faq-item {
    border-bottom: 1px solid var(--ed-border);
    padding: 24px 0;
}

.ed-faq-question {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ed-faq-answer {
    margin-top: 16px;
    color: var(--ed-muted);
    font-size: 15px;
    line-height: 1.7;
    display: none;
}

.ed-faq-item.active .ed-faq-answer {
    display: block;
}

.ed-faq-toggle {
    font-size: 24px;
    transition: transform 0.2s;
    color: var(--ed-muted);
    flex-shrink: 0;
}

.ed-faq-item.active .ed-faq-toggle {
    transform: rotate(45deg);
    color: var(--ed-accent);
}

/* === Strategy Chart === */
.strategy-chart {
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
}

.strategy-chart canvas {
    width: 100% !important;
    height: 400px !important;
}

/* === Stat Card === */
.stat-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
}

/* === Pricing Section === */
.ed-pricing-title {
    text-align: center;
    margin-bottom: 12px;
}

.ed-pricing-subtitle {
    font-size: 17px;
    color: var(--ed-muted);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 40px;
}

.ed-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

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

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

.ed-pricing-card {
    background: var(--ed-bg2);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
}

.ed-pricing-card:hover {
    border-color: var(--ed-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.1);
}

.ed-pricing-card.featured {
    border-color: var(--ed-accent);
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(167,139,250,0.06));
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* Бейдж тарифа */
.ed-pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Цвета бейджей по карточкам */
.ed-pricing-card:nth-child(1) .ed-pricing-badge {
    background: rgba(34,197,94,0.15);
    color: var(--ed-green);
    border: 1px solid rgba(34,197,94,0.25);
}

.ed-pricing-card:nth-child(2) .ed-pricing-badge {
    background: var(--ed-accent);
    color: #fff;
    border: 1px solid var(--ed-accent);
}

.ed-pricing-card:nth-child(3) .ed-pricing-badge {
    background: rgba(167,139,250,0.15);
    color: var(--ed-purple);
    border: 1px solid rgba(167,139,250,0.25);
}

.ed-pricing-card:nth-child(4) .ed-pricing-badge {
    background: rgba(245,158,11,0.15);
    color: var(--ed-amber);
    border: 1px solid rgba(245,158,11,0.25);
}

/* Подзаголовок фичи (мелкий текст) */
.ed-feature-sub {
    font-size: 12px !important;
    color: var(--ed-dim) !important;
    font-style: italic;
    border-bottom: none !important;
}

.ed-feature-sub::before {
    content: none !important;
}

/* Сравнительная таблица */
.ed-pricing-compare {
    margin-top: 64px;
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: 16px;
    padding: 32px;
}

.ed-compare-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.ed-compare-table {
    width: 100%;
    border-collapse: collapse;
}

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

.ed-compare-table th {
    font-size: 12px;
    color: var(--ed-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

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

.ed-compare-table tbody tr:hover {
    background: rgba(59,130,246,0.04);
}

.ed-row-highlight {
    background: rgba(59,130,246,0.06);
}

.ed-row-highlight:hover {
    background: rgba(59,130,246,0.1);
}

.ed-compare-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--ed-dim);
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .ed-compare-table {
        font-size: 12px;
    }
    .ed-compare-table th,
    .ed-compare-table td {
        padding: 10px 8px;
    }
    .ed-pricing-compare {
        padding: 20px;
        margin-top: 40px;
    }
}

.ed-pricing-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--ed-text);
    margin-bottom: 16px;
    text-align: center;
}

.ed-pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--ed-accent);
    text-align: center;
    margin-bottom: 4px;
}

.ed-pricing-period {
    font-size: 14px;
    color: var(--ed-muted);
    text-align: center;
    margin-bottom: 24px;
}

.ed-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    flex-grow: 1;
}

.ed-pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--ed-muted);
    border-bottom: 1px solid var(--ed-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ed-pricing-features li:last-child {
    border-bottom: none;
}

.ed-pricing-features li::before {
    content: '✓';
    color: var(--ed-green);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.ed-pricing-card .ed-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* === Code Syntax Highlighting === */
/* Пересчитанная палитра — контраст ≥ 4.5:1 на фоне #161622 (WCAG AA) */
.ed-code-block code {
    color: #d4d4de; /* основной текст — 11.2:1 */
}

.ed-code-block code span.code-import {
    color: #c4b5fd; /* фиолетовый — 7.1:1 */
}

.ed-code-block code span.code-keyword {
    color: #93c5fd; /* голубой — 6.4:1 */
    font-weight: 600;
}

.ed-code-block code span.code-string {
    color: #4ade80; /* зелёный — 7.8:1 */
}

.ed-code-block code span.code-field {
    color: #5eead4; /* бирюзовый — 8.5:1 */
}

.ed-code-block code span.code-comment {
    color: #a1a1b5; /* серый — 5.9:1 */
    font-style: italic;
}

.ed-code-block code span.code-number {
    color: #fbbf24; /* янтарный — 9.2:1 */
}

.ed-code-block code span.code-method {
    color: #93c5fd; /* голубой — 6.4:1 */
    font-weight: 600;
}

.ed-code-block code span.code-date {
    color: #4ade80; /* зелёный — 7.8:1 */
}

/* === Download Section === */
.ed-download-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    width: 100%;
}

.ed-download-section > .ed-label,
.ed-download-section > h2,
.ed-download-section > .ed-section-desc,
.ed-download-section > .ed-code-snippet {
    width: 100%;
}

.ed-download-section > .ed-download-desc {
    width: 100%;
    max-width: 100%;
    margin: 0 0 32px 0;
    text-align: left;
}

.ed-download-section > a.ed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 32px;
}

.ed-download-meta {
    text-align: left;
    margin-top: 16px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .ed-hero-title {
        font-size: 32px;
    }
    .ed-hero-subtitle {
        font-size: 16px;
    }
    .ed-section {
        padding: 48px 0;
    }
    .ed-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .ed-pricing-grid {
        grid-template-columns: 1fr;
    }
    .ed-hero-actions {
        flex-direction: column;
    }
    .ed-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Additional responsive rules */
    .chart-wrapper {
        height: 280px;
    }
    .strategy-chart {
        padding: 20px;
    }
    .strategy-chart canvas {
        height: 280px !important;
    }
    .step-card {
        padding: 24px;
    }
    .step-number {
        font-size: 36px;
    }
    .equity-chart {
        padding: 20px;
    }
}

/* =========================================
   HEADER & MENU (HeaderNav Widget)
   Адаптировано из site.css для ErmiData Landing
   ========================================= */
header {
    width: 100%;
    background-color: var(--ed-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--ed-border);
}

header .header__container_hamburger {
    display: none !important;
}

header .header__container_content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

header .header__container_content img {
    width: 150px;
    margin-bottom: 5px;
}

header .header__container_content p {
    font-size: 3.5rem;
    text-transform: uppercase;
    color: var(--ed-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0;
    background: linear-gradient(90deg, var(--ed-accent2), var(--ed-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    line-height: 1;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

.header__logo {
    display: flex;
    align-items: center;
}

.brand-logo-link {
    text-decoration: none;
    color: inherit;
}
/* Убрано: .brand-logo-text теперь использует стили из logo.css
   (единый источник правды для всех страниц проекта) */

.header__right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 24px;
}

.header__menu {
    display: flex;
    align-items: center;
}

.header__auth {
    display: flex;
    align-items: center;
}

.header__auth-link {
    color: var(--ed-text);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.2s ease;
}

.header__auth-link:hover {
    color: var(--ed-accent);
}

/* Меню — стили из site.css, адаптированные под ErmiData Landing */
.menu {
    display: flex;
    align-items: center;
}

.menu__wrapper {
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    padding: 8px 15px;
}

.menu__link {
    text-decoration: none;
    position: relative;
}

.menu__link .menu__item {
    width: 150px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all .3s;
    margin: 0 5px;
    position: relative;
}

.menu__link .menu__item::before {
    content: '';
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all .3s;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px;
}

.menu__link .menu__item span {
    color: var(--ed-muted);
    font-size: 14px;
    text-transform: uppercase;
    transition: .3s all ease;
    z-index: 30;
    letter-spacing: .08em;
    position: relative;
}

.menu__link .menu__item span::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #4285F4;
    transition: width 0.3s ease;
}

.menu__link:hover .menu__item span {
    color: var(--ed-text);
}

.menu__link:hover .menu__item span::after {
    width: 100%;
}

.menu__link.active .menu__item {
    background: linear-gradient(90.92deg, #af03b2 -96.02%, #00b2b2 216.28%);
}

.menu__link.active .menu__item span {
    color: #fff;
    font-weight: 700;
    letter-spacing: .08em;
}
/* Гамбургер (мобильное меню) */
.header__hamburger {
    display: none;
}

.header__hamburger.dropdown {
    position: relative;
}

.header__hamburger-btn {
    background: none;
    border: none;
    color: var(--ed-text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Скрытие треугольника dropdown (стрелка вниз Bootstrap) рядом с гамбургером */
.header__hamburger-btn.dropdown-toggle::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

.dropdown-menu {
    background: var(--ed-surface) !important;
    border: 1px solid var(--ed-border) !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 2rem;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
}

.dropdown-menu .dropdown-item {
    color: var(--ed-muted) !important;
    background: transparent !important;
}

.dropdown-menu .dropdown-item:hover {
    color: var(--ed-text) !important;
    background: var(--ed-bg3) !important;
}

.dropdown-menu .dropdown-divider {
    border-top-color: var(--ed-border) !important;
}

.dropdown-menu .menu__link .menu__item {
    width: auto;
    height: auto;
    padding: 12px 20px;
    margin: 0.5rem 0;
}

.dropdown-menu .menu__link .menu__item span {
    font-size: 16px;
    text-transform: none;
}

/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ МЕНЮ (≤850px)
   ========================================= */
@media (max-width: 850px) {
    /* Показываем гамбургер */
    .header__hamburger {
        display: block;
    }

    /* Скрываем десктопное меню */
    .header__menu {
        display: none !important;
    }

    /* Иконка auth видна только >767px */
    .header__auth {
        display: none;
    }

    /* Корректируем логотип */
    .brand-logo-text {
        font-size: 24px;
    }

    /* Dropdown меню на всю ширину */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 280px;
        margin-top: 0.5rem;
        padding: 12px 0;
    }

    .dropdown-menu .menu__link .menu__item {
        padding: 14px 24px;
        margin: 0;
        border-radius: 0;
    }

    .dropdown-menu .menu__link .menu__item span {
        font-size: 15px;
        color: var(--ed-muted);
        text-transform: none;
        letter-spacing: 0;
    }

    .dropdown-menu .menu__link .menu__item:hover span {
        color: var(--ed-text);
    }

    .dropdown-divider {
        border-top: 1px solid var(--ed-border);
        margin: 8px 0;
    }

    .dropdown-item {
        display: block;
        padding: 12px 24px;
        color: var(--ed-muted);
        text-decoration: none;
        font-size: 15px;
        transition: color 0.2s ease;
    }

    .dropdown-item:hover {
        color: var(--ed-text);
        background: var(--ed-bg3);
    }
}

/* ≤767px — скрываем auth */
@media (max-width: 767px) {
    .header__auth {
        display: none !important;
    }

    .brand-logo-text {
        font-size: 20px;
    }
}

/* =========================================
   FOOTER — адаптировано под ErmiData Landing
   ========================================= */
.footer {
    background-color: var(--ed-bg2);
    border-top: 1px solid var(--ed-border);
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 40px 0;
    margin-top: 80px;
}

.footer__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}

.footer__nav ul {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__nav ul a {
    color: var(--ed-muted) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 12px !important;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.footer__nav ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--ed-accent2);
    transition: width 0.3s ease;
}

.footer__nav ul a:hover {
    color: var(--ed-text) !important;
}

.footer__nav ul a:hover::after {
    width: 100%;
}

.footer__info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__left {
    flex: 1;
    min-width: 0;
}

.footer__right {
    flex-shrink: 0;
}

.footer__copyright {
    color: var(--ed-muted);
    font-size: 12px;
    margin-bottom: 8px !important;
}

.footer__disclaimer {
    color: var(--ed-dim);
    font-size: 11px;
    line-height: 1.6;
}

/* =========================================
   THEME TOGGLE
   ========================================= */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--ed-bg3);
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    color: var(--ed-muted);
    font-family: var(--ed-font);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--ed-muted);
    color: var(--ed-text);
    background: var(--ed-surface);
}

.theme-toggle__icon {
    display: flex;
    align-items: center;
}

.theme-toggle__label {
    font-weight: 500;
}

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie {
    width: 100%;
    padding: 20px 24px;
    background: linear-gradient(100.4deg, rgba(175, 3, 178, 0.95), rgba(0, 178, 178, 0.95));
    position: fixed;
    z-index: 10;
    bottom: 0;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie p {
    margin-bottom: 0 !important;
    color: #fff;
    font-size: 14px;
    margin: 0;
}

.cookie a {
    color: #fff !important;
    text-decoration: underline;
}

.cookie a:hover {
    color: var(--ed-teal) !important;
}

.cookie button {
    padding: 8px 24px;
    font-size: 14px;
}

.cookie__more {
    text-decoration: none;
}

.cookie__back {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.cookie__back img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* =========================================
   LAYOUT ADJUSTMENTS FOR LANDING
   ========================================= */

/* Скрыть оригинальный header ErmiData (ed-navbar), чтобы показать HeaderNav — ТОЛЬКО на лендинге */
.ed-landing .ed-navbar {
    display: none !important;
}

.main-content-1 {
    min-height: 85vh;
    background: transparent;
    position: relative;
}

.wrap {
    min-height: auto;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}

.body-content {
    padding: 0;
    background: transparent;
}

.body-content.ed-landing {
    background: var(--ed-bg) !important;
}