/* Public marketing shell — بدون سایدبار اپ */

.pub-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--mp-bg, var(--body-bg, #06080d));
    color: var(--mp-text, #eef2f8);
}

.pub-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--pl-header-bg, rgba(10, 14, 22, 0.96)) 92%, transparent);
    border-bottom: 1px solid var(--pl-header-border, var(--pl-border, rgba(255, 255, 255, 0.08)));
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.pub-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .pub-header {
    background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .pub-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.pub-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.72rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pub-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    color: inherit;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.pub-brand:hover { opacity: 0.88; }

.pub-brand img {
    max-height: 30px;
    width: auto;
}

.pub-brand-text {
    background: linear-gradient(135deg, var(--brand-primary, #3d8bfd), var(--brand-accent, #20c997));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pub-nav {
    display: none;
    align-items: center;
    gap: 0.1rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.pub-nav a {
    text-decoration: none !important;
    color: var(--mp-muted, #8b9cb3);
    font-size: 0.86rem;
    font-weight: 650;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.pub-nav a:hover {
    color: var(--mp-text, #eef2f8);
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 10%, transparent);
}

.pub-nav a.is-active {
    color: var(--mp-text, #eef2f8);
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 16%, transparent);
}

.pub-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.pub-menu-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pl-border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    background: color-mix(in srgb, var(--mp-surface, #121820) 55%, transparent);
    color: var(--mp-text, #eef2f8);
    font-size: 1.3rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.pub-menu-btn:hover {
    border-color: color-mix(in srgb, var(--brand-primary, #3d8bfd) 40%, transparent);
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 10%, transparent);
}

.pub-menu-btn:active { transform: scale(0.96); }

.pub-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.48rem 0.9rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.pub-cta:hover { transform: translateY(-1px); }
.pub-cta:active { transform: translateY(0); }

.pub-cta--ghost {
    color: var(--mp-text, #eef2f8);
    border-color: var(--pl-border, rgba(255, 255, 255, 0.12));
    background: transparent;
}

.pub-cta--ghost:hover {
    border-color: color-mix(in srgb, var(--brand-primary, #3d8bfd) 35%, transparent);
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 8%, transparent);
}

.pub-cta--accent {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary, #3d8bfd), var(--brand-accent, #20c997));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary, #3d8bfd) 28%, transparent);
}

.pub-cta--accent:hover {
    box-shadow: 0 12px 26px color-mix(in srgb, var(--brand-primary, #3d8bfd) 36%, transparent);
}

.pub-mobile-nav {
    display: none;
    border-top: 1px solid var(--pl-border, rgba(255, 255, 255, 0.08));
    padding: 0.55rem 1rem 0.9rem;
    background: var(--pl-header-bg, rgba(10, 14, 22, 0.98));
}

.pub-mobile-nav.is-open {
    display: grid;
    gap: 0.2rem;
    animation: pub-nav-in 0.22s ease;
}

@keyframes pub-nav-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.pub-mobile-nav a {
    text-decoration: none !important;
    color: var(--mp-text, #eef2f8);
    font-weight: 650;
    font-size: 0.92rem;
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    transition: background 0.15s;
}

.pub-mobile-nav a:hover,
.pub-mobile-nav a.is-active {
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 12%, transparent);
}

.pub-main {
    flex: 1 0 auto;
    min-height: 55vh;
    animation: pub-main-in 0.35s ease;
}

@keyframes pub-main-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .pub-main,
    .pub-mobile-nav.is-open,
    .pub-cta,
    .pub-nav a { animation: none; transition: none; }
}

.pub-footer {
    position: relative;
    margin-top: auto;
    overflow: hidden;
    border-top: 1px solid var(--pl-border, rgba(255, 255, 255, 0.08));
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--brand-primary, #3d8bfd) 6%, transparent) 0%,
            transparent 28%
        ),
        color-mix(in srgb, var(--mp-bg-elevated, #0c1018) 90%, #000);
}

.pub-footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--brand-primary, #3d8bfd) 28%,
        var(--brand-accent, #20c997) 72%,
        transparent 100%
    );
    opacity: 0.85;
    pointer-events: none;
}

.pub-footer-glow {
    position: absolute;
    inset: auto -10% -40% auto;
    width: min(520px, 70vw);
    height: min(320px, 50vw);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--brand-accent, #20c997) 18%, transparent),
        transparent 68%
    );
    filter: blur(8px);
    pointer-events: none;
}

.pub-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.75rem 1.1rem 2rem;
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 2.25rem 3.5rem;
    align-items: start;
}

.pub-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pub-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none !important;
    color: inherit;
    font-weight: 800;
    font-size: 1.28rem;
    letter-spacing: -0.02em;
    width: fit-content;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pub-footer-logo:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pub-footer-logo img {
    max-height: 34px;
    width: auto;
}

.pub-footer-logo span {
    background: linear-gradient(135deg, var(--brand-primary, #3d8bfd), var(--brand-accent, #20c997));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pub-footer-copy {
    margin: 0;
    color: var(--mp-muted, #8b9cb3);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 36ch;
}

.pub-footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.15rem;
}

.pub-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.52rem 0.95rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    color: var(--mp-text, #eef2f8);
    border: 1px solid var(--pl-border, rgba(255, 255, 255, 0.12));
    background: color-mix(in srgb, var(--mp-surface, #121820) 55%, transparent);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pub-footer-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--brand-primary, #3d8bfd) 40%, transparent);
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 10%, transparent);
}

.pub-footer-btn--accent {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-primary, #3d8bfd), var(--brand-accent, #20c997));
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand-primary, #3d8bfd) 26%, transparent);
}

.pub-footer-btn--accent:hover {
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand-primary, #3d8bfd) 34%, transparent);
}

.pub-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--pl-border, rgba(255, 255, 255, 0.07));
}

.pub-footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.4rem 0.65rem 0.4rem 0.45rem;
    border-radius: 10px;
    color: var(--mp-muted, #8b9cb3);
    text-decoration: none !important;
    font-size: 0.84rem;
    font-weight: 600;
    transition: color 0.15s ease, background 0.15s ease;
}

.pub-footer-contact-item i {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--brand-primary, #3d8bfd);
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 12%, transparent);
}

.pub-footer-contact-item:hover {
    color: var(--mp-text, #eef2f8);
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 8%, transparent);
}

.pub-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 1.35rem 2.75rem;
    padding: 0.15rem 0;
    justify-content: end;
}

.pub-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pub-footer-col h3 {
    margin: 0 0 0.45rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--mp-text, #eef2f8);
    position: relative;
    padding-bottom: 0.55rem;
}

.pub-footer-col h3::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 1.35rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary, #3d8bfd), var(--brand-accent, #20c997));
}

.pub-footer-col a,
.pub-footer-phone {
    color: var(--mp-muted, #8b9cb3);
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.15s ease, transform 0.15s ease;
    width: fit-content;
}

.pub-footer-col a:hover {
    color: var(--brand-primary, #3d8bfd);
    transform: translateX(-3px);
}

.pub-footer-phone {
    direction: ltr;
    unicode-bidi: isolate;
}

.pub-footer-bar {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--pl-border, rgba(255, 255, 255, 0.07));
    background: color-mix(in srgb, #000 26%, transparent);
}

.pub-footer-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    color: var(--mp-muted, #8b9cb3);
    font-size: 0.8rem;
}

.pub-footer-bar-copy {
    font-weight: 600;
}

.pub-footer-bar-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.15rem;
}

.pub-footer-bar-links a {
    color: var(--mp-muted, #8b9cb3);
    text-decoration: none !important;
    font-weight: 650;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.pub-footer-bar-links a:hover {
    color: var(--mp-text, #eef2f8);
    background: color-mix(in srgb, var(--brand-primary, #3d8bfd) 10%, transparent);
}

html[data-theme="light"] .pub-footer {
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--brand-primary, #3d8bfd) 5%, transparent) 0%,
            transparent 30%
        ),
        #f8fafc;
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .pub-footer-glow {
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--brand-accent, #20c997) 14%, transparent),
        transparent 68%
    );
}

html[data-theme="light"] .pub-footer-btn {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

html[data-theme="light"] .pub-footer-bar {
    background: rgba(15, 23, 42, 0.03);
    border-top-color: rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .pub-footer-contact-item:hover {
    color: #0f172a;
}

html[data-theme="light"] .pub-footer-bar-links a:hover {
    color: #0f172a;
}

@media (prefers-reduced-motion: reduce) {
    .pub-footer-logo,
    .pub-footer-btn,
    .pub-footer-col a { transition: none; }
    .pub-footer-logo:hover,
    .pub-footer-btn:hover,
    .pub-footer-col a:hover { transform: none; }
}

@media (min-width: 992px) {
    .pub-nav { display: flex; }
    .pub-menu-btn { display: none; }
    .pub-mobile-nav,
    .pub-mobile-nav.is-open { display: none !important; }
}

@media (max-width: 991px) {
    .pub-cta--ghost span { display: none; }
    .pub-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.85rem;
        padding-top: 2.25rem;
    }
    .pub-footer-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.1rem;
        justify-content: stretch;
    }
}

@media (max-width: 640px) {
    .pub-footer-inner {
        padding: 2rem 1rem 1.5rem;
    }
    .pub-footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 1.35rem 1rem;
    }
    .pub-footer-col:last-child {
        grid-column: 1 / -1;
    }
    .pub-footer-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .pub-footer-bar-links {
        margin-inline-start: -0.35rem;
    }
}

/* Public marketplace layout tweaks */
.pub-body .mp-page {
    padding-top: 0.85rem;
    padding-bottom: 3rem;
}
.pub-body .mp-page.mp-home {
    padding-top: 0;
    padding-bottom: 2.5rem;
}
.pub-body .mp-page.mp-pd {
    padding-top: 0;
    padding-bottom: 2.5rem;
}

.pub-body .mp-container {
    padding-inline: 1.1rem;
}

.pub-body .mp-hero--saas {
    border-radius: 20px;
}

.pub-body .mp-page-head {
    padding: 0.35rem 0 0.15rem;
    margin-bottom: 1.15rem;
    gap: 0.85rem;
}

.pub-body .mp-page-head h1 {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    letter-spacing: -0.02em;
}

.pub-body .mp-page-head h1 i {
    color: var(--brand-primary, #3d8bfd);
    opacity: 0.9;
}

.pub-body .mp-page-head > .mp-hint,
.pub-body .mp-page-head .mp-hint,
.pub-body .mp-section-sub.mp-lead {
    max-width: 52ch;
}
