.demo-page {
    --demo-bg: #f4f7fb;
    --demo-surface: #ffffff;
    --demo-surface-strong: #f8fafc;
    --demo-border: #dbe4f1;
    --demo-text: #0f172a;
    --demo-muted: #475569;
    --demo-accent: #1d4ed8;
    --demo-accent-strong: #1e3a8a;
    --demo-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
    background:
        radial-gradient(circle at 6% 4%, rgba(37, 99, 235, 0.08), transparent 26%),
        radial-gradient(circle at 90% 2%, rgba(14, 165, 233, 0.08), transparent 24%),
        var(--demo-bg);
    color: var(--demo-text);
}

.demo-page main {
    display: block;
}

.demo-page a {
    text-decoration: none;
}

.demo-page .container {
    max-width: 1160px;
}

.demo-hero {
    background: linear-gradient(140deg, #0f172a 0%, #1e3a8a 58%, #1d4ed8 100%);
    color: var(--color-white);
    padding: clamp(3.8rem, 3.3rem + 2vw, 5.4rem) 0 clamp(2.6rem, 2.2rem + 1.4vw, 3.6rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.demo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 78%, rgba(248, 250, 252, 0.14), transparent 42%),
        radial-gradient(circle at 76% 15%, rgba(59, 130, 246, 0.22), transparent 40%);
}

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

.demo-logo {
    font-size: clamp(2.65rem, 5vw, 4.35rem);
    line-height: 1.03;
    margin-bottom: 0.45rem;
    letter-spacing: -0.045em;
}

.demo-tagline {
    margin-bottom: 0.65rem;
    font-size: clamp(1rem, 0.88rem + 0.6vw, 1.35rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.demo-description {
    max-width: 70ch;
    margin: 0 auto 1.55rem;
    font-size: clamp(1.01rem, 0.97rem + 0.28vw, 1.15rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.demo-hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.62rem;
    margin-bottom: 1.4rem;
}

.demo-badge {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.35);
}

.demo-hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.demo-action-primary {
    background: var(--color-white);
    color: #1e3a8a;
}

.demo-action-outline {
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
}

.demo-action-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.demo-jump-links {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.demo-jump-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.25rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: rgba(255, 255, 255, 0.93);
    font-size: 0.81rem;
    font-weight: 600;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.demo-jump-link:hover,
.demo-jump-link:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.65);
}

.demo-section {
    padding: clamp(2.9rem, 2.35rem + 1.75vw, 4.6rem) 0;
}

.demo-section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 252, 0.74));
    border-block: 1px solid rgba(219, 228, 241, 0.7);
}

.demo-section-header {
    margin-bottom: clamp(1.55rem, 1.25rem + 0.95vw, 2.35rem);
}

.demo-section-header .ui-section-title {
    font-size: clamp(1.65rem, 1.45rem + 0.95vw, 2.25rem);
    line-height: 1.1;
}

.demo-section-header .ui-section-description {
    color: var(--demo-muted);
    font-size: clamp(1rem, 0.98rem + 0.12vw, 1.08rem);
    max-width: 66ch;
}

.demo-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.demo-overview-card {
    background: var(--demo-surface);
    border: 1px solid var(--demo-border);
    border-radius: 14px;
    padding: 1.15rem;
    box-shadow: var(--demo-shadow);
}

.demo-overview-value {
    font-size: clamp(1.7rem, 1.5rem + 0.85vw, 2.2rem);
    font-weight: 760;
    line-height: 1;
    margin-bottom: 0.44rem;
    letter-spacing: -0.03em;
    color: var(--demo-accent-strong);
}

.demo-overview-card h3 {
    margin-bottom: 0.35rem;
    font-size: 1.02rem;
}

.demo-overview-card p {
    margin-bottom: 0;
    max-width: none;
    color: var(--demo-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.demo-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 1rem + 1.3vw, 2.3rem);
    align-items: center;
}

.demo-intro-content h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.58rem, 1.35rem + 1vw, 2.15rem);
}

.demo-intro-content p {
    max-width: none;
    color: var(--demo-muted);
    margin-bottom: 0.85rem;
}

.demo-intro-content p:last-child {
    margin-bottom: 0;
}

.demo-intro-badge {
    border-radius: 16px;
    padding: 2rem 1.6rem;
    background: linear-gradient(145deg, #1d4ed8 0%, #1e40af 100%);
    color: var(--color-white);
    text-align: center;
    box-shadow: 0 18px 34px -25px rgba(30, 64, 175, 0.85);
}

.demo-intro-badge h3 {
    margin-bottom: 0.4rem;
    font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem);
}

.demo-intro-badge p {
    margin-bottom: 0;
    max-width: none;
    color: rgba(255, 255, 255, 0.9);
}

.demo-features-grid,
.demo-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.demo-feature-card,
.demo-theme-card,
.demo-page-card,
.demo-resource-card,
.demo-spec-group,
.demo-media-card {
    background: var(--demo-surface);
    border: 1px solid var(--demo-border);
    box-shadow: var(--demo-shadow);
}

.demo-feature-card {
    padding: 1.2rem;
    border-radius: 13px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.demo-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -28px rgba(30, 58, 138, 0.7);
}

.demo-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    font-size: 0.76rem;
    font-weight: 760;
    letter-spacing: 0.03em;
}

.demo-feature-icon-theme {
    background: #fee2e2;
    color: #b91c1c;
}

.demo-feature-icon-responsive {
    background: #dbeafe;
    color: #1d4ed8;
}

.demo-feature-icon-performance {
    background: #dcfce7;
    color: #15803d;
}

.demo-feature-icon-seo {
    background: #fef3c7;
    color: #a16207;
}

.demo-feature-icon-components {
    background: #ede9fe;
    color: #6d28d9;
}

.demo-feature-icon-content {
    background: #e0e7ff;
    color: #3730a3;
}

.demo-feature-card h3,
.demo-theme-content h3,
.demo-page-card h3,
.demo-resource-card h3,
.demo-step-content h3,
.demo-spec-group h3 {
    margin-bottom: 0.36rem;
    font-size: 1.04rem;
}

.demo-feature-card p,
.demo-theme-content p,
.demo-page-card p,
.demo-resource-card p,
.demo-step-content p {
    margin-bottom: 0;
    max-width: none;
    color: var(--demo-muted);
    font-size: 0.92rem;
    line-height: 1.48;
}

.demo-theme-card {
    border-radius: 13px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.demo-theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -28px rgba(30, 58, 138, 0.7);
}

.demo-theme-preview {
    height: 146px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.78rem;
}

.demo-theme-preview-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 720;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.26rem 0.56rem;
    background: rgba(0, 0, 0, 0.58);
    color: var(--color-white);
}

.demo-theme-swiss {
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
}

.demo-theme-bauhaus {
    background: linear-gradient(135deg, #2563eb 0%, #facc15 100%);
}

.demo-theme-dark-bold {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
}

.demo-theme-monochrome {
    background: linear-gradient(135deg, #1f2937 0%, #6b7280 100%);
}

.demo-theme-newspaper {
    background: linear-gradient(135deg, #f5f0df 0%, #d9cdb4 100%);
}

.demo-theme-inyourface {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.demo-theme-content {
    padding: 1.1rem;
}

.demo-theme-link {
    margin-top: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--demo-accent-strong);
}

.demo-theme-link::after {
    content: "->";
    font-size: 0.78rem;
}

.demo-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.95rem;
}

.demo-media-card {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

.demo-media-card img {
    width: 100%;
    height: 206px;
    object-fit: cover;
    display: block;
}

.demo-media-card figcaption {
    padding: 0.58rem 0.8rem;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--demo-muted);
}

.demo-media-empty {
    border: 1px dashed #b8c5d9;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    background: var(--demo-surface-strong);
}

.demo-media-empty h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.demo-media-empty p {
    margin-bottom: 0;
    max-width: none;
    color: var(--demo-muted);
}

.demo-resources-grid,
.demo-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.95rem;
}

.demo-page-card,
.demo-resource-card {
    border-radius: 12px;
    padding: 1.02rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.demo-page-card:hover,
.demo-resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -24px rgba(30, 58, 138, 0.68);
    border-color: #c6d2e6;
}

.demo-page-icon,
.demo-resource-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    font-weight: 760;
    background: #e2e8f0;
    color: #1e293b;
}

.demo-resource-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.demo-quickstart {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: start;
}

.demo-steps {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.demo-step {
    display: flex;
    gap: 0.75rem;
}

.demo-step-number {
    width: 33px;
    height: 33px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1d4ed8, #1e40af);
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.demo-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.demo-spec-group {
    border-radius: 12px;
    padding: 1.08rem;
}

.demo-spec-group h3 {
    border-bottom: 1px solid var(--demo-border);
    padding-bottom: 0.52rem;
    margin-bottom: 0.72rem;
}

.demo-spec-list {
    list-style: none;
}

.demo-spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.44rem 0;
    border-bottom: 1px solid #ecf1f8;
}

.demo-spec-list li:last-child {
    border-bottom: none;
}

.demo-spec-list li span:first-child {
    color: #1e293b;
    font-weight: 600;
}

.demo-spec-list li span:last-child {
    color: var(--demo-muted);
    text-align: right;
    font-size: 0.91rem;
}

.demo-cta {
    padding: clamp(3rem, 2.6rem + 1.45vw, 4rem) 0;
    color: var(--color-white);
    text-align: center;
    background: linear-gradient(142deg, #1e3a8a 0%, #1d4ed8 62%, #2563eb 100%);
}

.demo-cta h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.7rem, 1.5rem + 0.95vw, 2.25rem);
}

.demo-cta p {
    max-width: 68ch;
    margin: 0 auto 1.2rem;
    color: rgba(255, 255, 255, 0.87);
}

.demo-cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.demo-cta .btn-primary {
    background: var(--color-white);
    color: #1e3a8a;
}

.demo-cta .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: var(--color-white);
    background: transparent;
}

.demo-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 960px) {
    .demo-intro,
    .demo-quickstart {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .demo-hero {
        padding-top: 3.6rem;
    }

    .demo-jump-links {
        gap: 0.46rem;
    }

    .demo-section {
        padding: 2.7rem 0;
    }

    .demo-spec-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .demo-spec-list li span:last-child {
        text-align: left;
    }
}
