:root {
    --mouse-x: 50%;
    --mouse-y: 50%;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'YekanBakhFa', sans-serif;
    background-color: #020617;
    color: #f8fafc;
    overflow-x: hidden;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(139, 92, 246, 0.06), transparent 40%);
    transition: background 0.2s ease-out;
}
.main-background {
    background-color: #020617;
    background-image: radial-gradient(circle at top, #141f39, #0f172a);
}
.animated-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(to right, rgba(55, 65, 81, 0.3) 1px, transparent 1px), linear-gradient(to bottom, rgba(55, 65, 81, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 20s linear infinite;
}
@keyframes moveGrid {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 40px 40px;
    }
}
.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.glass-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.glass-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(71, 85, 105, 0.6);
    transform: translateY(-8px) scale(1.02);
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    animation: pulse 15s infinite alternate;
}
.circle-1 {
    width: 400px;
    height: 400px;
    background: #38bdf8;
    top: -100px;
    right: -100px;
    animation-duration: 12s;
}
.circle-2 {
    width: 500px;
    height: 500px;
    background: #818cf8;
    bottom: -150px;
    left: -150px;
    animation-delay: 3s;
}
@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.animate-fade-in {
    transform: translateY(30px);
}
.scroll-reveal.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal.animate-scale-in {
    transform: scale(0.9);
}
.scroll-reveal.animate-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}
.feature-icon-bg {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
}
.cta-button {
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
    background-size: 200% 100%;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}
.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 35px rgba(124, 58, 237, 0.6);
    background-position: right center;
}
.secondary-button {
    background-color: transparent;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}
.secondary-button:hover {
    background-color: #1e293b;
    border-color: #475569;
    transform: translateY(-2px);
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item {
    transition: background-color 0.3s ease;
}
.faq-item[open] {
    background-color: rgba(30, 41, 59, 0.7);
}
.faq-item summary:focus {
    outline: none;
}
header.scrolled nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(51, 65, 85, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.level-tab {
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.level-tab.active {
    color: #f8fafc;
    border-bottom-color: #818cf8;
}
.level-content {
    display: none;
}
.level-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}