/* =============================================================================
   MAXDIFF DEMO — Homepage interactive mini-demo
   Brand palette: #6366f1 (indigo) · #a855f7 (purple) · #ec4899 (pink)
   ========================================================================== */

.maxdiff-demo-section {
    padding: 44px 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.maxdiff-demo-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    /* very light wash so content stays readable */
}

.maxdiff-demo-bg-video::after {
    content: "";
}

.maxdiff-demo-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.10) 100%);
    pointer-events: none;
    z-index: 0;
}

.maxdiff-demo-section::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.maxdiff-demo-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.maxdiff-demo-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */
.maxdiff-demo-header {
    text-align: center;
    margin: 0 auto 26px;
    max-width: 820px;
    padding: 22px 28px 24px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    box-shadow:
        0 10px 30px rgba(30, 20, 80, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.maxdiff-demo-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    background: #eef2ff;
    border-radius: 999px;
    margin-bottom: 14px;
}

.maxdiff-demo-teaser {
    font-size: 20px;
    font-weight: 600;
    color: #6366f1;
    margin: 0 0 6px 0;
}

.maxdiff-demo-title {
    font-family: 'Kallisto', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.22;
}

.maxdiff-demo-subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
    max-width: 680px;
    margin: 0 auto;
}

.maxdiff-demo-subtitle .highlight-best {
    color: #6366f1;
    font-weight: 700;
}

.maxdiff-demo-subtitle .highlight-worst {
    color: #ec4899;
    font-weight: 700;
}

/* ---------- Grid layout ---------- */
.maxdiff-demo-grid-hint {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 0 0 8px;
}

.maxdiff-demo-grid-hint span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6366f1;
}

.maxdiff-demo-grid-hint span::after {
    content: " ↓";
    font-size: 18px;
    vertical-align: middle;
    line-height: 1;
    letter-spacing: 0;
}

.maxdiff-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

/* ---------- Panels ---------- */
.maxdiff-demo-panel {
    background: #ffffff;
    border: 1px solid #e1e5ef;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 24px rgba(30, 20, 80, 0.06);
    display: flex;
    flex-direction: column;
}

/* ---------- Task panel (left) ---------- */
.maxdiff-demo-task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
    flex-wrap: wrap;
}

.maxdiff-demo-task-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
}

.maxdiff-demo-progress {
    display: flex;
    gap: 6px;
}

.maxdiff-demo-progress-dot {
    width: 18px;
    height: 4px;
    border-radius: 2px;
    background: #d5dae3;
    transition: background 300ms ease;
}

.maxdiff-demo-progress-dot.is-done {
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

.maxdiff-demo-progress-dot.is-current {
    background: #a855f7;
}

.maxdiff-demo-task-intro {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.3;
    text-align: center;
}

.maxdiff-demo-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0 0 4px 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.maxdiff-demo-question strong {
    font-weight: 700;
}

.maxdiff-demo-question strong.is-best {
    color: #6366f1;
}

.maxdiff-demo-question strong.is-worst {
    color: #ec4899;
    text-align: right;
}

/* ---------- Cards list (one slogan per row, 3 columns) ---------- */
.maxdiff-demo-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.maxdiff-demo-cards-header {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 10px;
    align-items: center;
    padding: 0 12px 6px;
    margin-bottom: 4px;
    border-bottom: 1px dashed #d4dae5;
}

.maxdiff-demo-cards-header-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    color: #4b5563;
}

.maxdiff-demo-cards-header-label.is-best {
    color: #6366f1;
}

.maxdiff-demo-cards-header-label.is-worst {
    color: #ec4899;
}

.maxdiff-demo-card {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    background: #fcfbff;
    border: 2px solid #dde3ee;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.maxdiff-demo-card:hover {
    border-color: #cdd3ff;
    background: linear-gradient(135deg, #ffffff 0%, #f6f7ff 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}

.maxdiff-demo-card.is-best {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.maxdiff-demo-card.is-worst {
    border-color: #f9a8d4;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.12);
}

.maxdiff-demo-card-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    text-align: center;
    padding: 0 4px;
    color: #111827;
}

.maxdiff-demo-card-choice {
    display: flex;
    justify-content: center;
}

.maxdiff-demo-card-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    touch-action: manipulation;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
    font-size: 0;
    color: transparent;
}

.maxdiff-demo-card-btn:hover {
    transform: scale(1.04);
}

.maxdiff-demo-card-btn[data-role="best"]:hover {
    color: #6366f1;
}

.maxdiff-demo-card-btn[data-role="worst"]:hover {
    color: #ec4899;
}

.maxdiff-demo-card-btn.is-active[data-role="best"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
}

.maxdiff-demo-card-btn.is-active[data-role="worst"] {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(236, 72, 153, 0.30);
}

.maxdiff-demo-card-check {
    width: 20px;
    height: 20px;
    border: 2px solid #6b7280;
    border-radius: 5px;
    background: #ffffff;
    display: inline-block;
    position: relative;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.maxdiff-demo-card-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 120ms ease;
}

.maxdiff-demo-card-btn[data-role="best"]:hover .maxdiff-demo-card-check {
    border-color: #6366f1;
}

.maxdiff-demo-card-btn[data-role="worst"]:hover .maxdiff-demo-card-check {
    border-color: #ec4899;
}

.maxdiff-demo-card-btn.is-active[data-role="best"] .maxdiff-demo-card-check {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.maxdiff-demo-card-btn.is-active[data-role="worst"] .maxdiff-demo-card-check {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.maxdiff-demo-card-btn.is-active .maxdiff-demo-card-check::after {
    opacity: 1;
}

.maxdiff-demo-card-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ---------- Action buttons ---------- */
.maxdiff-demo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.maxdiff-demo-btn {
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
    font-family: inherit;
}

.maxdiff-demo-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.maxdiff-demo-btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.maxdiff-demo-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.maxdiff-demo-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.maxdiff-demo-btn-ghost {
    background: transparent;
    color: #4b5563;
    border: 1px solid #cfd6e3;
}

.maxdiff-demo-btn-ghost:hover {
    color: #1f2937;
    border-color: #b8c3d6;
    background: #f8fafc;
}

.maxdiff-demo-btn-link {
    background: transparent;
    color: #6366f1;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 500;
}

.maxdiff-demo-btn-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* ---------- Completion ---------- */
.maxdiff-demo-completion {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
    margin-bottom: 18px;
}

.maxdiff-demo-completion-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1;
}

.maxdiff-demo-completion-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* ---------- Ranking panel (right) ---------- */
.maxdiff-demo-ranking-title {
    font-family: 'Kallisto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.maxdiff-demo-ranking-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 18px 0;
}

.maxdiff-demo-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    flex: 1;
    justify-content: space-around;
}

/* Diverging bar chart */
.maxdiff-demo-ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(110px, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 6px 0;
    transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
    font-size: 13.5px;
    line-height: 1.35;
    color: #1f2937;
}

.maxdiff-demo-ranking-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.35;
    color: #1f2937;
    padding: 0 2px;
    text-align: right;
}

.maxdiff-demo-ranking-item.is-leader .maxdiff-demo-ranking-text {
    color: #4f46e5;
    font-weight: 600;
}

.maxdiff-demo-ranking-leader-label {
    display: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6366f1;
    margin-right: 6px;
}

.maxdiff-demo-ranking-item.is-leader .maxdiff-demo-ranking-leader-label {
    display: inline-block;
}

.maxdiff-demo-ranking-bar-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 22px;
    background: transparent;
}

/* Central 0% axis */
.maxdiff-demo-ranking-bar-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -2px;
    bottom: -2px;
    width: 1px;
    background: #cbd5e1;
    z-index: 1;
}

.maxdiff-demo-ranking-bar-half {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.maxdiff-demo-ranking-bar-half.is-left {
    justify-content: flex-end;
}

.maxdiff-demo-ranking-bar-half.is-right {
    justify-content: flex-start;
}

.maxdiff-demo-ranking-bar {
    height: 14px;
    border-radius: 3px;
    transition: width 520ms cubic-bezier(0.22, 0.61, 0.36, 1),
                background 300ms ease;
    min-width: 0;
}

.maxdiff-demo-ranking-bar.is-positive {
    background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 100%);
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.25);
}

.maxdiff-demo-ranking-bar.is-negative {
    background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
    box-shadow: 0 1px 4px rgba(236, 72, 153, 0.22);
}

.maxdiff-demo-ranking-item.is-leader .maxdiff-demo-ranking-bar.is-positive {
    background: linear-gradient(90deg, #a855f7 0%, #6366f1 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.maxdiff-demo-ranking-score {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    padding: 0 6px;
}

.maxdiff-demo-ranking-score.is-positive {
    color: #4f46e5;
}

.maxdiff-demo-ranking-score.is-negative {
    color: #be185d;
}

.maxdiff-demo-ranking-score.is-zero {
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1px 8px;
    background: #f3f4f6;
    border-radius: 999px;
    color: #9ca3af;
    font-size: 10px;
}

/* Axis labels */
.maxdiff-demo-ranking-axis {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(110px, 1fr);
    column-gap: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 0 6px 0;
    margin-bottom: 4px;
    border-bottom: 1px dashed #e5e7eb;
}

.maxdiff-demo-ranking-axis-spacer {
    display: block;
}

.maxdiff-demo-ranking-axis-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.maxdiff-demo-ranking-axis-inner::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: -10px;
    width: 1px;
    background: #e5e7eb;
}

.maxdiff-demo-ranking-axis-label {
    display: flex;
    align-items: center;
}

.maxdiff-demo-ranking-axis-label.is-left {
    justify-content: flex-start;
    color: #ec4899;
}

.maxdiff-demo-ranking-axis-label.is-right {
    justify-content: flex-end;
    color: #6366f1;
}

/* ---------- Hero dynamic slogan transition ---------- */
#hero-dynamic-slogan {
    transition: opacity 280ms ease;
}

#hero-dynamic-slogan.is-fading {
    opacity: 0;
}

/* ---------- Sample trigger (100-respondents preview) ---------- */
#maxdiff-demo-sample-bar {
    margin-top: 14px;
    margin-bottom: 10px;
    min-height: 0;
}

.maxdiff-demo-btn-sample {
    font-size: 12px;
    font-weight: 600;
    color: #6366f1;
    background: transparent;
    border: 1px dashed #c7d2fe;
    border-radius: 8px;
    padding: 6px 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.maxdiff-demo-btn-sample::before {
    content: "👥";
    font-size: 13px;
}

.maxdiff-demo-btn-sample:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

.maxdiff-demo-btn-sample:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.maxdiff-demo-sample-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.maxdiff-demo-sample-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    border-radius: 999px;
    padding: 4px 11px;
    letter-spacing: 0.03em;
}

.maxdiff-demo-sample-badge::before {
    content: "👥";
}

.maxdiff-demo-btn-sample-back {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    font-family: inherit;
    transition: color 160ms ease;
}

.maxdiff-demo-btn-sample-back:hover {
    color: #4b5563;
    text-decoration: underline;
}

.maxdiff-demo-btn-sample-back:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .maxdiff-demo-section {
        padding: 40px 0;
    }

    .maxdiff-demo-title {
        font-size: 24px;
    }

    .maxdiff-demo-subtitle {
        font-size: 14px;
    }

    .maxdiff-demo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .maxdiff-demo-panel {
        padding: 22px;
    }

    /* Grid-hint: single column on mobile — ranking panel is now below, not to the right */
    .maxdiff-demo-grid-hint {
        grid-template-columns: 1fr;
    }
    .maxdiff-demo-grid-hint span:last-child {
        display: none;
    }
}

@media (max-width: 600px) {
    .maxdiff-demo-header {
        padding: 18px 18px 20px;
    }

    .maxdiff-demo-title {
        font-size: 20px;
    }

    .maxdiff-demo-subtitle {
        font-size: 13px;
    }

    /* Ranking panel: stack text above bar */
    .maxdiff-demo-ranking-item {
        grid-template-columns: 1fr;
        row-gap: 4px;
        padding: 8px 0;
    }

    .maxdiff-demo-ranking-text {
        text-align: left;
        font-size: 13px;
    }

    .maxdiff-demo-ranking-axis {
        grid-template-columns: 1fr;
    }

    .maxdiff-demo-ranking-axis-spacer {
        display: none;
    }

    .maxdiff-demo-section {
        padding: 28px 0;
    }

    .maxdiff-demo-teaser {
        font-size: 17px;
    }

    /* Disable expensive blur on low-end devices */
    .maxdiff-demo-header,
    .maxdiff-demo-footer {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.92);
    }

    .maxdiff-demo-footer {
        margin-top: 20px;
    }
}

@media (max-width: 560px) {
    .maxdiff-demo-cards-header,
    .maxdiff-demo-card {
        grid-template-columns: 52px 1fr 52px;
        gap: 6px;
    }

    .maxdiff-demo-card {
        padding: 8px 8px;
        font-size: 13px;
    }

    .maxdiff-demo-card-btn {
        width: 44px;
        height: 44px;
    }

    .maxdiff-demo-card-check {
        width: 20px;
        height: 20px;
    }

    .maxdiff-demo-card-check::after {
        left: 4px;
        top: 0;
        width: 6px;
        height: 10px;
    }

    .maxdiff-demo-actions {
        flex-direction: column;
    }

    .maxdiff-demo-btn {
        width: 100%;
        padding: 13px 22px;
    }

    .maxdiff-demo-task-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .maxdiff-demo-panel {
        padding: 16px 14px;
    }

    .maxdiff-demo-card-text {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .maxdiff-demo-cards-header,
    .maxdiff-demo-card {
        grid-template-columns: 46px 1fr 46px;
        gap: 4px;
    }

    .maxdiff-demo-card-text {
        font-size: 12px;
    }

    .maxdiff-demo-card-btn {
        width: 40px;
        height: 40px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .maxdiff-demo-card,
    .maxdiff-demo-card-btn,
    .maxdiff-demo-btn,
    .maxdiff-demo-ranking-item,
    #hero-dynamic-slogan {
        transition: none !important;
    }
}

/* ---------- Mobile: hide section ---------- */
@media (max-width: 768px) {
    .maxdiff-demo-section {
        display: none;
    }
}

/* ---------- Demo footer (case studies link) ---------- */
.maxdiff-demo-footer {
    text-align: center;
    margin: 32px auto 0;
    max-width: 820px;
    padding: 22px 28px 24px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    box-shadow:
        0 10px 30px rgba(30, 20, 80, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.maxdiff-demo-footer-text {
    color: #1f2937;
    font-size: 14px;
    margin: 0 0 16px;
    line-height: 1.5;
}

.maxdiff-demo-footer-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1f2937;
    color: #fff;
    border: 1px solid #1f2937;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.maxdiff-demo-footer-btn:hover {
    background: #374151;
    border-color: #374151;
}
