:root {
    --primary: #00d4ff;
    --secondary: #2e7bff;
    --primary-glow: rgba(0, 212, 255, 0.5);
    --secondary-glow: rgba(46, 123, 255, 0.5);
    --bg: #020617;
    --bg-deep: #000510;
    --fg: #e8f4ff;
    --muted: #6b8caf;
    --card: rgba(8, 20, 40, 0.6);
    --border: rgba(0, 212, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: var(--bg-deep);
    color: var(--fg);
    font-family: 'Vazirmatn', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    /* اجازه اسکرول دادن در صورت نیاز */
    min-height: 100vh;
    /* مخفی کردن اسکرول‌بار در تمام مرورگرها */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    background:
        radial-gradient(ellipse at top, rgba(46, 123, 255, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        var(--bg-deep);
    position: relative;
}

/* شبکه‌بندی پس‌زمینه */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* نویز اتمسفریک */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

/* گوی‌های شناور */
.orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    bottom: -200px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    opacity: 0.25;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }

    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

/* محتوای اصلی */
main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9rem 2rem 6rem;
    /* فاصله بالا و پایین افزایش یافت */
}

/* نوار بالا */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(0, 5, 16, 0.8), transparent);
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 0.95rem;
}

.brand-mini .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--muted);
    backdrop-filter: blur(10px);
}

.status-badge .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 1.5s ease-in-out infinite;
}

/* بخش هیرو */
.hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.logo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2.5rem;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(20px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.15);
    }
}

.logo-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px var(--primary-glow));
    z-index: 2;
    transition: filter 0.4s ease;
}

.logo-wrapper:hover .logo-img {
    filter: drop-shadow(0 0 40px var(--primary));
}

.logo-ring {
    position: absolute;
    inset: -30px;
    border: 1px solid var(--border);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    transform: translateX(-50%);
}

.logo-ring-2 {
    position: absolute;
    inset: -50px;
    border: 1px dashed rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: ringRotate 30s linear infinite reverse;
}

.logo-ring-2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 30%;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
}

.tagline {
    font-size: 1.2rem;
    color: var(--fg);
    margin-bottom: 0.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.tagline-en {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.8;
    min-height: 1.2em;
}

.tagline-en::after {
    content: '|';
    animation: blink 0.8s infinite;
    margin-right: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* شمارش معکوس */
.countdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.time-unit {
    position: relative;
    min-width: 100px;
    padding: 1.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.time-unit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.time-unit:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.time-unit:hover::after {
    opacity: 0.15;
}

.time-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: block;
    transition: transform 0.15s ease;
}

.time-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
    display: block;
}

/* فرم اشتراک */
.subscribe {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 3rem;
    text-align: center;
}

.subscribe-title {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1rem;
    font-weight: 400;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 30px -10px var(--primary-glow);
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.75rem 1.25rem;
    color: var(--fg);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    direction: ltr;
    text-align: right;
}

.subscribe-form input::placeholder {
    color: var(--muted);
}

.subscribe-form button {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 999px;
    color: white;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.subscribe-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px -5px var(--primary-glow);
}

.subscribe-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.subscribe-form button:hover::before {
    left: 100%;
}

/* نوار پیشرفت */
.progress-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.progress-label {
    color: var(--muted);
}

.progress-value {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.progress-bar {
    height: 4px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    position: relative;
    transition: width 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, white);
    opacity: 0.6;
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translateX(30px);
        opacity: 0;
    }
}

/* شبکه ویژگی‌ها */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    width: 100%;
}

.feature {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: right;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    box-shadow: 0 8px 20px -8px var(--primary-glow);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.7;
}

/* شبکه‌های اجتماعی */
.socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    backdrop-filter: blur(10px);
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px) rotate(-5deg);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

/* اعلان (Toast) */
.toast {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px var(--primary-glow);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* فوتر */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: linear-gradient(to top, rgba(0, 5, 16, 0.8), transparent);
}

/* انیمیشن ظاهر شدن */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-1 {
    animation-delay: 0.1s;
}

.reveal-2 {
    animation-delay: 0.3s;
}

.reveal-3 {
    animation-delay: 0.5s;
}

.reveal-4 {
    animation-delay: 0.7s;
}

.reveal-5 {
    animation-delay: 0.9s;
}

.reveal-6 {
    animation-delay: 1.1s;
}

/* ریسپانسیو */
@media (max-width: 640px) {
    .time-unit {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }

    .time-value {
        font-size: 1.75rem;
    }

    .subscribe-form {
        flex-direction: column;
        border-radius: 16px;
    }

    .subscribe-form button {
        width: 100%;
    }

    .logo-wrapper {
        width: 140px;
        height: 140px;
    }

    .top-bar {
        padding: 1rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    main {
        padding: 7rem 1rem 5rem;
    }
}