/* ============================================ */
/*            CSS CUSTOM PROPERTIES              */
/* ============================================ */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #8b7cf0;
    --accent: #00d2ff;
    --accent-dark: #0099cc;
    --bg-dark: #0a0a0f;
    --bg-card: #0f0f1a;
    --bg-card-hover: #151525;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6b6b80;
    --border-color: #1a1a2e;
    --border-glow: rgba(108, 92, 231, 0.3);
    --success: #00e676;
    --warning: #ffa726;
    --danger: #ff5252;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Orbitron', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* Light Mode Variables */
body.light-mode {
    --bg-dark: #f5f6fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f1f5;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --text-muted: #7a7a90;
    --border-color: #e0e0ea;
    --border-glow: rgba(108, 92, 231, 0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.15);
}

/* ============================================ */
/*            GLOBAL RESET & BASE                */
/* ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
    cursor: none;
    position: relative;
    min-height: 100vh;
}

body.light-mode {
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
    cursor: pointer;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================ */
/*            CUSTOM SCROLLBAR                   */
/* ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ============================================ */
/*            SELECTION STYLES                   */
/* ============================================ */
::selection {
    background: var(--primary);
    color: #fff;
}

::-moz-selection {
    background: var(--primary);
    color: #fff;
}

/* ============================================ */
/*            PRELOADER                          */
/* ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.preloader-logo {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.preloader-logo i {
    font-size: 36px;
    color: var(--primary);
}

.preloader-logo .accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.preloader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(108,92,231,0.5);
}

.preloader-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.preloader-percentage {
    font-size: 36px;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================ */
/*            ANIMATED BACKGROUND                */
/* ============================================ */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.grid-bg {
    position: absolute;
    inset: -50%;
    background-image: 
        linear-gradient(rgba(108, 92, 231, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(1deg); }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    transition: transform 0.3s ease-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -20%;
    left: -15%;
    animation: orbFloat1 15s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -20%;
    right: -15%;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #a855f7, transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(20px, 30px) scale(0.9); }
    75% { transform: translate(-40px, -20px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.15); }
    66% { transform: translate(30px, 20px) scale(0.85); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* ============================================ */
/* CUSTOM CURSOR - FINAL             */
/* ============================================ */

/* إخفاء الماوس الأصلي عن الموقع بالكامل */
html, body, * {
    cursor: none !important;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    /* التمركز في المنتصف تماماً */
    transform: translate(-50%, -50%) !important;
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent), 0 0 45px rgba(0,210,255,0.5);
    transition: width 0.2s, height 0.2s, background 0.2s;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cursor-dot.clicking {
    width: 10px;
    height: 10px;
    background: #fff;
}

.cursor-ring {
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    /* التمركز في المنتصف تماماً لضمان وجود النقطة بالداخل */
    transform: translate(-50%, -50%) !important;
    /* إلغاء الـ transition للـ transform لضمان الالتصاق الفوري بالماوس */
    transition: width 0.12s ease, height 0.12s ease, transform 0s linear; 
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 0 15px rgba(108,92,231,0.4);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.cursor-ring.hover {
    width: 45px;
    height: 45px;
    border-color: var(--accent);
    background: rgba(108,92,231,0.15);
    box-shadow: 0 0 25px rgba(0,210,255,0.5);
    /* الحفاظ على التمركز */
    transform: translate(-50%, -50%) !important;
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 99997;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.5;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    display: block !important;
    opacity: 0.4 !important;
    visibility: visible !important;
}

/* Mobile: hide custom cursor */
@media (max-width: 768px) {
    .cursor-dot,
    .cursor-ring,
    .cursor-trail {
        display: none !important;
    }
    /* إعادة الماوس الطبيعي للموبايل فقط إذا لزم الأمر */
    body, body.light-mode {
        cursor: auto !important;
    }
}   

/* ============================================ */
/*            THEME TOGGLE                       */
/* ============================================ */
.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: var(--primary);
    transition: all var(--transition-bounce);
    box-shadow: 0 8px 30px rgba(108,92,231,0.3);
    animation: float 3s ease-in-out infinite;
}

.theme-toggle-btn:hover {
    transform: scale(1.15) rotate(30deg);
    box-shadow: 0 12px 40px rgba(108,92,231,0.5);
    background: var(--primary);
    color: #fff;
}

/* ============================================ */
/*            NAVIGATION                         */
/* ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

body.light-mode .navbar {
    background: rgba(245, 246, 250, 0.85);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-base);
}

body.light-mode .logo {
    color: var(--text-primary);
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    color: var(--primary);
    font-size: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.logo .accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-base);
    position: relative;
    padding: 5px 0;
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: #fff;
}

body.light-mode .nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    transition: all var(--transition-base) !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.4);
}

.nav-cta::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 4px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -4px);
}

/* ============================================ */
/*            HERO SECTION                       */
/* ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 30px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(108,92,231,0.2) 0%, transparent 70%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-bg-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(108,92,231,0.5), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(0,210,255,0.5), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(108,92,231,0.4), transparent),
        radial-gradient(1px 1px at 80% 50%, rgba(0,210,255,0.4), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(168,85,247,0.4), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(108,92,231,0.3), transparent);
    background-size: 300px 300px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease;
    letter-spacing: 0.5px;
}

.pulse-icon {
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--font-main);
    animation: slideUp 0.8s ease;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: slideUp 0.8s ease 0.15s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: slideUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease 0.6s both;
}

.stat-item {
    text-align: center;
    transition: transform var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease-in-out infinite;
    z-index: 1;
}

.mouse-icon {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: mouseWheel 1.5s ease-in-out infinite;
}

@keyframes mouseWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

.scroll-indicator span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* ============================================ */
/*            COMMON SECTION STYLES              */
/* ============================================ */
section {
    padding: 100px 30px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,210,255,0.2));
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    border: 1px solid rgba(108,92,231,0.3);
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================ */
/*            FEATURES SECTION                   */
/* ============================================ */
.features {
    background: var(--bg-dark);
}

.features-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 35px 30px;
    transition: all var(--transition-bounce);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(0,210,255,0.08));
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--radius-xl);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(108,92,231,0.2);
}

.feature-icon-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-glow {
    position: absolute;
    inset: -10px;
    background: var(--primary);
    border-radius: 16px;
    opacity: 0.15;
    filter: blur(20px);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon-glow {
    opacity: 0.3;
    filter: blur(30px);
}

.feature-icon-wrap i {
    font-size: 32px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon-wrap i {
    color: var(--accent);
    transform: scale(1.15);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li i {
    color: var(--success);
    font-size: 12px;
}

/* ============================================ */
/*            HOW IT WORKS SECTION               */
/* ============================================ */
.how-it-works {
    background: var(--bg-dark);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 35px 40px;
    transition: all var(--transition-bounce);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 25px;
}

.step-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(108,92,231,0.2);
    transform: translateX(10px);
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
    min-width: 70px;
    text-align: center;
}

.step-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,210,255,0.2));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: all var(--transition-base);
}

.step-card:hover .step-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 14px;
    flex: 1;
}

.step-time {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
    font-family: var(--font-mono);
}

.step-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    margin-left: 75px;
    opacity: 0.4;
}

/* ============================================ */
/*            MODULES SECTION                    */
/* ============================================ */
.modules {
    background: var(--bg-dark);
}

.modules-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
}

.module-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(108,92,231,0.2);
}

.module-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.module-card span {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.module-status {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-status.active {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.modules-note {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 15px;
}

.modules-note span {
    color: var(--accent);
    font-weight: 600;
}

/* ============================================ */
/*            GAMES SECTION                      */
/* ============================================ */
.games {
    background: var(--bg-dark);
}

.games-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
    transition: all var(--transition-bounce);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.game-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(108,92,231,0.2);
    background: var(--bg-card-hover);
}

.game-card i {
    font-size: 26px;
    color: var(--primary);
    transition: all var(--transition-base);
}

.game-card:hover i {
    color: var(--accent);
    transform: scale(1.2);
}

.game-card span {
    font-weight: 600;
    font-size: 14px;
}

.game-card small {
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.games-more {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 16px;
}

.games-more span {
    color: var(--accent);
    font-weight: 700;
}

/* ============================================ */
/*            PRICING SECTION                    */
/* ============================================ */
.pricing {
    background: var(--bg-dark);
}

.pricing-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition-bounce);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(108,92,231,0.25);
}

.plan-card.popular {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(108,92,231,0.3); }
    50% { box-shadow: 0 0 60px rgba(108,92,231,0.6), 0 0 100px rgba(0,210,255,0.3); }
}

.plan-card.premium {
    border-color: var(--accent);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(108,92,231,0.4);
}

.plan-header {
    margin-bottom: 25px;
}

.plan-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.plan-price .currency {
    font-size: 24px;
    vertical-align: super;
}

.plan-price .period {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex: 1;
}

.plan-features li {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i.fa-check {
    color: var(--success);
    font-size: 13px;
}

.plan-features li i.fa-times {
    color: var(--danger);
    font-size: 13px;
    opacity: 0.5;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================ */
/*            COMPARE TABLE                      */
/* ============================================ */
.compare {
    background: var(--bg-dark);
}

.compare-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table thead {
    background: var(--bg-card);
}

.compare-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid var(--border-color);
}

.compare-table th.highlight-col {
    color: var(--accent);
}

.compare-table td {
    padding: 15px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.compare-table td.highlight-col {
    color: var(--accent);
    font-weight: 600;
}

.compare-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.compare-table .fa-check {
    color: var(--success);
}

.compare-table .fa-times {
    color: var(--danger);
    opacity: 0.5;
}

/* ============================================ */
/*            TESTIMONIALS SECTION               */
/* ============================================ */
.testimonials {
    background: var(--bg-dark);
}

.testimonials-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    transition: all var(--transition-bounce);
    cursor: pointer;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(108,92,231,0.2);
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 16px;
    font-size: 16px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.author-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.author-info span {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

/* ============================================ */
/*            STATS SECTION                      */
/* ============================================ */
.stats-section {
    background: var(--bg-dark);
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition-bounce);
    cursor: pointer;
}

.stat-box:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(108,92,231,0.2);
}

.stat-icon {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 12px;
    transition: all var(--transition-base);
}

.stat-box:hover .stat-icon {
    color: var(--accent);
    transform: scale(1.2);
}

.stat-value {
    font-size: 38px;
    font-weight: 900;
    font-family: var(--font-display);
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-name {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ============================================ */
/*            FAQ SECTION                        */
/* ============================================ */
.faq {
    background: var(--bg-dark);
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.faq-item.active .faq-question {
    color: var(--accent);
}

.faq-question i {
    transition: transform var(--transition-base);
    color: var(--text-muted);
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* ============================================ */
/*            CONTACT SECTION                    */
/* ============================================ */
.contact {
    background: var(--bg-dark);
}

.contact-container {
    max-width: 750px;
    margin: 0 auto;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-main);
    outline: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108,92,231,0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

.submit-btn {
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.5px;
}

.submit-btn i {
    transition: transform var(--transition-base);
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 5px;
}

/* ============================================ */
/*            FOOTER                             */
/* ============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 30px 30px;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

body.light-mode .footer-logo {
    color: var(--text-primary);
}

.footer-logo i {
    color: var(--primary);
    font-size: 26px;
}

.footer-logo .accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108,92,231,0.3);
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    padding: 6px 0;
    transition: all var(--transition-base);
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================ */
/*            TOAST NOTIFICATIONS                */
/* ============================================ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
    transition: all var(--transition-base);
    cursor: pointer;
    min-width: 300px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--accent); }

.toast.removing {
    animation: slideOutRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ============================================ */
/*            KEYFRAMES                          */
/* ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================ */
/*            SCROLL REVEAL                      */
/* ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays */
.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }
.delay-600 { transition-delay: 0.6s !important; }
.delay-700 { transition-delay: 0.7s !important; }
.delay-800 { transition-delay: 0.8s !important; }
.delay-900 { transition-delay: 0.9s !important; }
.delay-1000 { transition-delay: 1s !important; }

/* ============================================ */
/*            RESPONSIVE DESIGN                  */
/* ============================================ */
@media (max-width: 1024px) {
    .hero-title { font-size: 48px; }
    .section-header h2 { font-size: 34px; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 15px; }
    .hero-stats { gap: 30px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .section-header h2 { font-size: 28px; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 25px;
        border-bottom: 2px solid var(--primary);
        box-shadow: var(--shadow-lg);
        gap: 15px;
    }
    
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .compare-table-wrapper { font-size: 12px; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    .cursor-dot, .cursor-ring, .cursor-trail { display: none; }
    body, body.light-mode { cursor: auto; }
    .theme-toggle-btn { bottom: 20px; right: 20px; width: 45px; height: 45px; font-size: 18px; }
    
    .step-card { flex-direction: column; text-align: center; }
    .step-connector { margin-left: 50%; transform: translateX(-50%); }
}
