/* ============================================
   DEMO
   ============================================ */

.demo {
    position: relative;
    padding: 112px 0;
    background-color: var(--cream);
}

.demo-head { max-width: 720px; margin-bottom: 56px; }

/* ---------- Player ---------- */
.demo-player { margin-bottom: 96px; }

.demo-player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--charcoal-darkest);
    border: 1px solid var(--charcoal-dark);
    box-shadow: var(--shadow-lg);
}

.demo-player-frame video,
.demo-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* Placeholder content */
.demo-player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: var(--cream);
}

.demo-player-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(240, 217, 149, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(240, 217, 149, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
            mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
    pointer-events: none;
}

.demo-play-btn {
    position: relative;
    z-index: 1;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--charcoal-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition), background-color var(--transition);
    box-shadow:
        0 0 0 8px rgba(232, 199, 115, 0.16),
        0 0 0 18px rgba(232, 199, 115, 0.08);
}

.demo-play-btn:hover {
    transform: scale(1.06);
    background-color: var(--butter-main);
}

.demo-play-btn svg { margin-left: 3px; }

.demo-player-caption {
    position: relative;
    z-index: 1;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(249, 241, 220, 0.72);
}

/* Corner chip */
.demo-player-chip {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(240, 217, 149, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--cream);
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.demo-player-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--teal);
    animation: heroPulse 1.8s ease-in-out infinite;
}

/* ---------- Highlights strip ---------- */
.demo-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.demo-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--charcoal-darkest);
    line-height: 1.4;
    border-right: 1px solid var(--border);
}

.demo-highlights li:last-child { border-right: none; }

.demo-highlight-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
    flex-shrink: 0;
}

/* ---------- Screenshots ---------- */
.demo-shots { margin-top: 0; }

.demo-shots-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.demo-shots-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--charcoal-darkest);
}

.demo-shots-sub {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.demo-shots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: 260px;
    gap: 20px;
}

/* Shot cards */
.shot {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.shot-tall {
    grid-row: span 2;
}

.shot-wide {
    grid-column: span 2;
}

.shot-frame {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    background-color: var(--vanilla);
    transition: transform var(--transition), box-shadow var(--transition);
}

.shot:hover .shot-frame {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* caption */
.shot-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--charcoal-medium);
}

.shot-caption-num {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
}

/* ---------- Shot 1 — blueprint ---------- */
.shot-frame-blueprint { background-color: var(--cream); }

.shot-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--butter-light) 1px, transparent 1px),
        linear-gradient(to bottom, var(--butter-light) 1px, transparent 1px);
    background-size: 24px 24px;
}

.shot-block {
    position: absolute;
    border: 1.5px solid var(--butter-dark);
    background-color: rgba(240, 217, 149, 0.35);
    border-radius: 3px;
}

.shot-block-a { top: 32px; left: 32px; width: 110px; height: 82px; }
.shot-block-b { top: 32px; left: 154px; width: 84px; height: 52px; }
.shot-block-c { top: 96px; left: 154px; width: 84px; height: 18px; }
.shot-block-d { top: 126px; left: 32px; width: 206px; height: 60px; }

/* ---------- Shot 2 — 3D ---------- */
.shot-frame-dark {
    background-color: var(--charcoal-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: var(--charcoal-dark);
}

.shot-3d {
    position: relative;
    width: 120px;
    height: 100px;
}

.shot-3d-face {
    position: absolute;
    border-radius: 3px;
}

.shot-3d-face-a {
    width: 84px; height: 62px;
    top: 16px; left: 8px;
    background: linear-gradient(160deg, var(--teal-light) 0%, var(--teal) 100%);
    transform: skewY(-14deg);
}

.shot-3d-face-b {
    width: 36px; height: 62px;
    top: 6px; left: 84px;
    background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
    transform: skewY(14deg);
    opacity: 0.75;
}

.shot-3d-face-c {
    width: 84px; height: 20px;
    top: 6px; left: 14px;
    background: var(--gold);
    transform: skewY(14deg) skewX(-4deg);
}

/* ---------- Shot 3 — cost ---------- */
.shot-frame-cost {
    background-color: var(--cream);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.shot-cost-bar {
    height: 10px;
    background-color: var(--vanilla);
    border-radius: 999px;
    overflow: hidden;
}

.shot-cost-bar span {
    display: block;
    height: 100%;
    width: var(--w);
    background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
    border-radius: 999px;
}

.shot-cost-bar:nth-child(2) span { background: linear-gradient(90deg, var(--gold) 0%, var(--butter-main) 100%); }
.shot-cost-bar:nth-child(3) span { background: linear-gradient(90deg, var(--teal-dark) 0%, var(--teal) 100%); }
.shot-cost-bar:nth-child(4) span { background: linear-gradient(90deg, var(--butter-dark) 0%, var(--butter-main) 100%); }

.shot-cost-total {
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--charcoal-darkest);
}

/* ---------- Shot 4 — share ---------- */
.shot-frame-share {
    background-color: var(--vanilla);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.shot-share-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: var(--cream);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.shot-share-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--gold);
    flex-shrink: 0;
}

.shot-share-avatar-teal { background-color: var(--teal); }

.shot-share-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.shot-share-lines span {
    height: 8px;
    border-radius: 999px;
    background-color: var(--butter-light);
}

.shot-share-lines span:first-child { width: 60%; background-color: var(--butter-main); }
.shot-share-lines span:last-child  { width: 40%; }

.shot-share-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--charcoal-darkest);
    background-color: var(--butter-main);
    padding: 7px 14px;
    border-radius: 999px;
    flex-shrink: 0;
}

/* note */
.demo-shots-note {
    margin-top: 32px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .demo-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .demo-highlights li:nth-child(2) { border-right: none; }
    .demo-highlights li:nth-child(1),
    .demo-highlights li:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .demo-shots-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 240px;
    }
    .shot-tall { grid-row: span 1; }
    .shot-wide { grid-column: span 2; }
}

@media (max-width: 900px) {
    .demo { padding: 80px 0; }
    .demo-head { margin-bottom: 40px; }
    .demo-player { margin-bottom: 72px; }
}

@media (max-width: 640px) {
    .demo { padding: 64px 0; }

    .demo-player-frame { border-radius: 18px; }
    .demo-play-btn { width: 64px; height: 64px; }

    .demo-highlights {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .demo-highlights li {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 16px 4px;
    }
    .demo-highlights li:last-child { border-bottom: none; }
    .demo-highlights li:nth-child(1),
    .demo-highlights li:nth-child(2) { border-bottom: 1px solid var(--border); }

    .demo-shots-head { flex-direction: column; gap: 8px; }
    .demo-shots-title { font-size: 1.25rem; }

    .demo-shots-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .shot-wide { grid-column: span 1; }
    .shot-frame { border-radius: 16px; }

    .demo-shots-note { margin-top: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .demo-play-btn:hover { transform: none; }
    .shot:hover .shot-frame { transform: none; }
    .demo-player-chip-dot { animation: none; }
}


/* ---------- Real image shots ---------- */
.shot-frame-image {
    background-color: var(--vanilla);
}

.shot-frame-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}