
:root {
    --bg-deep: #030305;
    --bg-panel: rgba(15, 15, 22, 0.7);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.5);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.5);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.08);
    --font-main: 'Vazirmatn', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-main);
   
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); }


.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.d-block { display: block; }

.text-gradient {
    background: linear-gradient(135deg, #fff 30%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s ease infinite;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
}


#preloader {
    position: fixed; inset: 0;
    background-color: var(--bg-deep);
    z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out;
}
#preloader.fade-out { opacity: 0; visibility: hidden; }

.loader-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.loader-logo { width: 80px; margin-bottom: 20px; animation: pulseLogo 2s infinite; }
.loader-spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}
.loader-text { margin-top: 1rem; font-size: 0.75rem; color: #a78bfa; letter-spacing: 0.2em; }


.navbar-wrapper {
    position: fixed; top: 1rem; width: 100%; z-index: 50;
    display: flex; justify-content: center; pointer-events: none;
}

.navbar {
    pointer-events: auto;
    width: 95%; max-width: 1150px;
    padding: 0.75rem 1.5rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; transition: transform 0.5s; }
.nav-brand:hover .nav-logo { transform: rotate(12deg); }
.nav-title { font-weight: 700; font-size: 1.1rem; color: white; }
.nav-title span { color: var(--accent-cyan); }

.nav-links { display: none; gap: 2rem; font-size: 0.9rem; font-weight: 500; color: #d1d5db; }
.nav-links a:hover { color: var(--accent-cyan); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.play-btn {
    display: none;
    align-items: center; gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem; font-weight: 700; color: white;
    transition: all 0.3s;
}
.play-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.menu-toggle-btn { color: #d1d5db; font-size: 1.25rem; padding: 0.5rem; }

@media (min-width: 768px) {
    .navbar-wrapper { top: 1.5rem; }
    .nav-links, .play-btn { display: flex; }
    .menu-toggle-btn { display: none; }
    .nav-title { display: block; }
}


.mobile-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(3, 3, 5, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: 0.3s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; pointer-events: all; }

.menu-close-btn { position: absolute; top: 2rem; left: 2rem; font-size: 2.5rem; color: #9ca3af; }

.mobile-menu-link {
    font-size: 1.5rem; font-weight: 900; color: white; margin: 1rem 0;
    transform: translateY(20px); opacity: 0; transition: 0.4s;
}
.mobile-menu-link:hover { color: var(--accent-cyan); }

.active .mobile-menu-link { transform: translateY(0); opacity: 1; }
.active .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.active .mobile-menu-link:nth-child(4) { transition-delay: 0.3s; }
.active .mobile-menu-link:nth-child(5) { transition-delay: 0.4s; }

.mobile-menu-btn { margin-top: 2rem; opacity: 0; transform: translateY(20px); transition: 0.5s 0.5s; }
.active .mobile-menu-btn { opacity: 1; transform: translateY(0); }


.hero-section {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; padding-top: 5rem; text-align: center;
}

.glow-spot {
    position: absolute; width: 300px; height: 300px;
    border-radius: 50%; filter: blur(100px); z-index: -1;
}
.glow-cyan { top: 5rem; left: 2rem; background: var(--accent-cyan); opacity: 0.1; animation: pulse 4s infinite; }
.glow-purple { bottom: 5rem; right: 2rem; background: var(--accent-purple); opacity: 0.2; animation: pulse 6s infinite; }

.status-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan); font-size: 0.75rem; margin-bottom: 2rem;
    animation: neonPulse 3s infinite;
}
.ping-dot { width: 8px; height: 8px; background: var(--accent-cyan); border-radius: 50%; animation: ping 1s infinite; }

.hero-title { font-weight: 900; letter-spacing: -1px; font-size: 3rem; line-height: 1.1; margin-bottom: 1.5rem; color: white; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.6; }

@media (min-width: 768px) {
    .hero-title { font-size: 5rem; }
}

.hero-buttons { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.hero-bg-logo {
    position: absolute; width: 90%; max-width: 600px;
    opacity: 0.05; z-index: -10; pointer-events: none;
    animation: floatSmooth 8s ease-in-out infinite;
}


.btn-tech {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; text-transform: uppercase; padding: 1rem 2.5rem;
    color: white; background: linear-gradient(90deg, rgba(139,92,246,0.1), rgba(139,92,246,0.2));
    border: 1px solid var(--accent-purple);
    transition: all 0.4s; overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    cursor: pointer;
}
.btn-tech::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), transparent);
    transition: left 0.6s; z-index: -1;
}
.btn-tech:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 40px var(--accent-purple-glow);
    transform: translateY(-3px) scale(1.02);
}
.btn-tech:hover::before { left: 100%; }

.btn-text-hover { display: none; margin-left: 0.5rem; }
.group:hover .btn-text-default { display: none; }
.group:hover .btn-text-hover { display: inline; }
.group:hover .btn-icon { animation: bounce 1s infinite; margin-right: 5px; }

.btn-ghost {
    padding: 1rem 2rem; font-weight: 600; color: var(--text-muted);
    border: 1px solid var(--border-glass); background: transparent;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: all 0.3s;
}
.btn-ghost:hover {
    color: var(--accent-cyan); border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    transform: translateY(-2px);
}


.section-padding { padding: 6rem 0; position: relative; overflow: hidden; }

.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.section-title { font-weight: 900; font-size: 2rem; color: white; margin-bottom: 0.5rem; }
.section-divider { height: 4px; width: 80px; background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan)); border-radius: 4px; }
.since-tag { color: #6b7280; font-family: monospace; display: none; }
@media(min-width: 768px){ .since-tag { display: block; } .section-title { font-size: 2.5rem; } }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media(min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    padding: 2rem; transition: 0.5s; position: relative; overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(180deg, rgba(20,20,30,0.8) 0%, rgba(139,92,246,0.1) 100%);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px var(--accent-purple-glow);
}
.feature-icon { font-size: 2.5rem; color: var(--accent-purple); margin-bottom: 1.5rem; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; }

.special-card { border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.05); }
.card-glow {
    position: absolute; right: -2rem; top: -2rem; width: 8rem; height: 8rem;
    background: rgba(6, 182, 212, 0.2); filter: blur(40px); border-radius: 50%;
    transition: 0.7s;
}
.special-card:hover .card-glow { background: rgba(6, 182, 212, 0.4); }
.sg-logo { width: 4rem; height: 4rem; margin-bottom: 1rem; position: relative; z-index: 10; filter: drop-shadow(0 0 15px rgba(6,182,212,0.6)); }
.badge-beta { font-size: 0.7rem; background: rgba(6, 182, 212, 0.2); color: var(--accent-cyan); padding: 2px 6px; border-radius: 4px; margin-right: 5px; vertical-align: middle; }


.bg-darker { background: rgba(0,0,0,0.3); }
.bg-blur-effect { position: absolute; right: 0; top: 0; width: 30%; height: 100%; background: rgba(139,92,246,0.05); filter: blur(60px); pointer-events: none; }

.ac-panel { padding: 2rem; border: 1px solid rgba(139,92,246,0.2); border-radius: 2rem; }
@media(min-width: 768px) { .ac-panel { padding: 4rem; } }

.grid-2-ac { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media(min-width: 1024px) { .grid-2-ac { grid-template-columns: 1fr 1fr; } .ac-content { order: 1; } .ac-visual { order: 2; } }

.ac-visual { order: 1; display: flex; justify-content: center; position: relative; }
.ac-content { order: 2; }

.tech-badge { display: inline-block; padding: 4px 12px; border-radius: 50px; background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3); color: #c4b5fd; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 1.5rem; }

.large-title { font-size: 2rem; line-height: 1.2; margin-bottom: 1.5rem; }
@media(min-width: 768px) { .large-title { font-size: 3rem; } }

.ac-text { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; font-size: 1rem; }
.ac-text p { margin-bottom: 1rem; }
.code-tag { font-family: monospace; background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; color: white; }
.sm-btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }

.shield-container { position: relative; z-index: 10; animation: floatSmooth 6s ease-in-out infinite; }
.shield-icon { font-size: 150px; opacity: 0.9; filter: drop-shadow(0 0 30px rgba(139,92,246,0.4)); }
.shield-glow { position: absolute; inset: 0; background: linear-gradient(to top right, rgba(139,92,246,0.2), rgba(6,182,212,0.2)); filter: blur(50px); border-radius: 50%; z-index: -1; animation: pulse 4s infinite; }
@media(min-width: 768px) { .shield-icon { font-size: 220px; } }


.center-line {
    display: none; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.05), transparent);
}
@media(min-width: 1024px) { .center-line { display: block; } }

.grid-2-steps { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media(min-width: 1024px) { .grid-2-steps { grid-template-columns: 1fr 1fr; } }

.video-wrapper { position: relative; order: 2; }
@media(min-width: 1024px) { .video-wrapper { order: 1; } }

.video-frame { position: relative; z-index: 10; border-radius: 1rem; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: black; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.video-glow { position: absolute; -inset: 1rem; background: linear-gradient(to top right, rgba(6,182,212,0.1), rgba(139,92,246,0.1)); border-radius: 1rem; z-index: -1; filter: blur(20px); }

.h_iframe-aparat_embed_frame { position: relative; }
.h_iframe-aparat_embed_frame .ratio { display: block; width: 100%; height: auto; }
.h_iframe-aparat_embed_frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.steps-content { order: 1; }
@media(min-width: 1024px) { .steps-content { order: 2; } }
.mb-large { margin-bottom: 2.5rem; }

.step-card {
    position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-right: 2px solid var(--accent-purple);
    padding: 1.5rem; margin-bottom: 1.5rem; transition: 0.4s;
}
.step-card:hover {
    background: linear-gradient(180deg, rgba(139,92,246,0.1) 0%, transparent 100%);
    padding-right: 2rem; border-color: var(--accent-cyan);
    box-shadow: inset -10px 0 20px -10px var(--accent-purple-glow);
}

.step-number { position: absolute; top: 0; left: 0.5rem; font-size: 3rem; font-weight: 900; opacity: 0.1; line-height: 1; transition: 0.5s; }
.step-card:hover .step-number { color: var(--accent-purple); opacity: 0.2; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.5rem; transition: 0.3s; }
.step-card:hover h3 { color: var(--accent-purple); }
.step-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.step-link { color: var(--accent-cyan); font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; }
.step-link:hover { color: white; }
.step-link i { transition: transform 0.3s; }
.step-link:hover i { transform: translateX(-5px); }

.border-cyan { border-color: var(--accent-cyan); }
.cyan-num { color: var(--accent-cyan); }
.step-card.border-cyan:hover h3 { color: var(--accent-cyan); }

.ip-box {
    background: rgba(0,0,0,0.6); 
    padding: 0.75rem; 
    border-radius: 4px; 
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
    transition: 0.3s;
}
.ip-box:hover { border-color: rgba(6,182,212,0.5); }
.ip-box code { font-family: monospace; color: #d8b4fe; font-size: 0.85rem; letter-spacing: 0.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-box button { color: #9ca3af; padding: 5px; transition: 0.2s; }
.ip-box button:hover { color: white; transform: scale(1.1); }

.main-footer {
    padding: 5rem 0 2rem; position: relative; background: #0a0a12;
    border-top: 1px solid rgba(255,255,255,0.05); overflow: hidden;
}
.footer-watermark {
    position: absolute; bottom: -50px; left: -50px; font-size: 10rem;
    font-weight: 900; opacity: 0.02; color: white; pointer-events: none; user-select: none;
}
@media(min-width: 768px){ .footer-watermark { font-size: 15rem; } }

.grid-4-footer { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
@media(min-width: 768px) { .grid-4-footer { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .grid-4-footer { grid-template-columns: repeat(4, 1fr); } }

.footer-brand { display: flex; items-center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-brand img { width: 3rem; height: 3rem; object-fit: contain; }
.footer-brand h4 { font-weight: 700; font-size: 1.25rem; color: white; }
.footer-brand span { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; }

.footer-about p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-btn {
    width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
    background: rgba(255,255,255,0.05); color: white;
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.social-btn:hover { transform: translateY(-3px); }
.social-btn.tg:hover { background: #0088cc; }
.social-btn.ds:hover { background: #7289da; }
.social-btn.ig:hover { background: #c13584; }

.footer-heading { 
    font-size: 1rem; font-weight: 700; color: white; 
    margin-bottom: 1.5rem; 
    padding-left: 0.75rem; 
}
.cyan-border { border-left: 2px solid var(--accent-cyan); }
.purple-border { border-left: 2px solid var(--accent-purple); }

.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; display: block; }
.footer-links a:hover { color: var(--accent-cyan); padding-left: 5px; }

.server-stats {
    background: rgba(0,0,0,0.3); padding: 1rem; border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.server-stats:hover { border-color: rgba(74, 222, 128, 0.3); }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.stat-val { color: #4ade80; font-weight: 700; font-family: monospace; }
.progress-bar { height: 8px; background: #1f2937; border-radius: 4px; overflow: hidden; margin-bottom: 1rem; }
.progress-fill { height: 100%; background: #22c55e; position: relative; overflow: hidden; }
.shimmer { position: absolute; inset: 0; background: rgba(255,255,255,0.2); animation: shimmer 2s infinite; }
.stat-ip { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; font-size: 0.75rem; color: #6b7280; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.8rem; color: #6b7280; text-align: center; }
@media(min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.dev-name { color: var(--accent-cyan); font-weight: 700; }


.toast-notification {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: linear-gradient(90deg, #0891b2, #2563eb);
    color: white; padding: 0.75rem 1.5rem; border-radius: 0.75rem;
    box-shadow: 0 0 20px rgba(6,182,212,0.5); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 0.75rem; font-weight: 700; z-index: 100; opacity: 0; transition: 0.5s;
    width: 90%; max-width: 350px; justify-content: center;
}
.toast-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; }


@keyframes pulseLogo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.8; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes neonPulse { 0% { box-shadow: 0 0 5px var(--accent-cyan-glow); } 50% { box-shadow: 0 0 20px var(--accent-cyan), 0 0 10px var(--accent-cyan-glow); } 100% { box-shadow: 0 0 5px var(--accent-cyan-glow); } }
@keyframes floatSmooth { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
@keyframes gradientMove { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes pulse { 0%, 100% { opacity: 0.1; transform: scale(1); } 50% { opacity: 0.2; transform: scale(1.2); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }


.reveal-hidden { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }