:root {
    --bg: #020617;
    --bg-2: #07111f;
    --card: rgba(15, 23, 42, 0.84);
    --card-2: rgba(8, 13, 28, 0.94);
    --border: rgba(94, 234, 212, 0.16);
    --mint: #5eead4;
    --cyan: #22d3ee;
    --blue: #38bdf8;
    --deep-blue: #2563eb;
    --text: #f8fafc;
    --soft: #cbd5e1;
    --muted: #94a3b8;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
    --header-h: 76px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.16), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(94, 234, 212, 0.13), transparent 30%),
        radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.13), transparent 34%),
        var(--bg);
    color: var(--text);
    line-height: 1.9;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

.s-container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: 0.22s ease;
    white-space: nowrap;
}

.s-btn:hover {
    transform: translateY(-3px);
}

.s-btn-primary {
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    color: #03131f;
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.24);
}

.s-btn-primary:hover {
    box-shadow: 0 24px 58px rgba(34, 211, 238, 0.32);
}

.s-btn-outline {
    background: rgba(15, 23, 42, 0.58);
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.26);
}

.s-btn-outline:hover {
    border-color: rgba(94, 234, 212, 0.38);
    background: rgba(94, 234, 212, 0.08);
}

/* =========================
   Header
========================= */

.s-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-h);
    background: rgba(2, 6, 23, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.s-navbar {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.s-logo-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.48), transparent 22%),
        linear-gradient(135deg, var(--mint), var(--cyan), var(--deep-blue));
    color: #03131f;
    box-shadow: 0 16px 38px rgba(34, 211, 238, 0.24);
}

.s-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.s-logo-text strong {
    font-size: 17px;
    color: var(--text);
}

.s-logo-text span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.s-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.s-menu a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--soft);
    font-size: 14px;
    font-weight: 700;
    transition: 0.22s ease;
}

.s-menu a:hover {
    color: var(--mint);
    background: rgba(94, 234, 212, 0.08);
}

.s-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.s-mobile-toggle {
    width: 46px;
    height: 46px;
    display: none;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    cursor: pointer;
}

/* =========================
   Footer
========================= */

.s-footer {
    padding: 60px 0 26px;
    border-top: 1px solid rgba(94, 234, 212, 0.12);
    background: rgba(2, 6, 23, 0.72);
}

.s-footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr 1fr;
    gap: 28px;
}

.s-footer h3 {
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 16px;
}

.s-footer p,
.s-footer li,
.s-footer a {
    color: var(--soft);
    font-size: 14px;
}

.s-footer a:hover {
    color: var(--mint);
}

.s-footer-links {
    display: grid;
    gap: 10px;
}

.s-footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.s-floating {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 900;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--mint), var(--cyan));
    color: #03131f;
    box-shadow: 0 20px 48px rgba(34, 211, 238, 0.28);
    font-size: 21px;
    transition: 0.22s ease;
}

.s-floating:hover {
    transform: translateY(-4px) scale(1.03);
}

/* =========================
   Responsive
========================= */

@media (max-width: 1080px) {
    .s-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .s-mobile-toggle {
        display: grid;
    }

    .s-header-actions .s-btn {
        display: none;
    }

    .s-menu {
        position: fixed;
        top: 76px;
        right: 20px;
        left: 20px;
        z-index: 999;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.96);
        border: 1px solid rgba(94, 234, 212, 0.16);
        box-shadow: var(--shadow);
    }

    .s-menu.is-open {
        display: flex;
    }

    .s-menu a {
        padding: 13px 14px;
    }
}

@media (max-width: 680px) {
    .s-container {
        width: min(100% - 28px, var(--container));
    }

    .s-footer-grid {
        grid-template-columns: 1fr;
    }

    .s-footer-bottom {
        flex-direction: column;
    }

    .s-floating {
        left: 16px;
        bottom: 16px;
    }
}

/* شبکه‌های اجتماعی فوتر */
.s-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.s-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 17px;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.s-social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}
