:root {
    --demo-primary: #198754;
    --demo-primary-soft: rgba(25, 135, 84, 0.12);
    --demo-secondary: #eef7f0;
    --demo-accent: #12261b;
    --demo-muted: #617166;
    --demo-surface: #ffffff;
    --demo-surface-alt: #f6faf7;
    --demo-border: rgba(18, 38, 27, 0.08);
    --demo-shadow: 0 24px 60px rgba(18, 38, 27, 0.12);
}

body.demo-page {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.94), transparent 30%),
        linear-gradient(180deg, var(--demo-surface-alt) 0%, #ffffff 32%, #f8fbf9 100%);
    color: var(--demo-accent);
}

.demo-page main {
    overflow: hidden;
}

.preview-strip {
    position: relative;
    z-index: 2;
    margin-top: 1.75rem;
}

.preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    color: var(--demo-accent);
    font-size: 0.92rem;
}

.preview-chip strong {
    color: var(--demo-primary);
}

.demo-hero {
    position: relative;
    padding: 4.5rem 0 5rem;
}

.demo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(8, 14, 12, 0.82) 0%, rgba(8, 14, 12, 0.42) 48%, rgba(8, 14, 12, 0.15) 100%),
        var(--hero-image) center/cover no-repeat;
}

.demo-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(248, 251, 249, 0) 0%, rgba(248, 251, 249, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin: 1.15rem 0 1rem;
    max-width: 10ch;
}

.hero-summary {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.demo-page .btn-hero-light {
    background: #ffffff;
    color: var(--demo-accent);
    border: 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.demo-page .btn-hero-light:hover {
    background: #ffffff;
    color: var(--demo-primary);
    transform: translateY(-2px);
}

.demo-page .btn-hero-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.demo-page .btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.hero-stack {
    position: relative;
    z-index: 1;
}

.glass-panel,
.surface-card,
.stat-tile,
.feature-panel,
.showcase-panel,
.quote-panel,
.cta-panel-premium {
    border-radius: 1.6rem;
    border: 1px solid var(--demo-border);
    box-shadow: var(--demo-shadow);
}

.glass-panel {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    color: #ffffff;
}

.surface-card,
.feature-panel,
.showcase-panel,
.quote-panel,
.cta-panel-premium {
    background: var(--demo-surface);
}

.stat-tile {
    background: rgba(255, 255, 255, 0.96);
    padding: 1.1rem 1.2rem;
    color: var(--demo-accent);
}

.stat-label {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--demo-muted);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.section-shell {
    padding: 5.25rem 0;
}

.section-shell.alt {
    background: linear-gradient(180deg, rgba(238, 247, 240, 0.85) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--demo-primary-soft);
    color: var(--demo-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 1rem 0;
}

.section-copy {
    color: var(--demo-muted);
    max-width: 60ch;
    line-height: 1.8;
}

.feature-panel,
.quote-panel,
.showcase-panel {
    padding: 2rem;
    height: 100%;
}

.feature-panel:hover,
.surface-card:hover,
.stat-tile:hover,
.quote-panel:hover {
    transform: translateY(-4px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-slab {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--demo-primary-soft);
    color: var(--demo-primary);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.feature-panel h3,
.quote-panel h3,
.showcase-panel h3 {
    margin-bottom: 0.85rem;
}

.feature-panel p,
.quote-panel p,
.showcase-panel p,
.surface-card p {
    color: var(--demo-muted);
    margin-bottom: 0;
}

.list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-clean li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: var(--demo-muted);
    margin-bottom: 0.85rem;
}

.list-clean li:last-child {
    margin-bottom: 0;
}

.list-clean i {
    margin-top: 0.2rem;
    color: var(--demo-primary);
}

.metric-strip {
    margin-top: -3rem;
    position: relative;
    z-index: 3;
}

.metric-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--demo-border);
    border-radius: 1.7rem;
    box-shadow: var(--demo-shadow);
    padding: 1.35rem;
}

.metric-panel .stat-tile {
    box-shadow: none;
    border: 1px solid rgba(18, 38, 27, 0.05);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: stretch;
}

.showcase-visual {
    min-height: 420px;
    border-radius: 1.7rem;
    background: var(--showcase-image) center/cover no-repeat;
    box-shadow: var(--demo-shadow);
    position: relative;
    overflow: hidden;
}

.showcase-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 14, 12, 0.08) 0%, rgba(7, 14, 12, 0.35) 100%);
}

.quote-panel blockquote {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--demo-accent);
}

.quote-meta {
    color: var(--demo-muted);
    font-size: 0.92rem;
}

.cta-panel-premium {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, var(--demo-secondary) 100%);
    text-align: center;
}

.cta-panel-premium p {
    max-width: 56ch;
    margin: 0.85rem auto 0;
    color: var(--demo-muted);
}

.cta-actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.split-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-row span {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--demo-accent);
    border: 1px solid var(--demo-border);
    font-size: 0.92rem;
}

@media (max-width: 991.98px) {
    .demo-hero {
        padding: 3.25rem 0 4rem;
    }

    .hero-content h1 {
        max-width: none;
    }

    .metric-strip {
        margin-top: 0;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-visual {
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .preview-chip,
    .hero-kicker,
    .section-badge,
    .tag-row span {
        font-size: 0.84rem;
    }

    .glass-panel,
    .feature-panel,
    .quote-panel,
    .showcase-panel,
    .cta-panel-premium {
        padding: 1.35rem;
    }

    .split-stats {
        grid-template-columns: 1fr;
    }
}
