.demo-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(214,168,79,.22), transparent 28%),
        radial-gradient(circle at 80% 16%, rgba(34,197,94,.18), transparent 25%),
        linear-gradient(135deg, #020617, #111827);
    color: white;
    padding: 76px 0;
}

.demo-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 34px;
    align-items: center;
}

.demo-kicker {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.demo-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -.05em;
    margin: 14px 0 18px;
}

.demo-hero p {
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 18px;
}

.demo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.demo-btn-primary,
.demo-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 900;
}

.demo-btn-primary {
    background: linear-gradient(135deg, #d6a84f, #fbbf24);
    color: #111827;
}

.demo-btn-secondary {
    border: 1px solid rgba(255,255,255,.32);
    color: white;
}

.demo-risk-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 30px;
    padding: 26px;
}

.demo-risk-card h3 {
    margin-top: 0;
    color: #fbbf24;
}

.demo-risk-card ul {
    display: grid;
    gap: 12px;
    padding-left: 18px;
    color: #e5e7eb;
}

.demo-main-section {
    background: #f8fafc;
}

.demo-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.demo-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 110px;
}

.demo-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 20px;
    box-shadow: 0 18px 55px rgba(15,23,42,.06);
}

.demo-panel h3 {
    margin-top: 0;
}

.symbol-btn,
.tf-btn {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 8px;
    text-align: left;
}

.symbol-btn.active,
.tf-btn.active {
    background: #111827;
    color: #fbbf24;
    border-color: #111827;
}

.timeframe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.timeframe-grid .tf-btn {
    text-align: center;
    margin: 0;
}

.demo-panel label {
    display: block;
    margin: 11px 0;
    color: #334155;
    font-weight: 700;
    line-height: 1.5;
}

.demo-chart-area {
    display: grid;
    gap: 18px;
}

.chart-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 18px 55px rgba(15,23,42,.06);
}

.chart-head span {
    display: block;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .08em;
}

.chart-head strong {
    display: block;
    color: #111827;
    font-size: 24px;
    margin-top: 4px;
}

.local-demo-chart {
    background: #0f172a;
    border-radius: 30px;
    padding: 18px;
    box-shadow: 0 24px 80px rgba(15,23,42,.16);
}

.local-demo-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.tradingview-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 18px;
    box-shadow: 0 18px 55px rgba(15,23,42,.06);
}

.tradingview-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tradingview-title strong {
    font-size: 22px;
    color: #111827;
}

.tradingview-title span {
    color: #64748b;
    font-weight: 700;
}

#tradingview_demo_chart {
    height: 520px;
    border-radius: 22px;
    overflow: hidden;
    background: #0f172a;
}

.tv-fallback {
    color: #e5e7eb;
    display: grid;
    place-items: center;
    min-height: 260px;
    text-align: center;
    padding: 24px;
}

.demo-lesson-section {
    background: white;
}

.demo-lesson-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 18px;
}

.demo-lesson-grid > div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 22px;
}

.demo-lesson-grid h3 {
    margin: 0 0 8px;
    font-size: 26px;
}

.demo-lesson-grid p,
.demo-lesson-grid span {
    color: #64748b;
    line-height: 1.65;
}

.demo-lesson-grid strong {
    display: block;
    color: #111827;
    font-size: 20px;
    margin-bottom: 8px;
}

@media (max-width: 1100px) {
    .demo-hero-grid,
    .demo-grid,
    .demo-lesson-grid {
        grid-template-columns: 1fr;
    }

    .demo-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .demo-hero {
        padding: 54px 0;
    }

    #tradingview_demo_chart {
        height: 420px;
    }

    .chart-head {
        flex-direction: column;
    }
}
