:root {
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #3b82f6; /* آبی */
    --accent-2: #8b5cf6; /* بنفش */
    --accent-3: #ec4899; /* صورتی */
    --font-main: 'Vazirmatn', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 20%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* افکت ستاره‌های متحرک */
.stars, .twinkling {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    display: block;
}
.stars {
    background: #000 url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/stars.png') repeat top center;
    z-index: -2;
}
.twinkling {
    background: transparent url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/twinkling.png') repeat top center;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.6;
}
@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
}

/* هدر صفحه */
.page-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.logo-glow {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

.title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.highlight {
    color: var(--accent-1);
    position: relative;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* گرید ابزارها */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* استایل کارت‌ها */
.tool-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    cursor: pointer;
}

.tool-card:hover:not(.coming-soon) {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(59, 130, 246, 0.2);
}

/* آیکون باکس */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    color: white;
}

.gradient-1 { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3); }
.gradient-2 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3); }
.gradient-3 { background: linear-gradient(135deg, #ec4899, #db2777); box-shadow: 0 8px 16px rgba(219, 39, 119, 0.3); }

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* دکمه اکشن پایین کارت */
.card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: auto;
}

.arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.tool-card:hover .arrow {
    transform: translateX(-5px);
}

/* استایل حالت غیرفعال (Coming Soon) */
.coming-soon {
    opacity: 0.8;
    cursor: default;
    border-style: dashed;
}

.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--glass-border);
}

.coming-soon .icon-box, 
.coming-soon .card-title,
.coming-soon .card-description {
    filter: grayscale(0.6);
    opacity: 0.6;
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fbbf24;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.disabled-action {
    color: var(--text-secondary);
    opacity: 0.7;
}

.lock {
    width: 16px;
    height: 16px;
}

/* فوتر */
.site-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.site-footer a:hover {
    color: var(--accent-1);
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    .container {
        padding: 2rem 1.5rem;
    }
}

/* دکمه بازگشت به سایت اصلی */
.back-vision-btn {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 50px; /* گرد و کپسولی */
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    z-index: 10;
}

.back-vision-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ریسپانسیو: در موبایل فقط آیکون نمایش داده شود */
@media (max-width: 600px) {
    .back-vision-btn span { display: none; }
    .back-vision-btn { padding: 10px; border-radius: 50%; top: -10px; left: -10px; }
}