/* تنظیمات پایه و ریست */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر و ناوبری */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #1a3a8f, #f0b80a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #1a3a8f;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #f0b80a;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1a3a8f;
    cursor: pointer;
}

/* بخش اصلی Hero */
.hero {
    padding: 5rem 0;
    background: linear-gradient(90deg, #ffffff 50%, #f8f9fa 50%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #1a3a8f;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* انیمیشن شناور برای تصویر */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* انیمیشن شمارش معکوس دایره‌ای */
.countdown-section {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.countdown-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s linear;
    stroke-linecap: round;
}

.countdown-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a3a8f;
}

.countdown-label {
    font-weight: 600;
    color: #666;
    font-size: 1.1rem;
}

/* دکمه‌ها */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, #1a3a8f, #2a4db3);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 58, 143, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 58, 143, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #1a3a8f;
    border-color: #1a3a8f;
}

.btn-secondary:hover {
    background-color: rgba(26, 58, 143, 0.05);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* بخش پلتفرم‌ها */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a3a8f;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border-top: 5px solid transparent;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.platform-card:nth-child(1) { border-top-color: #3ddc84; } /* اندروید */
.platform-card:nth-child(2) { border-top-color: #a2aaad; } /* iOS */
.platform-card:nth-child(3) { border-top-color: #0078d7; } /* ویندوز */
.platform-card:nth-child(4) { border-top-color: #f0b80a; } /* وب */

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1a3a8f;
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.platform-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.coming-soon {
    background-color: #fff3cd;
    color: #856404;
}

/* بخش تماس */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Vazirmatn';
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #1a3a8f;
}

.form-note {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* فوتر */
.footer {
    background: linear-gradient(90deg, #1a3a8f, #0d2a6c);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #f0b80a, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-brand > p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a {
    color: white;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: #f0b80a;
    transform: scale(1.2);
}

.footer-links {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links a {
    color: #f0b80a;
    text-decoration: none;
}

/* ریسپانسیو برای موبایل و تبلت */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.7rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* منو تبدیل به همبرگری */
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: white;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        z-index: 999;
    }
    .nav-links.active {
        right: 0;
    }
    .menu-toggle {
        display: block;
    }

    /* هیرو به ستون */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .countdown-section {
        align-items: center;
    }
    .hero-buttons {
        justify-content: center;
    }

    /* کارت‌ها در موبایل */
    .platform-cards {
        grid-template-columns: 1fr;
    }

    /* فرم تماس */
    .form-group {
        flex-direction: column;
    }
    .form-group input,
    .form-group button {
        width: 100%;
    }

    /* فوتر */
    .footer-logo {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}