/* --- 1. VARIABLES --- */
:root {
    --brand-yellow: #fbbf24;
    --brand-cyan: #06b6d4;
    --brand-darkblue: #1e3a8a;
    --deep-dark: #0f172a;
}

/* --- 2. BASE & RESETS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Heebo', sans-serif;
    background: var(--deep-dark);
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* --- 3. CUSTOM CURSOR --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot {
    width: 8px; height: 8px; background-color: var(--brand-yellow);
    box-shadow: 0 0 10px var(--brand-yellow);
}
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid var(--brand-cyan);
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.1s;
    mix-blend-mode: exclusion;
}
body:hover .cursor-outline.hovered {
    width: 60px; height: 60px;
    background-color: rgba(6, 182, 212, 0.2);
    border-color: var(--brand-yellow);
    transform: translate(-50%, -50%) scale(1.2);
}
.mockup-container *, .mockup-nav-icon, .mockup-nav-link, button, .cursor-hover {
    cursor: pointer !important;
}

/* --- 4. BACKGROUND --- */
.clean-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden; z-index: 0;
}
.tech-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
.tech-particle {
    position: absolute; width: 40px; height: 40px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    background: rgba(6, 182, 212, 0.05);
    animation: float 15s infinite ease-in-out;
}
.tech-particle:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.tech-particle:nth-child(2) { top: 60%; left: 75%; animation-delay: 3s; }
.tech-particle:nth-child(3) { top: 80%; left: 20%; animation-delay: 6s; }
.tech-particle:nth-child(4) { top: 30%; left: 85%; animation-delay: 9s; }
.tech-particle:nth-child(5) { top: 50%; left: 5%; animation-delay: 12s; }
.tech-particle:nth-child(6) { top: 15%; left: 60%; animation-delay: 4s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-30px) rotate(180deg); opacity: 1; }
}
.tech-line {
    position: absolute; height: 1px; width: 200px;
    background: linear-gradient(90deg, transparent, rgba(6,182,212,0.5), transparent);
    animation: scanLine 8s linear infinite;
}
.tech-line:nth-child(1) { top: 25%; animation-delay: 0s; }
.tech-line:nth-child(2) { top: 55%; animation-delay: 3s; }
.tech-line:nth-child(3) { top: 75%; animation-delay: 6s; }
@keyframes scanLine {
    0% { left: -200px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
.floating-layer { position: absolute; width: 100%; height: 100%; }
.floating-icon {
    position: absolute; font-size: 1.5rem;
    color: rgba(6, 182, 212, 0.2);
    animation: floatIcon 10s ease-in-out infinite;
}
.icon-1 { top: 20%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 50%; left: 85%; animation-delay: 2s; }
.icon-3 { top: 70%; left: 40%; animation-delay: 4s; }
.icon-4 { top: 35%; left: 60%; animation-delay: 6s; }
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- 5. LAYOUT --- */
html, body { height: 100%; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; }

/* --- 6. TABS --- */
.tab-content {
    display: none;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    padding-bottom: 50px;
}
.tab-content.active { display: flex; }
.tab-content::-webkit-scrollbar { width: 8px; }
.tab-content::-webkit-scrollbar-track { background: transparent; }
.tab-content::-webkit-scrollbar-thumb { background: rgba(6,182,212,0.3); border-radius: 4px; }
.tab-content::-webkit-scrollbar-thumb:hover { background: rgba(6,182,212,0.5); }

/* --- 7. FADE IN --- */
.fade-in-up {
    opacity: 0; transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- 8. GLASS CARD --- */
.glass-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}

/* --- 9. FEATURE CARD --- */
.feature-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6,182,212,0.3);
    box-shadow: 0 20px 40px rgba(6,182,212,0.1);
}

/* --- 10. MICRO BUTTON --- */
.micro-btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.micro-btn:active { transform: scale(0.95); }

/* --- 11. LAPTOP --- */
.laptop-perspective { perspective: 1200px; }
.laptop-frame {
    background: #1e293b;
    border-radius: 16px 16px 0 0;
    border: 3px solid #334155;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}
.laptop-base {
    height: 24px;
    background: linear-gradient(to bottom, #334155, #1e293b);
    border-radius: 0 0 8px 8px;
    border: 3px solid #334155;
    border-top: none;
}
.mockup-container { cursor: auto !important; }

/* --- 12. MOCKUP UI --- */
.mockup-header {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl;
}
.mockup-nav-link {
    color: #64748b;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}
.mockup-nav-link.active, .mockup-nav-link:hover { background: #f1f5f9; color: #0f172a; }
.mockup-sidebar {
    width: 52px;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
}
.mockup-nav-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: #94a3b8; font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.mockup-nav-icon.active, .mockup-nav-icon:hover { background: #1e3a8a; color: white; }
.mockup-main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.interface-slide { display: none; height: 100%; direction: rtl; }
.interface-slide.active { display: block; }
.stat-card {
    border-radius: 8px; padding: 16px; text-align: center;
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.stat-card.blue { background: #eff6ff; border-color: #bfdbfe; }
.stat-card.green { background: #f0fdf4; border-color: #bbf7d0; }
.stat-card.yellow { background: #fefce8; border-color: #fef08a; }
.stat-card.red { background: #fef2f2; border-color: #fecaca; }
.stat-value { font-size: 1.75rem; font-weight: 900; color: #0f172a; }
.stat-label { font-size: 0.65rem; color: #64748b; font-weight: 600; margin-top: 2px; }
.app-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; direction: rtl; }
.app-table th {
    background: #f8fafc; padding: 8px 12px;
    text-align: right; font-weight: 700;
    color: #475569; border-bottom: 2px solid #e2e8f0;
}
.app-table td { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.app-table tr:hover td { background: #f8fafc; }

/* --- 13. TOAST --- */
.success-toast {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%) translateY(-50px);
    background: white; padding: 12px 24px; border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: none; align-items: center; gap: 12px; z-index: 100;
    opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #22c55e;
}
.success-toast.show { display: flex; transform: translateX(-50%) translateY(0); opacity: 1; }

/* --- 14. HIDE SCROLLBAR --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* --- 15. FEATURES TITLE --- */
.features-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.features-subtitle { font-size: clamp(0.9rem, 2vw, 1.1rem); }
