@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

/* ═══════════════════════════════════════════════════════
   DEMO CLASS SECTION — BrutForce Aviation
   Light theme split layout
   Responsive: Mobile / Tablet / Desktop
═══════════════════════════════════════════════════════ */

.demo-split {
    font-family: 'Outfit', sans-serif;
    background: #f8faff;
    position: relative;
    overflow: hidden;
    color: #0f172a;
    padding: 0;
    border-radius: 0;
    margin-top: -1px; /* flush with courses wave */
}

/* Top accent line removed — continuity handled by wave transition from courses */

/* ── Indigo orb bottom-left — mirrors courses section treatment ── */
.demo-split::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199,210,254,0.45), transparent 65%);
    bottom: -80px; left: -80px;
    pointer-events: none;
    z-index: 0;
}

/* ── Warm amber orb bottom-right ── */
.demo-split::after {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224,231,255,0.55), transparent 65%);
    top: -160px; right: -120px;
    pointer-events: none;
    z-index: 0;
}

/* ── GRID LAYOUT ── */
.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    position: relative;
    z-index: 2; /* above the orb pseudo-elements */
}

/* ════════════════════════════════════════
   LEFT — IMAGE PANEL
════════════════════════════════════════ */
.demo-image {
    position: relative;
    overflow: hidden;
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

@media (hover: hover) {
    .demo-image:hover img {
        transform: scale(1.03);
    }
}

/* Gradient fade right edge — softer blend into content panel */
.demo-image::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 80px;
    background: linear-gradient(to right, transparent, #f8faff);
    pointer-events: none;
}

/* Live enrolment badge over image */
.demo-live-badge {
    position: absolute;
    top: 24px; left: 24px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 99px;
    padding: 6px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.14);
}

.demo-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: demoLiveDot 2s ease-in-out infinite;
}

@keyframes demoLiveDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ════════════════════════════════════════
   RIGHT — CONTENT PANEL
════════════════════════════════════════ */
.demo-info {
    padding: 60px 56px 60px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Eyebrow tag */
.demo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4f5fe0;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 99px;
    padding: 5px 14px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.demo-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4f5fe0;
    animation: demoEyeDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes demoEyeDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Heading — override legacy .demo-title */
.demo-title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(1.9rem, 3vw, 2.7rem) !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 18px !important;
}

.demo-title span {
    color: #f97316 !important;
    font-style: italic;
}

/* Body text — override legacy .demo-text */
.demo-text {
    font-size: 15px !important;
    color: #64748b !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    margin-bottom: 28px !important;
    max-width: 440px;
    opacity: 1 !important;
}

/* Feature tag pills */
.demo-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.demo-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    padding: 5px 13px;
}

.demo-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

/* CTA row */
.demo-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── BUTTON — glow ring + shimmer, no shaking ── */
.demo-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: 11px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.02em;
    overflow: hidden;
    transition: filter 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
    touch-action: manipulation;
}

/* Auto shimmer sweep every 3.5s */
.demo-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
    animation: demoBtnShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes demoBtnShimmer {
    0%             { left: -80%; opacity: 0; }
    8%             { opacity: 1; }
    50%            { left: 130%; opacity: 1; }
    51%, 100%      { opacity: 0; }
}

/* Radiating glow ring */
.demo-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 13px;
    box-shadow: 0 0 0 0 rgba(249,115,22,0.6);
    animation: demoBtnRing 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes demoBtnRing {
    0%   { box-shadow: 0 0 0 0   rgba(249,115,22,0.6); }
    60%  { box-shadow: 0 0 0 10px rgba(249,115,22,0); }
    100% { box-shadow: 0 0 0 0   rgba(249,115,22,0); }
}

.demo-btn:hover {
    filter: brightness(1.07);
    box-shadow: 0 6px 28px rgba(249,115,22,0.45);
}

/* Note text — override legacy */
.demo-note {
    font-size: 12.5px !important;
    color: #94a3b8 !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-note::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
}

/* ════════════════════════════════════════
   TABLET  640px – 1023px
════════════════════════════════════════ */
@media (max-width: 1023px) {
    .demo-grid { grid-template-columns: 1fr 1fr; min-height: 440px; }
    .demo-info { padding: 44px 36px 44px 24px; }
    .demo-title { font-size: 1.8rem !important; }
    .demo-text  { font-size: 14px !important; }
}

/* ════════════════════════════════════════
   MOBILE  < 768px
════════════════════════════════════════ */
@media (max-width: 767px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }

    .demo-image {
        height: 280px;
    }

    /* Remove angled cut on mobile — not needed in stack layout */
    .demo-image::after { display: none; }

    .demo-info {
        padding: 36px 20px 40px;
        text-align: center;
    }

    .demo-eyebrow { align-self: center; }

    .demo-title { font-size: 1.75rem !important; }
    .demo-text  { font-size: 14px !important; max-width: 100%; }

    .demo-tags  { justify-content: center; }

    .demo-cta-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .demo-btn { width: 100%; max-width: 280px; justify-content: center; }
    .demo-note { justify-content: center; }
}
