/* =========================================================
   SAZEH-SAZAN — Demo Gallery Page
   Local images only; visual language aligned with the main theme.
========================================================= */
.demos-page {
    --demos-navy: #06142E;
    --demos-blue: #0B2B56;
    --demos-gold: #F6C744;
    --demos-gold-dark: #D99A25;
    --demos-ink: #17253F;
    --demos-muted: #68758A;
    overflow: hidden;
    background: #F5F7FC;
    color: var(--demos-ink);
    font-family: var(--font, "Vazirmatn", sans-serif);
}

.demos-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(78px, 9vw, 126px) 0 clamp(72px, 8vw, 104px);
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 14% 18%, rgba(246,199,68,.14), transparent 24%),
        radial-gradient(circle at 88% 80%, rgba(31,104,170,.22), transparent 30%),
        linear-gradient(125deg, #020B1C 0%, #06142E 54%, #0B2B56 100%);
}

.demos-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--demos-gold), transparent);
    opacity: .9;
}

.demos-hero-glow {
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(246,199,68,.14);
    border-radius: 50%;
    pointer-events: none;
}

.demos-hero-glow-one { top: -245px; right: -100px; box-shadow: 0 0 0 28px rgba(246,199,68,.025), 0 0 0 58px rgba(246,199,68,.02); }
.demos-hero-glow-two { bottom: -285px; left: -110px; width: 430px; height: 430px; border-color: rgba(91,163,220,.16); }

.demos-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.demos-eyebrow,
.demos-section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: var(--demos-gold);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.demos-eyebrow span {
    width: 30px;
    height: 2px;
    background: var(--demos-gold);
    border-radius: 2px;
}

.demos-hero h1 {
    margin: 22px 0 16px;
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.55rem);
    line-height: 1.45;
    font-weight: 900;
}

.demos-hero h1 strong {
    color: var(--demos-gold);
    font-weight: 900;
}

.demos-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(245,247,252,.78);
    font-size: clamp(.96rem, 1.5vw, 1.08rem);
    line-height: 2.1;
}

.demos-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 30px;
}

.demos-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(246,199,68,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: #E8EDF7;
    font-size: .82rem;
    backdrop-filter: blur(8px);
}

.demos-hero-meta i { color: var(--demos-gold); }

.demos-hero-button,
.demos-bottom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--demos-gold);
    border-radius: 10px;
    background: linear-gradient(135deg, #FFD96B, #F6C744);
    color: #06142E;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(246,199,68,.18);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.demos-hero-button:hover,
.demos-bottom-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(246,199,68,.25);
}

.demos-gallery {
    padding: clamp(64px, 7vw, 94px) 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(246,199,68,.06), transparent 22%),
        #F5F7FC;
}

.demos-section-heading {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.demos-section-kicker {
    color: var(--demos-gold-dark);
    font-size: .82rem;
}

.demos-section-heading h2 {
    margin: 10px 0 8px;
    color: var(--demos-navy);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 900;
}

.demos-section-heading p {
    margin: 0;
    color: var(--demos-muted);
    line-height: 1.9;
    font-size: .95rem;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.demo-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E0E6F0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(6,20,46,.07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.demo-card:hover {
    transform: translateY(-7px);
    border-color: rgba(217,154,37,.65);
    box-shadow: 0 20px 42px rgba(6,20,46,.13);
}

.demo-card-media {
    position: relative;
    display: block;
    height: 238px;
    overflow: hidden;
    background: #0B2B56;
}

.demo-card-media::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent, rgba(2,11,28,.68));
    pointer-events: none;
}

.demo-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.demo-card:hover .demo-card-media img { transform: scale(1.055); }

.demo-number {
    position: absolute;
    z-index: 1;
    top: 16px;
    right: 16px;
    padding: 7px 13px;
    border: 1px solid rgba(246,199,68,.7);
    border-radius: 999px;
    background: rgba(6,20,46,.88);
    color: var(--demos-gold);
    font-size: .78rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.demo-image-action {
    position: absolute;
    z-index: 1;
    bottom: 15px;
    right: 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
}

.demo-image-action i { color: var(--demos-gold); }

.demo-card-content { padding: 22px 23px 24px; }

.demo-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.demo-card-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(246,199,68,.55);
    border-radius: 11px;
    background: #FFF8E3;
    color: #B98212;
}

.demo-card-kicker {
    color: #9A751E;
    font-size: .76rem;
    font-weight: 800;
}

.demo-card-content h3 {
    margin: 0 0 9px;
    color: var(--demos-navy);
    font-size: 1.16rem;
    font-weight: 900;
}

.demo-card-content p {
    min-height: 58px;
    margin: 0;
    color: #68758A;
    font-size: .88rem;
    line-height: 1.95;
}

.demo-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #9B7010;
    font-size: .88rem;
    font-weight: 900;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

.demo-card-link:hover { gap: 15px; color: #06142E; }

.demos-bottom-cta {
    padding: 0 0 76px;
    background: #F5F7FC;
}

.demos-bottom-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid rgba(246,199,68,.28);
    border-radius: 20px;
    background: linear-gradient(120deg, #06142E, #0B2B56);
    box-shadow: 0 18px 40px rgba(6,20,46,.13);
}

.demos-bottom-cta-inner > div > span {
    color: var(--demos-gold);
    font-size: .8rem;
    font-weight: 800;
}

.demos-bottom-cta h2 {
    margin: 7px 0;
    color: #fff;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 900;
}

.demos-bottom-cta p {
    margin: 0;
    color: rgba(245,247,252,.72);
    font-size: .88rem;
    line-height: 1.9;
}

.demos-bottom-button { flex: 0 0 auto; }

@media (max-width: 1050px) {
    .demos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .demos-hero { padding: 66px 0 60px; }
    .demos-hero-meta { gap: 8px; }
    .demos-hero-meta span { font-size: .74rem; padding: 8px 11px; }
    .demos-grid { grid-template-columns: 1fr; gap: 18px; }
    .demo-card-media { height: clamp(205px, 58vw, 280px); }
    .demo-card-content { padding: 19px; }
    .demo-card-content p { min-height: 0; }
    .demos-bottom-cta { padding-bottom: 48px; }
    .demos-bottom-cta-inner { align-items: stretch; flex-direction: column; }
    .demos-bottom-button { width: 100%; }
}
